text
stringlengths
54
60.6k
<commit_before>/* Blink Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <st...
<commit_before>#ifndef CLUSTERING_SUGGESTER_SUGGESTER_TCC_ #define CLUSTERING_SUGGESTER_SUGGESTER_TCC_ #include "stl_utils.hpp" #include "containers/priority_queue.hpp" namespace { struct priority_t { machine_id_t machine_id; bool pinned; int redundancy_cost; float backfill_cost; priority_t() {...
<commit_before>/* Blink Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <st...
<commit_before>/* Sirikata Utilities -- Math Library * BoundingBox.hpp * * Copyright (c) 2009, Daniel Reiter Horn * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribut...
<commit_before>// Tags.cpp // Copyright (c) 2010, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "Tags.h" #include "Tag.h" #include "tinyxml/tinyxml.h" #include "interface/Tool.h" bool CTags::CanAdd(HeeksObj* object) { return ((object != NU...
<commit_before>/* Copyright (c) 2006, MassaRoddel, 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 ...
<commit_before>/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010, 2012 Aldebaran Robotics */ #include <iostream> #include <string> #include <map> #include <qi/os.hpp> #include <qimessaging/session.hpp> #include <qimessaging/transport.hpp> #include <qimessaging/object.hpp> ...
<commit_before>// Copyright 2013 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>/*******************************************************************//* * Several useful utility functions wrapped in a namespace * * @author Brandon To * @version 1.0 * @since 2015-02-18 * @modified 2015-02-18 *********************************************************************...
<commit_before>/* * TTBlue Global Object * Copyright © 2008, Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "TTFoundation.h" #include "TTEnvironment.h" #include "TTClass.h" #define thisTTClass TTEnvironment // The environ...
<commit_before>#ifndef ITER_FILTER_H_ #define ITER_FILTER_H_ #include "iterbase.hpp" #include <utility> #include <iterator> #include <initializer_list> namespace iter { //Forward declarations of Filter and filter template <typename FilterFunc, typename Container> class Filter; template <typename Fi...
<commit_before>/* * Jamoma Asynchronous Object Graph Layer * Creates a wrapper for TTObjects that can be used to build a control graph for asynchronous message passing. * Copyright © 2010, Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html ...
<commit_before>// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // 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 // // Unles...
<commit_before>// Extended Euclid: gcd(a, b) = x*a + y*b void euclid(int a, int b, int &x, int &y, int &d) { if (b) euclid(b, a%b, y, x, d), y -= x*(a/b); else x = 1, y = 0, d = a; } // Solves a*x + b*y = c bool find_any_solution(int a, int b, int c, int &x0, int &y0, int &g) { euclid(abs(a), abs(b), x0, y0, g);...
<commit_before>/* * Copyright (C) 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>// // Created by michael on 09.11.15. // #include <string> #include <memory> #include "catch.hpp" #include "../Core/WeaverUtils.h" #include "../Core/GraphAnalyzer.h" using namespace weave; using namespace std; TEST_CASE("Graph analyzer", "[graph analyzer]") { shared_ptr<RandomStream> rs = make_sha...
<commit_before>/* * Copyright (C) 2004-2011 See the AUTHORS file for details. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ #include <znc/znc.h> #include <znc/IRCNetwork...
<commit_before>#ifndef DUNE_STUFF_FUNCTION_FIXED_HH #define DUNE_STUFF_FUNCTION_FIXED_HH #include <dune/common/shared_ptr.hh> #include <dune/common/exceptions.hh> #include "interface.hh" #include <dune/stuff/common/parameter.hh> #include <dune/stuff/common/color.hh> namespace Dune { namespace Stuff { namespace Funct...
<commit_before>/************************************************************************* * * $RCSfile: XMLIndexTemplateContext.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2004-07-13 08:33:51 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>/** * 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 "FlipperConnectionManagerImpl.h" #include <folly/String.h> #include <folly/futures/Future.h> #include <foll...
<commit_before>#include "mitkPAIOUtil.h" #include "mitkIOUtil.h" #include "mitkImageReadAccessor.h" #include <string> #include <sstream> #include <vector> #include "mitkPAComposedVolume.h" #include "mitkPASlicedVolumeGenerator.h" #include "mitkPANoiseGenerator.h" #include "mitkPAVolumeManipulator.h" #include <mitkPr...
<commit_before>/* Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3 = "aadbbbaccc", return false. */ #include <vector> #include <string> #include <stdio.h> using namespace std; class Solution { ...
<commit_before><commit_msg>`SettingMaster::set_and_print`: add checks for `nullptr`.<commit_after><|endoftext|>
<commit_before>//________________________________________________________________________ void demoInteractive() { //____________________________________________// AliTagAnalysis *TagAna = new AliTagAnalysis(); AliRunTagCuts *RunCuts = new AliRunTagCuts(); AliEventTagCuts *EvCuts = new AliEventTagCuts(); Ev...
<commit_before>#include "../../testing/testing.hpp" #include "../bit_streams.hpp" #include "../reader.hpp" #include "../writer.hpp" #include "../../base/pseudo_random.hpp" #include "../../std/utility.hpp" #include "../../std/vector.hpp" using namespace rnd; UNIT_TEST(BitStream_ReadWrite) { uint32_t const NUMS_C...
<commit_before> // ProxyPlayer.hpp // This will invoke another process and waits for a return code. #ifndef __PROXY_PLAYER_HPP__ #define __PROXY_PLAYER_HPP__ #include "Player.hpp" #include <string> #include <sstream> #ifdef _WIN32 #undef UNICODE #define NOMINMAX 1 #include <windows.h> #define EXE_SUFFIX ".exe" #else...
<commit_before>#include "wrapper.hh" #include <stdexcept> Wrapper::Wrapper(v8::Local<v8::Object> options) { Nan::HandleScope scope; v8::Local<v8::Value> options_device_value = Nan::Get(options, Nan::New("device").ToLocalChecked()).ToLocalChecked(); if(!options_device_value->IsString()) { throw std::invalid_argum...
<commit_before><commit_msg>LowB cut var changes<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <string> #include "src/Options.hpp" #include "src/Cluster.hpp" using namespace std; int main(int argc, char *argv[]){ string path2data = "../data/"; /* norm of matrix is mofiedable by 'young_modulus' */ double young_modulus = 10000; // double young_modulus = ...
<commit_before><commit_msg>`Node::delete_bidirectional_link`: check `this->parent` for `nullptr`.<commit_after><|endoftext|>
<commit_before>AliAnalysisTaskSEDvsMultiplicity *AddTaskDvsMultiplicity(Int_t system=0, Bool_t readMC=kFALSE, Int_t MCOption=0, Int_t pdgMeson=411, TString finDirname="Loose", TString filename="", TString finAnObjname="AnalysisCuts", TString estimatorFilename="")...
<commit_before>/*************************************************************************/ /* editor_run_native.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>//====================================================================== #include "TimeLayer.h" #include "Config.h" #include "Hash.h" #include "Layer.h" #include "LonLatToXYTransformation.h" #include "State.h" #include <boost/date_time/local_time/local_time.hpp> #include <boost/date_time/posix_time/posi...
<commit_before>/* Copyright(C) 2014 Naoya Murakami <naoya@createfield.com> 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 b...
<commit_before>/************************************************************************* * * $RCSfile: helper.cxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: pl $ $Date: 2001-05-08 11:46:02 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>#include <Rcpp.h> #include <chrono> #include <string> #include <unordered_map> #include "zmq.hpp" typedef std::chrono::high_resolution_clock Time; typedef std::chrono::milliseconds ms; extern Rcpp::Function R_serialize; extern Rcpp::Function R_unserialize; int pending_interrupt(); class ZeroMQ { public...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This pro...
<commit_before>#include "RenderingSystem.h" #include "Engine.h" #include "AutoBinder.hpp" using namespace Core; using namespace Device; using namespace Rendering; using namespace Rendering::Camera; using namespace Rendering::Shader; using namespace Rendering::Renderer; using namespace Rendering::RenderState; using nam...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>/* * test_cyclecontrol.cpp * * Created on: Nov 25, 2015 * Author: jschwan */ // boost #include <boost/test/unit_test.hpp> #include <iostream> #include <chrono> #include <iomanip> #include <ctime> #include <unistd.h> #include <threading/cyclecontrol.hpp> using namespace fc; BOOST_AUTO_TEST...
<commit_before>#include <cstdlib> #include <cstdio> #include "env.hpp" #if PLATFORM == PLATFORM_LINUX # include <unistd.h> #endif namespace qm { #if PLATFORM == PLATFORM_WINDOWS bool Env::closeMessage; bool Env::lbuttondownMessage; #endif Env envInit() { const char* title= "QM Test"; Vec2i reso(800, 800); Env e...
<commit_before>#include "gfx.h" ds_Image * loadImage(std::string path){ //loads a standard rgb bmp (not bmp custom format) //.3ds_Image //TODO: write a bmp to this shit convertor ds_image img; ifstream bmp(path.c_str(), ios::binary|ios::ate); int filelength = bmp.tellg(); unsigned char fBuffer = new char[filele...
<commit_before><commit_msg>Added code to close proxy connection when content-length is unspecified.<commit_after><|endoftext|>
<commit_before>#include "interfaces/non_conservative/navier_stokes.h" #include "pidomus.h" #include <Teuchos_CommandLineProcessor.hpp> #include "mpi.h" #include <iostream> #include <string> void print_status( std::string name, std::string prm_file, int dim, ...
<commit_before>#include "executors_pool.h" logxx::Log ExecutorsPool::cLog("ExecutorsPool"); ExecutorsPool::~ExecutorsPool() { } void ExecutorsPool::SetTasksPool(TasksPool* p) { for (ExecutorPtr &e : executors){ e->SetTasksPool(p); } } bool ExecutorsPool::LaunchExecutors() { S...
<commit_before>#include "SIO/LCIORandomAccessMgr.h" #include "SIO/LCSIO.h" #include "SIO/SIORandomAccessHandler.h" #include "SIO/SIOIndexHandler.h" #include "SIO/SIOEventHandler.h" #include "SIO/SIORunHeaderHandler.h" #include "IOIMPL/LCEventIOImpl.h" #include "IOIMPL/LCRunHeaderIOImpl.h" #include "Exceptions.h" // -...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
<commit_before>/** Manages the event handling functions in the superloop * * StageManager.cpp * Created 1-28-18 By: Smitty * * A longer description. */ #include "StageManager.hpp" /** * @brief StageManager constructor */ StageManager::StageManager(void) { timerList = new Timer[TIMER_NUM]; timerLi...
<commit_before> #pragma once #include <QString> #include <reflectionzeug/property/Property.h> namespace reflectionzeug { /** * @brief * Property implementation for QString */ class PropertyQString : public reflectionzeug::AbstractValueProperty<QString>, public AbstractStringInterface { public: /** * ...
<commit_before>/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Wiring project - http://wiring.org.co Copyright (c) 2004-06 Hernando Barragan Modified 13 August 2006, David A. Mellis for Arduino - http://www.arduino.cc/ This library is free software; you can redistribute it a...
<commit_before>#include <utility> #include "api/halley_api.h" #include <halley/plugin/plugin.h> #include "halley/audio/audio_facade.h" #include "halley/support/logger.h" #include "entry/entry_point.h" using namespace Halley; void HalleyAPI::assign() { Expects(coreInternal != nullptr); Expects(systemInternal != null...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include <gtest/gtest.h> #include "sprint.hh" TEST(_fmt, int) { int a = 2; ASSERT_STREQ("%d", _fmt(a)); } TEST(_fmt, uint64_t) { uint64_t a = 4294967295; ASSERT_STREQ("%lu", _fmt(a)); } TEST(_fmt, int64_t) { int64_t a = 4294967295; ASSERT_STREQ("%ld", _fmt(a)); } TEST(_fmt, double) { double a...
<commit_before>/* * Global flags editor * * Copyright (c) 2015 Mark Jansen * * 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 th...
<commit_before>#include <node.h> #include <node_buffer.h> #include <v8.h> #include <cstring> #include <openssl/aes.h> #include <openssl/engine.h> #include <openssl/rand.h> extern "C" { #include "aes_utils.h" } #include "base64.h" #include "../alac/ALACEncoder.h" #include "../alac/ALACBitUtilities.h" using namespace...
<commit_before>#ifndef PYTHONIC_PYTHON_CORE_HPP #define PYTHONIC_PYTHON_CORE_HPP #ifdef ENABLE_PYTHON_MODULE #include "Python.h" #include <type_traits> #include <utility> #include <sstream> // Cython still uses the deprecated API, so we can't set this macro in this // case! #ifndef CYTHON_ABI #define NPY_NO_DEPRECAT...
<commit_before>/* BSD 2-Clause License Copyright (c) 2016, Doi Yusuke 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>#pragma once template <typename T> class Buffer { public: using SizeType = unsigned long; private: T* data; SizeType count; public: Buffer(): data(nullptr), count(0) { } Buffer(const Buffer& other): data(nullptr), count(0) { this->operator=(other); } Buffer(Buffer&& other): data(other.d...
<commit_before>/*- * Copyright (C) 2008-2009 by Maxim Ignatenko * gelraen.ua@gmail.com * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or withou...
<commit_before>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QITYPE_DETAILS_GENERICOBJECT_HXX_ #define _QITYPE_DETAILS_GENERICOBJECT_HXX_ #include <qi/future.hpp> #include <qitype/typeinterface.hpp> #include <qitype/typeobject.hpp> #include <qitype/details/typei...
<commit_before>#include "sshtunneloutconnection.h" #include "sshtunnelout.h" #include "sshclient.h" Q_LOGGING_CATEGORY(logsshtunneloutconnection, "ssh.tunnelout.connection") Q_LOGGING_CATEGORY(logsshtunneloutconnectiontransfer, "ssh.tunnelout.connection.transfer") #define _DEBUG_ qCDebug(logsshtunneloutconnection) <<...
<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 req...
<commit_before>// This file is part of the dune-stuff project: // https://users.dune-project.org/projects/dune-stuff/ // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // This one has to come first (includes the config.h)! #include <dune/s...
<commit_before>// Catch #include <catch.hpp> // C++ Standard Library #include <memory> #include <iostream> #include <cmath> // Boost #include <boost/filesystem.hpp> // Armadillo #include <armadillo> // HOP #include <hop> extern boost::filesystem::path testDirectory; static std::string dataPath_ = "/data/optimisati...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff/ // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // This one has to come first (includes the config.h)! #include "main.hxx" #inc...
<commit_before>/* * Wrapper for execve(). Allows building the argument list * dynamically, and automatically de-consts the argument strings. * * author: Max Kellermann <mk@cm4all.com> */ #include "exec.hxx" #include <assert.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #includ...
<commit_before>/* * * * * * * * * * * * *\ |* ╔═╗ v0.3 *| |* ╔═╦═╦═══╦═══╣ ╚═╦═╦═╗ *| |* ║ ╔═╣ '╔╬═╗╚╣ ║ ║ '║ *| |* ╚═╝ ╚═══╩═══╩═╩═╣ ╔═╝ *| |* * * * * * * * * ╚═╝ * *| |* Manipulation tool for *| |* ESRI Shapefiles *| |* * * * * * * * * * * * *| |* http://www.npolar.no/ *| \* * * * * * * * * * * * ...
<commit_before>/** * @file file.cpp * @brief Classes for transferring files * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth i...
<commit_before>#include "p3DFFT_to_iR.hpp" #include "Morton_shuffler.hpp" #include <iostream> int myrank, nprocs; int main(int argc, char *argv[]) { MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &myrank); MPI_Comm_size(MPI_COMM_WORLD, &nprocs); int n, N, nfiles; if (argc == 4) { ...
<commit_before>#ifndef __NODE_GDAL_GLOBAL_H__ #define __NODE_GDAL_GLOBAL_H__ // v8 #include <v8.h> // node #include <node.h> // ogr #include <ogr_api.h> #include <ogrsf_frmts.h> // gdal #include "gdal_common.hpp" #include "gdal_driver.hpp" #include "gdal_dataset.hpp" using namespace v8; using namespace node; name...
<commit_before>// Scintilla source code edit control // @file LexAU3.cxx // Lexer for AutoIt3 http://www.hiddensoft.com/autoit3 // by Jos van der Zande, jvdzande@yahoo.com // // Changes: // // Copyright for Scintilla: 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions und...
<commit_before>#include "common.th" #include "errno.th" #define RANK_0_LOG 4 #define RANK_0_SIZE (1 << RANK_0_LOG) #define RANKS 3 // NOTE there are some assumptions in the below code that NPER * BPER = 32, // notably in DIFF() #define NPERBITS 4 #define BPERBITS 1 #define NPER (1 << NPERBITS) #define BPER (1 << BPE...
<commit_before>// Scintilla source code edit control /** @file LexGAP.cxx ** Lexer for the GAP language. (The GAP System for Computational Discrete Algebra) ** http://www.gap-system.org **/ // Copyright 2007 by Istvan Szollosi ( szteven <at> gmail <dot> com ) // The License.txt file describes the conditions under wh...
<commit_before>#pragma once #include <string> #include <cryptopp/sha3.h> #include "Arguments.hpp" namespace Ethereum{namespace ABI{ class Method { public: static std::string Encode(const std::string &method); static std::string Encode(const char *method); static std::string Encode(cons...
<commit_before>/* * Module * * let you manage your code into modules * * writen by ImagicTheCat for Tsux * https://github.com/ImagicTheCat/Tsux */ #ifndef H_MODULE #define H_MODULE #include <iostream> #include "Tsux.hpp" class Module{ public: //the name need to be unique Module(Tsux& tsux, const ...
<commit_before>// Copyright (c) 2013-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "hash.h" #include "crypto/common.h" #include "crypto/hmac_sha512.h" #include "pubkey.h" inline uint...
<commit_before>/* * This file is part of DGD, https://github.com/dworkin/dgd * Copyright (C) 1993-2010 Dworkin B.V. * Copyright (C) 2010-2016 DGD Authors (see the commit log for details) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public ...
<commit_before>// Pocket.cpp #include "stdafx.h" #include "Pocket.h" #include "CNCConfig.h" #include "ProgramCanvas.h" #include "../../interface/HeeksObj.h" #include "../../interface/PropertyDouble.h" #include "../../interface/PropertyString.h" #include "../../interface/PropertyChoice.h" #include "../../inte...
<commit_before>#include <iostream> #include <mutex> #include <queue> #include <thread> #include <tuple> #include <condition_variable> #include <algorithm> #include "input_file_reader.hpp" #include "minimize.hpp" #include "comparator.hpp" #include "result.hpp" #include "minimizer.hpp" // mutex for shared resources sta...
<commit_before>/* * main.cpp * * main file for derelict app * * starts GLUT and runs callbacks */ #include <iostream> #include <GL/glfw.h> #include "Key.h" #include "Cam.h" #include "Player.h" #include "World.h" #include "DisplayFuncs.h" World w; void Init() { glClearColor(1, 1, 1, 0); w.Load("world/main....
<commit_before>#include <iostream> #include <vector> #include <list> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <netdb.h> #include <pwd.h> #include <sys/socket.h> #include <boost/algorithm/string.hpp> using namespace std; using n...
<commit_before>#include "make_ref.h" #include "InfoVisitor.h" #include "board_def.h" #include "Board.h" #include "NPC.h" #include "GhostFactory.h" #include "FPSManipulator.h" #include <iostream> #include <thread> #include <osg/ShapeDrawable> #include <osg/Geode> #include <osgViewer/Viewer> #include <osg/MatrixTransfo...
<commit_before>/* * TODO list * - Line wrapping on current input buffer * - Response lines for each line of input after CR * - Better / alternative build method instead of eclipse maintained makefiles * - Movable input cursor / implement delete key * - Open / close console with some key */ #include <console/Con...
<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>/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** main.cpp ** ** -------------------------------...
<commit_before>/** * Assimp2XML3D * * Copyright (c)2015, Christian Schlinkmann * * **/ #include <assimp/version.h> #include <assimp/postprocess.h> #include <assimp/scene.h> #include <assimp/Importer.hpp> #include <assimp/Exporter.hpp> #include <iostream> extern Assimp::Exporter::ExportFormatEntry Assimp2XML3D_desc; ...
<commit_before>#include "parse_git_st.h" #include "git_committer.h" #include "exceptions.h" #include <ncurses.h> #include <menu.h> #include <iostream> #include <sstream> using namespace std; MENU* init_all_files_menu(GitStatusParser* git_status_parser, WINDOW* window) { vector<string*>* new_files = git_status_par...
<commit_before>#include <iostream> #include <SDL.h> #include "../vbam/gba/GBA.h" #include "../vbam/gba/Globals.h" #include "../vbam/gba/armdis.h" #include "../vbam/sdl/SDLGlobals.h" #include "../vbam/sdl/debugger.h" #include "Data.hh" #include "Script.hh" #include "ThumbDisas.hh" #include "PrintUtils.hh" #includ...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <getopt.h> #include <signal.h> #include <poll.h> #include <unistd.h> #include <sys/eventfd.h> #include <sys/timerfd.h> #include <string> #include "SystemRecorder.hpp" #include "SystemMonitor.hpp" #define SIZEOF_ARRA...
<commit_before>/** * Copyright 2016 Michal Korbela, Filip Pokrývka, Ondřej Slámečka * See the LICENSE file for more information. */ #include <bits/stdc++.h> //#include "../mnist/include/mnist/mnist_reader.hpp" #include "brca_image.hpp" #include "MLP.hpp" struct Stats { int corr; int unsure; int fail...
<commit_before>/* * 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; version 3 of the License. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; ...
<commit_before>/* * Copyright (C) 2014 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include "common/log.h" #include "gfx/mesh.h" #include "gfx/program.h" #include "gfx/pipeline.h" #include "glad/glad.h" #include "glfw3.h" #include "glm/glm...
<commit_before> #include <iostream> #include "rapidxml.hpp" #include "rapidxml_utils.hpp" #include "rapidxml_print.hpp" namespace { bool ignore_package(const std::string& name, const std::vector<std::string>& ignore_packages){ for(auto& ignore : ignore_packages){ if(std::mismatch(ignore.begin(), ignore....
<commit_before>/** * This is the main file that will be used to run the rshell. **/ #include "Rshell.h" #include <iostream> #include <string> using namespace std; int main() { string input = ""; while (input != "exit") { cout << "$"; cin >> input; } return 0; } <commit_msg...
<commit_before>#include "Hydra.h" #include "Sprite.h" #include <vector> #include <unistd.h> #include <stdio.h> using namespace std; using namespace Hydra; enum dirs {left, right, up, down}; class ComicPanel { public: int posX; int posY; int height; int width; float vel; //Speed when traveling TO...
<commit_before>/* This file is part of VROOM. Copyright (c) 2015-2022, Julien Coupey. All rights reserved (see LICENSE). */ #include <fstream> #include <iostream> #include <sstream> #ifndef _WIN32 #include <unistd.h> #endif #if USE_LIBOSRM #include "osrm/exception.hpp" #endif #include "../include/cxxopts/include/...
<commit_before>#include <limits> //#include <sys/stat.h> #include <cerrno> #include <cstring> #include <system_error> #include <iostream> #include <fstream> /* #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <fcntl.h> #include <string.h> */ #ifdef _WIN32 #ifndef EFU_SIMPLEREADHKLMKEY_H #include...
<commit_before>#include <iostream> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <string> #include <vector> #include <queue> #include <boost/tokenizer.hpp> #include <boost/algorithm/string.hpp> #include "argument.h" #include "parse.h" #include <cstddef> ...