text
stringlengths
3.08k
12.5k
#include "Chunk.h" Chunk::Chunk(const Vector3& position, ChunkManager* cm, TerrainGenerator* wGen) : chunk(position), chunkW(position), chunkT(position), chunkBuilder(this), pos(position) { m_pWorldGen = wGen; waterChunk = false; transparentChunk = false; chunkManager = cm; ...
#include "Arguments.h" #include <string.h> #include <iostream> #include "config.h" arguments::arguments(int argc, char *argv[]) { argInt = 0; parse(argc, argv); if (args["file"]) { argStr = getFileName(argc, argv); } if (args["filled"] || args["empty"]) { argInt = getInt(argc, argv)...
#include "FrameLib_Trace.h" #include <algorithm> // Constructor FrameLib_Trace::FrameLib_Trace(FrameLib_Context context, const FrameLib_Parameters::Serial *serialisedParameters, FrameLib_Proxy *proxy) : FrameLib_AudioOutput(context, proxy, &sParamInfo, 2, 0, 1) , FrameLib_IO_Helper(static_cast<FrameLib_DSP&>(*this))...
/* * 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 * distributed u...
#include "ForeignInfluenceDecisions.h" std::regex createIdeologyRegex(const std::set<std::string>& majorIdeologies); void HoI4::ForeignInfluenceDecisions::updateDecisions(const std::set<std::string>& majorIdeologies) { const auto ideologyRegex = createIdeologyRegex(majorIdeologies); for (auto& category: decision...
///////////////////////////////////////////////////////////// // // // Copyright (c) 2003-2017 by The University of Queensland // // Centre for Geoscience Computing // // http://earth.uq.edu.au/centre-geoscience-computing // // ...
/** * Copyright 2020 Huawei Technologies Co., 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 copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed ...
#include "Table.hpp" #include "Module/TableServer.hpp" #include "Module/PlayModule.hpp" #include "Module/AuthModule.hpp" #include "Module/DataModule.hpp" #include "LogServer.hpp" #include "NetUtility.hpp" #include "database.hpp" #include "db/Player.hpp" #include "Player_odb.h" #include "CardProvider.hpp" #include "Sys...
#include <SDL/SDL.h> #if SDL13 #include <SDL_keysym.h> #define SDLK_EQUALS '=' #define SDLK_LEFTBRACKET '[' #define SDLK_RIGHTBRACKET ']' #define SDLK_SEMICOLON ';' #define SDLK_BACKSLASH '\\' #define SDLK_COMMA ',' #define SDLK_PERIOD '.' #define SDLK_SLASH '/' #endif #include <cstddef> #include <cassert>...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2021 INRIA. * * 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 * *...
/* * EXTI test (Maple Mini only). * * Setup: For i from 0 to N_EXTI-1 (see below), connect exti_pins[i] * to src_pins[i]. Connect via SerialUSB and press a key to perform a * test run. In the printed results For each EXTI within a test run, * the number triggered should match the number handled. */ #include <...
#include <dirent.h> #include <unistd.h> #include <string> #include <vector> #include <iostream> #include "linux_parser.h" using std::stof; using std::string; using std::to_string; using std::vector; string LinuxParser::OperatingSystem() { string line; string key; string value; std::ifstream filestream(kOSPath...
// // Created by rika on 12/10/2019. // #include "Frame/LPC_Frame.h" #include "LPC_huber.h" using namespace Eigen; using LPC::Huber::huber_s; static double H_quantile(const ArrayXd & a, double factor); static void H_mad(const ArrayXd & x, double * inout_location, bool wantLocation, double * out_mad); static double H...
/* Copyright (c) 2017-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 Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, ...
/* The MIT License Copyright (c) 2015 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
// Copyright 2020 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 in w...
#include "Config.h" #include "Logging.h" #include <cmath> using namespace dfi; //DFI string Config::DFI_REGISTRY_SERVER = "172.18.94.10"; // string Config::DFI_REGISTRY_SERVER = rdma::Config::getIP(rdma::Config::RDMA_INTERFACE); uint16_t Config::DFI_REGISTRY_PORT = 7300; uint16_t Config::DFI_REGISTRY_RDMA_MEM = 40...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Wagerr developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // clang-format off #include "net.h" #...
#include "Structs.hpp" #include "Transformer.hpp" #include <llvm/Analysis/DebugInfo.h> #include <llvm/Analysis/DIBuilder.h> #include <llvm/Constants.h> #include <llvm/IntrinsicInst.h> #include <llvm/DerivedTypes.h> #include <llvm/LLVMContext.h> #include <llvm/Module.h> #include <llvm/ValueSymbolTable.h> #include "llv...
#include <iostream> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <GL/glew.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> //#include "main.h" #include "../lib/Initialization.h" #include "../lib/Shader.h" #include "../lib/SimpleModel.h" #include "../lib/FloatCam.h" using namespace std;...
#include <iostream> #include <stdio.h> #include <cuda_runtime.h> #include "utils/timer.h" #include "graph.h" #include "approx.h" // Conditional Compilation for timing the code using #ifdef TIMER. // Set the macro using -DTIMER from the command line using namespace std; void write_output_to_file(const char* filenam...
// Copyright 2018 The Fuchsia 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 <unistd.h> #include <memory> #include <vector> #include "utils.h" #include "vulkan_command_buffers.h" #include "vulkan_command_pool.h" #include ...
#include "commands.h" const command_descriptor command_table[] = { { { "aliases", 0 }, 0, 0, cmd_aliases, "aliases", "List all command aliases." }, { { "breakpoint", 0 }, 0, 0, cmd_bp_list, "breakpoint", "List all current breakpoints." }, { { "breakpoint", ...
// // issuing-authority.cc // License++ // // Copyright © 2018-present Amrayn Web Services // https://amrayn.com // // See https://github.com/amrayn/licensepp/blob/master/LICENSE // #include <cmath> #include <iostream> #include <license++/issuing-authority.h> #include <license++/license.h> #include <license++/lic...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2016, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * R...
/* * Copyright (c) 2015-2016 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
#include <message.h> #include "board.h" #include "banner.h" #include "sequence.h" static const uint16_t trigger_pulse_length = 5; static const uint16_t trigger_led_length = 10; static sequence_t *chan[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; static const uint8_t nchan = sizeof(chan) / sizeof(*chan); static volatile bool upda...
#include "config.h" #include "constantsAndGlobals.h" #include "utils.h" bool loadConfig() { File configFile = LittleFS.open("/config.json", "r"); if (!configFile) { Serial.println("Failed to open config file! (does it exist?)"); return false; } else { Serial.println("Opened config file."); } ...
#include <vector> #include <string> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include "../../base/stereo_sgm.h" #include "../../../core/format_helper.h" void CalculateDepthImage(const cv::Mat& disp_img, const double* calib, cv:...
#include <cstring> #include <fstream> #include <iostream> #include <sstream> #include <string> #include "grammar.h" #include "parse.h" #include "reader.h" #include "theme.h" #include <time.h> using namespace parse; grammar_ptr load(std::string path) { Json::Value json = loadJson(path); return parse_grammar(...
#include <windows.h> #define COMPILE_MULTIMON_STUBS #include <multimon.h> #include <vector> #include <fstream> #include <filesystem> #include <iostream> #include <locale> struct res{ int x; int y; bool operator== (const res& other) { return x == other.x && y == other.y; } bool operator!=...
// // APFEL++ 2017 // // Authors: <NAME>: <EMAIL> // #include <cmath> #include <iostream> #include <apfel/timer.h> #include <apfel/evolutionsetup.h> #include <apfel/initialiseevolution.h> #include <apfel/rotations.h> #include <LHAPDF/LHAPDF.h> #include <LHAPDF/GridPDF.h> // Function that construct an LHAPDF::GridPD...
/* * Copyright (C) 2015 <NAME> */ #include <map> #include <vector> #include "include/ModuleAAResults.h" #include "include/lib/DynAlias.h" #include "include/lib/IndirFcnTarget.h" #include "include/lib/UnusedFunctions.h" #include "llvm/Pass.h" #include "llvm/PassSupport.h" #include "llvm/IR/Function.h" #include "llv...
/* MT ops Author : <NAME> (<EMAIL> @ github.com/DimitrisVlachos) */ #include "mt.hpp" #include "aligned_heap.hpp" extern "C" { #include <pthread.h> #include <unistd.h> } uint8_t* g_thread_ctx_heap_entry = 0; pthread_t* g_thread_context = 0; ptrdiff_t** g_thread_co...
/* * Player - One Hell of a Robot Server * Copyright (C) 2000-2003 <NAME> <EMAIL> * <NAME> <EMAIL> * * 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...
// Copyright (c) 2014-2020 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
#include <stdexcept> #include "Snake.h" const int MIN_COLLISION_LEN = 4; Snake::Snake(int blockSize) { m_size = blockSize; // TODO: doesn't look to be a responsibility of this class m_bodyRect.setSize(sf::Vector2f(m_size - 1, m_size - 1)); Reset(); } Snake::~Snake() {} void Snake::Reset() { m_snakeBody.clear...
/* * Copyright (c) 2019, the neonavigation authors * 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, ...
#include <SDL.h> #include <cairo.h> #include "GdiPlusFlat.h" #include "testhelpers.h" //GpStatus GdipCreateFromXDrawable_linux(Drawable d, Display* dpy, GpGraphics** graphics); #define CHECK_GDIP_ST(st) do { if(st != Ok) { g_print("got st: %d expected Ok", st); } } while (0) extern GpStatus GdipCreateFromSDL(SDL_...
/* zookeeper_test.cc <NAME>, 2 July 2012 Copyright (c) 2012 Datacratic. All rights reserved. Test of zookeeper interface. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "jml/utils/smart_ptr_utils.h" #include "jml/utils/vector_utils.h" #include "jml/util...
#define _USE_MATH_DEFINES #include <cmath> #include <iostream> #include "camera.hpp" #include <glm/glm.hpp> Camera::Camera(std::string const& n, float angle, glm::vec3 const& position, glm::vec3 const& direction, glm::vec3 const& upvektor) : name_{n}, fov_x_{angle}, eye_{position}, dir_{ direction }, up_{ upvekt...
//===-- lib/MC/Disassembler.cpp - Disassembler Public C Interface ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "common/RingBuffer.hpp" #include <boost/atomic.hpp> #include <boost/ref.hpp> #include <boost/thread.hpp> #include <gtest/gtest.h> #include <stdexcept> TEST(TestRingBufferManually, read_buffer) { uint32_t const size = 32; std::vector<uint32_t> buf(size); RingBuffer<uint32_t> ring(&buf[0], size); ...
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with...
/////////////////////////////////////////////////////////////////////// // // Test SDK // // $Workfile: testsdk.cpp $ // $Archive: /Cerebus/Human/LinuxApps/cbmex/testsdk.cpp $ // $Revision: 1 $ // $Date: 10/22/12 12:00a $ // $Author: Ehsan $ // // Purpose: // This is the test suite to run test stubs // //...
#include "ModelObj.h" ModelObj::ModelObj(string filename) { bool ret =load_obj(filename.c_str(), _vertices, _normals, _elements); if(ret) { initVBO(); } } ModelObj::ModelObj() { } ModelObj::~ModelObj() { } bool ModelObj::load_obj(const char* filename, vector<glm::vec3> &vert...
#include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <sstream> #include <string> #include <vector> #include <numeric> #include <cmath> using namespace std; const int BASE = 100; const long long inf = 12345678123456123LL; long long...
#include <vector> #include <iostream> #include <climits> #include <iomanip> #include <algorithm> #include <queue> using namespace std; struct Edge { int src; int dst; int weight; }; const int UNKNOWN = 1e9; static unsigned long int next_random = 1; int rand(void) { next_random = next_random * 1103515245 + 123...
#include <cstdio> #include <cstring> #include <cassert> #include <set> #include <vector> #include <iterator> #include <algorithm> using namespace std; #define NMAX 200000 #define S 1000 #define BMAX (((NMAX) + (S) - 1) / (S) + 1) #define INC 0 #define DEC 1 #define L 0 #define R 1 #define ID(x) (x / (S)) #define M...
#include "StdAfx.h" #include "shndecoder.h" struct ShnPlayUtilFileStream { ShnPlayStream vtbl; FILE * file; }; typedef struct ShnPlayUtilFileStream ShnPlayUtilFileStream; int ShnPlayUtilFileStream_Read(ShnPlayStream * stream, void * buffer, int bytes, int * bytes_read) { ShnPlayUtilFileStream * _thi...
#include "funset.hpp" #include "rapidjson/document.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" #include <iostream> #include <fstream> #include <string> #include "common.hpp" // Blog: https://blog.csdn.net/fengbingchun/article/details/91139889 int test_rapidjson_parse() { #ifdef _MSC_VER co...
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: main.cpp (trainers_test) // Authors: <NAME> // //////////////////////////////////////////////////////////////////////////////////////////////////// // da...
// // VROTypeface.cpp // ViroKit // // Created by <NAME> on 3/13/18. // Copyright © 2018 Viro Media. 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 ...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 <NAME> <<EMAIL>> // Copyright (C) 2014 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this fil...
// Copyright 2020 The Fuchsia 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 "legacy-mem-config.h" #include <lib/zircon-internal/e820.h> #include <zircon/assert.h> #include <zircon/boot/image.h> #include <efi/boot-service...
#include <platform.h> #define CIMPLE_NO_VERSION_SYMBOL #include <cimple/config.h> #include <cstdio> #include <cstdlib> #include <cstring> #define MAX_BUFFER_SIZE 4096 #ifdef _WIN32 # define PATH_DELIMITER_CHAR ';' # define X_OK 00 # include <windows.h> # include <io.h> # include <direct.h> # define unlink _unlink # d...
/* 09/23/2017 Copyright Tlera Corporation Created by <NAME> Library may be used freely and without limit with attribution. */ #include "ICM42605.hpp" ICM42605::ICM42605(I2C_HandleTypeDef* i2c_bus) : _i2c_bus(i2c_bus) {} uint8_t ICM42605::getChipID() { return readByte(ICM42605_WHO_AM_I); } float ICM42605::ge...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
#include <gtest/gtest.h> #include <trak/shared_enum.hpp> #include <trak/shared_bitfield.hpp> using namespace trak; enum class A : unsigned int { First, Second, Third }; enum class B : unsigned int { First, Second, Third }; enum class C : unsigned int { First, Seco...
#include "srl/app/ArgumentParser.h" #include "srl/Console.h" #include "srl/sys/SystemInfo.h" #include "srl/sys/CpuInfo.h" using namespace SRL; using namespace SRL::System; void basic_info() { uint32 maxi, eax, ebx, edx, unused; // get the max function value (value we set eax when calling cpuid) Syste...
#include <algorithm> #include "quadrature_tau.h" Quadrature_Tau::Quadrature_Tau(const std::shared_ptr<Movec_Parser> basis) : Tau(basis) { tau = { 459.528454529921248195023509, 0.002176143805986910199912, 75.647524700428292021570087, 0.013219203192174486943822, 27.63585571053883427339314...
/*############################################################################ # Copyright (C) 2019 Intel Corporation # # SPDX-License-Identifier: MIT ############################################################################*/ /// @example 02_decode_accelerator_select.cpp /// Demonstration of video decode ac...
/** * autonomous.cpp * See autonomous.hpp for details. * * Copyright (c) 2019 FRC Team 2655 - The Flying Platypi * See LICENSE file for details */ #include <team2655/autonomous.hpp> #include <chrono> #include <sstream> #include <regex> #include <fstream> #include <iostream> #include <algorithm> ...
#include <windows.h> #include "chandler.h" #ifdef _UI95_PARSER_ // List of Keywords & functions to handle them enum { CCUR_NOTHING=0, CCUR_SETUP, CCUR_SETRANGES, CCUR_SETCOLOR, CCUR_SETBOXCOLOR, CCUR_SETPERCENTAGE, }; char *C_Cur_Tokens[]= { "[NOTHING]", "[SETUP]", "[RANGES]", "[COLOR]", "[BOXCOLOR]", "[...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include <map> #include <cstdlib> #include <cstring> #include <sys/stat.h> #include <sys/types.h> #include "sequence.h" #include "model.h" #include "scores.h" #include "params.h" using namespace std; const char *const program_name = "PSAR"; c...
#include "loadpng\lodepng.h" #include <vector> #include <algorithm> #include <ctime> #include <chrono> #include "image_data.h" #include "downscale_cpu.h" #include <iostream> std::vector<float> random_shifts() { return std::vector<float>{ 0.45827556, 0.81700253, 0.10976018, 0.94226881, 0.92507905, ...
#include "lbs_linear_boltzmann_solver.h" #include "ChiMath/SpatialDiscretization/FiniteElement/PiecewiseLinear/pwl.h" #include "ChiPhysics/chi_physics.h" #include "chi_log.h" #include "chi_mpi.h" extern ChiLog& chi_log; extern ChiMPI& chi_mpi; extern ChiPhysics& chi_physics_handler; //##############################...
/// @file ImageElement.cc /// /// @copyright (c) 2015 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// <EMAIL> /// /// This file is part of the ASKAP software distribution. /// /// The ASKAP soft...
// Przygotowane na podstawie programow ze stron: // https://www.geeksforgeeks.org/trie-insert-and-search/ // https://www.geeksforgeeks.org/trie-delete/ #include <iostream> #include <list> #include <string> #include <vector> #include <utility> // make_pair() #include <cassert> // assert() //using namespace std; c...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyright (c) 1997 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
#include "../headers/Entity.h" Entity::Entity(Point pos, int angle, NeuralNetwork *dna) : pos(pos), angle(angle), dna(dna), score(0) {} void Entity::reborn(Entity * parent1, Entity * parent2) { crossover(parent1->dna, parent2->dna); } void Entity::draw(sf::RenderWindow * window) { sf::CircleShape body(ENTIT...
#include <string> #include <iostream> #include <vector> #include <functional> // reference_wrapper //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Inheritance @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
// // GRDistribution.cpp // GRObservations // // Created by <NAME> on 07.04.2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #include <cmath> #include <algorithm> #include <fstream> #include "GRDistribution.h" double GRDistribution::kolmogorovSmirnovProbability(double distance, double n1, double n2) ...
#include <stdio.h> // several constraints, defined by the problem statements const int MaxN = 100; const int Max = 1000; // dis[x][y] is the shortest path from x to y, tr[] is the segment tree, used // for getting the smallest answer and book-keeping when answer is updated, // ans[x][y] means there are at least this ...
/* $Id: ppdtable.cc 4143 2008-12-08 23:23:55Z abehm $ Copyright (C) 2007 by The Regents of the University of California Redistribution of this file is permitted under the terms of the BSD license Date: 01/14/2006 Author: <NAME> <rares (at) ics.uci.edu> */ #include "ppdtable.h" PPDTable::PPDTable(const...
/* Listed requirements are under requirement Trick-153 (3.7.1.1) */ /* Real-time control shall be able to use a system clock source */ #include <iostream> #include <sys/types.h> #include <signal.h> #include <sys/time.h> #include <map> #include "gtest/gtest.h" #include "trick/GetTimeOfDayClock.hh" #include "trick/J...
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
#include "CommanderUI.h" #include "ofMain.h" #include "ofxUI.h" #include "ofxUIAutoCompletePanel.h" #include "extension\EventsRegistrar.h" #include <boost/algorithm/string.hpp> //TODO: move to string utility #include <algorithm> void CommanderTabUI::setup() { length = 320; spacing = OFX_UI_GLOBAL_WIDGET_SPACING; ...
/*----------------------------------------------------------------- Not Copyright (ɔ) 2019 - 2020 FlameKat53 Pk11 RocketRobz StackZ ------------------------------------------------------------------*/ #include "includes.h" using namespace std; static char path[PATH_MAX]; static bool dmTextPrinted = ...
//-*- Mode: C++; indent-tabs-mode: nil; tab-width: 4 -*- /* The MIT License (MIT) * * Copyright (c) 2016 <NAME> * <EMAIL> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the So...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth 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; e...
#include "MarchingSquares.h" #include <array> void MarchingSquares::add_vertex(int x, int y, uint8_t edgeType, float isoValue, std::vector<std::tuple<Eigen::Vector3d, int, bool>>& vertices, std::unordered_map<int, int>& edgeToVertexMap) { const Array2d& levelSetValues = m_levelSet.x(); int x1 = x; int y1 = y; int ...
/* queue.cpp Implements Inmemory Queue functionality and file system interaction's ------------------------------------------ MIT License 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 "So...
#include "Auth.h" #include "Chat.h" #include "net/Listener.h" #include "net/ListenerClient.h" #include "auth/KeyCache.h" #include <net/PacketTypes.h> #include <net/EPAuth.h> #include <Logging.h> #include <io/Format.h> #include <util/Signature.h> #include <openssl/rand.h> #include <cereal/archives/portable_binary.hp...
/* * Copyright (c) 2014-2017 <NAME>, vollmann engineering gmbh * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ #include <string> #include <utility> #include <memory> #include <functional> #include <cstdin...
#include "../include/GeneSequence.h" extern bool answerReverse; extern bool reversed; int GeneSequence::stateCost(HillClimbingState state){ int cost = 0; vector<int> lengths; int maxlength = 0; for (string s : state.orientation) { lengths.push_back(s.size()); if (s.size() > maxle...
#include "bloom-shader.hpp" #include "color-range.hpp" #include "random.hpp" #include "sliders-sfml.hpp" #include "sliders.hpp" #include <iostream> #include <vector> #include <SFML/Graphics.hpp> // struct Context { Context() : random() , window(sf::VideoMode(1920, 1200), "Screensaver", sf::Style:...
/* ** Copyright (C) 1998-2006 <NAME> <<EMAIL>> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program...
// Shasta. #include "Assembler.hpp" #include "Align4.hpp" #include "MemoryMappedAllocator.hpp" #include "orderPairs.hpp" using namespace shasta; // Standard library. #include "array.hpp" // Python-callable version. void Assembler::alignOrientedReads4( ReadId readId0, Strand strand0, ReadId readId1, Strand st...
// SpatialGridDetector.cpp // // <NAME> // Last updated: 09/14/2015 #include "SpatialGrid.h" AABB::AABB( const Array2s& min, const Array2s& max ) : m_min( min ) , m_max( max ) { assert( ( m_min < m_max ).all() ); } bool AABB::overlaps( const AABB& other ) const { // Temporary sanity check: internal code shouldn'...
#include "ws_server_plain.h" #include <memory> #include <string> #include <thread> #include <utility> #include <vector> #include "common/net/ext.h" #include "common/util/log.h" #include "ws_session.h" WsServer::WsServer(const WsServerOptions &options) : options_(options) { VLOG(2) << __func__; } WsServer::~WsSe...
#include <sstream> #include "CodeWriter.h" #include "InvalidCommand.h" const std::unordered_map<std::string, std::string> CodeWriter::s_CmdMap = { {"add", "+"}, {"sub", "-"}, {"and", "&"}, {"or", "|" }, {"eq", "JEQ"}, {"lt", "JLT"}, {"gt", "JGT"}, {"not", "!"}, {"neg", "-"} }; const std::unordered_map<std::s...
#include "b66/b66.h" #include "b66/marshal_int.h" #include <cstdio> #include <gtest/gtest.h> #include <ios> #include <iostream> #include <limits> #include <random> namespace { TEST(TestB66, SmokeTest) { using ::ec_prv::b66::dec; using ::ec_prv::b66::enc; std::string o; std::vector<uint8_t> a{0x04, 0x08, 0x99, 0xf...
/*------------------------------------------ POPFONT.C -- Popup Editor Font Functions ------------------------------------------*/ #include <windows.h> #include <commdlg.h> #include "Footy2.h" static LOGFONT editfont ; static LOGFONT tabfont ; static LOGFONT tempeditfont ; static LOGFONT temptabfont ;...
// // Created by ttand on 18-2-11. // #include <assert.h> #include <cstdlib> #include <iomanip> #include <fstream> #include <iostream> #include <unordered_map> #include <chrono> // Header files. #include <android/choreographer.h> #include <cstring> //#include "shaderc/shaderc.hpp" #include "util.hh" #include "Instan...
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <cstring> #include <string> #include <algorithm> #include <ctime> #include <cstdlib> #include <queue> using namespace std; //for list node class G_adj_list_node{ public: int vertex; int weight; G_adj_list_node * next; G_adj_list_nod...
#include "TcpSender.hpp" #include <boost/asio.hpp> using boost::asio::deadline_timer; using boost::asio::ip::tcp; TcpSender::TcpSender(boost::asio::ip::tcp::resolver::query endpoint) : Sender(), stopped_(false), endpoint(endpoint), socket(io_service), deadline(io_servi...
/* Copyright (c) 2021, <NAME>. All rights reserved. */ /* SPDX-License-Identifier: MIT */ #include <fstream> #include <iostream> #include <list> struct Cube { bool has_limited_size() { return std::abs(x0) <= 50 && std::abs(x1) <= 50 && std::abs(y0) <= 50 && std::abs(y1) <= 50 && st...