text
stringlengths
3.08k
12.5k
// ========================================================================== // Font File Reading Support Code for CPSC 453 // - requires the FreeType development libraries: http://www.freetype.org // // This module defines MySegment, MyContour, and MyGlyph data structures, as // well as a GlyphExtractor class that w...
/****************************************************************************************/ /* MinesweeperGame.cpp */ /****************************************************************************************/ /* Copyright (c) 2020-2021 <NAME>. ...
#include <cat.h> #include <algorithm> #include <exception.h> #include <flip.h> #include <iterator> #include <kv.h> #include <l.h> #include <lcutil.h> #include <o.h> #include <objectio.h> #include <type_pair.h> #include <ukv.h> #define DXX(X,Y) \ case TypeP...
#include "../../include/CascadeHash/HashConvertor.h" #include <cmath> #include <cstdlib> #include <cstring> HashConvertor::HashConvertor() { // generate the projection matrix for the primary hashing function (for Hamming distance ranking) for (int index_1 = 0; index_1 < kDimHashData; index_1++) { ...
#include "Kyty/Core/MSpace.h" #include "Kyty/Core/Vector.h" #include "Kyty/Math/Rand.h" #include "Kyty/UnitTest.h" UT_BEGIN(CoreMSpace); using Core::MSpaceCreate; using Core::MSpaceDestroy; using Core::MSpaceFree; using Core::MSpaceMalloc; using Core::MSpaceRealloc; using Math::Rand; static void test_fail() { size_...
// Boost.Polygon library voronoi_benchmark.cpp file // Copyright <NAME> 2010-2012. // 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) // See http://www.boost.org for updates, documentation, an...
//===- SaberSVFGBuilder.cpp -- SVFG builder in Saber-------------------------// // // SVF: Static Value-Flow Analysis // // Copyright (C) <2013-2017> <<NAME>> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publ...
/* $NetBSD: sh_boot.cpp,v 1.6 2002/02/11 17:08:56 uch Exp $ */ /*- * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modi...
/* * SSLClientSocket.cpp * * Created on: Dec 2, 2020 * Author: kub0x */ #include <iostream> #include <cstring> #include <string> #include <sstream> #include<unistd.h> //usleep #include "../Headers/SSLClientSocket.hpp" SSLClientSocket *thisPtr =0; void SSLClientSocket::InitSSL(){ std::cout << "Initializin...
/******************************************************************************/ /* censstat.cpp */ /* analysis of discrete levels with statistical model */ /****************************************************************************...
// // Test_Ambisonic_OSC.cpp -- C main functions for the CSL4 Ambisonic Encoding, Rotating & Decoding Demo. // See the copyright notice and acknowledgment of authors in the file COPYRIGHT // #include <stdio.h> #include "Test_Support.cpp" // include all of CSL core and the test support functions #include "OSC_support....
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/******************************************************************************* ** ** DESCRIPTION tools for filtering using the A trous algorithm ** ----------- ** ******************************************************************************/ #include "Atrou3DFil.h" //******************...
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
#include "modifiers/gdprocmerge.h" using namespace godot; void GDProcMerge::_register_methods() { } String GDProcMerge::get_type_name() { return "Merge"; } String GDProcMerge::get_description() const { return "Merges up to five surfaces into one."; } void GDProcMerge::_init() { // first call super class GDProc...
/* Copyright (c) 2019, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #include <iostream> #include "../../include/Errors.hpp" #in...
#include <llvm/Support/InitLLVM.h> #include <llvm/Support/CommandLine.h> #include "starbytes/AST/ASTNodes.def" #include "starbytes/RT/RTCode.h" #include <iostream> #include <fstream> namespace starbytes { using namespace Runtime; class Disassembler { std::istream & in; std::ostream & out; void _disasm_d...
#include "_module.h" #include "../policy/environment.h" BNRelationship::BNRelationship() { } BNRelationship::BNRelationship(const variant& json, BNBaseModel* parentObject) { _primaryType = json.stringVal("primaryType"); _secondaryType = json.stringVal("secondaryType"); _displayOrder = json.intVal("displayO...
// // simplest_ffmpeg_audio_player.cpp // ffmpeg // // Created by apple on 2019/12/24. // Copyright © 2019 apple. All rights reserved. // #include "simplest_ffmpeg_audio_player.hpp" extern "C" { #include <SDL2/SDL.h> #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #include <libswresample/swresam...
#include "headers/PathAlgorithm.h" #include <iostream> #include <queue> #include <map> #include <unistd.h> #include <QtConcurrent> #include <QFuture> static int countLauchBFS{}; //Constructor PathAlgorithm::PathAlgorithm(QObject* parent): QObject (parent) { } //Destructor PathAlgorithm::~PathAl...
#include <algorithm> #include <iostream> #include <limits> #include <vector> #define inf std::numeric_limits<float>::max() / 2 constexpr int DAYS = 5; constexpr int DAY_LEN = 6 * 60; void populate_tables( const std::vector<std::pair<int, float>>& hotels, std::vector<std::vector<float>>& min_ratin...
#include "multi_robot_explore_cpp/wfd_detector.hpp" WindowWFD::WindowWFD(geometry_msgs::msg::Pose robot_pose, int window_size){ robot_pose_ = robot_pose; e_util_ = ExploreUtil(); // frontier_calculate_time = 0; // total_exploration_time = 0; // empty_frontiers_counter = 0...
//============================================================================ // Name : Binary.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <b...
// // Created by <NAME> on 29/10/2018. // #include <any> #include <milecsa_queue.h> #include <milecsa.hpp> #include "db.hpp" #include "table.hpp" #include "names.hpp" #include "statistics.hpp" namespace milecsa::explorer::db { void migration(optional<Db> db); } using namespace milecsa::explorer; using namespace...
// // TDDToggle.cpp // Cocos2dxTDDLib // // Created by <NAME> on 6/8/14. // // #include "TDDSwitch.h" #define kMargin 5 // Internal Method namespace { void setNodeAlphaPremultiplied(Node *node) { if(node == NULL) { return; } BlendProtocol *ptr = dynamic_cast<BlendProtocol *>(node); if(ptr == NULL...
////////////////////////////////////////////////////////////////////////////////////////////////// // // file: stylus.cpp // // Author <NAME> (Neill3d) // // // GitHub page - https://github.com/Neill3d/MoPlugs // Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs/blob/master/LICENSE // //////////////////...
// // Created by 79164 on 18.11.2020. // #include "../inc/interaction.h" #include <string.h> #include <algorithm> #include <iostream> using namespace udp_server; DataProcessor::DataProcessor() { m_ready_file = false; }; DataProcessor::~DataProcessor() = default; DataProcessor::data_from_client DataProcessor::pr...
/// The MIT License (MIT) /// /// Copyright (c) 2015 <NAME> /// Copyright (c) 2015 BitBox, Ltd. /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including withou...
#include <iostream> #include <fstream> #include <iomanip> #include "utility.h" #include "triangle.h" using namespace std; // function reads the triangles' information from a given fileName // stores data into triangles vector void readTriangles(vector<Triangle> & triangles, const string & fileName) { // open the...
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <algorithm> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool neg=c=='-'; ne...
//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2018 <NAME>, University of Lausanne // // 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 wi...
/************************************************************************ Copyright 2021, eBay, 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 https://www.apache.org/licenses/LICENSE-2.0 ...
/* * SMJPEG muxer * Copyright (c) 2012 <NAME> * * This file is part of Libav. * * Libav 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) ...
#include "backtrack.hpp" #include "aimbot.hpp" #include "../helpers/math.hpp" #include <algorithm> void Backtrack::OnMove( CUserCmd *pCmd ) { if( !g_EngineClient->IsInGame( ) || !g_LocalPlayer || !g_LocalPlayer->IsAlive( ) ) { data.clear( ); return; } auto pWeapon = g_LocalPlayer->m_hActiveWeapon( ); if( !pWea...
#include <iostream> #include <string> #include <utility> #include "DotMapOutput.hh" #include "Filter.hh" #include "Map.hh" #include "RawTextMapInput.hh" using namespace std; // Cost function using distance between cities double distance_cost(Edge<double> e) { return e.distance(); } /******* Read data from stdin **...
/** * @file XmlGrowthRecorder.cpp * * @ingroup Simulator/Recorders * * @brief An implementation for recording spikes history in an XML file for growth simulations */ #include "XmlGrowthRecorder.h" #include "Simulator.h" #include "Model.h" #include "AllIFNeurons.h" // TODO: remove LIF model specific code #in...
#include <string> #include <vector> #include <map> #include <unordered_set> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; /* * The printk log buffer consists of a chain of concatenated variable * length records. Every record starts with a record header, containing * the overall le...
/** @file SkimOverlayEventsAlg.cxx @brief declartion, implementaion of the class SkimOverlayEventsAlg $Header: /nfs/slac/g/glast/ground/cvs/Overlay/src/Tasks/SkimOverlayEventsAlg.cxx,v 1.2 2011/12/12 20:54:55 heather Exp $ */ // Gaudi system includes #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/Alg...
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
/* * Copyright 2019 Xilinx, 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 agreed to...
/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */ #include "translate/AsynchronousTranslationWorker.h" #include "translate/AsynchronousTranslationManager.h" #include "translate/TranslationWorkUnit.h" #include "translate/llvm/LLVMTranslationContext.h" #include "translate/llvm/...
// Prob: https://practice.geeksforgeeks.org/problems/remove-duplicates-from-an-unsorted-linked-list/1# /******************************************************************************************************/ #include<bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define ull unsigned ...
/* * BSD 2-Clause License * * 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 source code must retain the above copyright notice, this...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
// https://gist.github.com/SuperV1234/5c5ad838fe5fe1bf54f9 //SELF #include "MyApp/Game.hpp" //LIBS #ifdef __EMSCRIPTEN__ #include <emscripten.h> #include <cstring> //memcpy for SDL #include <SDL.h> #define GL_GLEXT_PROTOTYPES 1 #include <SDL_opengles2.h> #else #include <cstring> //memcpy for ...
#include "Snap.h" #include <iostream> #include <fstream> #include <string> #include <chrono> using namespace std; using namespace chrono; //g++ -Wall -D__STDC_LIMIT_MACROS -O3 -DNDEBUG -o GraphExport GraphExport.cpp ../snap-core/Snap.o -I../snap-core -I../glib-core // Print graph statistics void PrintGStat...
/*************************************************************************/ /* doc_data.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright (c) 2015, <NAME> and <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 conditions ...
// //////////////////////////////////////////////////////// // # Title // Prime digit replacements // // # URL // https://projecteuler.net/problem=51 // http://euler.stephan-brumme.com/51/ // // # Problem // By replacing the 1st digit of the 2-digit number *3, it turns out that six of the nine possible values: 13, 23, ...
/* Foititis: <NAME> Tmima: <NAME> TEI Kavalas Mathima: Eidagogi ston Programmatismo Didaskon: <NAME> */ #include <iostream> #include <string> #include <stdlib.h> using namespace std; char pedio[10] = {'X','1','2','3','4','5','6','7','8','9'}; int CheckWinner(); void PrintTril(); int main(){ i...
//subtrees-and-paths.cpp //Subtrees And Paths //Weekly Challenges - Week 14 //Author: derekhh //Reference: //HLD: http://hzwer.com/2543.html #include<iostream> #include<string> #include<algorithm> using namespace std; #define inf 0x7fffffff #define N 100010 #define M 200010 int n, q, cnt, sz; int fa[N][21], deep[N...
// Copyright 2020 The Marl Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <omp.h> #include <algorithm> #include <chrono> #include <cmath> #include <cstdio> #include <ctime> #include <iostream> #include <iterator> #include <map> #include <sstream> #include <string> #include "partition_and...
/* * Copyright (c) 2013-2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html * */ #in...
/* * Copyright (c) 2015, msyksphinz * 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 conditi...
#include "StiDefaultTrackFilter.h" #include <stdexcept> #include <string> using std::string; #include "Sti/Base/Parameter.h" #include "Sti/Base/EditableParameter.h" #include "Sti/StiTrack.h" #include "StiDefaultTrackFilter.h" StiDefaultTrackFilter::StiDefaultTrackFilter() : EditableFilter<StiTrack>() {} StiDefault...
/* * adjust_gas_concentration_PetroOxy.cpp * * Created on: 23 May 2014 * Author: DetlevCM */ #include "../headers/Headers.hpp" // we know the volume of the PetroOxy Dish // We should let the user enter all other information /* Data is: * 0) Sample Size <- m^3 * 1) p Initial Pressure Pa * 2) T Target T...
#include "Text.hpp" Text::Text(GLFWwindow* theWindow, Camera* theCamera) { //::cout << "init Text" << std::endl; window = theWindow; camera = theCamera; textShader = new Shader("../src/Shader/text.vs", "../src/Shader/text.fs"); // text control lastText = ""; old = 0; textScale = 3.0f; FT_Library ft; if (F...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2018, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the follow...
#include "../include/da_functions.h" #include <algorithm> #include <assert.h> #include <cmath> DAVector potential(std::vector<DAVector>& field, unsigned int nv) { DAVector ptl; for(unsigned int i=0; i<nv; ++i) { DAVector ff = field.at(i); for(unsigned int j=i+1; j<nv; ++j) { DAVect...
#include "Globals.h" #include "Application.h" #include "ModuleRenderer3D.h" #include "SDL\include\SDL_opengl.h" #include <gl/GL.h> #include <gl/GLU.h> #include "C_Camera.h" #include "DevIL/include/IL/ilut.h" #pragma comment (lib, "lib/DevIL/lib/x86/Release/DevIL.lib") #pragma comment (lib, "lib/DevIL/lib/x86/Release/IL...
#include <wchar.h> #include <assert.h> #include <locale.h> #include <ctype.h> #include "CvxText.h" //==================================================================== //==================================================================== using namespace cv; // 打开字库 CvxText::CvxText(const char *freeType) { ...
#include <algorithm> #include "sphCpu.hpp" #include "utils.hpp" using namespace std; using namespace glm; SPHcpu::SPHcpu(SPHconfig &config, Bounds& _b): SPH{config, _b} { particlePosTmp.resize(config.particleN); particleVel.resize(config.particleN,{}); particlePos.resize(config.particleN); reset(); cellRecords.re...
#include <cstdio> #include <cstring> #include <iostream> #include <tuple> #include <utility> #include <vector> #include <argp.h> #include "common.h" #include "kernels.h" using std::make_tuple; using std::tuple; using std::string; using std::vector; using std::tie; // Program documentation. static char doc[] = "Xili...
/*========================================================================== * Copyright (c) 2005 University of Massachusetts. All Rights Reserved. * * Use of the Lemur Toolkit for Language Modeling and Information Retrieval * is subject to the terms of the software license set forth in the LICENSE * file include...
#include <exception> #include <iostream> #include <GL/gl3w.h> // Initialize with gl3wInit() #include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #include <GLFW/glfw3.h> #include "application.h" #include "settings.h" static void glfw_error_callback(int error, const char* ...
#include <cmath> #include <iostream> // for standard I/O in C++ #include <pigpio.h> // for handling the GPIO #include <unistd.h> // this one is to make usleep() work #include <string> #include "wheel_service.h" // Set up the PINS for access to the Alphabot #define AIN1 12 // BCM pin 12, to spin (left) wheel back...
#include "NexStar.h" NexStar::NexStar(byte txPin, byte rxPin, byte flagPin) { _txPin = txPin; _rxPin = rxPin; _flagPin = flagPin; _srcID = 0x0D; azimuthMC = new MotorController(this, 0x10); elevationMC = new MotorController(this, 0x11); _ss = new SoftwareSerial(rxPin, txPin); _ss->begin(19200); ...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015 Intel Corporation. All Rights Reserved. /////////////////////////////////////////////////////// // librealsense tutorial #3 - Point cloud generation // /////////////////////////////////////////////////////// // First include the libreals...
#include "EZExportBitmapAction.h" #include "RDocument.h" #include "RDocumentInterface.h" #include <QMessageBox> #include <QImageWriter> #include <QFileDialog> #include <QTextCodec> #include <QRegularExpression> #include <QRegularExpressionMatch> #include "RGraphicsView.h" #include "RGraphicsSceneQt.h" #incl...
#include "conserved_3d.hpp" using std::size_t; Conserved3D::Conserved3D(void) : mass(0), momentum(), energy(0), internal_energy(0), tracers() {} Conserved3D::Conserved3D(double mass_i, const Vector3D& momentum_i, double energy_i, double internal_energy_i) : mass(mass_i), momentum(momentum_i), energy(energy_i), i...
/** * @copyright BSD 3-Clause License * Copyright (c) 2019, @author <NAME> * Copyright (c) 2019, @author <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 sourc...
//===-- Debug.cpp - An easy way to add debug output to your code ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "Headers/mainwindow.h" #include "ui_mainwindow.h" #include "Headers/rvcreator.h" #include "Headers/presentcreator.h" #include "Headers/aboutwindow.h" #include "Headers/boss.h" #include "Headers/file.h" #include "Headers/utils.hpp" #include <QtDebug> static RV_Payload* g_RVData; static Present_Payload* g_Prese...
#include <iostream> #include "../includes/utils.h" int const DAY = 18; class SnailfishNumber { public: SnailfishNumber(int value, int nested_level = 0) { this->value = value; this->nested_level = nested_level; left_child = nullptr; right_child = nullptr; father = nullptr; ...
#include <iostream> #include <algorithm> #include <vector> template<class T, bool (*comparator)(T&, T&) > class Heap{ private: std::vector<T> vector; //base vector of heap int size; //number of elements void heapify(int i); //auxiliar function to maintain the hea...
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt /* This is an example showing how to define custom kernel functions for use with the machine learning tools in the dlib C++ Library. This example assumes you are somewhat familiar with the machine learning ...
#include "PermittivityTensorField.h" PermittivityTensorField::PermittivityTensorField( const VectorField<double> &lc_sol, const PhysicsCoefficients &coefs, double wavelength) : VectorField<double>(lc_sol.mesh, 12), no(coefs.get_no(wavelength)), ne(coefs.get_ne(wavelength)), eps_perp(std::pow(no,2.)), eps_a(...
#include "DX12APP.h" MYAPP::MYAPP(HINSTANCE hInstance, int nCmdShow, std::wstring winName, UINT winWidth, UINT winHeight, UINT FCount) :windowName(winName),windowWidth(winWidth),windowHeight(winHeight),FrameCount(FCount) { _aspectRatio = windowWidth / windowHeight; _renderTargets = new ComPtr<ID3D12Resource>[...
/* * Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * 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; ...
#include "rendering/utility/gl/GLShader.h" #include "rendering/utility/UnderlyingEnumType.h" #include "common/HZeeException.hpp" #include <glm/glm.hpp> #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <fstream> #include <iostream> #include <sstream> #include <unordered_map> namespace...
/* Author: <NAME> ........Aust Cse 27th batch......... */ //{ Template //{ C-headers #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <climits> #include <cfloat> #include <cctype> #include <cassert> #include <ctime> //} //{ C++-headers #include <iostream> #include <iom...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file excep...
#include <iostream> #include <string> #include <sstream> #include "../gboy/CPU.h" #include "json.hpp" using json = nlohmann::json; uint16_t convertHexaString(std::string hexstr) { uint16_t res = 0; std::stringstream ss; ss << std::hex << hexstr; ss >> res; return res; } void loadCPURegisters(Cen...
// Copyright 2020 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include "test.h" #include <lib/arch/cache.h> #include <lib/code-patching/code-patching.h> #include <lib/zbitl/error_stdio.h> #in...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <cstdio> #include <cstdlib> #include <random> #include <omp.h> #include <unordered_map> #include <pthread.h> #include ...
// nc -U -l -k /tmp/mip.socket //#define MIP_DEBUG_PRINT_SOCKET #define MIP_NO_PLUGIN #define MIP_NO_GUI //#define MIP_GUI_XCB //#define MIP_USE_CAIRO //---------------------------------------------------------------------- #include "mip.h" #include "base/utils/mip_arguments.h" #include "claphost/mip_clap_plugin_ent...
#include "bilingual.hpp" #include <getopt.h> struct option_plus { const char *name; int has_arg; int *flag; int val; const char *desc; }; static vector<option_plus> options_plus = { {"help", no_argument, 0, 'h', "print this help message"}, {"verbose", ...
/************************************************************************************************* * Example of money transfer using lambda processors * * 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. ...
// sgmm/estimate-am-sgmm-multi-test.cc // Copyright 2009-2012 <NAME> // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at /...
#include <gtest/gtest.h> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <thread> #include <vector> #include "N.h" #include "Tree.h" #include "nvm_mgr.h" #include "pmalloc_wrap.h" #include "threadinfo.h" using namespace NVMMgr_ns; inline void clear_data() { system("rm -rf /data/pmem0/roart/mati...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2011 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 <NAME> // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include "auxpow.h" #inc...
// jhcRcvZMQ.cpp : reads information from a ZeroMQ stream // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2018-2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in...
#include "be_sunsoft.h" #include "ast_expression.h" #include "utl_identifier.h" #include "utl_idlist.h" #include "utl_string.h" #include "ace/OS_NS_stdio.h" #include "ace/OS_NS_string.h" #include "ace/OS_NS_ctype.h" TAO_SunSoft_OutStream::TAO_SunSoft_OutStream (void) : TAO_OutStream () { } TAO_SunSoft_OutStream::~T...
#include <bits/stdc++.h> using namespace std; #define PI 2*acos(0) #define ll long long int bool myAssert(bool b); void testDrivenDevelopment(); int start(int argc=0, char const *argv[] = NULL); void build(int pos, int L, int R); void build(); void singleUpdate(int index, int val,int pos, int L, int R); void singl...
/*========================================================================= Program: Visualization Toolkit Module: UnitTestImplicitVolume.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribut...
// Boost.Geometry Index // Unit Test // Copyright (c) 2016 <NAME>, Lodz, Poland. // Use, modification and distribution is subject to 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 <rtree/test_rtree.hpp> #include <boost/...
/** Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
/* 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...