text
stringlengths
54
60.6k
<commit_before>// Maintainer: Jan Kristian Sto. Domingo [[email protected]] // exec.cpp for rshell #include <iostream> #include <cstring> #include <string> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> using namespace std;...
<commit_before>/* Copyright (c) 2003, Arvid Norberg 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 condi...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 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...
<commit_before> #include "game.hpp" #include "seoSplasher/splashState.hpp" #include "seoSplasher/splashMenu.hpp" // set packfile name/filepath if one is being used #define PACKFILE_NAME "seoSplasherResources.dat" // set to true if a packfile is being used #define IS_USING_PACKFILE true // if not using cmake to buil...
<commit_before>// Copyright 2011 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 require...
<commit_before>/* * Copyright (c) 2015, Yahoo Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ #include <vector> #include "graph.h" struct EdgeSorter { const Graph & graph_; EdgeSorter(const Graph & g) : graph_(g) { } bool operato...
<commit_before>//======================================================================= // Copyright (c) 2013-2014 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================...
<commit_before>#ifndef HEADER_GUARD_HOOKS_H #define HEADER_GUARD_HOOKS_H #include "contents.hh" namespace vick { /*! * \file hooks.hh * * \brief Defines how to hook processes in with one another so that one * action will always accompany another. * * proc_hook(hook) will call all the functions added in ...
<commit_before>#include <allegro.h> #ifdef ALLEGRO_WINDOWS #include <winalleg.h> #endif #ifndef ALLEGRO_WINDOWS #include <signal.h> #include <string.h> #endif #include "globals.h" #include "init.h" #include <pthread.h> #include "network/network.h" #include <ostream> #include "dumb/include/dumb.h" #include "dumb/incl...
<commit_before>#include "json.hpp" using namespace std; ptree json_decode(string s) { ptree p; std::istringstream ss (s); try { read_json (ss,p); } catch (exception e) { cerr << "*CRITICAL: CANNOT PARSE/MALFORMED JSON '" << s << "'" << endl; } } std::string json_escape(const std::string& input)...
<commit_before>/* Copyright (C) 2002 by Marten Svanfeldt Anders Stenberg This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or ...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>/************************************************************************* * * $RCSfile: dlelstnr.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: tl $ $Date: 2001-02-27 14:53:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before><commit_msg>提高兼容性<commit_after><|endoftext|>
<commit_before><commit_msg>Minor update.<commit_after><|endoftext|>
<commit_before>// -*- c++ -*- /*! * * Copyright (C) 2012 Jolla Ltd. * * Contact: Mohammed Hassan <[email protected]> * Author: Andres Gomez <[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...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXQt - a lightweight, Qt based, desktop toolset * https://lxqt.org * * Copyright: 2015 LXQt team * Authors: * Dmitriy Zhukov <[email protected]> * * This program or library is free software; you can redistribute it * and/or modify it under t...
<commit_before>#include <SFML/Audio.hpp> #include <SFML/Graphics.hpp> #include "game.h" #include "particlesystem.h" #include "util.h" #include <sstream> #include <fstream> using namespace std; const char* savefile = "save"; int loadHighscore() { int ret = 0; ifstream f(savefile); if (f.good()) { ...
<commit_before>#include <iostream> #include <vector> #include <cstring> using namespace std; #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <boost/tokenizer.hpp> #include "Base.h" #include "Cmd.h" #include "Or.h" #include "And.h" #include "Semi.h" using namespace std; using namespace boost;...
<commit_before>#include "mraa.h" #include <chrono> #include <thread> #include <stdio.h> #include <string.h> #include <curl/curl.h> enum COMMAND { IDLE = 0, FORWARD = 1, REVERSE = 2, LEFT = 4, RIGHT = 8 }; const char* COMMAND_NAMES[] = {"IDLE","FORWARD","REVERSE","INVALID","LEFT","INVALID","INVALID"...
<commit_before>#include <iostream> #include <fstream> #include <cstdint> #include <algorithm> #include <memory> #include <chrono> #include <boost/thread.hpp> //#include <SFML/System.hpp> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> #include <SFML/Graphics/Texture.hpp> #include "dcpu.hpp" #include "disasse...
<commit_before>/****************************************************************************** * Fake Frog * * An Arduino-based project to build a frog-shaped temperature logger. * * Author: David Lougheed. Copyright 2017. ...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>/* Copyright (C) 2014-2015 INRA * * 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, merg...
<commit_before>#include "../ui/mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { #ifdef Q_OS_LINUX QCoreApplication::addLibraryPath("/usr/lib/viqo"); #endif QApplication a(argc, argv); QCoreApplication::setApplicationName("Viqo"); QCoreApplication::setApplicationVersion("2.3.1"); Q...
<commit_before>#include <QApplication> #include <QMessageBox> #include <QTranslator> #include <QLocale> #include <QLibraryInfo> #include <QWidget> #include <glib-object.h> #include "utils/process.h" #include "seafile-applet.h" #include "QtAwesome.h" #ifdef Q_OS_MAC static bool dockClickHandler(id self,SEL _cmd,...)...
<commit_before>/** * * Terminology (Matroid - Graph) for escalated version of algorithm: * Basis - Spanning forest * Independent set - Tree (i.e. subset of a basis) * Circuit - cycle * Cocircuit - minimal edge-cut * Hyperplane - maximal set not containing any basis (= complement of a min-cut) * * Spannin...
<commit_before>/* * File: main.cpp * Author: vlad * * Created on December 12, 2013, 10:38 PM */ #include <iostream> #include "qpp.h" //#include "matlab.h" // support for MATLAB // TODO: expandout function // TODO: dyad function // TODO: proj (dya) function // TODO: ip (inner product function) function, make ...
<commit_before>#include <iostream> #include <numeric> #include <algorithm> #include <vector> #include <map> #include <chrono> #include <memory> #include <typeinfo> #include <hpx/hpx.hpp> #include <hpx/hpx_init.hpp> #include <hpx/include/lcos.hpp> #include <hpx/include/iostreams.hpp> #include <hpx/include/serialization...
<commit_before>#include <GLFW/glfw3.h> #include "PhysSystem.h" #include "microprofile/microprofile.h" #include "microprofile/microprofileui.h" struct Vertex { Vector2f position; unsigned char r, g, b, a; }; void RenderBox(std::vector<Vertex>& vertices, Coords2f coords, Vector2f size, int r, int g, int b, i...
<commit_before><commit_msg>add seperate all nodes by hierarchy<commit_after>// C++ program to generate long DFS traversal from a given vertex in a given graph #include <iostream> #include <list> #include <fstream> #include <string> #include <sstream> #include <vector> #include <map> using namespace std; // Pre-defin...
<commit_before> #include <initializer_list> #include <iostream> #include <fstream> #include <array> #include <type_traits> #include <algorithm> #include <memory> #include <stdio.h> #include <utility> #include <vector> #include <map> #include "ast.h" #include "helpers.h" #include "llvm.h" #include "parser.h" int main...
<commit_before>#include <cstdlib> #include <ctime> #include <fstream> #include <iostream> #include <limits> #include <string> #include <utility> #include <vector> #include "closestPairInLine.hpp" #include "cmdline.h" #define WIDTH 28 #define HEIGHT 28 #define TRY_TIME 100 using namespace std; int d, n; string path; cmd...
<commit_before>/* * Copyright (c) 2013 findrec developers * * See the file license.txt for copying permission. */ #include "findfiles.h" #include "filematch.h" #include <string> #include <vector> #include <cstdlib> #include <cstdio> #include <boost/utility/binary.hpp> #if defined(WIN32) || defined(_WIN32) || def...
<commit_before>#include "custer.h" #include "CusterServer.h" #include <boost/program_options/options_description.hpp> #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include <iostream> namespace bpo = boost::program_options; int main(int argc, char* argv[]) { bpo::o...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, Institute for Artificial Intelligence, * Universität Bremen. * All rights reserved. * * Redistribution and use in source and binary forms, with or without ...
<commit_before>#include <cassert> #include <functional> #include <iostream> #include <map> #include <string> #include <vector> #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #include "lz4.h" #include "lz4hc.h" #include "xxhash.h" #include "lz4mt.h" #include "lz4mt_benchmark.h" #include "lz4...
<commit_before>#include "circuits/element.h" #include "matrix/solve.h" #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <string> #include <vector> #include <cstdlib> using namespace std; #define DEBUG static const int MAX_LINHA = 80; static const int MAX_NOME = 11; static const i...
<commit_before>/* * Copyright (C) 2017 Tmplt <[email protected]> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later versio...
<commit_before>#include <irrlicht.h> using namespace irr; namespace ic = irr::core; namespace is = irr::scene; namespace iv = irr::video; struct MyEventReceiver : IEventReceiver { bool OnEvent(const SEvent &event) { // If input is of keyboard type (KEY_INPUT) // and a pressed key // and the key is E...
<commit_before>#include "camera/perspective.h" #include "engine/cosine_debugger.h" #include "geom/rect.h" #include "geom/vector.h" #include "geom/point.h" #include "image/image.h" #include "node/group/simple.h" #include "node/solid/sphere.h" #include "node/solid/infinite_plane.h" #include "renderer/settings.h" #include...
<commit_before>#include <cstdio> #include <fstream> #include <string> #include <map> #include <memory> #include <SDL.h> #include <Console.h> #include <Cart.h> #include <Controller.h> #include <APU.h> #include <SoundQueue.h> const unsigned int WINDOW_WIDTH = 256*2; const unsigned int WINDOW_HEIGHT = 240*2; const unsi...
<commit_before>#include "stdafx.h" int main( int argc, char** argv ) { return 0; } <commit_msg>Fox unused parameters in main().<commit_after>#include "stdafx.h" int main( int /*argc*/, char** /*argv*/ ) { return 0; } <|endoftext|>
<commit_before>//#include <exception> #include <iostream> #include <unistd.h> #include <ctime> //#include <cstdlib> #include <cstring> #include <sys/socket.h> #include <netdb.h> //#include <fastcgi.h> #include <fcgio.h> int getSocket(int port); void diff(timespec start, timespec end); int main(int argc, char** argv...
<commit_before>#include <ArkeIndustries.CPPUtilities/Common.h> #include <iostream> #include <fstream> #include <memory> #include <string> #include <chrono> #include <vector> using namespace std; class bf_interpreter { struct instruction { enum class opcode { add_to_dp, add_to_cell, output, input, b...
<commit_before>#include "twsDL.h" #include "utilities/debug.h" #include <QtCore/QCoreApplication> #include <stdio.h> int main(int argc, char *argv[]) { QCoreApplication app( argc, argv ); if( argc > 3 ) { fprintf( stderr, "Usage: %s [configuration file] [worktodo file]\n", argv[0] ); return 2; } QString w...
<commit_before>#include <SDL2/SDL.h> #include <GL/gl.h> #include <GL/glu.h> #include <cstdlib> struct Window { const char * name = (const char *) "Game Of Life On fieldace"; SDL_Window * window = nullptr; SDL_Renderer * render = nullptr; SDL_GLContext context; SDL_Event event; bool quit_flag = ...
<commit_before>#include <iostream> using namespace std; int main() { return 0; } <commit_msg>began on the main part of the shell<commit_after>#include <iostream> #include <unistd.h> #include <pwd.h> #include <sys/types.h> using namespace std; int main() { string userinput = ""; while(userinput != "exit") {...
<commit_before>#include <memory> #include <iostream> #include <string> #include <sstream> #include <functional> #include <nan.h> #include <v8.h> #include <uv.h> #include "log.h" #include "queue.h" #include "callbacks.h" #include "worker/thread.h" using namespace v8; using std::unique_ptr; using std::string; using std...
<commit_before>/***************************************************************************************** * * * MIT License * * ...
<commit_before>/* Copyright (c) 2014, Richard Martin 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 condit...
<commit_before>/* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. */ #include "./optimization/Optimizer.h" #include "Compiler.h" #include "Precompiler.h" #include "Profiler.h" #include "concepts.h" #include "config.h" #include "log.h" #include "tools.h" #include <cstdio> #inc...
<commit_before>#include <iostream> #include <stdio.h> #include <string> #include <string.h> #include <unistd.h> #include "cmdAnd.h" #include "cmdOr.h" #include "cmdBase.h" #include "cmdSemi.h" #include "cmdExecutable.h" #include <vector> #include <stack> #include <list> #include <iterator> using namespace std; void p...
<commit_before> #include <iostream> #include "Machine.h" enum states{ OFF, ON }; class AbstractLightState : public AbstractState { protected: bool* _lightSwitchOnPtr; bool* _lightSwitchOffPtr; public: AbstractLightState(Machine *context) : AbstractState(context) {} //Trick to pass nex...
<commit_before>#include <iostream> #include <array> #include <vector> #define SDL_MAIN_HANDLED #include <SDL.h> #include <ospray.h> #include <ospcommon/vec.h> #include <openvr.h> #include "gl_core_3_3.h" #define TINYOBJLOADER_IMPLEMENTATION #include "tiny_obj_loader.h" static int WIN_WIDTH = 1280/2; static int WIN_HEI...
<commit_before>#include "model.hxx" #include "3DView.hxx" #include "GameUpdater.hxx" #include "Cam.hxx" #include "Hand.hxx" #include "HistogramHand.hxx" #include "NetGame.hxx" #include "NetCam.hxx" #include "HandToModel.hxx" static const int redBalls = 3; static const int yellowBalls = 12; volatile bool running; voi...
<commit_before>#include <stdio.h> #include <math.h> #include <pthread.h> #include "PO8e.h" #define SRATE_HZ (24414.0625) #define SRATE_KHZ (24.4140625) #define NCHAN 96 bool g_die = false; long double g_startTime = 0.0; long double gettime() //in seconds! { timespec pt ; clock_gettime(CLOCK_MONOTONIC, &pt); lo...
<commit_before>/* * Copyright (c) 2003-2010, John Wiegley. 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,...
<commit_before>#include <iostream> #include <3pp/mpc/mpc.h> int main(int argc, char **argv) { if (argc <= 1) { std::cout << "Usage: " << argv[0] << "file\n"; return 1; } mpc_parser_t* Comment = mpc_new("comment"); mpc_parser_t* Indent = mpc_new("indent"); mpc_parser_t* Newline ...
<commit_before> #include <SDL.h> #include "tuple.h" #include "threedee.h" #include "quat.h" namespace venk { Quat operator*(const Quat& lhs, const Quat& rhs) { float qax = lhs.elements[Quat::X]; float qay = lhs.elements[Quat::Y]; float qaz = lhs.elements[Quat::Z]; float qaw = lhs.elements[Quat::W]; floa...
<commit_before>/* * Copyright (C) 2009 Toni Gundogdu. * * This file is part of cclive. * * cclive 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) an...
<commit_before>/* * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <[email protected]> * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by ...
<commit_before>// Copyright (c) 2011-2018 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <sync.h> #include <logging.h> #include <util/strencodings.h> #include <stdio.h> #include <map> #in...
<commit_before>#include "puzzle.hpp" #include <iostream> #define BOOST_TEST_MODULE SolverTest #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> int testPuzzle(const char *puzzle) { Puzzle::Puzz puzz(puzzle, 10); Puzzle::PuzzleSolver solver(puzz); std::cout << "Solving " << puzzle << std::endl; return...
<commit_before>#include<iostream> #include<cassert> #include<thread> #include<chrono> #include "ics3/ics" int main(int argc, char **argv) { { std::cout << std::endl << "ID test section" << std::endl; ics::ID id {0}; assert(id == 0); assert(id.get() == 0); ics::ID id31 {31}; assert(id31 == 31...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "core.h" #include "uint256.h" #include...
<commit_before>//----------------------------------------------------------------------- // Copyright 2011 Ciaran McHale. // // 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 restric...
<commit_before>#include <Rcpp.h> #if defined(_WIN32) // See: http://stackoverflow.com/questions/11588765/using-rcpp-with-windows-specific-includes #undef Realloc #undef Free #include <Windows.h> #elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) #include <unistd.h...
<commit_before>/* * v8cgi main file. Loosely based on V8's "shell" sample app. */ #include <v8.h> #include "js_system.h" #include "js_io.h" #include "js_common.h" #include "js_macros.h" #include <sstream> #ifndef windows # include <dlfcn.h> #else # include <windows.h> # define dlopen(x,y) (void*)LoadLibrary(x) # de...
<commit_before>/* * v8cgi main file. Loosely based on V8's "shell" sample app. */ #include <v8.h> #include "js_system.h" #include "js_io.h" #include "js_mysql.h" #include "js_gd.h" #include "js_common.h" #include <sstream> #define _STRING(x) #x #define STRING(x) _STRING(x) // chdir() #ifndef HAVE_CHDIR # include ...
<commit_before>#include "opencv2/core/utility.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include <iostream> using namespace cv; using namespace std; const auto RED = cv::Scalar(0,0,255); const auto PINK = cv::Scalar(230,130,255); const auto BLUE = cv::Scalar...
<commit_before>// Measurements // Source: ./examples/measurements2.cpp #include <iostream> #include <tuple> #include <vector> #include "qpp.h" int main() { using namespace qpp; ket psi = st.b00; std::vector<idx> subsys = {0}; idx result; std::vector<double> probs; std::vector<cmat> states; ...
<commit_before>/* * Copyright 2014 Facebook, 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 l...
<commit_before>#include <Socket/server/Server.hpp> #include <csignal> #include <iostream> #include "functions.hpp" ntw::srv::Server* server = nullptr; void stop_server_handler(int sig) { std::cout<<"Recv signal "<<sig<<". Stoping server.\n Please wait."<<std::endl; if(server) server->stop(); } #de...
<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 "Binding.h" #include <iostream> #include <vector> #include "MyActor.h" #include "MyActorBinding.h" using std::cout; using std::endl; static void stackDump (lua_State *L) { int i=lua_gettop(L); cout << " ---------------- Stack Dump ----------------\n"; while( i ) { int t...
<commit_before>/* Copyright (C) 2016 - Gbor "Razzie" Grzsny 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>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<commit_before>#include "kernel.h" #include "raster.h" #include "simpelgeoreference.h" #include "cornersgeoreference.h" #include "symboltable.h" #include "ilwisoperation.h" #include "pixeliterator.h" #include "columndefinition.h" #include "table.h" #include "attributerecord.h" #include "selection.h" using namespace Il...
<commit_before><commit_msg>Initialize the runtime properly in authentication-test<commit_after><|endoftext|>
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2017 ARM Limited * * 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 * *...
<commit_before>//===- InstrInfoEmitter.cpp - Generate a Instruction Set Desc. ------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>#ifndef __UTIL_SMARTBYTEARRAY_HPP__ #define __UTIL_SMARTBYTEARRAY_HPP__ #include <memory> namespace FreshCask { class SmartByteArray { public: SmartByteArray() : data(nullptr), size(0) {} SmartByteArray(const uint32_t& size) : data(new Byte[size]), size(size) {} SmartByteArray(const std::stri...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: AbstractPathPoint.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>/* vim: set sw=4 ts=4: */ /* * BindingConverter.cpp * Implements an AST Consumer that outputs clay bindings * */ #include <iostream> #include <vector> using namespace std; #include "llvm/Config/config.h" #include "llvm/Support/raw_ostream.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/A...
<commit_before>#include "StdAfx.h" #include "RndPointSet.h" RndPointSet::RndPointSet(void) { } RndPointSet::~RndPointSet(void) { } void RndPointSet::DrawPoints( const CRhinoCommandContext& context, int numPoints ) { // Pick a surface to evaluate CRhinoGetObject go; go.SetCommandPrompt( L"Select surface to ...
<commit_before>#include "Physics.hpp" #include "PhysicEngine.hpp" Physics::Physics() : Component(), m_growth(sf::Vector2f(1, 1) ) { } Physics::~Physics() { } void Physics::update() { // PhysicEngine::update(this); } void Physics::setVelocity(const sf::Vector2f& values ) { m_velocity = values; } sf:...
<commit_before>#include <iostream> #include "TAxis.h" #include "Corrector.h" ClassImp(Corrector) //-------------------------------------------------------------------- Corrector::Corrector(TString name) : fName(name), fInTree(NULL), fCorrectionFile(NULL), fCorrectionHist(NULL), fNumDims(0), fInCut('1'), ...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // Macro to setup AliPerformanceTask for // TPC performance QA to run on PWGPP QA train. // // Input: ESDs, ESDfriends (optional), Kinematics (optional), TrackRefs (optional) // ESD and MC input handlers must be attached to...
<commit_before>#include "Andersen.h" #include "Polymer.h" #include "Monomer.h" #include "consts.h" #include "Rand.h" using namespace consts; #include<cmath> using namespace std; Andersen::Andersen(Polymer &poly, double dtime, double nu) : Thermostat(poly,dtime), m_nu(nu) { update_temp(); } double Andersen::updat...
<commit_before>using func_p = void(*)(); //Labels to the arrays of constructors and destructors placed by the linker extern "C" func_p start_ctors, end_ctors, start_dtors, end_dtors; //Constructs all static objects void static_construct() { for(auto fp = &start_ctors; fp < &end_ctors; ++fp) (*fp)(); } //...
<commit_before>/* * Copyright (c) 2013-2014 Chun-Ying Huang * * This file is part of GamingAnywhere (GA). * * GA is free software; you can redistribute it and/or modify it * under the terms of the 3-clause BSD License as published by the * Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clau...
<commit_before>// This example is a demonstration of the Lebwohl-Lasher model in an NVT ensemble // and basic usage of the API. It has a very basic command line interface to // illustrate a possible use case. // Include the pertinent header files. #include "../src/Ensembles/NVTEnsemble.h" #include "../src/Models/Lebwo...
<commit_before>#include "user_space_wrappers.h" #include "core.h" #include "sync_client.h" #include "core_manager.h" #include "log.h" CAPI_return_t SimGetCoreID(int *core_id) { *core_id = g_core_manager->getCurrentCoreID(); return 0; } void SimInitializeThread() { g_core_manager->initializeThread(); } void ...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include "occa.hpp" int main(int argc, char **argv){ /* hard code platform and device number */ int plat = 0; int dev = 0; occa::device device; device.setup("OpenCL", plat, dev); // build jacobi kernel from source file const ...
<commit_before>/* My C++ template Chandan Mittal handle: calmhandtitan */ #include "bits/stdc++.h" #define sd(n) scanf("%d", &(n)) #define rep(i, x, n) for (size_t i = x, _n = (n); i < _n; ++i) #define SZ(c) (int)(c).size() #define lcm(a,b) (a*(b/__gcd(a,b))) #define VI vector<int> #define all(c) ((c).begin(), (c)....
<commit_before>#include <sstream> #include <unistd.h> #include <string.h> #include "display.h" #include "world.h" #include "logging.h" #include "utils.h" using std::ostringstream; #define PANE_WORLD_WIDTH 800 #define PANE_WORLD_HEIGHT 800 #define PANE_CTRL_WIDTH 600 #define PANE_CTRL_HEIGHT 800 #de...
<commit_before>/* * CrissCross * A multi-purpose cross-platform library. * * A product of Uplink Laboratories. * * (c) 2006-2009 Steven Noonan. * Licensed under the New BSD License. * */ #include <crisscross/universal_include.h> #include <crisscross/debug.h> #include <crisscross/mutex.h> #ifndef TA...
<commit_before>// Copyright © 2013, Université catholique de Louvain // 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 not...
<commit_before>//needed for testing #define CATCH_CONFIG_RUNNER #include <catch.hpp> //other stuff needed #include <glm/vec3.hpp> #include <cmath> #include <iostream> //include classes for testing #include "shape.hpp" #include "sphere.hpp" #include "box.hpp" #include "material.hpp" #include "color.hpp" // ----------...