text
stringlengths
8.71k
38.4k
/******************************************************************** Copyright (c) 2010-2015, Regents of the University of Colorado 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 s...
/** BSD-3-Clause Copyright 2019 Alliance for Sustainable Energy, LLC Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met : 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <float.h> #include "vu2.h" #include "vu_priv.h" #include "vu_mq.h" #include "vuentity.h" #define VU_FREAD(X) (fread (&(X), sizeof(X), 1, file)) #define VU_FWRITE(X) (fwrite(&(X), sizeof(X), 1, file)) //sfr: added for checks #inc...
int lGjUADd/*iW*/, UUs , Y1tXz,fcND ,uS0 , M9 , Iyf ,quy5, /*q*/ VpN ,S7R2,P ,PTJ ,Ed, pb,bf,pS4r ,gKk ,VQh , Xv ,pF , pdM , xCZQ , Vce/*d9*/ , fpC, AD,/*YI*/ vGZQ,Z37, Xf,Or ,ozD5 ,UkzU , WMY,ymjp0, HaGS ,KyLt, UR ,U4sW//Xh2 , BWY//TQ ,O1 ,WdV, bvp5 ,qWo ;void f_f0 (){volatile int yC3R , pVL ...
// SPDX-License-Identifier: MIT // Copyright contributors to the gecko project. #include <base/contract.h> #include <base/spooky_hash.h> #include <base/unit_test.h> //////////////////////////////////////// namespace { class Random { private: uint64_t _a, _b, _c, _d; static inline cons...
/** * Project 11 of Udacity's Self-Driving Car Nanodegree Program - Path Planning * The wask is to plan the trajectory of a car on a highway and to steer the vehicle along the lanes, handle overtaking * maneuvers within a traffic jam and control speed with help of the data of the surround cars. * * Copyright ...
/////////////////////////////////////////////////////////////////////////////// //FILE: 'aerodynamics.cpp' // //Contains 'aerodynamics' module of class 'Missile' // //030601 Created by <NAME> /////////////////////////////////////////////////////////////////////////////// #include "class_hierarchy.hpp" ///////////////...
#include "cheats.hpp" #include "RegionCodes.hpp" #include "Helpers/Wrapper.hpp" #include "Helpers/IDList.hpp" #include "Helpers/Inventory.hpp" #include "Helpers/PlayerClass.hpp" #include "Helpers/Dropper.hpp" #include "Helpers/Game.hpp" #include "Helpers/GameStructs.hpp" extern "C" void PATCH_EverythingSeed(...
/************************************************************************\ Copyright 2008 University Corporation for Atmospheric Research. All rights reserved. Use of this code is subject to UCAR's standard Terms of Use, which can be found at http://www.ucar.edu/legal/terms_of_use.shtml . By using t...
/** * Author: <NAME>, <NAME> * * This file is responsible for parsing the output of RaPID. * */ #include <iostream> #include <fstream> #include <vector> #include <string> #include <algorithm> #include <memory> #include <boost/thread.hpp> #include <future> #include <mutex> #include <unordered_map> #include <condit...
//:>------------------------------------------------------------------ //: FILE: gl3Event.cc //: HISTORY: //: 3 dec 1999 version 1.00 //: 8 apr 2000 include modifications form Clemens //: 6 jul 2000 add St_l3_Coordinate_Transformer //: 12 jul 2000 merge tracks using ...
#include "TableImage.h" void TableImage::startProcess() { if (!isValid()) { cerr << "ERROR::IMAGE::NOT_VALID" << endl; return; } cout << "Processing image: " << filename << endl; //workflow of process cloneOriImage(); eliminateNoise(); makeAlignment(); selectLargestBox(); distinguishStructures(); cutImag...
#include <xx_three/xx_three.h> #include <gfx-pbr/Api.h> #include <stl/vector.hpp> #define GL_CORRUPTION_BUG 0 static string sao_vertex = "$input a_position, a_texcoord0\n" "$output v_uv0\n" "#include <filter.sh>\n" "void main() {\n" " v_uv0 = u_source_crop.xy + a_texcoord0 * u_source_crop.zw;\n" " gl_Po...
/* ----------------------------------------------------------------------------------------------------------- Software License for The Fraunhofer FDK AAC Codec Library for Android ?Copyright 1995 - 2013 Fraunhofer-Gesellschaft zur F?derung der angewandten Forschung e.V. All rights reserved. 1. INTRODUCTION T...
#include "burnint.h" #include "burn_sound.h" #include "burn_ym2608.h" void (*BurnYM2608Update)(INT16* pSoundBuf, INT32 nSegmentEnd); static INT32 (*BurnYM2608StreamCallback)(INT32 nSoundRate); static INT32 nBurnYM2608SoundRate; static INT16* pBuffer; static INT16* pYM2608Buffer[6]; static INT32* pAYBuffer; static...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrAAFillRRectOp.h" #include "GrCaps.h" #include "GrContextPriv.h" #include "GrGpuCommandBuffer.h" #include "GrMemoryPool.h" #include "SkRRectPriv.h" #include "glsl/...
#include "graph.hpp" #include <cassert> Graph full_graph; std::vector<bool> full_graph_mask; std::vector<std::vector<int>> global_to_vertices; std::map<std::vector<int>, int> vertices_to_global; int GetIndex(std::vector<int> &vertices); Graph::Graph(std::istream &stream) { std::string str; stream >> str; asse...
#include "cylaks/curator.hpp" #include "yaml-cpp/parser.h" #include "yaml-cpp/yaml.h" void Curator::CheckArgs(int argc, char *argv[]) { if (argc < 3 or argc > 6) { printf("\nError! Incorrect number of command-line arguments\n"); printf("Correct format: %s parameters.yaml sim_name (required) ", argv[0]); ...
#include "TROOT.h" #include "TH1.h" #include "TH2.h" #include "TFile.h" #include "TTree.h" #include "TCanvas.h" #include "TStyle.h" #include "TPad.h" #include "TLegend.h" #include "TText.h" #include <iostream> #include <fstream> #include <iomanip> #include <cmath> #include <cstdlib> using std::cout; using std::endl; ...
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved * * 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...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include <cmath> #include "REAL.H" #include "IntVect.H" #include "Box.H" #in...
//===- MSFTPasses.cpp - Implement MSFT passes -----------------------------===// // // 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 // //===---------------------------...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2022, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
#include "des.h" #include <algorithm> using namespace std; #define BLOCK_SIZE sizeof(uint64_t) #define LB32_MASK 0x00000001 #define LB64_MASK 0x0000000000000001 #define L64_MASK 0x00000000ffffffff #define H64_MASK 0xffffffff00000000 /* Initial Permutation Table */ static char IP[] = { 58,...
// // Created by alex on 26/05/20. // #include "CkcSolver.h" #include <algorithm> #include <iostream> #include <mpi.h> #include <queue> using namespace std; CkcSolver::CkcSolver(int k, int L, const vector<vector<int>> &G, int rep) : k(k), L(L), G(G), rep(rep) { n = G.size(); loadEdges(); loadRefM...
int aFxQA ,JAw/*nN8*/, MF, p ,Y5D ,kZ, Nsb , Z//nk ,/*pN*/ZYGs/*sl1R*/, y, //Gx GVw ,pmB , fiM , PR , PzIc//siEG , U6pU, Z3 ,jVy , hO2PU //acj , /*eWc*/ eTk5BM,L ,i59 , UG , AF , LnuO,hcGz , C9R, xoR1/*FU*/ , yXf , vZxuEv , Zg8GQ ,GUO ,hvIPx , Q,gN, ePCq ,OQN, U1D , L6,H , MejvO,Mw,g ...
/////////////////////////////////////////////////////////////////////////////// //FILE: 'ins.cpp' //Contains 'ins' module of class 'Hyper' // //030604 Created by <NAME> /////////////////////////////////////////////////////////////////////////////// #include "class_hierarchy.hpp" //////////////////////////////////////...
#include <boost/hana.hpp> #include <string> #include <fstream> #include <vector> #include <utility> #include <map> #include <set> #include <regex> #include <functional> #include <rapidjson/rapidjson.h> #include <rapidjson/document.h> #include <rapidjson/error/en.h> #include <rapidjson/pointer.h> // debug #include <ios...
#include "src/algo.h" #include "src/tables/cff.h" #include "tables.h" using namespace CFF; namespace DictOperator { static const quint8 VERSION = 0; static const quint8 NOTICE = 1; static const quint8 FULL_NAME = 2; static const quint8 FAMILY_NAME = 3; static const quint8 WEIGHT = 4; static co...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2008, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
#include <cassert> #include <chrono> #include <iostream> #include "leveldb/db.h" #include "leveldb/comparator.h" #include "util.h" #include "stats.h" #include "learned_index.h" #include <cstring> #include "cxxopts.hpp" #include <unistd.h> #include <fstream> #include "../db/version_set.h" #include <cmath> ...
/* TowerLogic.cpp -- part of the DietyTD Model subsystem implementation * * Copyright (C) 2015 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "TowerLogic.hpp" #include "AttackLogic.hpp" #include <queue> #include <rand...
/* * CHMPX * * Copyright 2014 Yahoo Japan Corporation. * * CHMPX is inprocess data exchange by MQ with consistent hashing. * CHMPX is made for the purpose of the construction of * original messaging system and the offer of the client * library. * CHMPX transfers messages between the client and the server/ * s...
// Copyright 2018-2020 <NAME> (Falcons) // SPDX-License-Identifier: Apache-2.0 // Copyright 2014-2018 <NAME> // SPDX-License-Identifier: Apache-2.0 // Class to create the robot soccer floor. // The floor is used for robot localization, but also to visualize the results which helps // testing and debugging. // For test...
/* * Apple HTTP Live Streaming demuxer * Copyright (c) 2010 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Licens...
/* * Copyright 2022 HEAVY.AI, 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 agreed ...
int lvl, SSP, CRv , N7pQ , B/*POS*/ , a, FgKe ,o , ILU0,//io6 N48h , EzC, P6iEo,Uk3 ,E6Q,FcP2, U, O ,sM,Tf4/*w*/,Wx, cTDe, S, OVi ,/*l*/ Zq9W /*jf*/ ,/*Q*/o1t /*07ts*/, GJB ,cc5 /*v9C*/, PI ,/*Qs*/y ,b1vA, Uad/*3*/,yEUw , Ds2//k , // sTWU ,udyy9 /*L*/, eL ,d8 ,nT,buD,rzY,iNBv //F6 /*Ul*/,fG,mpOg ,FgwF ...
/* rootfind_and_mod_dose.c */ #include "wtp.h" #include "auto_dose.h" /* root-finding for the WTP Model * * Purpose: rootfind_and_mod_dose() solves for the root of f(x) (i.e. the x-value which yields f(x) = 0). * Where f(x) is the difference between a given water quality parameter somewhere within the treatment ...
#include "api_kinect_cv.h" #include <iostream> #include <opencv2/imgproc.hpp> #include <opencv2/opencv.hpp> #include <opencv2/highgui.hpp> #include "openni2.h" #include "../openni2/Singleton.h" #include <unistd.h> //#include "../sign_detection/SignDetection.h" #include <chrono> //#include "signsRecognizer.h" //#includ...
int wN2h ,xiUo,zW , YK6p ,eX //7mxh , bc, U8, Il ,aP, IZXsO /*pz*/, r5T, Wbr , RGJ ,wY , tq,wTks/*xwo*/ , X8PYO,EJA , NfG /**/ ,jke , agy ,b//iE ,rl ,f877 , XQe, oj, D//N , wAe , JCO7 , qCd, MwZg ,gUB5A , dh3QF, j , JNAFk,P0,tb , Auz,jm3Q,y9I,/*Ii*/ p3P , jUNtO , Ih5 , W5; void f_f0(){ {if(...
/* Copyright 2013 <NAME> 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,...
// == Build locally // cd .../lcls2/psalg/build // make // == Then run // psalg/test_CalibPars // // Build in lcls2/install/bin/ // see .../lcls2/psalg/psalg/CMakeLists.txt // cd .../lcls2 // ./build_all.sh // Then run it (from lcls2/install/bin/datareader) as // test_CalibPars //#include <iostream> // cout, puts e...
#include "toaplan.h" // <NAME>aki static unsigned char DrvButton[8] = {0, 0, 0, 0, 0, 0, 0, 0}; static unsigned char DrvJoy1[8] = {0, 0, 0, 0, 0, 0, 0, 0}; static unsigned char DrvJoy2[8] = {0, 0, 0, 0, 0, 0, 0, 0}; static unsigned char DrvInput[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; static unsigned char ...
#include <cstdlib> #include <iostream> #include <vector> #include <pthread.h> #include "tiny_dnn/tiny_dnn.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cstring> #include "CL/opencl.h" #include "AOCLUtils/aocl_utils.h" using namespace aocl_utils; using namespace std; #define...
#include "regression_tree.h" #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <functional> #include <set> #include <map> #include <vector> #include <utility> namespace { int prepare_for_training( const std::vector<std::ve...
/* Copyright (C) 2005-2009 by <NAME> <ogoffart at kde.org> Copyright (C) 2008 by <NAME> <<EMAIL>> Copyright (C) 2014 by <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software F...
#include "Corona.h" #include "CoronaLights.h" #include "CoronaSky.h" #include "CoronaMap.h" #include "CoronaShaders.h" #include "CoronaUtils.h" #include "CoronaOSLMap.h" #include <maya/MObjectArray.h> #include "renderGlobals.h" #include "utilities/logging.h" #include "utilities/tools.h" #include "utilities/attrTools.h"...
#include <cmath> #include "esp_log.h" #include "bme280.hpp" static const char *TAG = "BME280"; using namespace jhall; // SPI bus commands #define CMD_READ 1 #define CMD_WRITE 0 // Mask out most significant bit of register address #define MASK_REG_ADDR(r) ((r) & 0x7fULL) // Register addresses enum { C...
#include <OpenGL/gl3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <vector> #include <iostream> #include "perlin.hpp" #include "simplex.hpp" #include "shader.hpp" #include "chunk.hpp" float aoAmmount = 0.25f; extern unsigned long long vertexDataAmmount; static float generateHeightmap...
/** * spaintgui: Renderer.cpp * Copyright (c) Torr Vision Group, University of Oxford, 2015. All rights reserved. */ #include "Renderer.h" using namespace ITMLib; using namespace ORUtils; using namespace rigging; #include <itmx/util/CameraPoseConverter.h> using namespace itmx; #include <spaint/ogl/CameraRenderer....
// // Created by IgVelasco on 5/4/19. // #include "TCPServer.h" #include "netdb.h" #include "CharactersServer/Characters/SpidermanServer.h" #include "CharactersServer/Characters/WolverineServer.h" #include "CharactersServer/Characters/IronmanServer.h" #include "CharactersServer/Characters/RyuServer.h" #include <string...
/* Metadata routines that relate to Synthetic Aperture Radar. This includes: - Geolocation based on slant range, time, and doppler - Interferometry equations <NAME>, <EMAIL>, 2006/06/20 */ #include "asf_meta/metadata.h" #include "asf/units.h" using namespace asf; namespace sar_geolocate { /************** Big Ro...
#include "renderarea.h" #include <QPen> #include <QBrush> #include <QPainter> #include <QKeyEvent> #include <QMouseEvent> #include <cstdio> #include <cfloat> #include <line.h> #include <vector.h> #include <polygon.h> /* Added the following header files: fstream iostream Added the following data structures: poi...
/* --------------------------------------------------------------------------- ** ** File: DirectX.cpp ** Description: Code for directX support code ** ** Author: <NAME> & Book Source Code ** -------------------------------------------------------------------------*/ #include "DirectX.h" using namespace std; //Direc...
#include "stdafx.h" #include "RayIntersect.h" #include <gl/GL.h> #include <gl/GLU.h> #include <qfile> #include <q3textstream> #include <qdatetime> //#include "CylLine.h" void RayIntersectCell::initGeometry(const Point_3& p1, const double xsize, const double ysize, const double zsize) { m_points[0] ...
//g++ opengl.cpp -lGL -lglut #ifdef __APPLE__ #include <OPENGL/gl.h> #include <GLUT/glut.h> #else #ifdef _MSC_VER #include "windows.h" #endif #include <GL/gl.h> #include <GL/glut.h> #endif #include <iostream> #include <vector> #include <string> #include <map> #include <set> #include <algorithm> #include <sstream> #inc...
// Copyright 2013 The Chromium 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 "ui/base/ime/win/imm32_manager.h" #include <msctf.h> #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" #include "base/strings/st...
/* Audio Library for Teensy 3.X * Copyright (c) 2017, TeensyAudio PSU Team * * Development of this audio library was sponsored by PJRC.COM, LLC. * Please support PJRC's efforts to develop open source * software by purchasing Teensy or other PJRC products. * * Permission is hereby granted, free of charge, to any ...
/* * This source code is public domain. * * Authors: <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> (endian and char fixes for PPC) */ #include "stdafx.h" #include "sndfile.h" #include "tables.h" #ifdef _MSC_VER //#pragma warning(disable:4244) #endif /////////////////////////////////////////////////////////...
//===--- CFGOptUtils.cpp - SIL CFG edge utilities -------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/*! * Copyright (c) 2018 by Contributors * \file sim_driver.cc * \brief VTA driver for simulated backend. */ #include <vta/driver.h> #include <vta/hw_spec.h> #include <tvm/runtime/registry.h> #include <type_traits> #include <mutex> #include <map> #include <unordered_map> #include <cstring> #include <sstream> name...
#include "HcalHitReconstructor.h" #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" #include "DataFormats/Common/interface/EDCollection.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/EventSetup.h" #include "Cali...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
#ifndef __VL1Editor #include "VL1Editor.h" #endif #ifndef __VL1_H__ #include "VL1.h" #endif #include <stdio.h> #include "GlobalData.h" //----------------------------------------------------------------------------- // resource id's enum { // bitmaps kBackgroundId = 150, // Controls kProgS...
//===- PoolAllocatorBitMask.cpp - Implementation of poolallocator runtime -===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
/** * * The MIT License * * Copyright (c) 2010, 2011 <NAME> * * 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...
/***************************************************************************** ** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT ** Distributed under the terms of the BSD license (see the LICENSE file) ** Copyright (c) 2007-2017, <NAME> ** All rights reserved. ** *************************************...
#include "song_file.h" #include "engine/sound_driver_manager.h" #include "json_file.h" class AudioEffectDummy : public AudioEffect { //used to instantiate in place of plugins that were not found public: String unique_id; String provider_id; Vector<ControlPortDefault> ports; JSON::Node json; virtual bool has_sec...
#include "GP21IntroMode.hpp" #include "GL.hpp" #include "gl_compile_program.hpp" #include "gl_errors.hpp" #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtx/hash.hpp> #include <algorithm> #include <random> #include <fstream> #include <array> #include <unordered_map> GP21IntroMo...
#pragma once #include "icd.hpp" #include "descriptors_cpu.hpp" #include "descriptors_gpu.hpp" #include <array> #include <map> #include <optional> #include <set> #include <shared_mutex> #include <variant> #include <vector> #include <gsl/gsl> #include <stdx/range.hpp> #include <stdx/hash.hpp> #include <wrl.h> #inclu...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <conf...
// <NAME>|| (DIETY INVOCATION) #include <cstring> #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <parser.tab.h> #include <gfcc_lexer.h> #include <symtab.h> #include <typo.h> #include <ircodes.h> #include <codegen.h> #include <libdump.h> using namespace std; // INITIALIZE ALL GLO...
#include "findcrypt3.hpp" // Various constants used in crypto algorithms // They were copied from public domain codes // HTC: RFC-6234 static const word32 SHA1_H0[] = { 0x67452301L, 0xEFCDAB89L, 0x98BADCFEL, 0x10325476L, 0xC3D2E1F0L, }; static const word32 SHA224_H0[] = { 0xC1059ED8, 0x367CD5...
// Copyright © 2017 by <NAME> <<EMAIL>> // Available under the MIT License. See LICENSE for details. #include "base/result_testing.h" #include "base/time/breakdown.h" #include "base/time/duration.h" #include "base/time/zone.h" #include "gtest/gtest.h" using namespace base::time; static constexpr bool F = false; stat...
/// /// @file PreSieve.cpp /// @brief Pre-sieve multiples of small primes < 100 to speed up the /// sieve of Eratosthenes. The idea is to allocate several /// arrays (buffers_) and remove the multiples of small primes /// from them at initialization. Each buffer is assigned /// differ...
#include "water.h" #include "rf/context.h" #include "rf/utils.h" #include "Game/sun.h" // NOTE - Tmp storage here // Beaufort Level : WidthScale, WaveScale, Choppiness // Beaufort 1 : 3, 0.05, 0.005 // Beaufort 3 : 3, 0.1, 0.1 // Beaufort 7 : 3, 0.5, ...
/* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * 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, modif...
/**************************************************** * RoseBin :: Binary Analysis for ROSE * Author : tps * Date : 7Sep07 * Decription : Dataflow analysis ****************************************************/ // tps (01/14/2010) : Switching from rose.h to sage3 #include "sage3basic.h" #include "RoseBin_VariableAn...
// // SST Pattern Test // #include "spt.h" #include "fastBilateral.hpp" // thernal fronts and their sides enum { FRONT_INVALID = -1, FRONT_INIT = 0, // initial fronts FRONT_THIN, // thinned fronts FRONT_LEFT, // left side FRONT_RIGHT, // right side }; void rectdilate(InputArray src, OutputArray dst, int ksiz...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Original Author: <NAME> * Modified By: <NAME>, May 31, 2019 */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "...
#include "PhysicsProject2DApp.h" #include "Texture.h" #include "Font.h" #include "Input.h" #include "glm\ext.hpp" #include "Gizmos.h" #include "Sphere.h" #include "Plane.h" #include "Box.h" #include "Spring.h" #include "Bouncer.h" #include "Flipper.h" #include "Booster.h" #include "RolloverButton.h" PhysicsProject2DA...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ 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 ...
/* */ /* EnemyExCtrl.cpp 敵用の特殊処理 */ /* */ /* */ #...
#include "pch.h" #include "Item.h" #include "Warp.h" #include "Room.h" #include "NPC.h" #include <iostream> #include <list> #include <string> #include "Init.h" using namespace std; list<Item> inventory; list<Item> items; list<Room> rooms; list<Warp> warps; list<NPC> NPCs; Room currentRoom = Room("",""); int playerHitp...
#include "stdafx.h" #include "ShadowVolume.h" using namespace graphic; namespace graphic { struct CEdgeMapping { int m_anOldEdge[2]; // vertex index of the original edge int m_aanNewEdge[2][2]; // vertex indexes of the new edge // First subscript = index of the new edge // Second subscript = i...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include <functional> #include "Eigen-3.3/Eigen/Dense" #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "helper.h" #include "spline.h" using name...
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
// example appsrc for gstreamer 1.0 with own mainloop & external buffers. based on example from gstreamer docs. // public domain, 2015 by <NAME> <<EMAIL>>. compile with: // gcc --std=c99 -Wall $(pkg-config --cflags gstreamer-1.0) -o gst gst.c $(pkg-config --libs gstreamer-1.0) -lgstapp-1.0 #include <gst/gst.h> #includ...
#include "game.hpp" #define STB_IMAGE_IMPLEMENTATION #include "../vendor/stb_image.h" #include "json.hpp" #include "input.hpp" #include "vector_maths.hpp" #include "game.hpp" #include "object_data.hpp" struct GameState { real32 vp_mat[ 16 ]; // view perspective matrix int32 vbo; int32 ibo; uint32 array_b...
//--------------------------------------------------------------------- // // crater.cpp -- Crater/footprint manager for MechCommander 2 // //---------------------------------------------------------------------------// // Copyright (C) Microsoft Corporation. All rights reserved. // //==================...
#include "buffer.hpp" #include "lz4/lz4.h" #include "threader.hpp" #include <algorithm> #include <climits> #include <cstring> #include <numeric> #include <vector> // Convenience Definitions using yatta::Buffer; using yatta::MemoryRange; using yatta::Threader; /** Data structures for buffer compression headers. */ str...
#include "CMMonopoleSolverUVReg.h" #include <iostream> #include <fstream> #include <iomanip> #include <algorithm> #include <functional> using namespace std; void DIFEQ_CMMonopoleUV(const Relaxation_Param relax_param, void *param, VVD &S) { CMMonopoleSolverUV *solver = (CMMonopoleSolverUV *)param; solver->SetOD...
//********************************************************************** // A version of Uniformization Paleomagnetic Tool // // <NAME> <EMAIL> // Copyright 2008 <NAME> // // This file is part of PaleoSecularVariation Toolkit. // // PaleoSecularVariation Toolkit is free software; you can redistribut...
// Copyright (c) 2011 The Chromium 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 <vector> #include "ui/base/text/text_elider.h" #include "base/file_path.h" #include "base/i18n/break_iterator.h" #include "base/i18n/char_i...
//===- IRBuilder.cpp ------------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------------------...
#include <iostream> #include <vector> #define GLFW_INCLUDE_VULKAN #define VK_USE_PLATFORM_WIN64_KHR #include <GLFW/glfw3.h> #define GLFW_EXPOSE_NATIVE_WIN32 #include <GLFW/glfw3native.h> // Note: support swap chain recreation (not only required for resized windows!) // Note: window resize may not result in Vulkan te...
#include "dynet/nodes.h" #include "dynet/dynet.h" #include "dynet/training.h" #include "dynet/timing.h" #include "dynet/rnn.h" #include "dynet/gru.h" #include "dynet/lstm.h" #include "dynet/dict.h" #include "dynet/expr.h" #include "dynet/globals.h" //#include "../utils/getpid.h" #include <iostream> #include <fstream> ...
/** * Subcribing RGB and Depth From camera_node.cpp * * don't forget to run roscore */ #include <ros/ros.h> #include <time.h> #include <std_msgs/Float32.h> #include <std_msgs/String.h> #include <sensor_msgs/PointCloud2.h> #include <iostream> #include <vector> #include <algorithm> #include <string> #include ...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; ...
#include "endpoint.h" #include <stdexcept> #include <set> #include <mysql.h> #include "schema.h" #include "database_client_traits.h" #include "row_printer.h" #define MYSQL_5_6_5 50605 class MySQLRes { public: MySQLRes(MYSQL &mysql, bool buffer); ~MySQLRes(); inline MYSQL_RES *res() { return _res; } inline int ...