text
stringlengths
5.71k
33.7k
#include <iostream> #include <memory> #include <algorithm> #include <map> #include <vector> #include <exception> #include <cerrno> #include <system_error> #include <ghidra/loadimage.hh> #include <ghidra/sleigh.hh> #include <ghidra/sleigh_arch.hh> #include <ghidra/emulate.hh> #include <ghidra/filemanage.hh> #include "...
/*! @file PageGroup.cpp Distributed under Open Software License 3.0 http://www.opensource.org/licenses/osl-3.0.php @verbatim $Id: PageGroup.cpp 9 2006-03-08 14:41:10Z henry_groover $ Page group represents a physical print page which has one more more face groups placed on it. This is used to...
/* Author: <NAME> */ // Standard libs #include <iostream> #include <sstream> #include <string> #include <vector> #include <fstream> #include <algorithm> #include <glob.h> #include <iomanip> #include <locale> #include <stdio.h> #include <stdlib.h> #include <functional> // LHAPDF libs #include "LHAPDF/LHAPDF.h" // ...
/* 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...
/* Copyright University of Michigan. This file is part of the Larmor software suite and is made available under license. University of Michigan (UM) TECHtransfer: phone: 734-763-0614 email: <EMAIL>. Author: <NAME> */ #include "Molecule.hpp" #include "Residue.hpp" #include "Atom.hpp" #include "Misc.h...
#include <math.h> #define SWAP(a,b) tempr=(a);(a)=(b);(b)=tempr #include "cppmath.h" void four1(double datain[], unsigned long nn, int isign) /* Replaces data[1..2*nn] by its discrete Fourier transform, if isign is input as 1; or replaces data[1..2*nn] by nn times its inverse discrete Fourier transform, if is...
// -*- C++ -*- // // Package: TrackAssociator // Class: DetIdAssociator // /* Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME> // Created: Fri Apr 21 10:59:41 PDT 2006 // // #include "TrackingTools/TrackAssociator/interface/DetI...
// Copyright 2014 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 "components/url_formatter/elide_url.h" #include <stddef.h> #include "base/i18n/rtl.h" #include "base/logging.h" #include "base/numerics/ranges....
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The Edco Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php....
/* * Copyright 2017 MapD Technologies, 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 o...
#include "llighttracer.h" #include "core/os/os.h" #include "llightscene.h" using namespace LM; void LightTracer::Reset() { m_Voxels.clear(true); m_VoxelBounds.clear(true); m_BFTrisHit.Blank(); m_iNumTris = 0; } void LightTracer::Create(const LightScene &scene, int voxel_density) { m_bUseSDF = true; m_pScene =...
/***************************************************************************************** * * * OpenSpace * * ...
#include <iostream> #include <thread> #include <algorithm> #include <asapo/asapo_consumer.h> #include "asapo/consumer/consumer.h" #include "testing.h" struct Args { std::string server; std::string run_name; std::string token; std::string datasets; }; Args GetArgs(int argc, char* argv[]) { if (argc...
/* * Copyright (c) Facebook, Inc. and its affiliates. * 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. */ #include <fmt/format.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <strings.h> #include ...
/* * IRIS Localization and Mapping (LaMa) * * Copyright (c) 2019-today, <NAME>, University of Aveiro - Portugal * All rights reserved. * License: New BSD * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * ...
/****************************************************************************//* * Copyright (C) 2021 <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, includ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the HiGHS linear optimization suite */ /* */ /* Written an...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Implemenation of CTFStatsReport // // $Workfile: $ // $Date: $ // //------------------------------------------------------------------------------------------------------ // $Log: $ // // $NoKeywords: $ //===========...
#include "redis/cluster_client.h" #include <memory> #include <folly/hash/Hash.h> #include <folly/Random.h> #include "redis/util.h" namespace redis { namespace { /* * Copyright 2001-2010 <NAME> (www.menie.org) * Copyright 2010 <NAME> (adapted to Redis coding style) * All righ...
// // Created by Gegel85 on 26/09/2019. // #include <cmath> #include <cstring> #include <filesystem> #include "Map.hpp" #include "Game.hpp" #include "../Exceptions.hpp" #include "../ECS/Components/PositionComponent.hpp" #include "../Utils/Utils.hpp" namespace TouhouFanGame { Map::Map(TouhouFanGame::Game &game) : _...
#include <RcppEigen.h> #include <R.h> #include <Rmath.h> // [[Rcpp::depends(RcppEigen)]] using namespace Eigen; using namespace Rcpp; using namespace std; using Eigen::Map; using Eigen::MatrixXd; using Eigen::VectorXd; // [[Rcpp::export]] void set_seed_sb(unsigned ...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // given a prospective edge, compute its initial winding by projecting a ray // if the ray hits another edge // if the edge doesn't have a winding yet, hop up to that edge...
/** * @copyright * * Copyright 2012 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITH...
#include "Holo3DSequenceManager.h" #include "RenderingScreen.h" #include "AttributePacking.h" #include "ModuleBase.h" #include "Holo3DPanel.h" #include "Camera.h" #include "Node3D.h" #include "Timer.h" #include "BaseUI2DLayer.h" #include "UI/UIItem.h" #include "Intersection.h" #include "Plane.h" #include "ModuleInput...
//The MSA Paint Tool holds the state of and provides the draw calls for a tool used for //editing the min safe altitude data layer //Author: <NAME> //Copyright (c) 2021 Sentek Systems, LLC. All rights reserved.
 //Project Includes #include "MSATool.hpp" #include "MapWidget.hpp" #include "../Maps/MapUtils.hpp" #include...
#include "MidiMorph.h" #include "Cursor.h" #include "ControllerValue.h" MidiMorph::MidiMorph() { // Bouml preserved body begin 0003540D cursor = new Cursor(this); valuesChanged = false; refreshRate = 200; guiBounds.setSize(450,300); guiState = 0; paneSize.setSize(300,300); autoKey = true; autoLearn = tru...
// AMD SampleDX12 sample code // // Copyright(c) 2020 Advanced Micro Devices, Inc.All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the Software without restriction, including withou...
///////////////////////////////////////////////////// // // GenerateGarfieldGasTableForLiquidNoble.cpp // // <EMAIL> // 9/12/2020 // // This code takes NEST as an input and generates // the tables of electron transport properties // used by the AvalancheMC code in Garfield. // ////////////////////////////////////...
/* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #include <poplibs_support/LogArithmetic.hpp> #include <poplibs_support/TestDevice.hpp> #include <poplibs_test/CTCInference.hpp> #include <poplibs_test/Embedding.hpp> #include <poplibs_test/MatrixTransforms.hpp> #include <poplibs_test/Util.hpp> #include <popnn/CT...
#include <chrono> #include <iostream> #include <unordered_map> // with c++14 enabled, std::experimental::optional is always available #define PQXX_HAVE_EXP_OPTIONAL 1 #include <pqxx/pqxx> #include <sodium.h> #include <transaction.h> #include "assets.h" #include "blockchain_state.h" #include "blockchain_state_validat...
// // Created by jiashuai on 17-9-21. // #include <iostream> #include <iomanip> #include <thundersvm/kernel/smo_kernel.h> #include <thundersvm/model/svc.h> #include <thundersvm/solver/csmosolver.h> using std::ofstream; using std::endl; using std::setprecision; using std::ifstream; using std::stringstream; void SVC::m...
// Filename: tlm2_getting_started_3.cpp //---------------------------------------------------------------------- // Copyright (c) 2007-2008 by Doulos Ltd. // // 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 co...
// This file is part of comma, a generic and flexible library // Copyright (c) 2011 The University of Sydney // 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 cod...
/* * Copyright (C) 2017 The Android Open Source Project * 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, t...
#include "simulation/ElementCommon.h" int Element_FIRE_update(UPDATE_FUNC_ARGS); static int update(UPDATE_FUNC_ARGS); static int graphics(GRAPHICS_FUNC_ARGS); void Element::Element_SPRK() { Identifier = "DEFAULT_PT_SPRK"; Name = "SPRK"; Colour = PIXPACK(0xFFFF80); MenuVisible = 1; MenuSection = SC_ELEC; Enabled...
#include "gp_data.h" #include "gp_setting.h" // BASICS int numNodes = 0; int numCells = 0; int numMacros = 0; int numPads = 0; int numNets = 0; int numPins = 0; int numFences = 0; double coreLX, coreLY; double coreHX, coreHY; vector<vector<int> > cellNet; vector<vector<int> > netCell; vector<dou...
// // // File: src/Chisq_Constrainer.cc // Purpose: Minimize a chisq subject to a set of constraints. // Based on the SQUAW algorithm. // Created: Jul, 2000, sss, based on run 1 mass analysis code. // // CMSSW File : src/Chisq_Constrainer.cc // Original Author : <NAME> <<EMAIL>> for D0 // Imported to CMSS...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
#include "stdafx.h" #include "graph.h" #include "multiway_cut_solver.h" #include "dgf_writer.h" #include "metrics_writer.h" #include "planted_instance.h" using namespace std; const int repetitions = 10; const string path = "../../resources/instance_generation/"; int main(int argc, char* argv[]) { v...
// Rcpp interface to read libpcap files directly into R // <NAME> - 2016-03-07 // License: BSD Three Clause - To match libpcap's license // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions...
#include <iostream> #include <fstream> #include <Eigen/Eigen> //include the bie header files #include "material.hh" #include "precomputed_kernel.hh" #include "bimat_interface.hh" #include "infinite_boundary.hh" //include the fem header files #include "mesh_Abaqus_multi_faults.hpp" #include "bcdof.hpp" #include "bcdof_p...
//-*-mode:c++; mode:font-lock;-*- /*! \file vec4D.cpp vec4D class implementation file \author <NAME> \n UCLA \n <EMAIL> \n \author <NAME> \n UCLA \n <EMAIL> \n \date 11/09/2004 \version 1.1...
// Copyright (C) 2005 <NAME>. See ``LICENSE'' for the license to this // software and for a DISCLAIMER OF ALL WARRANTIES. /* SPECTACLE2 - FFT-based delay processor Parameters marked with '*' can receive dynamic updates from a table or real-time control source. There are a few wrinkles -- see note 1 below. ...
#include "tuneinui.h" #include <SPI.h> #include <SPIFFS.h> #include <WiFi.h> void setLed() {} void op1Func() {} TuneinUI::TuneinUI(TuneinApi *_api) { this->api = _api; #ifdef TFT_ENABLED this->tft = new TFT_eSPI(); this->progress = new ProgressBar(this->tft); this->progress->setColor(TFT_TN_GREEN, TF...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2019, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
// RPC test and pseudo-documentation. // generates print statements on failures, but eventually says "rpctest OK" #include "rpc.h" #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> #include "jsl_log.h" #include "gettime.h" #include "lang/verify.h" #define NUM_CL 2 ...
#include <bits/stdtr1c++.h> #define MAX 65536 #define MOD 1000000007 /// MOD must be prime and greater than 2 #define MOD_THRESHOLD 18 /// MOD * MOD * MOD_THRESHOLD < 2^64 #define clr(ar) memset(ar, 0, sizeof(ar)) #define read() freopen("lol.txt", "r", stdin) #define dbg(x) cout << #x << " = " << x << endl #define ra...
//===- Thumb2InstrInfo.cpp - Thumb-2 Instruction Information ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <clang-c/Index.h> #include <iostream> #include <sstream> #include <fstream> #include <string> #include <vector> #include <deque> #include <algorithm> #include <unistd.h> #include <sys/ioctl.h> std::ostream& out = std::cerr; // Note: code for coloring the terminal is inspired from LLVM #define COLOR(FGBG, COD...
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef pair<int, int> ii; const double THETA = 0.90; const int TARGET_DEGREE = 30; class UnionFind { private: vi p, rank, setSize; int numSets; public: UnionFind() {} UnionFind(int N) { setSize.assign(N, 1); numSets = N;...
/* * Copyright 2019 Carnegie Technologies * * 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 l...
/* * Copyright (c) 2021, NVIDIA CORPORATION. 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 requi...
// // main.cpp // // Created by zhaohu on 14-9-28. // Copyright (c) 2014年 zhaohu. All rights reserved. // // NOTE !!!!!! // change `LLVM 5.1 - Language C++` settings option . // to -> libstdc++, standard lib // use ../v8libs_3.26.33/mac/debug, or release. /* Standard headers */ #include <stdlib.h> #include <st...
// This is CSCMake2DRecHit #include <RecoLocalMuon/CSCRecHitD/src/CSCMake2DRecHit.h> #include <RecoLocalMuon/CSCRecHitD/src/CSCXonStrip_MatchGatti.h> #include <RecoLocalMuon/CSCRecHitD/src/CSCStripHit.h> #include <RecoLocalMuon/CSCRecHitD/src/CSCWireHit.h> #include <RecoLocalMuon/CSCRecHitD/src/CSCRecoConditions.h> #...
/* Copyright (c) 2020 by <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, distribute, ...
#include <vector> #include <iostream> #include <cmath> #include <numeric> #include <algorithm> #include "utils.h" #include "pangenome/pangraph.h" #include "pangenome/pannode.h" #include "estimate_parameters.h" double fit_mean_covg( const std::vector<uint32_t>& kmer_covg_dist, const uint8_t zero_thresh) { doub...
#include "math.hpp" #include <cmath> #include <cfloat> #define M_PI 3.14159265358979323846 // pi float DegToRad(float x) { return x * ((float)M_PI / 180.f); } float RadToDeg(float x) { return x * (180.f / (float)M_PI); } float DistancePointToLine(FVector Point, FVector LineOrigin, FVector Dir) { FVector ...
////////////////////////////////////////////////////////////////////////////////// // Creates and fills histograms // // Author: <NAME> (<EMAIL>) // Creation Date: Friday July 3, 2020 T10:56:43-07:00 // Last Update: Friday July 3, 2020 T10:56:43-07:00 // Usage: // ////////////////////////////////////////...
/* * Copyright (c) 2006-2011 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, ...
/** * \file libsanm/sparse_solver.cpp * This file is part of SANM, a symbolic asymptotic numerical solver. */ #include "libsanm/sparse_solver.h" #include <mkl_pardiso.h> #include <mkl_service.h> #include <mkl_spblas.h> #include <mkl_types.h> #include <cmath> #include <cstring> // set to 1 to construct a dense ma...
#ifdef HAVE_CONFIG_H #include <../../config.h> #endif /* * Copyright (c) 1990, 1991 Stanford University * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and ...
#include "EGL/egl.h" #include "EGL/eglext.h" #include "GLES/gl.h" #include "GLES/glext.h" #include "VG/openvg.h" #include "egl.h" #include "bcm_host.h" #include "argchecks.h" #include "mire.c" using namespace v8; using namespace node; egl::state_t egl::State; EGLConfig egl::Config; VGImage vg_image; EGLImageKHR e...
/* * Copyright (c) 2010 Jice * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/*************************************************************************************************\ gameTacMap.cpp : Implementation of the gameTacMap component. //---------------------------------------------------------------------------// // Copyright (C) Microsoft Corporation. All rights reserved. ...
// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #include <Python.h> #include <dynd/shape_tools.hpp> #include <dynd/types/fixed_string_type.hpp> #include <dynd/types/struct_type.hpp> #include "array_as_pep3118.hpp" #include "array_functions.hpp" #include "utility_functions.hpp"...
#include "Common.h" #include "QuadControl.h" #include "Utility/SimpleConfig.h" #include "Utility/StringUtils.h" #include "Trajectory.h" #include "BaseController.h" #include "Math/Mat3x3F.h" #include <iostream> #ifdef __PX4_NUTTX #include <systemlib/param/param.h> #endif void QuadControl::Init() { BaseController:...
////////////////////////////////////////////////////////////////////////// // // pgAdmin III - PostgreSQL Tools // RCS-ID: $Id$ // Copyright (C) 2002 - 2010, The pgAdmin Development Team // This software is released under the Artistic Licence // // md5.cpp - MD5 password encryption functions // // Note: T...
/* Original code copyright (C) 2004-2005 <NAME> PeerBlock modifications copyright (C) 2009-2014 PeerBlock, LLC 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 gra...
/******************************************************************* TCS1011 - Data Structure & Algorithms <NAME> Email: <EMAIL> Project Page: https://farshid.ws/projects.php?id=114 Year: 2012 ********************************************************************/ #include <iostream> #include <windows.h> #include <coni...
#include <algorithm> #include <iostream> #include <fstream> #include <stdexcept> #include <getopt.h> #include <cmath> #include <cstring> #include <cctype> #include "gem_stats.h" #include "print_utils.h" #include "gem_utils.h" #include "effective_skills.h" #include "cmdline_options.h" using namespace std; class gem {...
#include "geister.hpp" #include <random> #include "random.hpp" #include "result.hpp" #include "Player/Encode.hpp" #include <string> #include <iostream> #include <fstream> #include <vector> #include <iterator> #pragma once static cpprefjp::random_device rd; static std::mt19937 mt; bool isMyturn; int MaxDepth; float t...
#include <iostream> #include <fstream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <ctime> #include <cmath> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/named_function_params.hpp> ...
#include <toml.hpp> #include <iostream> #include "BatchRunner.hpp" #include "MirrorPlasma.hpp" #include "Config.hpp" // Type names used in the recursive cartesian product using vecMap = std::vector<std::map<std::string, double>>; using vecPairVS = std::vector<std::pair<std::vector<double>*,std::string>>; using mapSD ...
///---------------Created by <NAME> ------------------------------------ //******************** 06/08/2017 ******************************************* #include "TaskClutch.h" #include <custom_conversions/Conversions.h> #include <vtkCubeSource.h> #include <boost/thread/thread.hpp> double Green[3] {0.0, 0.9, 0.03}; //...
#include "cglass/rigid_filament.hpp" RigidFilament::RigidFilament(unsigned long seed) : Mesh(seed) { std::fill(body_frame_, body_frame_ + 6, 0.0); SetSID(species_id::rigid_filament); } void RigidFilament::SetParameters() { /* Read parameters from filament parameters */ color_ = sparams_->color; name_ = spar...
/* * Copyright (c) 2019 by <NAME>. All rights reserved. * E-Mail: <EMAIL> V2.3 */ #include "timing.h" #include <iomanip> #include <chrono> #include <cmath> using namespace std; // 正态分布分位点计算函数 static double n_alpha(double a, double mean = 0, double vari = 1) { if (a == 0.5) return 0; static const double b[] = { ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Methods.cpp :+: :+: :+: ...
/* * Copyright (c) 2016 University of Cordoba and University of Illinois * All rights reserved. * * Developed by: IMPACT Research Group * University of Cordoba and University of Illinois * http://impact.crhc.illinois.edu/ * * Permission is hereby granted, free of charge, to ...
// Package Path Definition #include <Configuration.h> // Import ROS and Rviz visualization #include <ros/ros.h> #include <avatar_locomanipulation/bridge/val_rviz_translator.hpp> #include <avatar_locomanipulation/models/robot_model.hpp> #include "visualization_msgs/Marker.h" #include "visualization_msgs/MarkerArray.h" ...
/****************************** RMX SDK ******************************\ * Copyright (c) 2007 <NAME>., All rights reserved. * * * * See license.txt for more information * * ...
//===--- ObjectOutliner.cpp - Outline heap objects -----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LI...
#include "debug.h" #include "vehicle.h" #include <string> #include <vector> #include <map> #include <assert.h> #include <algorithm> #include <iterator> #include <iostream> #include <iomanip> #include <sstream> #include "constants.h" #include "helpers.h" #include "cost.h" // Initializes Vehicle Vehicle::Vehicle(){} Ve...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1996 - 1999 // // File: wvtstrss.cpp // // Contents: WinVerifyTrust Stress // // History: 13-Aug-1997 pberkman created // //----------------------...
// Copyright 2012 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 ap...
/****************************************************************************************** ** Copyright (C) 2009 by CEA ******************************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 26/06/09 **...
// header file from github, not my code // may delete them if i break any license #include "include/objload.h" #include "include/geodesic_algorithm_dijkstra.h" #include "include/geodesic_algorithm_subdivision.h" #include "include/svd.h" #include "include/ch3d.h" //#include "geodesic_algorithm_exact.h" // my code start...
// This is an implementation of CFR+. // // TODO: Remove old trunk files. // TODO: skip unreachable subgames. Will need to copy unaltered regret and // sumprob files to new iteration. Subgame only unreachable if not // reachable for *any* flop board. That may not be very common. Could // also writ...
// Part of SAASound copyright 1998-2018 <NAME> <<EMAIL>> // // SAAEnv.cpp: implementation of the CSAAEnv class. // ////////////////////////////////////////////////////////////////////// #include "SAASound.h" #include "types.h" #include "SAAEnv.h" //////////////////////////////////////////////////////////////////////...
//------------------- svmObjAlarm.cpp ----------------------- //----------------------------------------------------------- #include "precHeader.h" //----------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include "svmObjAlarm.h" #include "svmDefObj.h" #include "svmPropertyAl...
/** * @file sample_render_box_main.cpp * * @brief 立方体をレンダリングするサンプル * * @author myoukaku */ #include <bksge/core/window.hpp> #include <bksge/core/render.hpp> #include <bksge/core/math.hpp> #include <bksge/fnd/cmath.hpp> #include <bksge/fnd/memory.hpp> #include <utility> #include <vector> namespa...
//solution.cpp #include <solution.h> void buildAdjList(std::unordered_map<std::string, LinkedListNode*> &map_node_st2lln, const std::vector<std::vector<std::string>> &input_edge_list, AdjList &adj_list, AdjList &adj_list_rev){ //Build the mapping of node_name -> address for all nodes. for (auto &itRow : input_...
#include <stdio.h> #include <string> #include <cstring> #include <iostream> #include <iomanip> #include <arpa/inet.h> #include "EventLoop.hpp" #include "UdpServer.hpp" #include "Timer.hpp" class MqttSnProtocol { public: enum MessageType { ADVERTISE = 0x0, SEARCHGW = 0x1, GWINFO ...
// ========================================================================== // UPS-indel // ========================================================================== // Copyright (c) 2015, Virginia Tech // All rights reserved. // // Redistribution and use in source and binary forms, w...
/* Phaser.cpp - Phasing and Approximate digital model of an analog JFET phaser. Analog modeling implemented by <NAME> aka Transmogrifox. ZynAddSubFX - a software synthesizer Phaser.cpp - Phaser effect Copyright (C) 2002-2005 <NAME> Copyright (C) 2009-2010 <NAME> Copyright (C) 2010-2010 <NAME> Author:...
// // Created by liaoheng on 2018/7/2. // #include "FFmpegRecord2.h" FFmpegRecord2::FFmpegRecord2() {} FFmpegRecord2::~FFmpegRecord2() {} void FFmpegRecord2::write_video_frame(unsigned char *data, int length) { if (!isInit) { return; } int ret; AVCodecContext *c; AVPacket pkt = {}; ...
#include <QMouseEvent> #include <QGuiApplication> #include "NGLScene.h" #include <ngl/Random.h> #include <ngl/ShaderLib.h> #include <ngl/NGLInit.h> #include <ngl/VAOPrimitives.h> NGLScene::NGLScene(std::shared_ptr<Params> _p, std::shared_ptr<Time> _t) { BoundingBox worldBB; worldBB.m_minx = -21.f; worldBB...
#include "iostream" #include "iostream" #include "QString" #include "volumeinfo.h" #include "volumeutility.h" #include "QDebug" #include "rawvolumedataio.h" #include "volumeutility.h" #include "display3droutines.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <memory> #inclu...
#include <assert.h> #include "hud.h" #include "cl_util.h" #include "const.h" #include "com_model.h" #include "studio.h" #include "entity_state.h" #include "cl_entity.h" #include "dlight.h" #include "triangleapi.h" #include "SDL2/SDL_opengl.h" #include <stdio.h> #include <string.h> #include <memory.h> #i...
/* $Id: handler.cc 142 2013-02-23 22:25:32Z rjh $ * * Copyright (c) 2011-2012, <NAME> <<EMAIL>> * and others. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear ...