text
stringlengths
3.08k
22k
#include "memsSensor.h" #include <Arduino.h> #include <Wire.h> bool MemsSensor::memsInit(){ Wire.begin(); Wire.setClock(400000); // Read WHO_AM_I register for MPU-9250 if (readByte(WHO_AM_I_MPU9250) == 0x68 || readByte(WHO_AM_I_MPU9250) == 0x71){ if(initMPU9250() && initAK8963()){ return true; }e...
#include "Enclave_t.h" #include <string.h> #include "sgx_trts.h" #include <binn/binn.h> #include <scrypt/crypto_scrypt.h> const unsigned MAX_PASSWORD_SIZE = 1024; //NOTE: if you run into bus error, edit enclave.edl and modify the parameter lengths for strings char* password; //main password for entire keystore int ...
/** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
#include "batchpatchhandler.hpp" #include <iostream> #include <fstream> #include <sstream> #include <stdexcept> #include <opencv2/imgcodecs.hpp> #include <opencv2/core/mat.hpp> #include <ecvl/support_eddl.h> BatchPatchHandler::~BatchPatchHandler(){ cass_session_free(session); cass_cluster_free(cluster); } void ...
// <!--encoding UTF-8 UTF-8编码--!> /***************************************************************************** * ----Stay Hungry Stay Foolish---- * * @author : Shen * * @name : LightOJ 1358 ...
#include "actionclass.h" #include <SDL.h> #include "io.h" #include "camera.h" #include <thread> #include <qcolor.h> #include <cstdio> #include <ctime> #include "window.h" #include "rawrgbeds.h" #include "groundtruth.h" #include "qprocess.h" //Disable CHECK_CAMERA warning with empty arguments. #pragma warning (disable:...
#include "Data.hpp" #include "LoadingScreen.hpp" #include "unit.hpp" #ifdef __linux__ #include <jsoncpp/json/json.h> #include <jsoncpp/json/reader.h> #include <jsoncpp/json/writer.h> #include <jsoncpp/json/value.h> #else #include "json/json.h" #endif #include <fstream> #include <iostream> Data::Data(State& state) { ...
/* Image Uploader - free application for uploading images/files to the Internet Copyright 2007-2018 <NAME> (<EMAIL>) 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 ...
#include "../SparCraft.h" #include "../torch/TorchTools.h" #include "../cimg/CImg.h" using namespace SparCraft; using namespace cimg_library; #undef min #undef max using namespace SparCraft; const unsigned char White[3] = {255, 255, 255}; const unsigned char GridColor[3] = {25, 25, 25}; const unsigned char PlayerCo...
#include "Query.h" #include "Utils.h" #include "spdlog/spdlog.h" const std::vector<Query> &Query::as_queries() const { if (type != QueryType::AND && type != QueryType::OR && type != QueryType::MIN_OF) { throw std::runtime_error("This query doesn\'t contain subqueries."); } return queries;...
#include "spFragmentsMapper.h" #include "math.h" #include <limits> //Color filling algorithm------------------------------ sp::PixelList sp::fillWithColor(const std::vector<sp::vector3f>& data, sp::BitMap& bm, const BitMapTexture* texture) { bool hasTexture = false; if (texture != nullptr) hasTexture ...
//---------------------------------------------------------------------------// /*! * \file cxx_main.cpp * \author <NAME> * \brief Integral assembly transfer example. */ //---------------------------------------------------------------------------// #include <algorithm> #include <cassert> #include <iostream> #inc...
#include <codecvt> extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavutil/avutil.h> #include <libavutil/opt.h> #include <libswscale/swscale.h> #include <libswresample/swresample.h> } #include <string> #include <fmt/format.h> #include <infrastructure/stringutil.h> #include ...
#include <iostream> #include <fstream> #include <map> #include <cmath> #include <inttypes.h> #include "include/exporter.hpp" using namespace std; Exporter::Exporter(const Solver *new_solver){ if (new_solver == NULL) throw string("ERREUR: Pas de solveur a exporter"); solver = new_solv...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #include "CL/opencl.h" #include "AOCL_Utils.h" using namespace aocl_utils; // OpenCL runtime configuration cl_platform_id platform = NULL; unsigned num_devices = 0; cl_device_id *device; cl_context context = ...
// // Created by zhachen on 2019-05-23. // #include <memory> #include <limits> #include <gtest/gtest.h> #include "breeze.h" #include "common/buffer.h" #include "testmsg.breeze.h" #define DEFAULT_BUFFER_SIZE 200 template<typename T, typename V> void test_data(const T &data, V ret) { std::shared_ptr<BytesBuffer> b...
/** * @file parser.cpp * @brief Config file parsing code. * */ #include <string> #include "channel.h" #include "ctrl.h" #include "exception.h" #include "tokeniser.h" #include "tokens.h" #include "plugins.h" #include "process.h" #include "parser.h" #include "diamond.h" #include "midi.h" Tokeniser tok; // values...
#include "lcd.hpp" #include "utility.hpp" #include <string.h> namespace { uint8_t y = 0; uint8_t user_defined = 7; inline void rs_high() { LCD_RS_PORT |= _BV(LCD_RS_PIN); } inline void rs_low() { LCD_RS_PORT &= ~_BV(LCD_RS_PIN); } inline void e_high() { LCD_E_PORT |= _BV(LCD_E_PIN);...
#include <cstdlib> #include <cstring> #include <unistd.h> #include <cstdio> #include <csignal> #include <ros/time.h> #include "uvc_cam/uvc_cam.h" #include <theora/codec.h> #include <theora/theoraenc.h> #include <ogg/ogg.h> #include <vector> #include <string> const unsigned WIDTH = 640, HEIGHT = 480, FPS = 30; static b...
#include <hdf5.h> #include <iostream> #include <list> #include <string> #include <sstream> std::list<std::string> getTopLevelGroupNames(hid_t fd); std::list<std::string> getMidLevelGroupNames(hid_t gid); hid_t getGroupFromPath(hid_t fd, const std::string &path); bool attrExists(hid_t object, const char *attrname); ...
#include "main.h" // finding the subgraphs and their densities inline void tipDensity(vector<vertex>& vset, Graph& rightGraph, subcore* sc) { vector<vertex> allNeighbors; edge nEdgesSubgraph = 0; neighborsOfNeighbors(vset, rightGraph, allNeighbors, &nEdgesSubgraph); sc->nEdge = nEdgesSubgraph; sc->ed = (double) ...
#include "stdafx.h" #include "LogitechLEDLib.h" // #include "LogitechGame.h" #include <conio.h> #include <map> #include <string.h> #include <iostream> //using namespace std; std::map<char, LogiLed::KeyName> keymap; std::map<int, LogiLed::KeyName> keyCode; void init_keymap() { keymap['a'] = LogiLed::KeyName::A; ...
// $Id$ // // Copyright (C) 2008-2011 <NAME> // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // // Can be built with: // g++ -o sample.exe sa...
/** * Copyright (c) 2020 RogueLogix * * 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...
// Here's a wirish include: #include <usart.h> // libmaple access #include <wirish.h> #include "HardwareSerialFlowControl.h" /* the FT232R supports all standard baud rate and non-standard baud rates from 183 to 3Mb/s rate = 3000000/(n+x) n is an integer between 2 and 16384 (2^14) x can be a sub-integer...
#include "defns.h" #include "extern.h" #include "template.h" #include "datalog.h" #include "context.h" #include "query.h" #include "args.hpp" #include "config.hpp" #include <chrono> #include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <z3++.h> void redirectIO(){ if (getenv("...
// This source file is part of the Argon project. // // Licensed under the Apache License v2.0 #include <object/datatype/bool.h> #include "nodes.h" using namespace argon::object; using namespace argon::lang::scanner; using namespace argon::lang::parser; bool node_is_true(ArObject *self) { return true; } ArObje...
/* ** ClanLib SDK ** Copyright (c) 1997-2016 The ClanLib Team ** ** 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 a...
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
#include <iostream> #include <fstream> #include <sstream> #include <opencv2/highgui/highgui.hpp> #include "gauss.h" using namespace cv; using namespace std; struct rgba { unsigned char r; unsigned char g; unsigned char b; unsigned char a; }; struct pixel_index { size_t x, y; }; inline bool operator==(const...
/****************************************************************************** Test of CMMCore. A small test program to see interoparability of MMCore, OpenCV and Imgui Copyright, <NAME>, CSHL, 2021 *******************************************************************************/ #include <iostream> #include <open...
#include "source_code\Fpl_Headers_Precompiled.h" //#include "Fpl_Sec_Type_Gate.h" //init static members Tables *Fpl_Sec_Type_Gate::result_table=NULL; //Default constructor Fpl_Sec_Type_Gate::Fpl_Sec_Type_Gate(void){ //common Sys_Memory_Count::self()->add_mem((sizeof(Fpl_Sec_Type_Gate)-0*sizeof(Fpl_Random_Variables...
/* $Id: asio_proxy_connection.cpp 48153 2011-01-01 15:57:50Z mordante $ */ /** * @file * @brief Implementation of the client side proxy connection for the ana project. * * ana: Asynchronous Network API. * Copyright (C) 2010 - 2011 <NAME>. * * This file is part of the ana project. * * System: ...
/* * Created on: 03/12/2013 * Author: <NAME> */ #include "standard.h" #include "source.h" #include "utilities_slsim.h" //QuasarLF::QuasarLF // (double my_red // redshift // , double my_mag_limit // magnitude limit // , InputParams &params // input parameters (for kcorrec...
/** * @file lib_common.cpp * @author <NAME> <<EMAIL>> */ /* * Copyright (c) 2012-2019 CESNET, z. s. p. o. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, is permitted provided that the following conditions * are met: * * 1. Redistributions o...
/* * Copyright (c) <NAME> * MIT license */ #include "SoloMesh.h" #include "SoloEffect.h" #include "SoloDevice.h" #include "SoloFileSystem.h" #include "SoloJobPool.h" #include "gl/SoloOpenGLMesh.h" #include "vk/SoloVulkanMesh.h" #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess...
#include <map> //#include <math.h> #include <string> #include <sstream> #include "EventAnalysis.h" //================================================================================ // MATHEMATICAL AND ADDITIONAL FUNCTIONS //================================================================================ // struct u...
#include <iomanip> #include <iostream> #include <memory> #include <vector> #include "Angular_Discretization.hh" #include "Angular_Discretization_Parser.hh" #include "Basis_Function.hh" #include "Boundary_Source.hh" #include "Boundary_Source_Parser.hh" #include "Check_Equality.hh" #include "Constructive_Solid_Geometry....
// Copyright 2019-2020 <NAME> (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * MiniSimulation.cpp * * Created on: November 2019 * Author: <NAME> */ #include "int/adapters/RTDBOutputAdapter.hpp" #include "MiniSimulation.hpp" #include "pathPlanningTestDefaults.hpp" #include <boost/filesystem.hpp> #inclu...
#include "trainnnue.h" #include "board.h" #include "search.h" #include "fen.h" #include <thread> #include <fstream> #include <filesystem> #include <mutex> #include "evaluation.h" #include "movegen.h" class BitWriter { public: uint8_t* Data; size_t Offset; BitWriter(uint8_t* data) : Data(data) { ...
#include "Boss.h" // Boss constructor Boss::Boss() : Emitter(new SpriteSystem()) { // Emitter settings active = false; attacking = false; drawable = false; hasLeftArm = true; hasRightArm = true; canShoot = false; canTackle = false; started = false; shooting = false; hitAgain = true; physicsParticle.positio...
// bvh.cpp #include "bvh.h" #include "triangle.h" #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define MAX(a,b) ((a) > (b) ? (a) : (b)) // Build the BVH // // Each level has <= k children clustered with k-means. // // Upon call, there is guaranteed to be at least one triangle. #define K ...
#include <algorithm> #include <fstream> #include <iostream> #include <random> #include <utility> #include <vector> #include <cmath> #include <boost/program_options.hpp> #include <boost/format.hpp> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "d...
#include "DeliteCppProfiler.h" static std::vector< std::map<std::string,std::vector<cpptimer_t>*>* > *timermaps; static std::vector< std::stack< cpptimer_t > > kernelCallStacks; static std::vector< BufferedFileWriter* >* profileWriters; static std::vector< std::map<std::string, std::vector<PCMStats*>*>* > *memoryAcces...
#include "GL/freeglut.h" #include <cmath> #include <iostream> #include <sstream> #include <vector> #include "vecmath.h" using namespace std; // Globals int color_num = 0; float light_lp = 1.0; float light_rp = 1.0; const int buffer_size = 4096; // This is the list of points (3D vectors) vector<Vector3f> vecv; // Thi...
using namespace std; #include "detector.h" #include "polifitgsl.h" #include "helpers.h" #include <libconfig.h++> #define _USE_MATH_DEFINES #include <math.h> #include <cstdlib> #include <queue> #include <list> #include <chrono> #include <future> using namespace cv; using namespace std::literals::chrono_literals; //...
/* xerprn.f -- translated by f2c (version 20100827). This file no longer depends on f2c. */ #include "slatec-internal.hpp" /* Table of constant values */ static integer const c__4 = 4; static integer const c__1 = 1; int xerprn_(char const *prefix, integer const *npref, char const *messg, integer cons...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
/* ############################################################################## # © Copyright 2017-. Triad National Security, LLC. All rights reserved. # # This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos National Laboratory (LANL), which is operated by Triad National Security...
#include "ann.h" #include <iostream> #include <fstream> #include <sstream> #include <map> #include <unordered_map> using namespace std; #ifdef QT_BUILD #include <QtCore> #include <QDebug> #undef cout #define cout qDebug() #define print_endl #else #define print_endl cout<<endl; #endif typedef std::map<std::string, ...
// [branch 012] Include support for registering onCommit handlers: #include "/home/chao/gcc/src/gcc_trunk/libitm/libitm.h" #include "tm_utils.h" #include "memcached.h" // [branch 008] This is our 'safe' assert function... #if !defined(NDEBUG) void tm_assert_internal(const char *filename, int linenum, const char *funcn...
#include <iostream> #include <math.h> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif float camX = 00, camY = 30, camZ = 40; int startX, startY, tracking = 0; float alpha = 0, beta = 35...
#include <cassert> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; #define NMAX 100000 #define MOD 998244353LL #define INV4 748683265LL #define MODIFY 1 #define QUERY 2 typedef long long i64; i64 _inverse(i64 x) { return x == 1 ? 1 : MOD - MOD / x * _inverse(MOD % x) % MOD; } i...
#include <vcpkg/versiondeserializers.h> using namespace vcpkg; using namespace vcpkg::Versions; namespace { struct VersionDbEntryDeserializer final : Json::IDeserializer<VersionDbEntry> { static constexpr StringLiteral VERSION_RELAXED = "version"; static constexpr StringLiteral VERSION_SEMVER ...
#include "stdafx.h" #include "ImageBLP.h" CImageBLP::CImageBLP(const std::string & FileName) : CImageBase(FileName) { } CImageBLP::CImageBLP(const std::string & FileName, uint32 Width, uint32 Height, uint32 BitsPerPixel) : CImageBase(FileName, Width, Height, BitsPerPixel, false) {} CImageBLP::~CImageBLP() { } b...
//===- template.cpp --------------------------------------------*- C++ --*-===// // Copyright 2014 Google // // 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/l...
#include "named_pipe.h" /*** * named_pipe operator */ pthread_mutex_t namedpipefile_lock = PTHREAD_MUTEX_INITIALIZER; jclass clazz; jmethodID methodId; //isStop listen static bool isStop = false; static char *buffer_pool;//[BUFFER_POOLSIZE]; static int buffer_pool_datasize = 0; static int buffer_pool_capacity = 0; s...
/* * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
/* * RegisterManager.cpp * The BSD License * * Copyright (c) 2015, <EMAIL> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redist...
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Short Circuit Finder * UMass Darmouth * Senior Design ECE 457/458 * Team: <NAME>, <NAME>, <NAME> * Ref. Adafruit DotStar Library for controlling DotStar LED strip * Ver. V1 Atmel, converted from SCF_Arduino_Ver_8.ino */ //Include Files #include <Arduino.h> #include <Adafruit_DotStar.h> #include <SPI....
#include <QFontDatabase> #include <QHash> #include "IconFont.h" IconFontResolver::IconFontResolver(QObject* parent) : QObject(parent) { static bool initialized = false; if (!initialized) { initialized = true; QFontDatabase::addApplicationFont(":/IconFont.ttf"); } } quint16 IconFontResolve...
#include "inc/StreamProcessor.h" #include "inc/Message.h" #include "inc/RegDef.h" // #include "inc/common.h" #include "queue.h" #include "signal.h" #include "inc/ComputeUnit.h" #include "inc/CopyEngine.h" #include "inc/Memory.h" #include "stream.h" #include <unistd.h> inline uint64_t PackHighLow(uint32_t hi, uint32_t ...
/********************************************************************************* Copyright (C) 2014 <NAME> (<EMAIL>) Copyright (C) 2014 <NAME> (<EMAIL>) All rights reserved. This is an educational Ray Tracer developed for the course 'Informatica Grafica' (Computer Graphics) tought at Universidad de Zaragoza (Spain)....
#include <ctime> #include <iostream> #include <cstdlib> using namespace std; // Constants const int size = 500000; // global array int randomValues[size] = {}; //global pointer for the dynamically allocated array int *randomValues2; //bubblesort function. //sort the array void bubbleSort(int array_size, int arr[...
/* * Authors: <NAME> and <NAME> (CSIRO, 2011) * * Based on the sicklms.cpp from the sicktoolbox_wrapper ROS package * and the sample code from the sicktoolbox manual. * * Released under BSD license. */ #include <iostream> #include <sicktoolbox/SickLD.hh> #include "ros/ros.h" #include "sensor_msgs/LaserScan.h...
// src/argh/tests/argh.test.cc // v0.2.1 // // Author: <NAME> // Date: 09/26/2021 // // This file contains the unit tests for the argh library. // // Copyright (C) 2021 <NAME> <https://github.com/shrimpster00> // License: MIT <opensource.org/licenses/MIT> #include <gtest/gtest.h> #include "argh/argh.h" // Test the...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include <bitset> #include <dirent.h> #include <fcntl.h> #include <gc.h> #include <time.h> #include <unordered_map> #include "adaptors.hh" void usage(const char command[]) { std::cerr << "usage: [-b | --benchmark] [-t | --test] " << command << " <file>" << std::endl; } std::unordered_map<std::string, std::string> fi...
/* Copyright (C) 2016 by <NAME>, <NAME>, <NAME>, <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
/** * **************************************************************************** * Copyright (c) 2018, <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 sou...
#define GL_GLEXT_PROTOTYPES #include <GL/freeglut.h> #include <GL/gl.h> #include <iostream> #include <cmath> #include <SOIL/SOIL.h> #include <thread> // std::this_thread::sleep_for #include <chrono> // std::chrono::seconds #include "model/Camera.h" #include "util/ObjFileLoader.h" #include "model/Model...
/* Copyright (c) 2014 Nubisa, Inc. Copyright (c) 2005 JSON.org 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, me...
#include "e1NPC.h" #include "App.h" #include "m1Render.h" #include "m1Textures.h" #include "m1Audio.h" #include "m1EntityManager.h" #include "Brofiler/Brofiler.h" #include "p2Log.h" #include "m1Scene.h" #include "e1Player.h" #include "m1GUI.h" #include "u1Image.h" #include "m1Input.h" #include "m1DialogSystem.h" #inclu...
#include <sys/socket.h> #include <sys/types.h> #include "core/StatusPrinter.h" #include "mapreduce/common/CoordinatorClientFactory.h" #include "mapreduce/workers/sender/BaseSender.h" BaseSender::BaseSender( const std::string& phaseName, const std::string& stageName, uint64_t id, SocketArray& _sockets, uint64_t nu...
/* * Copyright (c) 2015-2018, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of cond...
#include <iostream> #include <fstream> #include <filesystem> #include <MatlabEngine.hpp> #include <MatlabEngine.hpp> namespace fs = std::filesystem; const std::vector<std::string> scene_names = { "office", "kitchen1", "kitchen2", }; // Extract file index XXXX from filename format "XXXX.jpg" and "XXXX.mat" int...
#include <vector> #include "inc/FcgiBridge.h" FcgiBridge::FcgiBridge(ClientSocket *socket, HttpResponse* response) { this->socket = socket; this->response = response; } int FcgiBridge::init_header(int type, int requestId, size_t contentLength, size_t paddingLength, FCGI_Header * header) { if (co...
// AED 2021/2022 - Aula Pratica 10 // <NAME> (DCC/FCUP) [09/01/2022] #include <gtest/gtest.h> #include <gmock/gmock.h> #include "graph.h" #include "funWithGraphs.h" #include "minHeap.h" #include "disjointSets.h" using testing::Eq; // ---------------------------------------------------------- // Exercicio 2: Heaps Bi...
#include <boost/program_options.hpp> #include <chrono> #include <cmath> #include <map> #include <random> #include <set> #include "../tools/util.hpp" #include "bases.hpp" #include "bilinear_form.hpp" int bsd_rnd() { static unsigned int seed = 0; int a = 1103515245; int c = 12345; unsigned int m = 2147483648; ...
#include "tracer.hxx" #include "diagnostic.hxx" #include <algorithm> #include <functional> #include <iostream> #include <vector> using namespace programr; using namespace std; namespace { template<class Node, class F1, class F2, class F3> void traverse_depth_first( Node root, const F1 &enter, // bool...
#include "Routing.h" #include "Project.h" #include "ProjectVersion.h" #include <cmath> //---------------------------------------- // Routing::CvSource //---------------------------------------- void Routing::CvSource::clear() { _range = Types::VoltageRange::Bipolar5V; } void Routing::CvSource::write(WriteConte...
#include <filesystem> #include <set> #include "wex.h" #include "inputbox.h" #include "window2file.h" #include <gdiplus.h> #include "cPathFinder.h" #include "cPathFinderReader.h" enum class eOption { file, costs, req, sales, span, cams, ortho, islands, }; eOption opt = eOption::file; v...
// // Simu5G // // Authors: <NAME>, <NAME>, <NAME> (University of Pisa) // // This file is part of a software released under the license included in file // "license.pdf". Please read LICENSE and README files before using it. // The above files and the present reference are part of the software itself,...
/************************************************************************* * Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved. * Modifications Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved. * * See LICENSE.txt for license information *******************************************...
// Copyright (c) 2013 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/test/chromedriver/chrome/devtools_http_client.h" #include <utility> #include "base/bind.h" #include "base/bind_helpers.h" #include ...
/* This code was released into the public domain by <NAME> on 6/2/2000. It is adapted from code released into the public domain by <NAME> on 2/29/2000. */ /* The code in this file should be "pure", in the sense that it should only access the physical state of the system through the API defined in api.h and ne...
/********************************************************************** Audacity: A Digital Audio Editor Prefs.cpp <NAME> *******************************************************************//*! \file Prefs.cpp \brief Utility functions for working with our wxConf (gPrefs) Audacity uses wxWidgets' wxConfig...
/* Formula Student Driverless Project (FSD-Project). Copyright (c) 2019: - chentairan <<EMAIL>> FSD-Project 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...
/* ### * IP: GHIDRA * * 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 writin...
/* * Copyright (c) 2013, 2018, 2020, 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 * notic...
// main18.cc is a part of the PYTHIA event generator. // Copyright (C) 2019 <NAME>. // PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // This is a simple test program. // It illustrates how to write an event filter. // No n...
// ----------------------------------------------------------------------- // // // MODULE : ParticleTrailSegmentFX.cpp // // PURPOSE : ParticleTrail segment special FX - Implementation // // CREATED : 4/27/98 // // ----------------------------------------------------------------------- // #include "stdafx.h" #includ...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2008, <NAME> LLC. * Copyright (c) 2015-2016, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
// Spear: Statistical Platform for Elucidating moleculAr Reactivity // Copyright (C) Purdue University -- BSD license #include "spear/FunctionalGroup.hpp" #include "spear/Molecule_impl.hpp" #include <boost/graph/vf2_sub_graph_iso.hpp> using namespace Spear; static std::string str_toupper(std::string s) { std::t...
#include <fstream> #include <nlohmann/json.hpp> #include <random> #include <chrono> using Json = nlohmann::json; constexpr auto width = 1000.0f, height = 500.0f, step = 0.2f; constexpr auto rw = 30.0f, woff = 31.0f, rh = 30.0f, hoff = 60.0f; std::mt19937_64 eng; struct Rect final { int idx, type; int val; ...
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC") // // 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 // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include <iostream> #include <sstream> #incl...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
#include <assert.h> #include <math.h> #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <list> #include <vector> #include "common.h" extern double size; #define cutoff 0.01 #define NUM_PARTICLES_PER_BUCKET 4.0 struct ExtraParticleInfo { struct { unsigned i, j; } bin; ExtraPart...
#include "Etterna/Globals/global.h" #include "EnumHelper.h" #include "Foreach.h" #include "GameConstantsAndTypes.h" #include "Etterna/Singletons/GameManager.h" #include "Etterna/Singletons/GameState.h" #include "LocalizedString.h" #include "Etterna/Singletons/LuaManager.h" #include "PlayerNumber.h" #include "RageUtil/U...