text
stringlengths
5.71k
33.7k
// Copyright (c)2020 Black Sphere Studios // For conditions of distribution and use, see copyright notice in innative.h #include "innative/sourcemap.h" #include "constants.h" #include "utility.h" #include <algorithm> #include <fstream> namespace innative { namespace sourcemap { typedef IN_ERROR (*fnParseObject)...
/* * linux/kernel/system_call.cc * * (C) 2021 <EMAIL> */ /* * system_call.cc contains the system-call low-level handling routines. * This also contains the timer-interrupt handler, as some of the code is * the same. The hd- and flopppy-interrupts are also here. * * NOTE: This code handles signal-recogniti...
/* Copyright (c) 2016 <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, sublicen...
/**************************************************************************** * * Copyright (c) 2018-2019 PX4 Development Team. 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. Red...
#include "unicorn/string.hpp" #include "unicorn/character.hpp" #include "unicorn/unit-test.hpp" #include "unicorn/utf.hpp" #include <iterator> #include <vector> using namespace RS; using namespace RS::Unicorn; using namespace std::literals; void test_unicorn_string_manip_fix_left() { Ustring s; TEST_EQUAL(s...
// // Created by <NAME> on 2019-04-28. // #include <mpi.h> //#include "/usr/local/opt/libomp/include/omp.h" #include <omp.h> #include <iostream> #include <algorithm> #include <vector> #include <stddef.h> #include <fstream> #include <sstream> #include <math.h> #include "Node.h" #include "DatasetBuilder.h" #define NUM_...
#include "skadi/sample.h" #include <cmath> #include <cstddef> #include <fstream> #include <future> #include <limits> #include <list> #include <mutex> #include <regex> #include <stdexcept> #include <string> #include <unordered_map> #include <unordered_set> #include <boost/optional.hpp> #include <lz4frame.h> #include <...
/*Copyright (c) 2016, The Linux Foundation. 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 o...
/** * Rabbit.cc code is ported from rabbit.c by Cyptico A/S. The original code is * free for any use since 10/6, 2008. */ #include "rabbit.h" #include <string.h> #define U32V(v) ((uint32_t)(v) & 0x0FFFFFFFF) #define ROTL32(v, n) (U32V((v) << (n)) | ((v) >> (32 - (n)))) #define U32TO32_LITTLE(v) (v)...
#include "stdafx.h" #include "SoaEngine.h" #include "BlockData.h" #include "BlockPack.h" #include "ChunkMeshManager.h" #include "ChunkUpdater.h" #include "DebugRenderer.h" #include "GameSystemComponentBuilders.h" #include "PlanetGenLoader.h" #include "ProgramGenDelegate.h" #include "SoAState.h" #include "SpaceSystemAs...
#include <cmath> #include <iostream> #include <stdlib.h> #include "iapws/iapws.h" using namespace iapws; const double PI = 3.1415926535898; // Declare TH parameters. const double K_CLAD = 13.0; // T&K pg 394 //const double H_GAP = 4300.0; // T&K pg 428 const double RHO_FUEL = 10.97e3; // kg/m^3 T&K pg 392 const ...
#include "BVHNode.h" void BVHNode::Intersect(Ray& ray, vector<BVHNode>& hitNode) { float3 invD = 1.0f / ray.m_Direction; float3 min = bounds.minBounds; float3 max = bounds.maxBounds; float tmin = (min.x - ray.m_Origin.x) * invD.x; float tmax = (max.x - ray.m_Origin.x) * invD.x; if (tmin > tmax) { std::swap...
/* * Copyright 2017 <NAME> <<EMAIL>> */ #include <pgslam/pgslam.h> #include <pgslam/kdtree2d.h> #include <float.h> #include <sys/time.h> #include <Eigen/Eigen> #include <iomanip> #include <iostream> #include <sstream> using pgslam::Pose2D; using pgslam::Echo; using pgslam::LaserScan; using pgslam::GraphSlam; using...
// Copyright (c) 2011-2019 The Bitcoin Core developers // Copyright (c) 2011-2019 The Particl developers // Copyright (c) 2018-2021 Veil developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/transactionrecord.h...
/* * FreeGLUT Shapes Demo * * Written by <NAME> 2003 * * This program is test harness for the sphere, cone * and torus shapes in FreeGLUT. * * Spinning wireframe and smooth shaded shapes are * displayed until the ESC or q key is pressed. The * number of geometry stacks and slices can be adjusted ...
/************************************************************************* * Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #include "ibvwrap.h" #include <sys/types.h> #include <...
/******************************************************************************* Copyright (c) 2015, <NAME> To cite academic use of Voxelyze: <NAME> and <NAME> "Dynamic Simulation of Soft Multimaterial 3D-Printed Objects" Soft Robotics. March 2014, 1(1): 88-101. Available at http://online.liebertpub.com/doi/pdfplus/10....
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include "gpcres.h" extern U1 gpaALFsub[]; gpcRES* gpcRES::compiEASY( U1* pS, U1* pE, U1** ppE, gpcRES* pM ) { if( pE ) if( pS >= pE ) return this; gpcRES* pTHIS = this ? NULL : new gpcRES( pM ); if( pTHIS ) return pTHIS->compiEASY( pS, pE, ppE, pM ); else if( !this ) return NULL; if( ppE ) *ppE = pS; ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "mlas.h" #include "bench_util.h" #include <stdexcept> #include <numeric> static std::vector<std::string> BuildArgNamesForConv(size_t rank) { std::vector<std::string> names = {"Rank", "N", "G", "Cpg", "Fpg"}; ...
//GiGaHeRz's SPU2 Driver //Copyright (c) 2003-2008, <NAME> <<EMAIL>> // //This library is free software; you can redistribute it and/or //modify it under the terms of the GNU Lesser General Public //License as published by the Free Software Foundation; either //version 2.1 of the License, or (at your option) any later ...
#include "IsapiStress.h" // Globals HANDLE hLogFile = INVALID_HANDLE_VALUE; void Usage() { _tprintf(_T("Usage:\n\r")); _tprintf(_T("IsapiStress /s:<IISServer> /v:<VirtualDirectory> /d:<Directory> /f:<FileName> /l:<LogFileName> /? <Usage>\r\n")); _tprintf(_T("Where:\r\n")); _tprintf(_T("\t<IISServer> ...
#include "BuildQueue.hpp" #include "DagData.hpp" #include "MemAllocHeap.hpp" #include "MemAllocLinear.hpp" #include "RuntimeNode.hpp" #include "Scanner.hpp" #include "FileInfo.hpp" #include "FileSystem.hpp" #include "AllBuiltNodes.hpp" #include "SignalHandler.hpp" #include "Exec.hpp" #include "Stats.hpp" #include "Stat...
// -*- C++ -*- // // Package: EvtPlaneProducer // Class: EvtPlaneProducer // /**\class EvtPlaneProducer EvtPlaneProducer.cc RecoHI/EvtPlaneProducer/src/EvtPlaneProducer.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME> // Created: ...
// @HEADER // ************************************************************************ // // Intrepid Package // Copyright (2007) Sandia Corporation // // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive // license for use of this work by or on behalf of the ...
#include "features.h" #include "interfaces.h" #include "entity.h" #include "EventListener.h" #include "drawing.h" #include "config.h" #include "helpers.h" #include "netvars.h" #include <iostream> #include <thread> #include <iomanip> #define FL_JUMP 6 LocalPlayer* localPlayer; vec3 newAngles{ 0, 0, 0 }; namespace fea...
#include "pps_timer.h" #include "pipes.h" #include "pps_sysapi.h" #include "pps_message.h" #include "pps_service.h" #include <thread> #include <chrono> #define TIMER_QUEUE_LEN 4096 #define TIMER_TASK_POOL_CAP 4096 #define TIMER_TASK_SLOT_NUM 65536 #define TIMER_MAX_TASK TIMER_TASK_SLOT_NUM-1000 struct timer_task { ...
/* * Copyright 2019 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in wri...
// TODO inefficient find_tag_by_work // TODO cache everything? // requesting_worker bool -> int? #include <glog/logging.h> #include <stdio.h> #include <stdlib.h> #include <queue> #include <assert.h> #include <unordered_map> #include <vector> #include "server/messages.h" #include "server/master.h" #include <stack> #inc...
#include "rest_shape.h" #include <vector> #include <iostream> #include <iomanip> #include <igl/edges.h> #include "../adjacency.h" #include <igl/cotmatrix.h> #include <igl/cotmatrix_entries.h> #include <igl/slice_into.h> #include "../timer.h" #include <omp.h> using namespace std; using namespace Eigen; typedef Tripl...
// // Copyright (c) 2014, <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: // // * Redistributions of source code must retain the // above copyright notice, this list of ...
#include "structs.h" #include "characters.h" #include "utils.h" #include "skills.h" #include "constants.h" /* * This file attempts to concentrate most of the code which must be changed * in order for new races to be added. If you're adding a new race, * you should go through this entire file from beginning to ...
//////////////////////////////////////////////////////////////////////////////// // // // Name: SimpleSignificance.cxx // // ...
// Copyright (c) 2020, QuantStack and Mamba Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #include <Rcpp.h> #include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> #include ...
#include "mainwindow.h" #include "ui_mainwindow.h" namespace bgslibrary { //template<typename T> IBGS* createInstance() { return new T; } //typedef std::map<std::string, IBGS*(*)()> map_ibgs; IBGS* get_alg(std::string alg_name) { map_ibgs map; map["FrameDifference"] = &createInstance<FrameDifference>; ...
/* * GendynSynthesis.cpp * * Created by <NAME> on 27/04/2009. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "GendynSynthesis.h" //not available //RGen& rgen = *mParent->mRGen; //use Objective C random function? //use arc4random() for cryptographic strength, is long range //(float)rand()/...
/* * Copyright 2021 <NAME> * * 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 * * or in the "license" file accompanying this f...
#include "toolbox_stdafx.h" #include "NewtonDemos.h" #include "DemoEntityManager.h" #include "SkyBox.h" #include "DemoMesh.h" #include "DemoEntity.h" #include "DemoCamera.h" #include "PhysicsUtils.h" #include "DebugDisplay.h" #include "dRuntimeProfiler.h" #include "OpenGlUtil.h" #define MAX_PHYSICS_LOOPS 1...
//------------------------------------------------------------------------------------------------ // File: LineFollower.cpp // Project: LG Exec Ed Program // Versions: // 1.0 April 2017 - initial version // Main line follower Program. This is the main program follows a line. // To invoke LineFollower <hostname>...
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */ #include <string> #include <iostream> #include <assert.h> #include "SystemContext.h" #include "dirent.h" #include "HandleExpLog.h" #include "IonErr.h" using namespace std; void SystemContext::DefaultSystemContext() { dat_source_directory = NU...
/* Copyright (C) 2012 <NAME> * * Optimist Racing 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 * (at your option) any later version. * * Optimist Racing is distrib...
/* SoLoud audio engine Copyright (c) 2013-2015 <NAME> 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, including commercia...
/* calculate_reliability_score_plugin.cpp * This plugin will generate the reliability score of neuron reconstruction. * 2015-4-27 : by <NAME>, <NAME>, <NAME> */ #include "v3d_message.h" #include <vector> #include "calculate_reliability_score_plugin.h" #include "src/topology_analysis.h" #include <fstream> using nam...
#include <cstring> #include "../vp8/util/memory.hh" #include "smalljpg.hh" #include "jpgcoder.hh" #ifdef _WIN32 #include <io.h> #else #include <sys/wait.h> #include <unistd.h> #endif #include <signal.h> #include <thread> #include "../vp8/util/nd_array.hh" #include "../io/MuxReader.hh" #include "../io/ioutil.hh" #ifdef ...
/** * The cpp file for the particle filter */ #include "ndt_mcl/CParticleFilter.h" using namespace mcl; CParticleFilter::CParticleFilter(){ Particles=NULL; Lik=0; outLiers=0; NumOfParticles=0; size=0; isAvgSet = false; } CParticleFilter::~CParticleFilter(){ //myfree(); } /** * Allocates...
#pragma once #include "stdint.hpp" #include "globals.hpp" #include "roms.hpp" #include "hwaudio/ym2151.hpp" #include "engine/audio/commands.hpp" #include "engine/audio/osoundadr.hpp" // PCM Sample Indexes namespace pcm_sample { enum { CRASH1 = 0xD0, // 0xD0 - Crash 1 GURGLE = 0xD1, // 0xD1...
// <NAME> College, alinen, 2020 // #include "AGL.h" #include "AGLM.h" #include <cmath> #include "particle-struct.h" using namespace std; using namespace agl; using namespace glm; void ParticleStruct::createParticles(int size) { mTexture = theRenderer.loadTexture("../textures/particle.png"); maxParticles = ...
//////////////////////////////////////////////////////////////////////////// // Module : ai_soldier_templates.cpp // Created : 23.07.2002 // Modified : 23.07.2002 // Author : <NAME> // Description : Templates for monster "Soldier" //////////////////////////////////////////////////////////////////////////// ...
#include "TcellGroup.h" #include "agent/ENISIAgent.h" #include "compartment/Compartment.h" #include "grid/Properties.h" #include "DataWriter/LocalFile.h" #include "agent/TcellODE.h" #include "grid/Borders.h" using namespace ENISI; TcellGroup::TcellGroup(Compartment * pCompartment, const double & NaiveTConcentrations)...
#include "native.h" #include <initguid.h> #include <tchar.h> #include <usbiodef.h> #include <windows.h> #include <devpkey.h> #include <cfgmgr32.h> // for MAX_DEVICE_ID_LEN and CM_Get_Device_ID #include <SetupAPI.h> #include <fcntl.h> #include <io.h> #include <memory> #include <QMap> #include <QSet> namespace winu...
/* ========================================================================================== Author: <NAME> Company: Filename: HOG.cpp Last modifed: 28.12.2016 by <NAME> Description: Straightforward (CPU based) implementation of the HOG (Histogram of Oriented Gradients) us...
#include "../../rng.h" #include "../../srv.h" #include "../threed.h" #include "../../draw.h" #include "../../common/slots.h" #include "../../tasks/screen.h" #include "../../fonts/tahoma_9.h" #include "mesh.h" extern matrix_type matrix; extern uint64_t rtc_time; extern srv::Servicer servicer; extern tasks::DispMan disp...
/* Searches for solutions to Karate Kid. */ #include <unistd.h> #include <sys/types.h> #include <string.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include "tasbot.h" #include "fceu/utils/md5.h" #include "config.h" #include "fceu/driver.h" #include "fceu/drivers/common/args.h" #include "fceu/state....
#include <cmath> #include "eph.h" #include "eph0.h" #include "eph_rsgs.h" #include "eph_rspl.h" #include "../tool.h" bool rsPL::nasa_r = 0;//为1表示采用NASA的视径比 std::array<double, 5> rsPL::sT;//地方日食时间表 std::string rsPL::LX; double rsPL::sf; double rsPL::b1; double rsPL::dur; double rsPL::sun_s; double rsPL::sun_j; double r...
/*************************************************************************** File : muParserScript.cpp Project : QtiPlot -------------------------------------------------------------------- Copyright : (C) 2006 by <NAME>, <NAME> Email (use @ for *) : ion_vas...
/** * @file main.cpp * * @brief File containing main Q-Learning algorithm and all necessary associated functions to implementing this routine. * * @author Machine Learning Team 2015-2016 * @date March, 2016 */ // Uncomment for use with Visual Studio C++ Compiler //#define _USE_MATH_DEFINES #include <...
/* This program just reads stdin, then writes the FIFO_COMMAND_FILE, then * maybe reads the FIFO_REPLY_FILE and echos what it read from the * FIFO_REPLY_FILE, and then repeats. */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #include <sys/stat.h> #include <err...
/* * Copyright (c) 2015, <NAME> * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistribution...
int bAKXF1, pd ,E ,lR2/*8*/ , gB, deBc , OPT ,rquKI ,lEXh //f , MhK ,p, Hat , xqA ,kd ,QAl7aj ,gsV , /*A*/LQ9x ,u9d ,nEP , Mi8 ,Coi ,Rz, gym , ZPqM , Ao , ZX,kMb,/**/P// , i8e,d54,/*V*/u8Up ; void f_f0 (){int M1j//no ; volatile int I , aT, Lwg9,SuE0 ,yQ//gXV ,GA7,J8M , kgNn7K//S5Z , Sl ,/...
/** Copyright 2019 JasmineGraph Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
// Copyright 2021 <NAME> // Licensed under the Apache License, Version 2.0. // (See accompanying file LICENSE.txt or copy at // http://www.apache.org/licenses/LICENSE-2.0) // SPDX-License-Identifier: Apache-2.0 #include <ampi/async_msgpack.hpp> #include <ampi/async_msgunpack.hpp> #include <ampi/event_sinks/hana_struc...
#include <botan-2/botan/tls_client.h> #include <botan-2/botan/tls_callbacks.h> #include <botan-2/botan/tls_session_manager.h> #include <botan-2/botan/tls_policy.h> #include <botan-2/botan/auto_rng.h> #include <botan-2/botan/certstor.h> #include <botan-2/botan/certstor_system.h> #include "../Message.hpp" #include "../Ut...
// Copyright (c) 2010 <NAME> // 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 "assert.h" #include "chainparams.h" #include "main.h" #include "util.h" #include <boos...
#include "mex.h" #include <iostream> #include <cmath> #include "drakeMexUtil.h" #include "RigidBodyManipulator.h" #include <stdexcept> #include <RevoluteJoint.h> #include <PrismaticJoint.h> #include <HelicalJoint.h> #include <RollPitchYawFloatingJoint.h> #include <QuaternionFloatingJoint.h> using namespace Eigen; usin...
// ================================================================================================ // -*- C++ -*- // File: tankdump.cpp // Author: <NAME> // Created on: 30/01/15 // Brief: Command line tool to display info about a DS Tank file and also // the possibility to decompress it entirely into a normal ...
/* $Id: EdgeSource.cpp,v 1.68 2014/01/27 10:14:12 severin Exp $ */ /*** NAME - EEDB::EdgeSource SYNOPSIS DESCRIPTION CONTACT <NAME> <<EMAIL>> LICENSE * Software License Agreement (BSD License) * ZENBU [EEDB] system * copyright (c) 2007-2013 <NAME> RIKEN OSC * All rights reserved. * Redistribution and use i...
#include "CGeometryBuilder.h" #include "CLogger.h" #include "CMesh.h" using namespace glm; const float PI = 3.141592; CGeometryBuilder::CGeometryBuilder(): m_Transform(1.0f), m_Offset(0), m_Color(0xFFFFFFFF) {} void CGeometryBuilder::addQuad(const glm::vec3 &v1, const glm::vec3 &v2, const glm::v...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/installer/util/google_update_settings.h" #include <algorithm> #include "base/command_line.h" #include "base/string_number_conversio...
#include "CoverageRasterizer.h" #include <cmath> #include <limits> culling::M256I culling::CoverageRasterizer::FillBottomFlatTriangle ( const Vec2& TileLeftBottomOriginPoint, const Vec2& point1, const Vec2& point2, const Vec2& point3 ) { assert(point2.x <= point3.x); assert(std::abs(point2....
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2015 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 "chainparams.h" #include "consensus/merkle.h" #include "tinyformat.h" #include "util.h...
#include "parser/parser.h" #include "parser/graph/node_graph.h" #include "parser/graph/flow_graph.h" #include "parser/generator.h" #include <cassert> #include <cctype> #include <fstream> #include <unordered_map> #include <algorithm> #include <stack> struct Namespace{ std::string name; int scope; }; struct ParsingDat...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * ...
/** * Contact: <EMAIL> */ #include "SAMWriter.h" #include <string.h> #include <sstream> #include <algorithm> #include <string.h> #include <cmath> #include "IConfig.h" #include "SequenceProvider.h" #include "NGM.h" #include "Version.h" //Format: http://samtools.sourceforge.net/SAM1.pdf static int const report_offs...
#include "LR35902.hpp" #include <cstring> // Memset LR35902::LR35902(MMU& mmu, Gb_Apu& apu) : _mmu(&mmu), _apu(&apu) { reset(); // Alignment checks. assert(&_a == &_r[0]); assert(&_b == &_r[1]); assert(&_c == &_r[2]); assert(&_d == &_r[3]); assert(&_e == &_r[4]); assert(&_h == &_r[5]); assert(&_l == &_r[...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <set> #include <cctype> using namespace std; set<string> tokenize(const string &t) { set<string> ret; for (int j=0; j<(int)t.size(); ++j) { ...
#include <gtest/gtest.h> #include <core/Frame2Model.h> #include <core/Preprocessing.h> #include <rv/PrimitiveParameters.h> #include "io/KITTIReader.h" #include <core/LieGaussNewton.h> using namespace rv; using namespace glow; // ground truth pose: 9.990498e-01 -1.649780e-03 4.355194e-02 5.154656e-02 1.760423e-03 9....
/* * Copyright (c) 2020-2021 <NAME> <<EMAIL>> * * specgram is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include "configuration.hpp" #include "args.hxx" #include "input-parser.hpp" #include "specgram.hpp" #include "fft.hpp" #include ...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <algorithm> #include <cstdlib> #include <iomanip> #include <limits> #include <map> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include <gflags/gflags.h> #include <open...
#include "esaSel.h" /** * @brief Checks if the input value matches one of the agricultural land cover code. * @param value: The input value. * @retval TRUE if the values matches and FALSE otherwise. */ bool checkLandCode(int value){ return (value == AGP) || (value == PAS) || (value == AGR) || (value ...
#include "EconGenModule.h" #include "EconGenModule.h" #include <math.h> #include "Logger.h" EconGenModule::EconGenModule(ITimeSeriesProvider* timeSeriesProvider) { // nra = timeSeriesProvider->get("nra"); nwi = timeSeriesProvider->get("nwi"); // Init db_type // sex, era, nra db_type[0][45][55] = 9.588; db_type...
#include "Atlas/Shading/DisneyPrincipled.h" #include "Atlas/Core/Math.h" namespace { Float schlickWeight(Float u) { const float m = atlas::clamp(1 - u, 0, 1); const float m2 = m * m; return m2 * m2 * m; // pow(m,5) } Float smithG_GGX(Float NdotV, Float alphaG) { Float a = alphaG * alphaG;...
#include <spatialops/SpatialOpsTools.h> #include <spatialops/structured/FVStaggeredFieldTypes.h> #include <spatialops/OperatorDatabase.h> #include <spatialops/structured/stencil/FVStaggeredOperatorTypes.h> #include <spatialops/structured/stencil/StencilBuilder.h> #include "test_stencil_helper.h" #include <test/TestH...
#include "gb_lcd.h" #include "gb_int.h" #include "gb_memory.h" #include "gb_sdl.h" #include "SDL.h" #include <algorithm> #include <cassert> /* LCD register getters / setters */ unsigned char LCD::get_lcdc() { return (control.bg_window_enabled << 0) | (control.sprites_enabled << 1) | (control.sp...
#include "common.hpp" #include "utils.hpp" #include "OBMol.hpp" #include "infile_reader.hpp" #include "log_writer_stream.hpp" #include "AtomEnergyGrid.hpp" #include "EnergyCalculator.hpp" #include "Optimizer.hpp" #include <iostream> #include <iomanip> #include <string> #include <boost/program_options.hpp> #include <bo...
/* * Copyright (c) 2018-present, <EMAIL>. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AlULayer.h" #include "HwTexture.h" #include "ObjectBox.h" #include "AlLayerPair.h" #include "AlRenderParams.h" #include "AlTexManager.h" #...
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Framework: Reg-Exp Router Date: 16 Apr 2019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */ #include <cassert> #include <iostream> #include <fstream> #include "dijkstra.hpp" #include "graph.hpp" #include "timer....
#define NOMINMAX #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "Shlwapi.h" #pragma comment( lib, "shlwapi.lib") #include <iostream> #include "ComplexSystem.h" #include "../../Core/Config.h" #include <string> #include <assert.h> #include <algorithm> #include <enumerate.h> #include <random> #include <queue> ...
// MeCab -- Yet Another Part-of-Speech and Morphological AnalyzerEnco // // $Id: feature_index.cpp 173 2009-04-18 08:10:57Z taku-ku $; // // Copyright(C) 2001-2006 <NAME> <<EMAIL>> // Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation #include <fstream> #include <string> #include <cstring> #include "...
#include <string> #include <string.h> #include <memory> #include <cstdlib> #include "tilemap_test.hpp" using namespace blit; static uint8_t layer_world[] = { 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 5...
#include "api.hpp" #include "testutil.hpp" #include <iostream> #include <string> double g_coords[51] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
/* PROJECT: Medo * AUTHORS: <NAME>, Melbourne Australia * COPYRIGHT: Zen Yes Pty Ltd, 2019-2021 * DESCRIPTION: Effect / Fade to Black/Alpha */ #include <cstdio> #include <cassert> #include <InterfaceKit.h> #include <translation/TranslationUtils.h> #include "Yarra/Render/Texture.h" #include "Yarra/Render/Scene...
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?). Doom 3 Source Code is free software: you can redistribute it and/or modify...
/********************************************************************** Audacity: A Digital Audio Editor Menus.cpp <NAME> <NAME> et al. *******************************************************************//** \file Menus.cpp \brief Functions for building toobar menus and enabling and disabling items *//*...
// Copyright 2018 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 "services/tracing/public/cpp/stack_sampling/stack_unwinder_android.h" #include <linux/futex.h> #include <sys/mman.h> #include <sys/stat.h> #incl...
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cstdlib> #include <deque> #include <list> #include <set> #include <thread> #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> #include <boost/asio.hpp> #include "EpilogCliServer....
/**@file sunmoon - 太陽、月の高度計算 * @copyright 2006,2014,2015,2018 <EMAIL> * $Id: sunmoon.cpp,v 1.3 2006-08-08 07:01:16 hkuno Exp $ */ #include <cstdio> #include <cstdarg> #include <cstdlib> #include <cstring> #include <ctime> #include "degree.h" #include "acoord.h" #include "planets.h" using namespace std; using names...
// // Created by <NAME> on 5/29/16. // #include <cmath> #include <iomanip> #include "SpeedTest.h" #include "MD5Util.h" #include <netdb.h> SpeedTest::SpeedTest(float minServerVersion): mLatency(0), mUploadSpeed(0), mDownloadSpeed(0) { curl_global_init(CURL_GLOBAL_DEFAULT); mIpInfo = IPI...
#include <sstream> #include <cmath> #include <SDL.h> #include <SDL_image.h> #include <SDL2_rotozoom.h> #include <SDL_ttf.h> #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 450 #define BACKGROUND_COLOR 255, 255, 255, 255 #define LVL_W 18 #define LVL_H 10 #define SCALE 5 #define BLOCKSIZE 10 void tick_delta(double& delt...
/**************************************************************************/ /* */ /* WWIV Initialization Utility Version 5 */ /* Copyright (C)2014-2021, WWIV Software Services */ /* ...
// Clang Build Analyzer https://github.com/aras-p/ClangBuildAnalyzer // SPDX-License-Identifier: Unlicense #include "BuildEvents.h" #include "Arena.h" #include "Colors.h" #include "Utils.h" #include "external/cute_files.h" #include "external/flat_hash_map/bytell_hash_map.hpp" #include "external/llvm-Demangle/include/D...