text
stringlengths
3.08k
12.5k
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * -----------...
/* Copyright 2021 The Silkworm Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
/* * Phantom Slayer * Help page display * * @version 1.1.1 * @author smittytone * @copyright 2021, <NAME> * @licence MIT * */ #include "main.h" using std::string; using std::vector; using namespace picosystem; /* * HELP PAGE STRINGS */ string help_page_0 = "PHANTOM SLAYER is a chase ga...
/* * GraphHPC-2017 Contest * Betweenness Centrality Problem */ #include <algorithm> // std::log #include <cassert> // std::assert #include <cstring> // std::memset, std::strcmp #include <iomanip> // std::setprecision #include <iostream> // std::cout, std::fixed #include <cmath> // std::log #include "mai...
/************************************************************************************************************************ Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies. All rights reserved. Redistribution and use in source and binary forms, with or without modification, ...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed // by a BSD-style license that can be found in the LICENSE file. #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <lib/async/cpp/task.h> #include <lib/async/cpp/wait.h> #include <lib/bac...
/* * Copyright (c) 2021 HopeBayTech. * * This file is part of Tera. * See https://github.com/HopeBayMobile for further info. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
#include <signal.h> #include <unistd.h> #include <atomic> #include "POSIXPrivate.h" #include "WAVM/Inline/Assert.h" #include "WAVM/Inline/Errors.h" #include "WAVM/Platform/Diagnostics.h" using namespace WAVM; using namespace WAVM::Platform; thread_local SignalContext* Platform::innermostSignalContext = nullptr; [[n...
/** *Licensed to the Apache Software Foundation (ASF) under one *or more contributor license agreements. See the NOTICE file *distributed with this work for additional information *regarding copyright ownership. The ASF licenses this file *to you under the Apache License, Version 2.0 (the *"License"); you may n...
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-04-28 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2021 INRIA. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
/** * Implements loadplay, a bootstrapping tool for libloadplay. * * @file */ #include "Options.hpp" #include "errors.hpp" #include "utility.hpp" #include "sys/env.hpp" #include "sys/io.hpp" #include <unistd.h> /* execvp() */ /** * File local scope. */ namespace { using nih::Parameter; using nih::Options; ...
// // Created by johannes on 21.04.21. // #include "SortPerformanceEstimator.h" #include <cstdlib> #include "../util/Log.h" #include "../util/Random.h" #include "../util/Timer.h" #include "CallFixedSize.h" #include "Engine.h" #include "IdTable.h" // __________________________________________________________________...
/* * Copyright (C) 2021 ByteDance Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
// mc-mesher TEST file // <NAME> #include "mc_mesher.h" #include "gradient_noise.h" #include "McmCommon.h" #include <cstring> #include <vector> #include <unordered_map> float GetValue(size_t x, size_t y, size_t z) { static gnd::gradient_noise<float, 3> noise3d(5326); static std::unordered_map<uint32_t, float...
#include <vector> #include <string> #include <iostream> #include <fstream> #include <iomanip> #include <sstream> #include <cmath> #include "Numerics/OneDimCubicSpline.h" #include "Numerics/CubicBspline.h" #include "Numerics/CubicSpline.h" #include "Numerics/CubicSplineEngine.h" #include "Configuration.h" #include "Util...
// // Copyright (c) 2008-2022 the Urho3D project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, m...
/** * @file pca9685dmxservoparams.cpp * */ /* Copyright (C) 2018-2020 by <NAME> mailto:<EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without ...
/**************************************************************************************** * @author: kzvd4729 created: 2019-02-02 09:28:47 * solution_verdict: Accepted language: C++ * run...
/* Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, co...
#include "resource_manager.h" #include <iostream> #include "tree.h" #include "texture.h" #include <math.h> #define PI 3.1415926536 Tree::Tree(float x, float y, float z, float r0, float h0, float r1, float h1, float r, float h) { position[0] = x; position[1] = y; position[2] = z; leaf[0][0] = r0; leaf[0][1] = h0; le...
/* Copyright (c) 2013, Project OSRM, <NAME>, others All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and th...
#include <Kin/kin.h> #include <Gui/opengl.h> #include <Core/graph.h> #include <Kin/proxy.h> #include <Kin/viewer.h> #include <LGP/LGP_tree.h> #include <KOMO/komo.h> const std::string model_dir = "/home/yongxi/Workspace/rai-python/rai-robotModels"; const std::string curr_dir = "/home/yongxi/Workspace/rai-python/playgr...
// Copyright (c) 2009-2018 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #include "ConstraintEllipsoid.h" #include "EvaluatorConstraintEllipsoid.h" namespace py = pybind11; using namespace std; /*! \file ...
/* Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
// // paFunImpactGen.cpp // #include "System/paConfig.h" #include <math.h> #include "Impact/paFunImpactGen.hpp" #include "Signal/paBlock.hpp" #include "Surface/paFunSurface.hpp" //#include <stdio.h> paFunImpactGen::paFunImpactGen() { m_isQuiet = true; } void paFunImpactGen::initialize(paFunSu...
//===- LLDBPropertyDefEmitter.cpp -----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include<vts.h> #include<z3-util.h> /** Boolean Gates Implementation *** * L := a G L | a a : Bool_var [args] G : gate * G == AND | OR */ // The expression can take any gates. gth gate. z3::expr vts::gates( VecExpr& u, z3::expr x, z3::expr y ) { assert( u.size() == 1 ); auto g1 = x && y; auto g2 ...
#include "Rigidbody.h" #include "PhysicsScene.h" #include <iostream> #define MIN_LINEAR_THRESHOLD 0.001f; #define MIN_ANGULAR_THERESHOLD 0.001f; Rigidbody::Rigidbody(ShapeType a_shapeID, glm::vec2 a_position, glm::vec2 a_velocity, float a_mass, float a_rotation) : PhysicsObject(a_shapeID) { m_position = a_position; ...
/* Copyright (c) 2001, Stanford University * All rights reserved * * See the file LICENSE.txt for information on redistributing this software. */ #include "cr_spu.h" #include "cr_error.h" #include "cr_string.h" #include "scenegraphspu.h" #include <stdio.h> #include <signal.h> #ifndef WINDOWS #include <sys/time.h> ...
// Geometric Tools, LLC // Copyright (c) 1998-2012 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.0 (2010/01/01) #include "RayTracer.h" #include "Wm5Memory.h" //----...
//===-- Debugger.cpp - LLVM debugger library implementation ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*---------------------------------------------------------------- CS585_A2_main.cpp CS585 Image and Video Computing Fall 2015 Assignment : A2 PART 1: Object Detection with Template Matching This assignment has been broken down into following subparts. PART A : Open video channel and stream images from webca...
#include "halley/support/profiler.h" #include "halley/utils/algorithm.h" using namespace Halley; bool ProfilerData::ThreadInfo::operator<(const ThreadInfo& other) const { return totalTime > other.totalTime; } ProfilerData::ProfilerData(TimePoint frameStartTime, TimePoint frameEndTime, std::vector<Event> events) ...
#include <iostream> #include <new> #include "onnx_instant.hpp" struct instantONNX { onnx::ModelProto* onnx; }; static instantONNX* getONNX(VALUE self) { instantONNX* p; Data_Get_Struct(self, instantONNX, p); return p; } static void wrap_instant_free(instantONNX* p) { p->onnx->~ModelProto(); ...
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "omp.h" #include <unistd.h> #include "mpi.h" #include "occa.hpp" #include "meshBasis.hpp" #include "kernelHelper.cpp" static occa::kernel kernel; dfloat *drandAlloc(int N){ dfloat *v = (dfloat*) calloc(N, sizeof(dfloat)); fo...
#include "cbase.h" #include "inventoryWindow.h" #include "c_basehlplayer.h" using namespace vgui; #include "vgui/IVGui.h" #include "vgui_controls\Frame.h" #include "vgui_controls/ListPanel.h" #include "vgui_controls\Button.h" #include "vgui_controls/ProgressBar.h" #include "vgui_controls/Label.h" #include "advmodelpa...
#include "Sandbox2D.h" #include "Sand/Utils/Gradient.h" #include "Sand/ImGui/ImGuiColorGradient.h" #include "Sand/ParticleSystems/ParticleEmitter.h" #include <imgui/imgui.h> #include <imgui/imgui_internal.h> using namespace Sand; Sandbox2D::Sandbox2D() : Layer("Sandbox2D") { } void Sandbox2D::OnAttach() { SAND_P...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
/* Copyright (C) 2019 MariaDB Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, ...
#include <cstdio> #include <cstdlib> #include <cmath> #include <GL/glew.h> #include <core/utils.h> #define PI 3.141596 #define angtorad PI / 180.0f unsigned int _seed; float coslt[91]; float sinlt[91]; GLuint CppOGL::Utils::createProgram(GLenum shaderTypes[], const char *shaders[]) { GLuint *shaderL...
#pragma comment(linker, "/STACK:1024000000,1024000000") #include <cstdio> #include <cstring> #include <algorithm> #include <map> #include <cmath> #include <cctype> #include <vector> #include <queue> #include <set> #include <string> #include <iostream> using namespace std; typedef long long ll; const double eps = 1e-8;...
#pragma once #include "chunk_manager.h" #include "util.h" #include <iostream> #include <cmath> ChunkManager::ChunkManager(Camera *cam) { camera = cam; // keep track of the chunk the player was previously in - for prodcedural map generation oldPos.x = 0; oldPos.z = 0; } // add chunk into the map from ...
/* File: aurio_helper.cpp Abstract: Helper class for manipulating the remote i/o audio unit Version: 1.0 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribu...
#include "stdafx.h" #include "Command.h" #include "Line.h" #include "LineTelnet.h" #include "Interface.h" #include "CommandTree.h" #include "InterfaceMgr.h" #include "Frame.h" #include "Core.h" #include "DTPProcess.h" #include "PortSecurity.h" extern CommandTree g_commands; extern InterfaceMgr g_interfa...
/********************************************************************** Copyright 2020 Advanced Micro Devices, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
#include "FileInfo.h" FileInfo::FileInfo(QWidget *parent) : QWidget(parent) { grid = new QGridLayout(); setLayout(grid); setMinimumWidth(225); setMaximumWidth(225); rows = 0; } QLineEdit *FileInfo::addStringLineEdit(const QString &title, const QString &value) { auto *input = addLineEdit(title,...
/* * Copyright (c) 2019, Nagoya University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list ...
/* * MatrixFunctionConverterExecutor.cpp * * Created on: 13/02/2011 * Author: william */ #include <iostream> #include <stdlib.h> #include <stdio.h> #include <limits.h> #include <math.h> #include <string.h> #include <list> #include <map> #include <stack> #include <set> #include "HostUtils.h" #include "Kerne...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
//---------------------------------------------------------------------------- // // License: MIT // // See LICENSE.txt file in the top level directory for more details. // // Description: ossim-get-pixel-test.cpp // // Test code to spit out a pixel value at a given band, line, sample. // //--------------------------...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2012 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright noti...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. // Licensed under the BSD license. See LICENSE.txt file in the project root for full license information. /***************************************************************** ActorX.cpp Actor eXporter for Unreal. Created by <NAME> Exports smoot...
/* This is en example for an Analyzer of a MCatNLO HeoMCProduct The analyzer fills a histogram with the event weights, and looks for electron/positron pairs and fills a histogram with the invaraint mass of the two. */ // // Original Author: <NAME> // Created: Tue Nov 14 13:43:02 CET 2006 // // // ...
// RUN: %clang_cc1 -emit-llvm %s -o - -mconstructor-aliases -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s // CHECK: @llvm.global_ctors = appending global [2 x { i32, void ()* }] // CHECK: [{ i32, void ()* } { i32 65535, void ()* @"\01??__Efoo@?$B@H@@YAXXZ" }, // CHECK: { i32, void ()* } { i32 65535, void ()...
#include "MyTree.h" myTree::myTree(int x, int y) { err = false; root = NULL; root_x = x; root_y = y; } myTree::~myTree() { clear(root); } void myTree::clear(Node* t) { if(t->Children.empty()) return; else for(int i=0;i<t->Children.size();i++) { clear(t->Children[i]); } ...
/** * ScriptDev3 is an extension for mangos providing enhanced features for * area triggers, creatures, game objects, instances, items, and spells beyond * the default database scripting in mangos. * * Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/> * Copyright (C) 2014-2022 MaNGOS <https://getma...
#include "globals.h" #include "fluxmap.h" #include "decoders/fluxmapreader.h" #include "decoders/decoders.h" #include "sector.h" #include "micropolis.h" #include "bytes.h" #include "fmt/format.h" #include "lib/decoders/decoders.pb.h" /* The sector has a preamble of MFM 0x00s and uses 0xFF as a sync pattern. * * 00 ...
// Example: exercise2-advanced // // Goal: implement a simple adaptive strategy based on exact solution // // Reference: see https://fusionforge.zih.tu-dresden.de/plugins/mediawiki/wiki/amdis/index.php/AMDiS::Expressions // for a detailed description of possible expression terms. // // Compile-and-run: // >...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
#include "particle.hpp" std::mutex Particle::next_id_mutex; volatile Id Particle::next_id = 0; // the static Particle counter // METHODS FOR Particle Particle::Particle(const State & s, const Parameters & par, const Engine & e, const ObservableFunction & obsfun, bool sde) : s(s), par(par), e(e), obsfun(obsf...
#include "Level.h" #include "Components.h" #include "Game.h" #include "Resources.h" ae::Vec3 Level::Line::GetNormal() const { ae::Vec3 n = ( p1 - p0 ); std::swap( n.x, n.y ); n.y = -n.y; n.SafeNormalize(); return n; } bool LineSegmentPlaneIntersection( ae::Vec3 p, ae::Vec3 n, ae::Vec3 p0, ae::Vec3 p1, ae::Vec3* ...
#include <stdlib.h> #include <array> #include <cmath> #include <filesystem> #include <iomanip> #include <vector> #include "Entity/Player.hpp" #include "GameCubes/Chunk.hpp" #include "GameCubes/Cube.hpp" #include "GameCubes/DataDictionary.hpp" #include "GameCubes/Map.hpp" #include "GeneralModules/Camera.hpp" #include ...
#include "Applications.h" #include <atlbase.h> #include <Shellapi.h> #include <shlobj.h> #include <propkey.h> #include <string> #include <sstream> #include "winrt/Windows.Storage.h" #include "winrt/Windows.Data.Json.h" using namespace winrt; using namespace Windows::Storage; using namespace Windows::Data::Json; std:...
#include <iostream> #include <math.h> #include "controller.h" Controller::Controller(int n, int debug) { number = n; balls = (Ball *)malloc(n * sizeof(Ball)); for (int i = 0; i < n; i++) { if(debug) { std::cout << (i + 1) << "."; } balls[i] = Ball(debug); } this->debug = debug; } Controll...
/////////////////////////////////////////////////////////////////////////// // // NAME // Image.cpp -- a simple reference-counted image structure // // SEE ALSO // Image.h definition and explanation of these classes // // Copyright ?<NAME>, 2001. // See Copyright.h for more details // ////////////////////...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <version.h> #include <arith_uint256.h> #include <chain.h> #inclu...
/********************************************************************** Copyright ©2013 Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redistributions of source c...
#include <stdio.h> #include <stdlib.h> #include <algorithm> #include <time.h> #include <math.h> #include <map> using namespace std; // Rabin-Karp rolling hash long long Power(long long a,long long b,long long p) { long long ans=1; for(;b;a=a*a%p,b>>=1)if(b&1)ans=ans*a%p; return ans; } namespace Primitive...
/* Copyright 2010-2013 SourceGear, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
//===--- Job.cpp - Command to Execute -------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, ...
#include "traffic_config.hpp" #include <sys/stat.h> #include <syslog.h> #include <sstream> // for ostringstream #include <iostream> // take a string quanity plus units and converts to double bits value // coded for speed, sees NUM then optional k or m or g then bit or bps // bit is bits bps is bytes so mult by 8 // ...
#include <gtest/gtest.h> #include <string> #include "test_table1.h" #include "table_req1.h" static uint32_t gCount = 0; static std::shared_ptr<T1Table> spTable; static std::shared_ptr<T2RequiredTable> spTable2; class IndexTest : public ::testing::Test { protected: virtual void SetUp() override { vsqlite = vsq...
// Copyright (c) 2020 <NAME> // // EntityNetwork and its associated sub proejcts are free software; // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including witho...
#include "gcstring.h" #pragma no_auto_header() thread_local static ama::gcstring_long* g_null_hash = nullptr; thread_local static ama::gcstring_long** g_hash = &g_null_hash; thread_local static size_t g_hash_size = 1; thread_local static size_t g_n_elements = 0; //use the same hash as QuickJS static inline uint64_t h...
/*************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* (University of Edinburgh, UK) */ /* ...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2001,2003 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
/* * Copyright 2017 The Australian National University * * This software is the result of a joint project between the Defence Science * and Technology Group and the Australian National University. It was enabled * as part of a Next Generation Technology Fund grant: * see https://www.dst.defence.gov.au/nextgentech...
// Exercício 1 // 1. Utilizando o programa de exemplo como referência, implemente um novo programa. // Este programa deverá desenhar dois polígonos em uma janela com fundo branco de dimensões 256x256 pixels. // Todos os polígonos devem estar inicialmente preenchidos com cores diferentes. A cada vez que o usuário clic...
/* ** ClanLib SDK ** Copyright (c) 1997-2020 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
#pragma once #include <time.h> #include "run.hpp" #include "mathematica.hpp" // struct histogram { // uint64_t read[NUM_CPUS]; // uint64_t failure[NUM_CPUS]; // uint64_t success[NUM_CPUS]; // #ifdef TIME // uint64_t read_time[NUM_CPUS]; // uint64_t failure_time[NUM_CPUS]; // uint64_t success_time[NUM_CPUS]; // #e...
#include "VoxVizCore/VolumeDataSet.h" #include "VoxVizCore/DataSetReader.h" #include <cmath> #include <iostream> using namespace vox; std::string VolumeDataSet::getInputFileExtension() const { return DataSetReader::GetFileExtension(m_inputFile); } BoundingSphere VolumeDataSet::computeBoundingSphere() const { ...
/** * @Author: <NAME> <root> * @Date: 2016-07-11T09:18:14+08:00 * @Email: <EMAIL> * @Last modified by: root * @Last modified time: 2016-07-11T20:23:44+08:00 * @Inc: Twitter * @Difficulty: Medium */ // Notes: OOD questions often intentionally vague to test if you 'll make assumptions, or if you'll ask clarigying ...
#define _CRT_SECURE_NO_WARNINGS 1 #include "phttp.h" #include <thread> #include <string.h> #ifdef _WIN32 #pragma comment(lib, "Ws2_32.lib") #else #include <signal.h> #endif static phttp::Server* SingleServer; static const char* Script = R"( var doHeavyFetch = false; var doWebSocket = true; if (doHeavyFetch) { // ...
// // main.cpp // CourseGrade // // Created by <NAME> on 2/13/21. // #include <iostream> #include <iomanip> const unsigned int getInt(const std::string); const unsigned int getInt(const std::string, const unsigned int); const std::string getName(const unsigned int); const unsigned int getStudentCount(); const unsi...
// Concord // // Copyright (c) 2018 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 License. // // This product may include a number of subcomponents with separate copyright // ...
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <algorithm> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool neg=c=='-'; ne...
/**************************************************************** * * * nvg.cpp * * * * par Julien * * * ****************************************************************/ // code de la vision infrarouge //inclusions #include "hud.h" #include "cl...
// Licensed under the MIT License. #include <string> #include "script.h" #include "pages.h" // Y Increment for sprite and text position const float INCREMENT = 0.053f; void DrawCSSText(std::string text, std::string font, std::string color, std::string align, int leading, int textSize, float X, float Y) { // Note: R...
#include "ai/ai.h" #include "ai_estimates_field.h" #include <cmath> #include <map> #include <algorithm> #include <chrono> #include "logname.h" XY AI::find_move() { options_update(); log_harddrive << " test: calc_est(3)[me] = " << AI_estimates_field::calc_est(3,true) << endl; log_harddrive << " t...
// // $Id: pepsum.cpp 3095 2011-11-01 21:12:23Z broter $ // // // Original author: <NAME> <<EMAIL>> // // Copyright 2008 Spielberg Family Center for Applied Proteomics // Cedars Sinai Medical Center, Los Angeles, California 90048 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not u...
/* Haiku S3 Trio64 driver adapted from the X.org S3 driver. Copyright 2001 <NAME> <<EMAIL>> Copyright 2008 Haiku, Inc. All rights reserved. Distributed under the terms of the MIT license. Authors: <NAME> 2008 */ #include "accel.h" #include "trio64.h" static void WaitQueue(uint32 slots ) { // Wait until ...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2020, QinetiQ, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
/* * readfiles_uni.cpp * * Created on: Jan 22, 2013 * Author: Leier */ #include "slsimlib.h" using namespace std; /* * \brief Reads in a parameter file and sets up an uniform lens. * * Sets many parameters within the lens model, source model and * force calculation. */ /* LensHaloUniform::LensHaloUn...
#include "precomp.hxx" #pragma hdrstop CFGDATA:: CFGDATA() { m_DebugMode = enumLOCAL_USERMODE; m_bUsingCfgFile = FALSE; m_bRunningOnHost = TRUE; m_bDisplaySummaryInfo = FALSE; m_bLaunchNewProcess = TRUE; m_pszExecutableName = NULL; m_bAdvancedInterface = TRUE; ...
// Simple ADSR shaper based on VCV fundamental #include "plugin.hpp" #include "MockbaModular.hpp" const float MIN_TIME = 1e-3f; const float MAX_TIME = 10.f; const float LAMBDA_BASE = MAX_TIME / MIN_TIME; struct Shapah : Module { enum ParamIds { _ATTACK_PARAM, _DECAY_PARAM, _SUSTAIN_PARAM, _RELEASE_PARAM, ...
#include "moveAction.h" #include "constraint.h" #include "canvasManagerState.h" #include "canvas.h" #include "shapePart.h" #include "vertex.h" void MoveAction::moveShape(Move _move, CanvasManagerState *_state, ShapePart *_part) { move = _move; state = _state; part = _part; } void Move...