text
stringlengths
54
60.6k
<commit_before>#define DEBUG 1 /** * File : E.cpp * Author : Kazune Takahashi * Created : 2019-6-1 23:15:51 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack> ...
<commit_before>/* * Copyright (c) 2014 Zubax, zubax.com * Distributed under the MIT License, available in the file LICENSE. * Author: Pavel Kirienko <[email protected]> */ /* * This file was originally written in pure C99, but later it had to be migrated to C++. * In its current state it's kinda written i...
<commit_before>/* Copyright 2009 University of Helsinki 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 applicabl...
<commit_before>// MIT License // // Copyright (c) 2016-2017 Simon Ninon <[email protected]> // // 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 li...
<commit_before>// main.cpp // euler // // Created by Duncan Smith on 19/10/2013. // Copyright (c) 2013 Duncan Smith. All rights reserved. // #include <iostream> #include "projects.h" int main(int argc, const char * argv[]) { const int max_multiple = 1e6; project_1(max_multiple); project_1_s(max_multiple...
<commit_before>/** * @file * * @brief Source for yamlcpp plugin * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ // -- Imports ------------------------------------------------------------------------------------------------------------------------------ #include "yamlcpp.hpp" #inc...
<commit_before> /* * Copyright 2008 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkImageDecoder.h" #include "SkImageEncoder.h" #include "SkMovie.h" #include "SkStream.h" #include "SkTemplates.h" #include "SkCG...
<commit_before>/* MIT License Copyright (c) 2017 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,...
<commit_before>#include "PositionModule.hpp" #include <assert.h> #include <sys/stat.h> #include <errno.h> #include <string> #include <ros/console.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include "sensor_msgs/Image.h" #include "api_application/Ping.h" #include "api_application...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/* This file is part of the Grantlee template system. Copyright (c) 2009,2010 Stephen Kelly <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; eithe...
<commit_before>/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file e...
<commit_before>/* * Copyright (c) 2017 Trail of Bits, 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 a...
<commit_before>#include "LARA1GUN.H" #include "CONTROL.H" #include "SPECIFIC.H" #ifdef PC_VERSION #include "GAME.H" #else #include "SETUP.H" #endif #include "TOMB4FX.H" #include "DRAW.H" #include "LARA.H" #include "LARAFIRE.H" #include "MISC.H" #include "OBJECTS.H" #include "ITEMS.H" char HKTimer = 0; char HKShotsFir...
<commit_before>/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2016 Baldur Karlsson * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docum...
<commit_before>/* * Copyright 2009 Ian Monroe <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) version 3,...
<commit_before>/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2016-2018 Baldur Karlsson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
<commit_before>#include "GameProcess.h" #include "Object.h" #include "Engine.h" #include "World.h" #include "App.h" #include "ToolsCamera.h" #include "ControlsApp.h" #include "MathLib.h" #include "Game.h" #include "Editor.h" #include "Input.h" #include "BlueRayUtils.h" using namespace MathLib; CGameProcess::CGamePro...
<commit_before>#include "Application.h" #include "DefaultSettings.h" #include "Database.h" #include "Player.h" #include "SmartmontoolsNotifier.h" #include "CdromManager.h" #include "OnlineDBPluginManager.h" #include "Database.h" #include "Player.h" /* * Derived form QCoreApplication * Set Organization name, domain a...
<commit_before>// // Copyright RIME Developers // Distributed under the BSD License // // 2012-06-05 GONG Chen <[email protected]> // #include <rime/common.h> #include <rime/composition.h> #include <rime/config.h> #include <rime/context.h> #include <rime/engine.h> #include <rime/key_event.h> #include <rime/schema.h> #...
<commit_before>// Day18.cpp : Defines the entry point for the console application. // #include "stdafx.h" const static size_t FieldSize = 100; typedef std::array<bool, FieldSize> Row; typedef std::array<Row, FieldSize> Field; typedef std::shared_ptr<Field> PField; static PField CreateField(const std::string & Input...
<commit_before>/* Copyright (c) 2012, Oliver Woodford Copyright (c) 2014, Florian Franzen 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 ab...
<commit_before>/* * VariableList.hpp * * Created on: 18.04.2016 * Author: Marc Hartung */ #ifndef INCLUDE_VARIABLELIST_HPP_ #define INCLUDE_VARIABLELIST_HPP_ #include "AdditionalTypes.hpp" #include <iostream> #include <vector> namespace NetOff { /*! \brief * * todo Marc! */ class Va...
<commit_before>#include "ouroboros_server.h" #include <server/data/data_store.hpp> #include <server/device_tree.hpp> #include <mongoose/mongoose.h> #include <server/rest.h> #include <sstream> #include <cassert> #include <slre/slre.h> namespace ouroboros { namespace detail { std::string bad_JSON(mg_connection* aCo...
<commit_before>//===- MapFile.cpp --------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>/* cbr * main.cpp * * Copyright (c) 2009, Ewen Cheslack-Postava * 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...
<commit_before>#include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <unistd.h> #include <fstream> #include <iostream> #include <time.h> #include <unistd.h> #include <sys/shm.h> #include "bcm_host.h" #include "GLES2/gl2.h" #include "EGL/egl.h" #in...
<commit_before>#pragma once #include "macro.hpp" #include <utility> namespace bh { namespace impl { template<typename ... T> class ScopeFuncImpl; template<> class ScopeFuncImpl<> {}; template<typename First_T, typename ... Rest_T> class ScopeFuncImpl<First_T, Rest_T...> : private ScopeFuncImpl<Rest_T...> { pri...
<commit_before>#include <iostream> #include <iomanip> #include <string.h> #include "../include/Suffix.h" #include "../include/Constants.h" #include "../include/Functions.h" using std::cout; using std::cin; using std::cerr; using std::setw; using std::flush; using std::endl; int main() { cout << "Enter sample str...
<commit_before>#include <fstream> #include <iostream> #include <string> #include "args.hpp" #include "code.hpp" #include "error.hpp" #include "parser.hpp" #ifndef VERSION #error No version was defined during the compilation process #endif int main(int argc, char **argv) { // @TODO: Make it possible through a flag...
<commit_before>/*************************************************************************** main.cpp ------------------- A brewing recipe calculator ------------------- Copyright (c) 1999-2007 David Johnson <[email protected]> All rights reserved. Redistribution and use in source and binary forms, with...
<commit_before>/* * Copyright (C) 2003 Hans Karlsson <[email protected]> * Copyright (C) 2003-2004 Adam Geitgey <[email protected]> * Copyright (c) 2005 Ryan Nickell <[email protected]> * * This file is part of SuperKaramba. * * SuperKaramba is free software; you can redistribute it and/or modify * it unde...
<commit_before>#include <iostream> #include <cstdlib> #include <signal.h> #include <unistd.h> #include "logger.hpp" #include "server.hpp" #include "parser.hpp" #include "config.hpp" #include "requestHandler.hpp" void handler(int sig) { RequestHandler::stop(); exit(0); } int main(int argc, char **argv) { std::ios_b...
<commit_before>#include <SPI.h> #include "RF24.h" #include <ArduinoHardware.h> /* Definições */ #define NUMBER_OF_ROBOTS 5 /* Declaração das funções */ void radioSetup(); void enviaMensagem(); void atualizaVelocidades(); /* Pinos para o rádio */ int CE = 3; int CS = 2; /* Objeto que gerencia o rádio */ RF24 radio(C...
<commit_before>#include <stdexcept> #include <limits> #include <algorithm> #include <array> #include <memory> #include <iomanip> #include <string> #include <sstream> #include <iostream> #include <fstream> #include <vector> //#include <sys/stat.h> #include <cerrno> #include <cstring> #include <system_error> #include <o...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include <future> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/mesh_chunk.h" #include "gfx/idriv...
<commit_before>// Minimal main example (with truss sdl) #include "truss.h" #include "truss_sdl.h" #include "addons/bgfx_nanovg/nanovg_addon.h" #include "addons/websocket_client/wsclient_addon.h" #include <iostream> #include <sstream> #if defined(WIN32) // On Windows, manually construct an RPATH to the `./lib` subdire...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include <future> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/mesh_chunk.h" #include "gfx/idriv...
<commit_before>#include "compiler.h" #include "mswin.h" #include "glinit.h" #include "model.h" #include "cmdline.h" #include <windowsx.h> // #include "tinyscheme-config.h" // #include <scheme-private.h> // #include <scheme.h> #include <cstdint> namespace usr { // Program name. static const TCHAR * const program_na...
<commit_before>#include <stdio.h> #include <iostream> /// The main function int main () { std::cout << "Hello !" << std::endl; return 0; }<commit_msg>Include headers for GLEW and glfw3<commit_after>#include <GL/glew.h> // to load OpenGL extensions at runtime #include <GLFW/glfw3.h> // to set up the OpenGL context...
<commit_before>#include <iostream> #include <boost/foreach.hpp> #include <boost/tokenizer.hpp> #include <string> #include <vector> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <unistd.h> #include <pwd.h> #include <cstdlib> using namespace std; using namespace boost; int main(int argc, char...
<commit_before>#include <boost/asio.hpp> #include <boost/filesystem.hpp> #include <boost/log/trivial.hpp> #include <boost/program_options.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <hadouken/application.hpp> #include <hadouken/logging.hpp> #include <had...
<commit_before>#include <algorithm> #include <iostream> #include <iomanip> #include <ios> #include <stan/mcmc/chains.hpp> #include <cmdstan/stansummary_helper.hpp> #include <fstream> void diagnose_usage() { std::cout << "USAGE: diagnose <filename 1> [<filename 2> ... <filename N>]" << std::endl ...
<commit_before>/* * main.cpp * */ #include "Robot.h" #include "Behaviour.h" #include "Action.h" #include <player-3.0/libplayerc++/playerc++.h> #include <iostream> #include <cstdlib> #define _GXX_EXPERIMENTAL_CXX0X__ #include <chrono> using namespace PlayerCc; using namespace std; int main(int argc, char **argv) ...
<commit_before>#include "circuit.h" #include "docopt.h" #include "evaluate_circuit.h" #include "global.h" #include "grid.h" #include "input.h" #include "memory.h" #include "ordering.h" static const char VERSION[] = "qFlex v0.1"; static const char USAGE[] = R"(Flexible Quantum Circuit Simulator (qFlex) implements a...
<commit_before>#include <iostream> #include "configure.hpp" #include "parsers/md_parser.hpp" #include "display_drivers/ncurses_display_driver.hpp" using namespace std; int main(int argc, char ** argv) { cout << "mdl v" << MDL_VERSION_STRING << endl; if (argc < 2) { cerr << "mdl: missing at least one argument" << ...
<commit_before>#include <string> #include <iostream> #include <fstream> using namespace std; #include "options.hpp" #include "version.h" int main(int argc, char * argv[]) { ifstream theFile; CmdLineOptions parsedOptions(argc, argv); cout << "awg20400-lattice-gen " << GIT_VERSION << endl; cout << "\nRunning via ...
<commit_before>// Copyright 2014 Open Source Robotics Foundation, 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 re...
<commit_before>/* This file is part of the PhantomJS project from Ofi Labs. Copyright (C) 2011 Ariya Hidayat <[email protected]> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source...
<commit_before>//======================================================================= // Copyright (c) 2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //========================================================...
<commit_before>#include <Arduino.h> #include <avr/wdt.h> #include <TinyGPS++.h> #include <idDHT11.h> #include <SDCard.h> #include <Utils.h> #include <PinMap.h> #ifdef DEBUG #include <MemoryFree.h> #include <SoftwareSerial.h> SoftwareSerial gpsSerial(8, 9); #endif SDCard sd(SD_PIN); TinyGPSPlus gps; Utils utils; bool...
<commit_before>/* Copyright (c) 2016, Mike Tzou All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions a...
<commit_before>#define DISTANCECMCRITICAL 20 #define DISTANCECMWARNING 30 #define PUBLSIHINTERVAL 1000 #define TRYFOLLOWLINEINTERVAL 3000 #define WAITINTERVAL 5000 #define MOVESPEED 100 #include <Arduino.h> #include <Streaming.h> #include <ArduinoJson.h> #include <MeMCore.h> enum direction { STOP, FORWARD, BACKWARD,...
<commit_before>/* * main.cpp * FaffoCue * * Copyright (C) Simon Harris 2010-2013. * * 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/. */ // This is very ro...
<commit_before>/* This file is part of VROOM. Copyright (c) 2015-2018, Julien Coupey. All rights reserved (see LICENSE). */ #include <fstream> #include <iostream> #include <sstream> #include <unistd.h> #if USE_LIBOSRM #include "osrm/exception.hpp" #endif #include "problems/vrp.h" #include "structures/cl_args.h" #...
<commit_before>#include "libtg.hpp" using namespace std; // argv[0] string exe; void usage() { cerr << "Usage mode: " << exe << " [options...] \n"; cerr << endl; cerr << "I/O options:\n"; cerr << "\t-i\t<file path>\tRead formula from file.\n"; cerr << "\t-oinfo\t<file path>\tAppend formula information to f...
<commit_before>/* * * Copyright 2016 Carmine Dodaro. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>/* * main.cpp * Copyright (c) 2015 Markus Himmel. All rights reserved. * Distributed under the terms of the MIT license. */ #include <algorithm> #include <iostream> #include <limits> #include <Directory.h> #include <Entry.h> #include <File.h> #include <FindDirectory.h> #include <NodeInfo.h> #includ...
<commit_before>#include <iostream> #include <thread> #include <time.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "../sdk/stb/stb_image_write.h" #include "renderer.h" // おおよそ30秒毎に、レンダリングの途中経過をbmpかpngで連番(000.png, 001.png, ...) で出力してください。 // 4分33秒以内に自動で終了してください。 #define WIDTH 256 #define HEIGHT 25...
<commit_before>/** * main.cpp * This file is part of MultitouchPadOsc * * * The MIT License * Copyright (c) 2012 Paul Vollmer, http://www.wrong-entertainment.com * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associate...
<commit_before>#include <cstdio> #include <SDL2/SDL.h> #include "draw.hpp" const char * game_name = "Game Of Life On Surface"; int screen_width = 640; int screen_height = 640; float R = 200; int px, py; vec3s delta = { 0, 0, 0 }; vec3s view_direction = {1, M_PI / 4, 0 }; field f(16, 32); bool quit_flag = false; bool b...
<commit_before>#include <stdio.h> #include <getopt.h> #include <string.h> #include "ftdi.hpp" #include "dionysus.hpp" #define PROGRAM_NAME "dionysus-ftdi" using namespace Ftdi; #define DEFAULT_ARGUMENTS \ { \ .vendor = DIONYSUS_VID, \ .product = DIONYSUS_PID, \ .debug = f...
<commit_before>#include <iostream> #include "DFA.h" using namespace std; int main() { DFA DFA_each; DFA_each.InputRegex();// DFA_each.InsertNode();// DFA_each.RegextoPost();//תΪ׺ʽ DFA_each.GetEdgeNumber();//ɨ沨ʽгַĿ DFA_each.Thompson();//Thompson취NFA DFA_each.NFAtoDFA();//Ӽ취 NFADFA DFA_each.Hopcroft();//СDFA㷨 DF...
<commit_before>/*! \file main.cpp * \brief Program to run the grid code. */ #ifdef MPI_CHOLLA #include <mpi.h> #include "mpi_routines.h" #endif #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "global.h" #include "grid3D.h" #include "io.h" #include "error_handling.h" int main(i...
<commit_before>#include <fstream> #include <iostream> #include <Refal2.h> using namespace Refal2; class CMyClass : public IVariablesBuilderListener, public IFunctionBuilderListener, public IScannerListener, public IParserListener { public: virtual void OnScannerError(const TScannerErrorCodes errorCode, char c); ...
<commit_before>#include "readimage.h" #include "gpudm.h" #include "parseconfig.h" #include "hyperspectral.h" #include <iostream> using namespace std; int main(int argc, char *argv[]){ if (argc < 3){ cout << "Usage: " << argv[0] << " infilename outfilename" << endl; exit(1); } readConfigFile("configfile.xml");...
<commit_before>#include "particle.hpp" #include "scene.hpp" #include <SFML/Graphics.hpp> #include <string> #include <iostream> #include <sstream> int main() { SmokeShape shape_ref; shape_ref.m_Shape.setRadius(10.f); Scene scene; sf::Font font; font.loadFromFile("menu_font.ttf"); sf::Text text; ...
<commit_before>#include <iostream> #include <memory> #include "DataLoader.h" int test0 () { DataLoader *loader = new DataLoader(); loader->e = 10; int e = loader->e; int r = loader->loadCSV(); cout << e + r << endl; return 0; } int test1 () { std::unique_ptr <DataLoader> loader(new DataLoader()); loa...
<commit_before>// BUG: this whole thing depends on the specifics of how the clang version I // am using emits llvm bitcode for the hacky RMC protocol. // We rely on how basic blocks get named, on the labels forcing things // into their own basic blocks, and probably will rely on this block // having one predecessor and...
<commit_before>/* * Copyright (c) 2013 Teragon Audio. 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 lis...
<commit_before>/** * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved. */ #include <iostream> #include <vector> #include <cstring> #include <dlfcn.h> #include <string> #import <Coc...
<commit_before> /* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is di...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before>#include <stdio.h> #include <string> #include <vector> #include <limits> #include "Halide.h" using namespace Halide; std::vector<std::string> messages; extern "C" void halide_print(void *user_context, const char *message) { //printf("%s", message); messages.push_back(message); } #ifdef _MSC_V...
<commit_before>/* Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. The MIT License(MIT) 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 li...
<commit_before>#include<iostream> using namespace std; // Creating a NODE Structure struct node { int data; struct node *next; }; // Creating a class STACK class stack { struct node *top; public: stack() // constructure { top=NULL; } void push(); // to insert an element ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2009, Willow Garage, 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: * * * Redistributions of...
<commit_before>/***************************************************************************//** * context.cpp * * The main root structure of cmgui. */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version *...
<commit_before>// @(#)root/thread:$Id$ // Authors: Enric Tejedor CERN 12/09/2016 // Philippe Canal FNAL 12/09/2016 /************************************************************************* * Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>// Copyright 2016 Samuel Austin // // 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...
<commit_before>#include "ajokki_callbacks.hpp" #include "cpp/ylikuutio/callback/callback_parameter.hpp" #include "cpp/ylikuutio/callback/callback_object.hpp" #include "cpp/ylikuutio/callback/callback_engine.hpp" #include "cpp/ylikuutio/common/any_value.hpp" #include "cpp/ylikuutio/ontology/text2D.hpp" #include "cpp/yli...
<commit_before>#ifndef FMO_RETAINER_HPP #define FMO_RETAINER_HPP #include <array> #include <vector> namespace fmo { /// A container for objects of type T, which must be default constructible and also must have a /// method named clear() which reverts the object to a state equivalent to that after default ...
<commit_before>// Copyright 2017 Global Phasing Ltd. #ifndef GEMMI_TO_CIF_HPP_ #define GEMMI_TO_CIF_HPP_ #include <fstream> #include "cifdoc.hpp" namespace gemmi { namespace cif { enum class Style { Simple, NoBlankLines, PreferPairs, // write single-row loops as pairs Pdbx, // PreferPairs + put '#'...
<commit_before>/* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>// Copyright 2014-2015 Open Source Robotics Foundation, 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 // // Unle...
<commit_before>#include "readDMAT.h" #include "verbose.h" #include <cstdio> #include <Eigen/Dense> // Static helper method reads the first to elements in the given file // Inputs: // fp file pointer of .dmat file that was just opened // Outputs: // num_rows number of rows // num_cols number of columns // Ret...
<commit_before>#include "command.h" #include "image.h" #include "algo/loop.h" #include "math/math.h" #include "image/average_space.h" #include "interp/linear.h" #include "interp/nearest.h" #include "interp/cubic.h" #include "interp/sinc.h" #include "filter/reslice.h" using namespace MR; using namespace App; const ch...
<commit_before>#pragma once /** @file @brief operator class @author MITSUNARI Shigeo(@herumi) @license modified new BSD license http://opensource.org/licenses/BSD-3-Clause */ #include <mcl/op.hpp> #include <mcl/util.hpp> #include <mcl/array_iterator.hpp> #ifdef _MSC_VER #ifndef MCL_FORCE_INLINE #define MCL_FORC...
<commit_before>/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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...
<commit_before>// Catch #include <catch.hpp> // C++ Standard Library #include <cstdlib> #include <cmath> // Armadillo #include <armadillo> // HOP #include <hop> TEST_CASE("Random rotation matrix", "") { SECTION("2-dimensional rotation") { arma::Col<double>::fixed<10000> angles; for (std::size_t n = 0; n <...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef WITHOUT_GPU_BACKEND #include "top.hpp" #include "os/os.hpp" #include "device/device.hpp" #include "rocsettings.hpp" #include "device/rocm/rocglinterop.hpp" namespace roc { Settings::Settings() { // Initialize the ...
<commit_before>// Copyright © 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. // // Author: Christian Kellner...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>// Copyright (c) 2015-2018 Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/sequences/ #ifndef TAOCPP_SEQUENCES_INCLUDE_FOLD_HPP #define TAOCPP_SEQUENCES_INCLUDE_FOLD_HPP #include <type_traits> #include "integer_sequence.hpp" #include "make_integer_sequence.hpp" #includ...
<commit_before>#include "keilo.hpp" namespace keilo { table::table(std::string table_name, std::string key) : name(std::move(table_name)), key(std::move(key)) { } table::table(std::string table_name, std::string key, std::list<record> instances) : name(std::move(table_name)), ...
<commit_before><commit_msg>Reverted "Leak TypeDescriptor_Init_Impl to avoid problems at exit."<commit_after><|endoftext|>
<commit_before>#include "GAMEFLOW.H" //#include "DRAW.H" #include "../SPEC_PSX/FILE.H" #include "../SPEC_PSX/MALLOC.H" #include <stdint.h> #include <string.h> //Temp #include <assert.h> unsigned char gfGameMode; unsigned char gfNumMips; int scroll_pos; char DEL_playingamefmv; char num_fmvs; char fmv_to_play[2]; un...
<commit_before>#include "LARA2GUN.H" #include "SPECIFIC.H" #include "LARA.H" #include "LARAFIRE.H" #ifdef PC_VERSION #include "GAME.H" #else #include "SETUP.H" #endif #include "DRAW.H" #include "OBJECTS.H" #include "EFFECTS.H" #include "SOUND.H" static struct PISTOL_DEF PistolTable[4] = { { LARA, 0, 0, 0, 0 }, { PI...
<commit_before><commit_msg>Crasher fix. Check for NULL.<commit_after><|endoftext|>