text
stringlengths
5.71k
33.7k
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
/****************************************************************************** * __ __ _____ __ __ _____ * \ \ / / | ____| \ \ / / | ____| * \ \/ / | |__ \ \/ / | |__ * } { | __| \ / | __| * / /\ \ | |___ / / | |___ * /_/ \_\ |_____| /_/ |_____|...
/*************************************************************************************************************************** * px4_pos_estimator.cpp * * Author: Qyp * * Update Time: 2019.3.10 * * 说明: mavros位置估计程序 * 1. 订阅激光SLAM (cartorgrapher_ros节点) 发布的位置信息,从laser坐标系转换至NED坐标系 * 2. 订阅Mocap设备 (vrpn-clie...
// // Source.cpp // AxiSEM3D // // Created by <NAME> on 5/17/20. // Copyright © 2020 <NAME>. All rights reserved. // // source: generator of ElementSource in core #include "Source.hpp" #include "SE_Model.hpp" #include "STF.hpp" #include "Mechanism.hpp" #include "inparam.hpp" #include "mpi.hpp" #include "timer....
/** * @file S2LP_Gpio.c * @author ST Microelectronics * @version 1.3.0 * @date June, 2019 * @brief This file provides all the low level API to manage S2-LP GPIO. * @details * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCT...
/* * Copyright (c) 2006 - 2017 <NAME> <<EMAIL>> * See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information */ #include <algorithm> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <Accelerate/Accelerate.h> #include "MPEGDecoder.h" #include "CFWrapper.h...
/* -------------------------------------------------------------------------- * * Simbody(tm) Example: Differentiator * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
// Shasta. #include "LowHash0.hpp" #include "ReadFlags.hpp" #include "timestamp.hpp" using namespace shasta; // Standard library. #include "chrono.hpp" #include <numeric> // Class LowHash0 uses the LowHash0 algorithm to find candidate pairs // of aligned reads. It uses as features // sequences of m consecutive mark...
// Copyright 2018-present RebirthDB // // 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 ...
/* *This file will hold all the standard Dark Photon with scalar DM stuff. *I will be migrating everything from main to here eventually. */ #include "Model.h" #include "Distribution.h" #include "Proton_Brem_Distribution.h" #include "Position_Distributions.h" #include "branchingratios.h" #include "Scatter.h" #include ...
#include <bits/stdc++.h> #include <unistd.h> using namespace std; #define PROCESS_NAME_LEN 32 //进程名最大长度 #define MIN_SLICE 10 //内碎片最大大小 #define DEFAULT_MEM_SIZE 1024 //总内存大小 #define DEFAULT_MEM_START 0 //内存开始分配时的起始地址 typedef pair<int, string> My_algo; int mem_size = DEFAULT_MEM_SIZE; bool flag = 0; ...
#include <Configuration.h> #include <Simulator/Dart/Nao/NaoWorldNode.hpp> #include <PnC/NaoPnC/NaoInterface.hpp> #include <Utils/IO/DataManager.hpp> #include <Utils/IO/IOUtilities.hpp> #include <Utils/Math/MathUtilities.hpp> NaoWorldNode::NaoWorldNode(const dart::simulation::WorldPtr& _world) : dart::gui::osg::Wor...
#include "stdafx.h" #include "NeuralNet.h" Face::Face(Edge *E1, Edge *E2, Edge *E3, int CurrentIteration){ // use only three parameters the forth parameter is for future use Edge1=E1; Edge2=E2; Edge3=E3; NextFaceInE1 = E1->FacesStuckHead; NextFaceInE2 = E2->FacesStuckHead; NextFaceInE3 = E3->FacesStuckHead; ...
#ifdef __cplusplus # ifdef __GNUC__ # define restrict __restrict__ # else # define restrict # endif #endif #include <cmath> #include <vector> extern "C" { #include "rebound.h" } #include "matrix_math.h" #include "springs.h" #include "kepcart.h" #include "physics.h" #include "orb.h" using std::vector; extern int n...
// // Copyright (c) 2017 <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, copy, modify, merge, publish, dis...
// octant class #include "MyOctant.h" using namespace Simplex; using namespace std; uint MyOctant::m_uMaxLevel = 3; uint MyOctant::m_uIdealEntityCount = 5; uint MyOctant::m_uOctantCount = 0; // property definitions uint MyOctant::GetOctantCount(void) { return m_uOctantCount; } MyOctant* MyOctant::GetParent(void) { ...
//-*-mode:c++; mode:font-lock;-*- /*! \file VSDatabase.cpp Base class for database input output \author <NAME> \n UCLA \n <EMAIL> \n \version 0.1 \date 03/02/2005 \note */ #include <stack> #include "VSDatabase.hpp...
/* ************************************************************************ * The MIT License (MIT) * Copyright 2014-2015 weifengliu * 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 witho...
// Copyright 2019 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 "chrome/browser/media/android/cdm/media_drm_origin_id_manager.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/fea...
/* // Copyright (c) 2018 Intel 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://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
/**************************************************************************** * Copyright (c) 2021, CEA * 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 source code must retai...
/** \file suxml.cpp * UI code for suxml, the XML editor * \author <NAME> <<EMAIL>> */ /** \mainpage * This is a simple and opinionated interactive xml editor using ncurses. * * It was written in 2015 as semestral work for the subject BI-PA2. You can read * the original assignment (in Czech) in the file zad...
// // Copyright 2019 Google 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 ...
// Copyright (c) 2011-2021 The Freicoin Developers // // This program is free software: you can redistribute it and/or modify it under // The terms of version 3 of the GNU Affero General Public License as published // by the Free Software Foundation. // // This program is distributed in the hope that it will be useful,...
/**\class EcalSimple2007H4TBAnalyzer Description: <one line class summary> Implementation: <Notes on implementation> */ // // // #include "RecoTBCalo/EcalSimpleTBAnalysis/interface/EcalSimple2007H4TBAnalyzer.h" #include "DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h" #include "DataFormats/EcalRecH...
// ***************************************************************************** /*! \file src/PDE/CompFlow/Problem/NLEnergyGrowth.cpp \copyright 2012-2015 <NAME>, 2016-2018 Los Alamos National Security, LLC., 2019 Triad National Security, LLC. All rights reserved. See th...
// This file implements 3d hypervolume calculations using an altered // version of the 2d archiver by <NAME>. 2d hypervolume // calculations are also included. // Written by <NAME>, 2013. #include <iostream> #include <cstdlib> #include <string> #include <fstream> #include <deque> #include <limits.h> #incl...
// ======================================================================== // // Copyright 2019 <NAME> // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may...
/* * ArcScripts for ArcEmu MMORPG Server * Copyright (C) 2010 ArcEmu Team <http://www.arcemu.org/> * * 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 3 of the License, or * any lat...
/** * @file state_lattice_planner.cpp * @author AMSL */ #include "state_lattice_planner/state_lattice_planner.h" StateLatticePlanner::StateLatticePlanner(void) { HZ = 10.0; MAX_ITERATION = 100; OPTIMIZATION_TOLERANCE = 0.1; MAX_ACCELERATION = 1.0; TARGET_VELOCITY = 0.8; MAX_YAWRATE = 1.0; M...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 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 <validate/validation.h> #if defined(NDEBUG) # error "Bitcoin cannot be compiled w...
// license:BSD-3-Clause // copyright-holders:<NAME>, <NAME> /*************************************************************************** sidearms.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "incl...
// Distributed under the MIT License. // See LICENSE.txt for details. /// \file /// Defines class Deferred and make function #pragma once #include <boost/make_shared.hpp> #include <boost/shared_ptr.hpp> #include <memory> #include <tuple> #include <type_traits> #include <utility> #include "ErrorHandling/Error.hpp" #...
/** * * This file is part of the COIN-OR CBC MIP Solver * * Class for separating violated odd-cycles. It contains * a lifting module that tries to transform the odd-cycles * into odd-wheels. * * @file CoinOddWheelSeparator.cpp * @brief Odd-cycle cut separator * @author <NAME> and <NAME> * Contact: <EMAIL> an...
#include <Arduino.h> #include "Relay.h" #include "LEDHardware.h" #include "LEDGrid.h" #include "VirtualGrid.h" #include "Timeline.h" #include "Animation.h" #include "Transition.h" uint8_t RANDOM = 0; #define TOUCH_PIN 4 LEDHardware leds; LEDGrid* panels[6]; VirtualGrid* master; std::shared_ptr<Animation> anim; voi...
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //============================================================= // // CorVer.cpp // // All Rights Reserved. // // Created: May 11, 98 // // Questions to: <EMAIL> // // // Notes: CorVer is a little Util to g...
// // SceneGame.cpp // snake-mobile // // Created by <NAME> on 2/2/21. // #include "SceneGame.h" #include "SceneMenu.h" #include "UI/DPad.h" #include "LevelOpened.h" #include "GameElements/TimerSprite.h" #include "audio/include/AudioEngine.h" #include "Gestures/GestureRecognizerUtils.h" #include "UI/TrophyModalBox....
// written by <NAME> 2008 - 2015 // this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important. // i do not offer support, so don't ask. to be used for inspiration :) #include "referee.hpp" #include "scene/objectfactory.hpp" #include "managers/reso...
/** \file * * \author <NAME> - INFN Legnaro <<EMAIL>> * \author <NAME> - INFN TO <<EMAIL>> */ /* This Class Header */ #include "RecoLocalMuon/DTSegment/src/DTCombinatorialExtendedPatternReco.h" /* Collaborating Class Header */ #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/E...
#include <iostream> #include "Planners/AStarGenerator.hpp" #include "Planners/AStarGeneratorSafetyCost.hpp" #include "Planners/CostAwareAStarGenerator.hpp" #include "Planners/ThetaStarGenerator.hpp" #include "Planners/CostAwareThetaStarGenerator.hpp" #include "Planners/ThetaStarGeneratorSafetyCost.hpp" #include "Plann...
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. 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 t...
// // SiStripTemplateSplit.cc // // Procedure to fit two templates (same angle hypotheses) to a single cluster // // Version 1.00 [based on SiPixelTemplateSplit.cc Version 2.30] // Version 1.01 [improve error estimation for qbin=3 events] // Version 1.05 [Incorporate VI-like speed improvements] // Version 1.06 Cl...
#include <Arduino.h> #include <TimerOne.h> #include <TimerThree.h> #include <OneWire.h> #include <DallasTemperature.h> #include <PID_v1.h> // #include <PID_AutoTune_v0.h> // #include <EnableInterrupt.h> // my own shorthand #define uint uint16_t #define ulong uint32_t const uint oneWirePin_B0 = 20; const uint oneW...
#include <sys/inotify.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <fcntl.h> #include <unistd.h> #include <spawn.h> #include <string.h> #include <string> #include <iostream> #include <set> #include <ctime> #include "utils.hpp" #include "load_crash_report.hpp" #include "encoding.h" #inc...
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/numpy.h> #include <kompute/Kompute.hpp> #include "fmt/ranges.h" #include "utils.hpp" #include "docstrings.hpp" namespace py = pybind11; //used in Core.hpp py::object kp_debug, kp_info, kp_warning, kp_error; std::unique_ptr<kp::OpAlgoDispa...
#include <opencv2/opencv.hpp> #include <iostream> #include <vector> using namespace cv; using namespace std; Mat test_images[10000]; Mat gaussnoised_timg[10000]; Mat spnoised_timg[10000]; Mat gausslinearfiltered_timg[10000]; Mat splinearfiltered_timg[10000]; Mat gaussnonlinearfiltered_timg[10000]; Mat spnonlinearfilte...
#include "lvgl_ui.hpp" #include "../fonts/RobotoBold40px.hpp" #include "lvgl.h" #include "MetaUtils.hpp" #include "CallbackConnector.hpp" #include "IconFont16px.hpp" #include <random> #include <charconv> #include <system_error> #include <string_view> #include <cstdint> #include <any> #include <type_traits> namesp...
/* RASSE * * Kuvaus: * Ohjelma lukee käynnistyessään ratikkalinjoihin liittyviä * tietoja tiedostosta, tallentaa ne ja antaa käyttäjälle * mahdollisuuden tehdä hakuja, lisäyksiä ja poistoja tietoihin * lukemalla syötteenä komentoja. * * Ohjelman komennot: * QUIT: Ohjelman suoritus päättyy. * LINES: Tulostaa ...
#include <vlog/seminaiver_trigger.h> #include <vlog/trigger/tgpath.h> #include <unordered_map> #include <queue> void TriggerSemiNaiver::run(std::string trigger_paths) { //Create all the execution plans, etc. std::vector<RuleExecutionDetails> allrules; int ruleid = 0; for (auto& rule : program->getAll...
#include "Primitive.h" #include "Threading.hpp" #include <cstring> #include <algorithm> struct OctTree : IntersectionAccelerator { struct Node { BBox box; Node *children[8] = {nullptr, }; std::vector<Intersectable*> primitives; bool isLeaf() const { return children[0] == nullptr; } }; std::vector<Inte...
// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #include "include/pika_hub...
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "spline.h" // for convenience using nlohmann::json; using std::string; using std::vector; clas...
#include "EyeRenderer.h" #include "game/graphics/opengl_renderer/AdgifHandler.h" #include "common/util/FileUtil.h" #include "third-party/imgui/imgui.h" EyeRenderer::EyeRenderer(const std::string& name, BucketId id) : BucketRenderer(name, id) {} void EyeRenderer::render(DmaFollower& dma, Shar...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
// // Copyright (c) 2012, <NAME> <<EMAIL>> // 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 cond...
#include "DXView.h" //-------------------------------------------------------------------------------------- // Global helper function for compiling shaders with D3DCompile //-------------------------------------------------------------------------------------- HRESULT CompileShaderFromFile(WCHAR* szFileName, LPCSTR...
#include <opencv2/opencv.hpp> #include <opencv2/objdetect.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; using namespace cv; enum GrayscaleMethods { GRAY_AVG = 1, GRAY...
//-------------------------------------------------------------------------------------- // Matrix4x4 class (cut down version) to hold matrices for 3D //-------------------------------------------------------------------------------------- #include "CMatrix4x4.h" #include <algorithm> #include <cmath> #include <Direct...
// // Canvas.cpp // cs144-painter // #include "Canvas.hpp" // Initializes the context for canvas members Context Canvas::cntxt; std::vector< Drawable<int>* > Canvas::drawables; Canvas::Canvas() { } Canvas::Canvas(int x_resolution, int y_resolution) { this->x_resolution = x_resolution; this->y_resolution ...
/* -------------------------------------------------------------------------- * * File T11_PerPixelLighting.cpp * Author <NAME> * * -------------------------------------------------------------------------- * * Copyright (C) 2010-2012 XMSoft. All rights reserved. * * ...
#include "math.h" #include "structs.h" #include "" #ifdef MAX #undef MAX #endif #define MAX(a, b) ((a)>(b)?(a):(b)) #define n 3 /* This function * * * */ /* Eigen decomposition code for symmetric 3x3 matrices, copied from the public * domain Java Matrix library JAMA. */ static double hypot2(double x, double y) ...
/* * Copyright 2018 The Polycube 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 agree...
int kK /**/,//64wan i , Eo, SarBp , OzhMQ,//H W , f /*9b*/,B95G , cR,myD,XuH2, Ki , pSS , LQ , K5//KH ,ujR, VIr , t5 ,//Aml Iv ,RLv ,zBYI ,Wd ,mjT /*g*/ , c //h ,V1, pGJ1, HQ ,//Rx2 H0LH , r8, JC ,w ,eN, Wv, YvTWi , nZ, /*d*/WkBl, DNJ, rfY ,wH ; void f_f0 () {volatile int vC , RN//jd17 ,...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "storage/trie/polkadot_trie/polkadot_trie_impl.hpp" #include <functional> #include <utility> #include "storage/trie/polkadot_trie/polkadot_trie_cursor_impl.hpp" #include "storage/trie/polkadot_trie/trie_erro...
/* * interrupt.c * * Provides a pseudo interrupt inteface which is broadly an analoge of the Arduino pin based interrupt * callback mechanism * We don't support 'real' interrupts from kernel to user-space right now since that's way out of scope * * Author: <NAME> <<EMAIL>> */ #define _GNU_SOURCE #include <asser...
#include <GL/glew.h> #include <GLFW/glfw3.h> #include <iostream> #include <fstream> #include <sstream> #include <cassert> #include <string> #include <vector> #include <time.h> #include "../Buffers/Buffer.hpp" #include "../Buffers/IndexBuffer.hpp" #include "../Buffers/VertexArray.hpp" #include "../Textures/Texture.hp...
/* * Copyright (c) 2017, <copyright holder> <email> * 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, thi...
/* pvaDriver.cpp * * This is a driver for EPICSv4 pvAccess NTNDArrays. * * Author: <NAME> * Brookhaven National Laboratory * * Created: April 10, 2015 * */ #include <epicsThread.h> #include <iocsh.h> #include <pv/clientFactory.h> #include <pv/pvAccess.h> #include <pv/ntndarray.h> #include <ntndArray...
/*! \file visibility.cc \brief plot object and moon elevation vs MJD libnova package required */ #include "TApplication.h" #include "TCanvas.h" #include "TGraph.h" #include "TH1D.h" #include "TLegend.h" #include "TLine.h" #include "TText.h" #include "TROOT.h" #include "VLibNovaStar.h" #include "VLibNovaSu...
// See license.md for copyright information. #include "vtkParFlowReader.h" #include "vtkByteSwap.h" #include "vtkCellData.h" #include "vtkDoubleArray.h" #include "vtkImageData.h" #include "vtkMultiBlockDataSet.h" #include "vtkMultiProcessController.h" #include "vtkObjectFactory.h" #include "vtkPointData.h" #include "v...
#include "testutil.hpp" #include <nix.hpp> std::vector<nix::DataType> dtypes = { nix::DataType::UInt8, nix::DataType::UInt16, nix::DataType::UInt32, nix::DataType::UInt64, nix::DataType::Int8, nix::DataType::Int16, nix::DataType::Int32, nix::DataType::Int64, nix::DataType::Float, ...
#include "hostname.h" #include "rconvlog.h" #include "misc.h" struct FIELDNAMES_W3C { FIELDS type; char * str; }; static FIELDNAMES_W3C fieldnames_w3c[] = { {F_DATE,"date"}, {F_TIME,"time"}, {F_C_IP,"c-ip"}, {F_CS_USERNAME,"cs-username"}, {F_S_IP,"s-ip"}, {F_S_PORT,"s-port"}, {F_CS_METHOD,"...
/* wcecompat: Windows CE C Runtime Library "compatibility" library. * * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved. * http://www.essemer.com.au/ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as pub...
#include "smt/theory_str/theory_str2.h" #include "util/debug.h" #include "smt/smt_context.h" #include "ast/seq_decl_plugin.h" #include "ast/reg_decl_plugins.h" #include "ast/ast_pp.h" #include <sstream> #include <iostream> #include <fstream> class string_fuzzer { ast_manager& m; smt_params params; smt::cont...
#include "Utils.hpp" #define NOMINMAX #include <Windows.h> #include <stdio.h> #include <string> #include <vector> #include <chrono> #include "../valve_sdk/csgostructs.hpp" #include "Math.hpp" HANDLE _out = NULL, _old_out = NULL; HANDLE _err = NULL, _old_err = NULL; HANDLE _in = NULL, _old_in = NULL; #include <Psap...
/// @file test_raster.cc /// @brief test raster functionality /// @author <NAME> <<EMAIL>> /// @version 1.0 /// @date 2013-01-14 #include "horny_toad/verify.h" #include "jack_rabbit/jack_rabbit.h" #include <algorithm> #include <cmath> #include <complex> #include <iostream> #include <list> #include <numeric> #include <...
/** * @file tpcc_tables.hpp * @details * TPC-C * http://www.tpc.org/tpc_documents_current_versions/pdf/tpc-c_v5.11.0.pdf * 1.3 Table Layouts */ #pragma once #include <cstdint> #include <chrono> #include <mutex> #include <string> #include <cassert> #include <sstream> #include "atomic_wrapper.h" #include "cpu.h" ...
/*---------------------------------------------------------------------- Copyright (c) 1998 Gipsysoft. All Rights Reserved. Please see the file "licence.txt" for licencing details. File: HTMLTable.cpp Owner: <EMAIL> Purpose: A table ----------------------------------------------------------------------*/ #include "std...
#include "ComponentParticleEmitter.h" #include "Application.h" #include "ComponentTransform.h" #include "ComponentMesh.h" #include "Transform.h" #include "GameObject.h" #include "MathGeoLib/MathGeoLib.h" #include "PCG Random\pcg_basic.h" #include "ModuleUI.h" #include "Material.h" #include "ModuleResourcesManager.h" #i...
/** * Copyright (C) 2020 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
#include "main.hpp" std::string serverURL; LogQueue* lgQu = new LogQueue(); std::vector<std::string> downloadVec; double dlProg = 10; double addProg = 0; std::future<void> future = std::async(std::launch::async, [] {}); double clsTDP = 1; std::string calc_sha256(char* path) { std::ifstream input(path, std::ios::bin...
/* * emul_op.cpp - 68k opcodes for ROM patches * * SheepShaver (C) 1997-2008 <NAME> and <NAME> * * 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 ...
#include "AT30TSE75x.h" /* * info see AT30SE75x.h * (C) <NAME> 2017 * some parts of the code are copied * from https://developer.mbed.org/users/akhilpanayam/code/AT30TSE75X/file/0e430cef393b/AT30TSE75X.h * ver 0.91 removed mbed.h should not be there platform depending * ver 0.96 edit...
#include "touch.h" // TouchPoint class TouchPoint::TouchPoint(int16_t x_ /* = -1 */, int16_t y_ /* = -1 */) { x = x_; y = y_; } bool TouchPoint::operator ==(const TouchPoint& p) { return (Equals(p)); } bool TouchPoint::operator !=(const TouchPoint& p) { return (!Equals(p)); } void TouchPoint::operator = (cons...
/* * Player - One Hell of a Robot Server * Copyright (C) 2007 * <NAME> ruizf /at/ cs.tum.edu, memeruiz /at/ gmail.com * <NAME> moesenle /at/ in.tum.de * * 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 Fr...
#include "application.h" #include "Timer.h" #include <iostream> #include <gl/glut.h> #include <stdio.h> // GLFW #include <GLFW/glfw3.h> #ifdef _MSC_VER #undef APIENTRY #define GLFW_EXPOSE_NATIVE_WIN32 #define GLFW_EXPOSE_NATIVE_WGL #include <GLFW/glfw3native.h> #endif #pragma region IMGUI #define OFFSETOF(TYPE, ELEM...
// // C++ Implementation: fvboundbox // // Description: // // // Author: <NAME> <<EMAIL>>, (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #include "fvboundbox.h" #include "fivermain.h" #include <QtDebug> FVBoundBox::FVBoundBox( FVBoxMgr * manager, int x, int y ) : FVObject(manager,...
// ******************************************************** // // Author/Copyright <NAME> / GkWare e.K. // Hatzper Strasse 172B // D-45149 Essen, Germany // Tel: +49 174 520 8026 // Email: <EMAIL> // Web: http://www.gkware.com // // // ********************************************************...
/*--------------------------------------------// * READ PNG IMAGE FILE // * READS PNG IMAGE // * LOOKS FOR SEARCHED OBJECT // * CONTAINS ALL INFORMATION ABOUT THE PNG FILE // * ALL FUN PART IS HERE // *---------------------------------------------// * CREATED BY <NAME...
#include <iostream> #include <yaml-cpp/yaml.h> #include <runtime.hpp> #include "translation.hpp" #include <tstd.hpp> #define _RED "\033[1;31m" #define _YELLOW "\033[1;33m" #define _BLUE "\033[1;34m" #define _NONE "\033[00m" std::string Translation::get(const std::string &s, const bool &nl, const bool &bnl) { if ...
/*Copyright 2013 Google Inc. 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 required by applicable law or agreed to in w...
// HfsIn.cpp #include "StdAfx.h" #include "../../Common/StreamUtils.h" #include "Common/IntToString.h" #include "HfsIn.h" #include "../../../../C/CpuArch.h" #define Get16(p) GetBe16(p) #define Get32(p) GetBe32(p) #define Get64(p) GetBe64(p) namespace NArchive { namespace NHfs { #define RINOZ(x) { int __tt = (x);...
// Entropy - A entropy (random number) generator for the Arduino // The latest version of this library will always be stored in the following // google code repository: // http://code.google.com/p/avr-hardware-random-number-generation/source/browse/#git%2FEntropy // with more information available on the libr...
#include <iostream> #include <stdlib.h> /* srand, rand */ #include <vector> #include <algorithm> #include "core/film.h" #include "core/matrix4x4.h" #include "core/ray.h" #include "core/utils.h" #include "shapes/sphere.h" #include "shapes/disk.h" #include "shapes/cylinder.h" #include "cameras/ortographic.h" ...
// See LICENSE_CELLO file for license and copyright information /// @file enzo_EnzoEOSIdeal.cpp /// @author <NAME> (<EMAIL>) /// @date Thurs May 2 2019 /// @brief [\ref Enzo] Implementation of EnzoEOSIdeal #include "cello.hpp" #include "enzo.hpp" //-------------------------------------------------------...
#include "Arduino.h" #include "XModem.h" XModem::XModem() {} void XModem::begin(HardwareSerial &serial, XModem::ProtocolType type = XModem::ProtocolType::XMODEM) { _serial = &serial; switch(type) { case ProtocolType::XMODEM: _id_bytes = 1; _chksum_bytes = 1; _data_bytes = 128; _rx_init...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "test_graph.hpp" #include "common_test_utils/data_utils.hpp" #include "single_layer_common.hpp" #include "tests_common.hpp" #include <ie_core.hpp> using namespace ::testing; using namespace std; using namespace mkldnn; s...
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of th...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2020 <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 Soft...
#include <Storages/StorageReplicatedMergeTree.h> #include <Storages/MergeTree/ReplicatedMergeTreeQuorumEntry.h> #include <Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.h> #include <Interpreters/PartLog.h> #include <DataStreams/IBlockOutputStream.h> #include <Common/SipHash.h> #include <Common/ZooKeeper/Keeper...