text
stringlengths
8.71k
38.4k
/** * This file is part of the CernVM File System. */ #include <gtest/gtest.h> #include <errno.h> #include <ftw.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <map> #include <string> #include "fs_traversal.h" #include "platform.h" #include "util...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
/* * Noxim - the NoC Simulator * * (C) 2005-2018 by the University of Catania * For the complete list of authors refer to file ../doc/AUTHORS.txt * For the license applied to these sources refer to file ../doc/LICENSE.txt * * This file contains the implementation of the router */ #include "Router.h" inline i...
/** * Copyright (C) 2020 <NAME> <<EMAIL>> * * Written for the ACRC, University of Bristol * * Licensed under the Educational Community 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.osedu.org/lice...
/* Nomes - Numero USP <NAME> - 10407962 <NAME> - 10799783 <NAME> - 10368020 */ #include <GL/glew.h> #include <GLFW/glfw3.h> #define M_PI 3.14159265358979323846 #include "../src/Object.cpp" #include "../src/Scene.cpp" class Coronga : public Object { public: Coronga(){ int num_vertices = 40; float p...
#include "Scene.h" #include "backend/Resources.h" #include "rendering/Registry.h" #include "rendering/scene/models/GltfModel.h" #include "utility/FileIO.h" #include "utility/Logging.h" #include <fstream> #include <imgui.h> #include <ImGuizmo.h> #include <moos/aabb.h> #include <moos/transform.h> #include <nlohmann/json...
// ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- #include "IoCardDisk.h" // disk access routines #include "Ui.h" // emulator interface #include "UiDiskFactory.h" #include "U...
//===- LowerInvoke.cpp - Eliminate Invoke & Unwind instructions -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*========================================================================= Copyright 2009 Rensselaer Polytechnic Institute 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/lice...
/* * hmaxent.cpp * * Created on: Mar 16, 2010 * Author: tanel */ #ifndef lint static char Copyright[] = "Copyright (c) 2009-2012 <NAME>. All Rights Reserved."; static char RcsId[] = "@(#)$Header: /home/srilm/CVS/srilm/lm/src/hmaxent.cc,v 1.6 2014-04-22 08:46:32 stolcke Exp $"; #endif #include <cstdlib> #i...
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <openssl/ecdsa.h> #include <openssl/rand.h> #include <openssl/obj_mac.h> #include <openssl/err.h> #include "key.h" ...
/* * dismain.cpp * * Created on: Sep 19, 2013 * Author: kknj005 * * The MIT License (MIT) Copyright (c) <2013> <AstraZeneca PLC 'and <NAME>, <NAME>, <NAME>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
#include "RingMapMaker.hpp" #include "Hash.hpp" // for Hash, operator!=, operator< #include "Stack.hpp" // for chimeFeed #include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate #include "Telescope.hpp" // for Telescope #include "dataset.hpp" // for ...
#include "lab_m1/tema2/tema2.h" #include <vector> #include <string> #include <iostream> #include <fstream> using namespace std; using namespace m1; Tema2::Tema2() { } Tema2::~Tema2() { } void Tema2::Init() { window->DisablePointer(); // Get labyrinth ReadMap(); // Initialize player and enemies based on da...
//===---- IA64ISelDAGToDAG.cpp - IA64 pattern matching inst selector ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "PureP2P.h" #include <inttypes.h> #include <utility> #include <ns3/node-list.h> NS_LOG_COMPONENT_DEFINE ("PureP2P"); using namespace ns3; using namespace std; PureP2P::PureP2P() { NS_LOG_DEBUG("Starting PureP2P"); } PureP2P::~PureP2P() { NS_LOG_DEBUG("Destroy PureP2P"); } void PureP2P::StartApplication...
#include "SpectraSTSearch.hpp" #include "SpectraSTLibEntry.hpp" #include "FileUtils.hpp" #include <algorithm> #include <cmath> #include <gsl/gsl_sf_gamma.h> /* Program : Spectrast Author : <NAME> <<EMAIL>> Date : 03.06.06 Copyright (C) ...
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
/* Copyright (c) <NAME> 1/10/2002 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <sys/time.h> #include <assert.h> #include <ctype.h> #include <getopt.h> #include <iostream> #include "io_mhd.h" #define MAX_ELEM_IN_BUCKET 50000 #define NUM_BUCKETS 400 #define MAXPATTERNS (1638...
/* * Glide64 - Glide video plugin for Nintendo 64 emulators. * Copyright (c) 2002 Dave2001 * * 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; either version 2 of the License, or * any later vers...
#include "Mesh.h" #include "Except.h" #include "InputOutput.h" #include <functional> #include <fstream> using namespace std; /* * static function to initialize static vars, so we can run thread-safe */ void Mesh::initStaticVariables() { isMeshSubChunk(0, 0); isSkelSubChunk(0, 0); } void Mesh::clear() { m_sub...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
// // kern_devinfo.cpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #include <Headers/kern_devinfo.hpp> #include <Headers/kern_iokit.hpp> #include <Headers/kern_cpu.hpp> #include <IOKit/IODeviceTreeSupport.h> BaseDeviceInfo globalBaseDeviceInfo; DeviceInfo *globalDeviceInfo; void DeviceInfo::up...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <iostream> #include <stb/stb_image.h> #include "Shader/Shader.h" #include "Camera/Camera.h" int _width = 800; int _height = 600; float _deltaTime = 0.0f; float _lastFrame = 0.0f; Camera _camera;...
#include "MrlComm.h" MrlComm::MrlComm() { softReset(); byteCount = 0; mrlCmd[0] = new MrlCmd(MRL_IO_SERIAL_0); for (unsigned int i = 1; i < (sizeof(mrlCmd) / sizeof(MrlCmd*)); i++) { mrlCmd[i] = NULL; } } MrlComm::~MrlComm() { for (unsigned int i = 0; i < (sizeof(mrlCmd) / sizeof(MrlCmd*)); i++)...
#include <LoRaLayer2.h> uint8_t BROADCAST[ADDR_LENGTH] = {0xff, 0xff, 0xff, 0xff}; uint8_t LOOPBACK[ADDR_LENGTH] = {0x00, 0x00, 0x00, 0x00}; uint8_t ROUTING[ADDR_LENGTH] = {0xaf, 0xff, 0xff, 0xff}; /* LoRaLayer2 Class */ LL2Class::LL2Class(Layer1Class *lora_1, Layer1Class *lora_2) : LoRa1{lora_1}, LoRa2{lor...
#include <algorithm> #include <cassert> #include <cstdlib> #include <iostream> #include <iterator> #include <set> #include <time.h> #include <utility> #include <parallel_hashmap/phmap.h> #include <paw/station.hpp> #include <graphtyper/graph/absolute_position.hpp> #include <graphtyper/graph/graph_serialization.hpp> #...
#include "snapconfig.h" #include "snapplot_layers.hpp" #include "wxsymbology.hpp" #include "util/snapctype.h" // Provides a crude interface to existing C code by replacing functions // defined in plotpens.h //extern "C" { #include "plotpens.h" #include "snap/snapglob.h" #include "snapdata/datatype.h" #include "snap/...
//------------------------------------------------------------------------------ // driver.cpp // Entry point for the primary driver program. // // File is under the MIT license; see LICENSE for details //------------------------------------------------------------------------------ #include <fstream> #include <iostre...
// // Copyright (C) <NAME> <<EMAIL>>. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE.txt file. // #include "rasterdraw.h" #include "common.h" #include <cmath> #include <nanogui/vector.h> #include <spdlog/spdlog.h> #include <spdlog/fmt/ostr.h> u...
#include <stdio.h> #include <math.h> #include <string.h> #include <time.h> #include <assert.h> #include <unistd.h> #include <sys/stat.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <deque> #include <queue> #include <stack> #include <set> #include <map> #include ...
/* * strategy_sinh_gen.cpp * * Created on: 27. 5. 2021 * Author: ondra */ #include "strategy_sinh_gen.h" #include <cmath> #include <imtjson/string.h> #include <imtjson/value.h> #include "../shared/logOutput.h" #include "numerical.h" #include "sgn.h" using ondra_shared::logInfo; static const double INT_RA...
// Copyright 2009-2019 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2019, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
/** static_filters_test.cc -*- C++ -*- <NAME>, 22 Aug 2013 Copyright (c) 2013 Datacratic. All rights reserved. Tests for the static filters. Note that these tests assume that the generic filters work properly so we don't waste time constructing complicated set of i...
// Copyright 2019-2020 <NAME> /// @file /// @brief Support for Neoclima protocols. /// Analysis by crankyoldgit, AndreyShpilevoy, & griffisc306 /// Code by crankyoldgit /// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/764 /// @see https://drive.google.com/file/d/1kjYk4zS9NQcMQhFkak-L4mp4UuaAIesW/view //...
//---------------------------------------------------------------------------- // // Copyright (c) 2013-2017, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of...
#include <vector> #include "./helpers.hpp" #include <algorithm> #include <numeric> #include<boost/foreach.hpp> #include <random> #include <boost/accumulators/statistics/stats.hpp> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics/mean.hpp> using namespace boost::accumulators; ...
/******************************************************************************* * Copyright 2016 -- 2021 IBM Corporation * * 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:/...
//Modified by: <NAME> //Modified Date: 8/2/2017 //Week 4 //On this program, I am in charge of the background. //========================================================================= //Week 8 //Changed made: Added code for tiles, still need to edit // //===============================================================...
#include "acis_modeler.h" const char *module_name = "Modeler"; const char *module_documentation = "3D ACIS Modeler"; static PyMethodDef module_methods[] = { { "spa_unlock_products", (PyCFunction) a3dp_spa_unlock_products, METH_O, "Unlock the 3D ACIS Modeler using the license key" }, { "api_st...
#include "VertexGenerator.h" #include "VertexGeneratorData.h" #include "ChunkWorker.h" #include "world/chunk/Chunk.h" #include "world/chunk/ChunkSlice.h" #include "world/block/BlockRegistry.h" #include "world/block/Block.h" #include "gfx/gl/buffer/Buffer.h" #include "gui/MainWindow.h" #include "io/Format.h" #include...
#include <cage-core/hashString.h> #include <cage-core/ini.h> #include <cage-core/color.h> #include <cage-core/mesh.h> #include <cage-core/skeletalAnimation.h> #include <cage-engine/shaderConventions.h> #include "utility/assimp.h" #include <vector> vec2 convertSpecularToSpecial(const vec3 &spec); namespace { enum c...
/* Cafu Engine, http://www.cafu.de/ Copyright (c) <NAME> and other contributors. This project is licensed under the terms of the MIT license. */ #include "MapTerrain.hpp" #include "ChildFrameViewWin3D.hpp" #include "ChildFrameViewWin2D.hpp" #include "Renderer2D.hpp" #include "Renderer3D.hpp" #include "ToolOptionsBars....
#include "iesorBody.h" #include <map> #include <sstream> #include <cmath> using namespace std; static double HyperNEATWeightRange = 3.0; static double HyperNEATThreshold = .2; class Point { public: Point(){x=0;y=0;}; Point(double dx, double dy) { x= dx; y=dy; } string toString() { o...
#include <maxtest/testconnections.hh> #include <maxbase/assert.h> #include "config_sync_common.hh" using namespace std::chrono; using JsonType = mxb::Json::JsonType; using mxt::MaxScale; const auto NORMAL = mxb::Json::Format::NORMAL; RestApi api1; RestApi api2; struct TestCase { std::string desc; // Test...
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
// Trinket Game Engine // (C) 2020 <NAME> <<EMAIL>> #include "Mesh.h" #include "World.h" #include <ini.h> #include <EASTL/string.h> #include <assimp/Importer.hpp> #include <assimp/postprocess.h> #include <assimp/scene.h> #include <assimp/DefaultLogger.hpp> #include <assimp/LogStream.hpp> #include <glm/gtx/norm.hp...
#define S_FUNCTION_NAME mega128_init #include "math.h" #include "ttkernel.cpp" #include "defines.h" // Defines used by kalman update and predict #define HEIGHT 0.0 // Kalman node Z value #define SQR(a) ((a)*(a)) #define ABS(x) ((x) > 0 ? (x) : (-(x))) #define RK 10.0 #define PI 3.14159265 #define QK11 0.5f #define...
/** * * \section COPYRIGHT * * Copyright 2013-2015 Software Radio Systems Limited * * \section LICENSE * * This file is part of the srsUE library. * * srsUE is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Softwa...
#include "esp_httpd.h" /******************************************************** Global Variables ********************************************************/ HttpRequest httpd_requests[MAX_HTTP_CONNECTIONS]; HttpRoute* httpd_routes; /******************************************************** Web Functions ******...
/************************************************************************* * * * Vega FEM Simulation Library Version 4.0 * * * * "mesher" library ...
#include "ISFController.h" #include <QMessageBox> #include <QDebug> #include <QSharedPointer> #include <QScrollArea> #include <QLayout> #include <vector> #include <utility> #include <regex> #include <sstream> #include "LoadingWindow.h" #include "DocWindow.h" #include "OutputWindow.h" #include "DynamicVideoSource.h" ...
#include <iostream> #include <fstream> #include <ctime> #include <set> #include <opencv2/opencv.hpp> #include <opencv2/features2d.hpp> #include "Eigen.h" #include "PointCloud.h" #include "Optimization.h" using namespace std; using namespace cv; #define FRAMES_TO_OPTIMIZE 90 #define SKIP_FRAMES 5 #define POINT_CONSE...
/* Author: <NAME>, University of Heidelberg, 1999 */ /* $Id: step-4.cc 27657 2012-11-21 13:19:08Z bangerth $ */ /* */ /* Copyright (C) 1999-2012 by the deal.II authors */ /* */ /* ...
#include <fstream> #include <iostream> #include <map> #include <sstream> #include <vector> #include <chrono> #include <opencv2/opencv.hpp> #include <dirent.h> #include "NvInfer.h" #include "NvInferPlugin.h" #include "cuda_runtime_api.h" #include "logging.h" #include "yololayer.h" #define CHECK(status) \ do\ {\...
#include <iostream> #include <string> #include <vector> #include <fstream> #include <sstream> //IMGUI #include "imgui/imgui.h" #include "imgui/imgui_impl_sdl.h" #include "imgui/imgui_impl_dx11.h" #include "SDL.h" #include "SDL_syswm.h" // Shader Headers #include "shaders/cube_vs.csh" #include "shaders/cube_ps.csh" /...
/* Copyright (C) 2012 Ion Torrent Systems, Inc. All Rights Reserved */ #include "ImageLoaderQueue.h" #include "Utils.h" #include "FlowBuffer.h" #include "ComparatorNoiseCorrector.h" #include "CorrNoiseCorrector.h" #include "PairPixelXtalkCorrector.h" #include "AdvCompr.h" #include "FlowSequence.h" #include "FluidPotent...
//------------------------------------------------------------------------------ // ozz-skin-sapp.c // // Ozz-animation with GPU skinning. // // https://guillaumeblanc.github.io/ozz-animation/ // // Joint palette data for vertex skinning is uploaded each frame to a dynamic // RGBA32F texture and sampled in the ver...
/* Copyright Joyent, Inc. and other Node contributors. 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 ...
//===----------------- CriticalResourceCount.cpp ----------------------===// // This file implements the Scaffold Pass of counting the number // of critical timesteps and gate parallelism in program // in callgraph post-order. // // This file was created by Scaffold Compiler Working Group // //===-----...
// // Copyright (c) 2008-2017 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...
/* -*- mode: c++; c-basic-offset: 4 -*- */ /* * Modified for use within matplotlib * 5 July 2007 * <NAME> */ /* ** ~ppr/src/pprdrv/pprdrv_tt2.c ** Copyright 1995, Trinity College Computing Center. ** Written by <NAME>. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation fo...
/* * Copyright (C) 2005-2019 by Centre National d'Etudes Spatiales (CNES) * * This file is licensed under MIT license: * * 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 restric...
//:>----------------------------------------------------------------- //: FILE: St_l3_Coordinate_Transformer.cxx //: HISTORY: //: may2000 version 1.00 //: 29jun2000 ppy SectorSin and SectorCos values changed //: 29jun2000 ppy local_to_global changed //: 29jun2000 ppy global_t...
#include <vector> #include <string> #include <iostream> #include <ros/ros.h> #include <sensor_msgs/LaserScan.h> #include <visualization_msgs/Marker.h> #include <geometry_msgs/Point.h> #include <laser_geometry/laser_geometry.h> #include <tf/transform_listener.h> #include <sensor_msgs/PointCloud2.h> #include <pcl_conve...
//////////////////////////////////////////////////////////////////////////////// // Copyright © 2018 <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, includin...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "sysid/view/Generator.h" #include <memory> #include <mutex> #include <stdexcept> #include <string> #include <s...
/** * @Copyright 2015 seancode * * Handles the loading and storage of a world file */ #include <QFile> #include <QDir> #include <QDebug> #include <utility> #include "./world.h" #include "./worldinfo.h" #include "zlib/zlib.h" World::World(QObject *parent) : QObject(parent) { setAutoDelete(false); // please don'...
/*** HiCapTools. Copyright (c) 2017 <NAME> <<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 with some restriction, including without limitation the rights to use, copy, modi...
//#ifdef _MD_WEB_SERVER_H_ #include <md_webserver.h> #define WIFI_DEBUG_MODE CFG_DEBUG_NONE #ifndef WIFI_DEBUG_MODE #define WIFI_DEBUG_MODE CFG_DEBUG_STARTUP #endif #ifndef WIFI_DEBUG_MODE #define WIFI_DEBUG_MODE CFG_DEBUG_ACTIONS #endif // --- declaration #define WS_IDX_...
/** * @brief BLE GATT server config. * * @file BLE.cpp * @author <NAME> * * Copyright © 2019 <NAME>. All rights reserved. */ #include <string.h> #include "esp_bt.h" #include "esp_bt_defs.h" #include "esp_bt_main.h" #include "esp_gap_ble_api.h" #include "esp_gatt_common_api.h" #include "esp_gatts_api.h" #incl...
//Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology //Licensed under the terms of the MIT License, as described in the file: // license.txt (http://opensource.org/licenses/MIT) #include <cmath> #include <limits> #include <string> #include <sstream> #include "FixedDelayedUnitTests.hpp" #includ...
#include "DemodThread.hpp" #include <future> using namespace std; #include "vector_helpers.hpp" // #include "HiggsDriverSharedInclude.hpp" #include "HiggsStructTypes.hpp" #include "convert.hpp" #include "HiggsSettings.hpp" #include "HiggsSoapyDriver.hpp" #include "VerifyHash.hpp" #include "RetransmitBuffer.hpp" #incl...
#include "glewinitialisation.h" #include "viewinformation.h" void ViewInformation::setVolumeNumber(int vn) { m_volumeNumber = vn; } void ViewInformation::setVolumeNumber2(int vn) { m_volumeNumber2 = vn; } void ViewInformation::setVolumeNumber3(int vn) { m_volumeNumber3 = vn; } void ViewInformation::setVolumeNumber4(in...
/* Coded By : <NAME> Version : 0.5 Description : Auxillary file with computer vision different usefull methods. */ /****************************************************************************/ /*********************** sfCVextension.cpp *****************************/ /*************...
#include <iostream> #include <iomanip> #include <x86intrin.h> #include "PD/Non_Contiguous_PD/Header.h" #include "Hash_Table/hash_table.hpp" #include "Filters/POW2C/pow2c_filter.h" #include "Filters/POW2C/pow2c_naive_filter.h" #include "Tests/Validation/validate_bit_op.hpp" #include "Tests/Validation/validate_counters...
#include "dk2nu_TreeReader.hxx" #include "GetUsage.hxx" #include "HistogramBuilder.hxx" #include "PhysicsUtility.hxx" #include "ROOTUtility.hxx" #include "TH2Jagged.h" #include "TChain.h" #include "TFile.h" #include "TH2.h" #include "TH3.h" #include "TLorentzVector.h" #include "TMath.h" #include "TRandom3.h" #includ...
/////////////////////////////////////////////////////////////////////////////// // // Project: Accera // File: ConvertLaunchFuncToVulkanCalls.cpp (transforms/src/vulkan) // Authors: <NAME> // /////////////////////////////////////////////////////////////////////////////// // Ported from <llvm-project>/mlir/lib...
#include <string> #include <iostream> #include <unordered_map> #include <sstream> #include <fstream> #include "sc_store.h" #include "sc_assemblytree.h" #include "tc_io.h" #include "hoops_license.h" #include "toUtilities.h" class Logger : public SC::Store::Logger { public: virtual void Message(const char * message) ...
///////////////////////////////////////////////////////////////////// // File: MyBoundingObjectClass.cpp // DSA2 A10_BoundingObjectManager // Authors: // <NAME> // <NAME> // <NAME> // // Description: // ///////////////////////////////////////////////////////////////////// #include "MyBoundingObjectClass.h" // ...
#include <UnitTest++.h> #include "rbdl/rbdl.h" #include "rbdl/Constraint.h" #include "rbdl/Constraints.h" #include <cassert> #include "PendulumModels.h" using namespace std; using namespace RigidBodyDynamics; using namespace RigidBodyDynamics::Math; const double TEST_PREC = 1.0e-11; class PinJointCustomConstraint ...
#include "data_acquisition/data_acquisition.h" //----------------------------------------------------- CONSTRUCTOR -----------------------------------------------------// data_acquisition::data_acquisition() { // ---- LOAD PARAMETERS ---- // if (!nh.param<bool>("/data_acquisition_Node/save_image_raw", save_i...
#include "glfwApp.h" #include <galaga/Frame.h> #include <galaga/ScreenDevice.h> #include <array> #include <chrono> #include <iostream> #include <map> #include <thread> #if defined(EMSCRIPTEN) #include <emscripten.h> #include <emscripten/bind.h> #endif #include "GameStateTracker.h" #include "galaga/Galaga...
#include <gsl/gsl_eigen.h> //Used for diagonalizations. #include <gsl/gsl_blas.h> //Used for muliplying GSL matrices. #include <gsl/gsl_linalg.h> //Used for solving linear systems of equations, ie. in DIIS #include "../headers/common.h" #include "../headers/tools.h" #include "../headers/diis.h" //---------------------...
/* ########## Copyright (C) 2015 <NAME> ## ## Distributed under MIT license, see file LICENSE ## ## or <http://opensource.org/licenses/MIT> ## ## ########## ############################################################# shaduzlabs.com #####*/ #include "device...
/** * @file validation_3d.cpp * @author <NAME> and <NAME> * @copyright Copyright © UCLouvain 2020 * * FLUPS is a Fourier-based Library of Unbounded Poisson Solvers. * * Copyright <2020> <Université catholique de Louvain (UCLouvain), Belgique> * * List of the contributors to the development of FLUPS, Descrip...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) Microsoft Corporation, 1998. // // texstage.cpp // // Direct3D Reference Rasterizer - Texture Processing Stage Methods // /////////////////////////////////////////////////////////////////////////////// #include "pch...
/* * Copyright (C) 2002-2010 The DOSBox Team * * 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; either version 2 of the License, or * (at your option) any later version. * * This p...
#undef BIG_ENDIAN #undef LITTLE_ENDIAN #include "StdAfx.h" #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <unistd.h> #ifdef __APPLE_CC__ #define UInt32 macUIn32 #include <CoreFoundation/CoreFoundation.h> #undef UInt32 #endif #ifdef ENV_HAVE_WCHAR__H...
#include "ofxPiCam.h" using namespace std; int ofxPiCam::width = 0; int ofxPiCam::height = 0; ofPixels * ofxPiCam::image = new ofPixels(); bool ofxPiCam::newFrame = false; bool ofxPiCam::isReceiving = false; #ifdef OFXADDON_OFXCV Mat ofxPiCam::cvImage = Mat(); #endif #ifdef TARGET_RASPBERRY_PI MMAL_POOL_T * ofxPiC...
// Copyright (c) 2017 Google 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 to...
#include "kvstore.h" #include "skiplist.h" #include "bloomfilter.h" #include "utils.h" #include <string> #include <map> #include <fstream> #include <cstdio> #include <algorithm> using namespace std; KVStore::KVStore(const string &dir): KVStoreAPI(dir) { root=dir; memtable=new skiplist(); //初始化跳表 buffer.clear(); i...
/* * Copyright (c) 2019, Los Alamos National Laboratory * All rights reserved. * * Author: <NAME> * * 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 copy...
#include <time.h> #include <unordered_map> #include <algorithm> #include <cassert> #include "matching.cex.hpp" #include "matching.h" #define GLOG_DBG(...) do{}while(false) static struct MatchingEnv { pbdcex::mmpool_t<MatchingTeam_ST, MATCHING_QUEUE_MAX_OBJECT_NUM> matching_team_pool; //pbdcex::hasht...
#include "push_exp.h" #include "geometry_msgs/WrenchStamped.h" #include "geometry_msgs/PoseStamped.h" #include <ctime> // Global flag indicating whether the robot is pushing the object. bool flag_is_pushing = false; std::vector<geometry_msgs::WrenchStamped> ft_wrenches; std::vector<geometry_msgs::PoseStamped> robot_pos...
#include <library/unittest/registar.h> #include <catboost/cuda/cuda_lib/cuda_buffer_helpers/all_reduce.h> #include <catboost/cuda/data/binarizations_manager.h> #include <catboost/cuda/gpu_data/doc_parallel_dataset_builder.h> #include <catboost/cuda/gpu_data/oblivious_tree_bin_builder.h> #include <catboost/cuda/methods...
/**************************************************************************** * * (c) 2021 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ********************************************...
#include "../UI/TBElement.h" #include "../Core/CoreEvents.h" #include "../Core/ProcessUtils.h" #include "../Graphics/Graphics.h" #include "../Graphics/GraphicsEvents.h" #include "../Graphics/Texture2D.h" #include "../IO/File.h" #include "../IO/FileSystem.h" #include "../IO/Log.h" #include "../Input/Input.h" #include "...
/* * Copyright (c) 2010-2016 OTClient <https://github.com/edubart/otclient> * * 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...
/* Saccade / GLP1R for iMappening <NAME>, 2019 TODO: Capture at 1920 x 1080 (set display and cature in screenflow. Apply TV snow shader. */ #include "ofApp.h" #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <stdlib.h> using namespace std; //------------...