text
stringlengths
54
60.6k
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * * Condor Software Copyright Notice * Copyright (C) 1990-2006, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * This source code is covered by the Condor Public License, which can * be foun...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: Path_test.C,v 1.12.30.3 2007/06/21 19:44:53 oliver Exp $ #include <BALL/CONCEPT/classTest.h> #include <BALLTestConfig.h> /////////////////////////// #include <BALL/SYSTEM/path.h> /////////////////////////// START_TEST(Path, "$Id: Path_t...
<commit_before>// // Aspia Project // Copyright (C) 2020 Dmitry Chapyshev <dmitry@aspia.ru> // // 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 ...
<commit_before>/********************************************************************** * $Id$ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2005 Refractions Research Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesse...
<commit_before>#include "tools/cabana/binaryview.h" #include <QApplication> #include <QHeaderView> #include <QPainter> #include "tools/cabana/canmessages.h" // BinaryView const int CELL_HEIGHT = 30; BinaryView::BinaryView(QWidget *parent) : QTableView(parent) { model = new BinaryViewModel(this); setModel(model...
<commit_before>/* * HyPerConnection.hpp * * Created on: Oct 21, 2008 * Author: Craig Rasmussen */ #ifndef HYPERCONN_HPP_ #define HYPERCONN_HPP_ #include "PVConnection.h" #include "../columns/InterColComm.hpp" #include "../include/pv_types.h" #include "../io/PVParams.hpp" #include "../layers/HyPerLayer.hpp"...
<commit_before>// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #include "numpy_interop.hpp" #if DYND_NUMPY_INTEROP #include <numpy/arrayobject.h> #include <numpy/arrayscalars.h> #include <dynd/kernels/assignment_kernels.hpp> #include <dynd/func/elwise.hpp> #include <dynd/kern...
<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>#ifndef DUNE_STUFF_FUNCTION_CONSTANT_HH #define DUNE_STUFF_FUNCTION_CONSTANT_HH #include <dune/stuff/common/parameter/tree.hh> #include "interfaces.hh" namespace Dune { namespace Stuff { template< class DomainFieldImp, int domainDim, class RangeFieldImp, int rangeDimCols, int rangeDimRows > class Fu...
<commit_before>#ifndef DUNE_STUFF_GRID_PROVIDER_CUBE_HH #define DUNE_STUFF_GRID_PROVIDER_CUBE_HH // system #include <sstream> #include <type_traits> #include <boost/assign/list_of.hpp> // dune-common #include <dune/common/parametertree.hh> #include <dune/common/shared_ptr.hh> #include <dune/common/exceptions.hh> #inc...
<commit_before>// // Originally written by BjÃrn Fahller (bjorn@fahller.se) // Modified by Jeff Bush // // No rights claimed. The sources are released to the public domain // // For license information, please refer to <http://unlicense.org> // #include <setjmp.h> #include <stdlib.h> #include <iostream> #include <ostr...
<commit_before>#include "demo.hpp" #include "engine/gl/shader.hpp" #include "engine/core/log.hpp" #include "engine/extern/imgui.h" #include <chrono> #include <random> constexpr auto k_maxNumObjects = 400u; constexpr auto k_initialNumObjects = 32u; constexpr auto k_avg = 20u; std::default_random_engine generator; st...
<commit_before>#include "engine/allocator.h" #include "engine/crt.h" #include "engine/atomic.h" #include "engine/page_allocator.h" #include "engine/os.h" namespace Lumix { PageAllocator::~PageAllocator() { ASSERT(allocated_count == 0); void* p = free_pages; while (p) { void* tmp = p; memcpy(&p, p, sizeof(p))...
<commit_before>#include "api.h" #include "n2np/relay.h" #include "n2np/node.h" #include "webm/videodev.h" #include "webm/vpxdecoder.h" #include "webm/vpxencoder.h" #include "webm/videoframe.h" #include "dht/node.h" #include <strings.h> #include <stdio.h> #include <unistd.h> #include <termios.h> #include <stdlib.h> #def...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <stdexcept> #include <cstdlib> #include <ctime> #ifdef __clang__ #pragma clang diagnostic ignored "-Wtautological-constant-out-of-range-compare" #endif #include <rapidjson/document.h> #include <picojson.h> #include <rabbit.hpp> void pri...
<commit_before>#include <iostream> #include <cstdlib> #include <thread> #include <map> #include <chrono> #include <ctime> #include "bench.hpp" #include "concurrent_counter.hpp" #include "transactional.hpp" #include "lock.hpp" using namespace bench; long hammerArray(counter::ConcurrentCounter *counter, int nthreads, ...
<commit_before> /* * Copyright 2010 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrBufferAllocPool.h" #include "GrTypes.h" #include "GrVertexBuffer.h" #include "GrIndexBuffer.h" #include "GrGpu.h" #if GR_DEBUG #define VALIDA...
<commit_before><commit_msg>Fixed performance issues when falling back to raster for sub-pixmaps.<commit_after><|endoftext|>
<commit_before>// This program converts a set of images to a lmdb/leveldb by storing them // as Datum proto buffers. // Usage: // convert_imageset [FLAGS] ROOTFOLDER/ LISTFILE DB_NAME // // where ROOTFOLDER is the root folder that holds all the images, and LISTFILE // should be a list of files as well as their labels...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resmgr.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2007-04-11 20:16:54 $ * * The Contents of this file are made av...
<commit_before>#include <stdio.h> #include <limits.h> #include <string.h> #include <string> #include "globals.h" #include "profiler.h" #include "stacktraces.h" static Profiler *prof; FILE *Globals::OutFile; void JNICALL OnThreadStart(jvmtiEnv *jvmti_env, JNIEnv *jni_env, jthread thread) {...
<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>// 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) 2007, 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>/* Copyright (c) 2018 The Bitcoin Unlimited developers Copyright (c) 2014 Gavin Andresen 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 limit...
<commit_before>/** * @file CommunicationLayer.hpp * @ingroup index * @author Patrick Flick <patrick.flick@gmail.com> * @author Tony Pan <tpan@gatech.edu> * @brief descr * * Copyright (c) TODO * * TODO add Licence */ #ifndef BLISS_COMMUNICATION_LAYER_HPP #define BLISS_COMMUNICATION_LAYER_HPP #include ...
<commit_before>#include <llvm/IR/LLVMContext.h> #include <llvm/IR/Module.h> #include <llvm/IR/Constants.h> #include <llvm/IR/IRBuilder.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Support/raw_ostream.h> #include <llvm/Support/FileSystem.h> #include <llvm/Bitcode/ReaderWriter.h> #include <Log.h> #include ...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lice...
<commit_before>/* c2ffi Copyright (C) 2013 Ryan Pavlik This file is part of c2ffi. c2ffi 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 2 of the License, or (at your option) any la...
<commit_before>/* Copyright (c) 2016 Jakob Sinclair 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, publis...
<commit_before>#ifndef __LUA_RAPIDJSION_LUACOMPAT_H__ #define __LUA_RAPIDJSION_LUACOMPAT_H__ #include <cmath> #include <lua.hpp> namespace luax { inline void setfuncs(lua_State* L, const luaL_Reg* funcs) { #if LUA_VERSION_NUM >= 502 // LUA 5.2 or above luaL_setfuncs(L, funcs, 0); #else luaL_register(L, NULL, fun...
<commit_before>#include <boost/scoped_ptr.hpp> #include <boost/make_shared.hpp> #include <boost/container/vector.hpp> #include <boost/thread.hpp> #include <boost/asio.hpp> #include <ibotpp/loader.hpp> #include <ibotpp/bot.hpp> #include "config.h" void worker_main(boost::shared_ptr<boost::asio::io_service> io_service) ...
<commit_before>#include <FS.h> #include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager #include <PubSubClient.h> // https://github.com/knolleary/pubsubclient.git // define def...
<commit_before>/* VROOM (Vehicle Routing Open-source Optimization Machine) Copyright (C) 2015, Julien Coupey 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 yo...
<commit_before>#include <fstream> #include <Wt/WApplication> #include <Wt/WBreak> #include <Wt/WContainerWidget> #include <Wt/WLineEdit> #include <Wt/WPushButton> #include <Wt/WText> #include <Wt/WLabel> #include "core/muda.h" #include "core/context.h" #include "wtui/mudalistwidget.h" using namespace Wt;...
<commit_before>#include <thread> #include <iostream> #include <unistd.h> #include "exemodel/serveree.h" #include "exemodel/clientee.h" #include "exemodel/poller.h" #include "exemodel/poll_tools.h" using namespace exemodel; class CSvr : public poller { private: typedef CSvr self_t; public: CSvr(uint16_t port) : po...
<commit_before>#include <vector> #include <sstream> #include <experimental/optional> #include "windows.h" #include "Objbase.h" #include "Shlobj.h" using namespace std; using namespace std::experimental; TCHAR select_directory_path[MAX_PATH]; // TODO: A lot of error detection and handling is missing. class COM { pu...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2013 Preferred Networks and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License v...
<commit_before>/** * Project * # # # ###### ###### * # # # # # # # # * # # # # # # # # * ### # # ###### ###### * # # ####### # # # # * # # # # # # # # * # # # # # # # # * * Copyright (...
<commit_before>#include <iostream> #include <compile_time.hpp> namespace myspace { REGISTER_TYPE_BEGIN() REGISTER_TYPE(int) REGISTER_TYPE(float) REGISTER_TYPE(double) REGISTER_TYPE_END() } template <class T> void p(T) { puts(__PRETTY_FUNCTION__); } int main() { p(myspace::instantiated_compile_time_infos(...
<commit_before>/* main.cpp - CS 472 Project #2: Genetic Programming * Copyright 2014 Andrew Schwartzmeyer */ #include <cmath> #include <fstream> #include <iostream> #include <algorithm> #include <numeric> #include <vector> #include "individual/individual.hpp" #include "problem/problem.hpp" int test_runner() { //...
<commit_before>#include <algorithm> #include <chrono> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <sstream> #include <string> #include <vector> #include "init.h" #include "util.h" #include "version.h" using std::chrono::duration; using std::chrono::steady_clock;...
<commit_before>#include <iostream> #include "MyMallocator.hpp" #include <type_traits> #include "vector.hpp" void ConstructorTest(); void AssignmentTest(); void IteratorTest(); void DimensionTest(); void AccessorTest(); void AddRemoveTest(); void RelationalTest(); template<typename T, typename A, int N> void PrintMyVe...
<commit_before>/* Copyright 2014 Dietrich Epp. This file is part of Legend of Feleria. Legend of Feleria is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include "sg/entry.h" #include "sg/event.h" #include "sg/keycode.h" #include "sg/mixer.h" #include "sg/re...
<commit_before>#include <sys/wait.h> #include "process.h" int main(int argc, char *argv[]) { EventLoop loop; CHECK_UNIX(Fork(loop, []() { Sandbox("/tmp", { {"/bin", "/bin"}, {"/lib", "/lib"}, {"/lib64", "/lib64"}, {"/usr", "/usr"}, }); CHE...
<commit_before>// // main.cpp // Spin Wave Fit // // Created by Hahn, Steven E. on 1/7/13. // Copyright (c) 2013 Oak Ridge National Laboratory. All rights reserved. // #define _USE_MATH_DEFINES #include <cmath> #include <fstream> #include <iostream> #include <string> #include <sstream> #include <vector> #include <E...
<commit_before>#include <iostream> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> using namespace std; /* // Deprecated function call. int sizefunc(char* commandstream, const char* delim){ int i; char* p = strtok(commandstr...
<commit_before>// See LICENSE for details. #include <math.h> #include <stdlib.h> #include <GL/freeglut.h> #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) #include <windows.h> #endif // to make it work on Windows, too #include <iostream> #include "Camera.h" #include "RoadRollerGame.h" int g_clientWidth,...
<commit_before>/************************************************************************* * Copyright (C) 2011-2012 by Paul-Louis Ageneau * * paul-louis (at) ageneau (dot) org * * * * ...
<commit_before>/* * Copyright (C) 2008-2013 The Communi Project * * 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 2 of the License, or * (at your option) any later version. * * Th...
<commit_before>#include <iostream> #include <locale> #include <cstdlib> #include <string> #include <algorithm> #include <unordered_map> #include <uriparser/Uri.h> #include <SQLiteCpp/SQLiteCpp.h> #define DB_PATH "/srv/http/data/vbus.sqlite" typedef std::unordered_map<std::string, std::string> parameterMap; paramete...
<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" #define OUT...
<commit_before>/**************************************************************************** ** ** Copyright (C) 1992-$THISYEAR$ $TROLLTECH$. All rights reserved. ** ** This file is part of $PRODUCT$. ** ** $CPP_LICENSE$ ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN...
<commit_before>// $Id$ /* Copyright (c) 2007-2010, Trustees of The Leland Stanford Junior University 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...
<commit_before>#include "main.hpp" #include <cstring> #include <iostream> #include <sstream> #include <locale> using namespace std; int main(int argc, const char* argv[]) { // Print help if (argc == 1 || strcmp(argv[0], "--help") == 0) { cout << "Headerize is a tool to convert resource files to heade...
<commit_before>#include <graphics/types.h> #include <graphics/exceptions.h> #include <log/log.h> #include <lodepng.h> int main(int argc, char **argv) { try { graphics::Window window; window.activate(); // initialize resources GLuint vao; glGenVertexArrays(1, &vao); ...
<commit_before>#include <cstdlib> #include <vector> #include <sstream> #include <experimental/optional> #include "windows.h" #include "Objbase.h" #include "Shlobj.h" using namespace std; using namespace std::experimental; TCHAR select_directory_path[MAX_PATH]; // TODO: A lot of error detection and handling is miss...
<commit_before>// The MIT License (MIT) // Copyright (c) 2015 nabijaczleweli // 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 ...
<commit_before>#include <cstdlib> #include <vector> #include <sstream> #include <experimental/optional> #include "windows.h" #include "Objbase.h" #include "Shlobj.h" using namespace std; using namespace std::experimental; TCHAR select_directory_path[MAX_PATH]; // TODO: A lot of error detection and handling is miss...
<commit_before>/* The MIT License * * Copyright (c) 2010 OTClient, https://github.com/edubart/otclient * * 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 w...
<commit_before>#include "gtest/gtest.h" //#include <QtCore> #include <QApplication> #include <QtWidgets> //#include <QLabel> //#include <Qt Gui> int main(int argc, char *argv[]) { // ::testing::InitGoogleTest(&argc, argv); QApplication app(argc, argv); QDialog *dialog = new QDialog; QLabel *label = n...
<commit_before>/* * Copyright (c) 2016 Abhishek Agrawal (abhishek.agrawal@protonmail.com) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #include <cstdlib> #include <iostream> #include <sstream> #include <fstream> #include <string> #include ...
<commit_before>#include <errno.h> #include <iostream> #include <string> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <vector> #include <pwd.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include <sys/utsname.h> #include <boost/foreach...
<commit_before>#include <iostream> #include <boost/network/protocol/http/client.hpp> using namespace std; using namespace boost::network; int main(void) { http::client::request request("http://povilasb.com"); request << header("Connection", "close"); http::client client_; http::client::response response = clie...
<commit_before>#ifndef _NODE_H #define _NODE_H #include <vector> class Node{ private: union Content{ double idX; //var double value; //const int function; //func1 ou func2 }; //não sei se enum e union deveriam ser glo...
<commit_before>#include <vector> #include <boost/make_shared.hpp> #include <boost/unordered_set.hpp> #include <boost/container/vector.hpp> #include <dart/collision/collision.h> #include <dart/dynamics/dynamics.h> #include <ompl/base/StateSpace.h> #include <ompl/base/SpaceInformation.h> #include <ompl/base/StateValidity...
<commit_before>// Copyright (c) 2012-2013 Plenluno All rights reserved. #include <libnode/path.h> #include <libj/symbol.h> #include <libj/string_buffer.h> #ifdef LIBJ_PF_WINDOWS #include <libj/platform/windows.h> #else #include <unistd.h> #endif #include <assert.h> namespace libj { namespace node { namespa...
<commit_before>/** * \file perft.cc * \author Jason Fernandez * \date 11/10/2022 */ #include <chrono> #include <cstddef> #include <cstdint> #include <cstdlib> #include <iostream> #include <memory.h> #include <stdexcept> #include <string> #include <thread> #include "argparse/argparse.hpp" #include "superstr...
<commit_before>#include <fstream> #include "openmc/plot.h" #include "openmc/constants.h" #include "openmc/settings.h" #include "openmc/error.h" #include "openmc/particle.h" #include "openmc/geometry.h" #include "openmc/cell.h" #include "openmc/material.h" #include "openmc/string_functions.h" #include "openmc/mesh.h" ...
<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>/* * 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>#include <xcb/xcb.h> #include <cstdio> #include <ev++.h> #include <cstring> #include <memory> #include <wordexp.h> #include <basedir.h> #include <basedir_fs.h> #include <getopt.h> #include "rwte/config.h" #include "rwte/renderer.h" #include "rwte/rwte.h" #include "rwte/logging.h" #include "rwte/sigwatch...
<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>/** * @file sync.cpp * @brief Class for synchronizing local and remote trees * * (c) 2013 by Mega Limited, Wellsford, 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...
<commit_before>// Copyright (c) 2011-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 "sync.h" #include "util.h" #include <stdio.h> #include <boost/thread.hpp> #ifdef DEBUG_LOCKCONTEN...
<commit_before> #ifdef _WIN32 #define _UNICODE 1 #define UNICODE 1 #endif #define BOOST_TEST_MODULE SlipRock module #ifdef _MSC_VER #include <boost/test/included/unit_test.hpp> #else #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #endif #include "../include/sliprock.h" #include "sliprock_internals.h" ...
<commit_before>// timer.cc // Implements the Timer class #include "timer.h" #include <string> #include <iostream> #include "error.h" #include "logger.h" #include "material.h" namespace cyclus { //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Timer::RunSim() { CLOG(LEV_INFO1) << "Si...
<commit_before>#include "uart.h" uart::uart(void): ls() { ls.open("/dev/ttySO", 9600); } void uart::write(std::vector<std::uint8_t>* request) { int nbBytes = sizeof(request); ls.write(request,nbBytes); ls.flush(); } void uart::write(std::uint16_t request){ char a,b; a = (char) (request &0xff); b = (char) (...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>#ifndef UTIL_HPP #define UTIL_HPP #include <string> #include <iostream> #include <vector> #include <algorithm> #include <memory> #include <typeinfo> #include <functional> #define abs(x) (x < 0 ? -x : x) #define UNUSED(expr) (void)(expr) #define ALL(container) std::begin(container), std::end(container) ...
<commit_before>//--------------------------------------------------------- // Copyright 2015 Ontario Institute for Cancer Research // Written by Matei David (matei@cs.toronto.edu) //--------------------------------------------------------- // Reference: // http://stackoverflow.com/questions/14086417/how-to-write-custo...
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0 #ifndef __RAPICORN_UTILITIES_HH__ #define __RAPICORN_UTILITIES_HH__ #include <rapicorn-core.hh> #include <typeinfo> #if !defined __RAPICORN_CLIENTAPI_HH_ && !defined __RAPICORN_UITHREAD_HH__ && !defined __RAPICORN_BUILD__ #error O...
<commit_before>#include <iostream> #include <vector> using namespace std; int main() { vector<int> i = {2,3,4,5,6}; for(auto it = i.begin(); it!=i.end(); ++it) { if(*it > 3) { i.erase(it); } /*if(*it == 5) { i.erase(it); }*/ } for(auto it = i.begin(); it!=i.end(); ++it) { cout<<*it<<" "; ...
<commit_before>// Copyright (c) 2011-2019 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 <wallet/wallet.h> #include <qt/receivecoinsdialog.h> #include <qt/forms/ui_receivecoinsdialog.h> #i...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>// // yas_audio_graph_avf_au.cpp // #include "yas_audio_graph_avf_au.h" #include <cpp_utils/yas_cf_utils.h> #include <cpp_utils/yas_fast_each.h> #include "yas_audio_rendering_connection.h" #include "yas_audio_time.h" using namespace yas; audio::graph_avf_au::graph_avf_au(graph_node_args &&args, Aud...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// Reaper /// /// Copyright (c) 2015-2020 Thibault Schueller /// This file is distributed under the MIT License //////////////////////////////////////////////////////////////////////////////// #include "Debug.h" #include ...
<commit_before>#include "client_manager.hpp" #include <map> #include <vector> #include <enet-plus/enet.hpp> #include <base/macros.hpp> #include <base/pstdint.hpp> #include "entity.hpp" namespace bm { Client::Client(enet::Peer* peer, Player* entity) : peer(peer), entity(entity) { CHECK(peer != NULL); } Client::~...
<commit_before>//===-- AVRMCAsmInfo.cpp - AVR asm properties -----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <sstream> #include <cstring> #include "server/db/transaction.h" #include "server/db/connection.h" using namespace Batyr::Db; Transaction::Transaction(Connection * _connection) : logger(Poco::Logger::get("Db::Transaction")), connection(_connection), rollback(false) { ...
<commit_before>#include <cmath> #include <array> #include <chrono> #include <sstream> #include <iostream> #include <iomanip> #include <algorithm> #include <sys/stat.h> #include "simulation.h" #include "codes/codes.h" namespace detail { inline bool file_exists(const std::string &fname) { struct stat buf; return (...
<commit_before>/* 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 appl...
<commit_before>#include "lib_tilemap.h" #include <stdio.h> namespace TileMap { template<class TColor> bool Scene<TColor>::isRectFree(const int x1, const int y1, const int x2, const int y2) const { if (!flagmap.isValid()) return true; const uint8_t tileSizeBits = tileset.tileSizeBits; ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: helpmerge.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-01-19 17:58:57 $ * * The Contents of this file are mad...
<commit_before>/* Copyright 2019 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 appl...
<commit_before> #include "gtest/gtest.h" #include "TEnum.h" #include "TEnumConstant.h" #include "TMemFile.h" #include "TTree.h" #include "TBranch.h" #include "TBasket.h" #include <vector> static const Int_t gSampleEvents = 100; void CreateSampleFile(TMemFile *&f) { f = new TMemFile("tbasket_test.root", "CREATE")...
<commit_before>// Check that the `atos` symbolizer works. // RUN: %clangxx_asan -O0 %s -o %t // RUN: %env_asan_opts=verbosity=2 ASAN_SYMBOLIZER_PATH=$(which atos) not %run %t 2>&1 | FileCheck %s // Path returned by `which atos` is invalid on iOS. // UNSUPPORTED: ios #include <stdlib.h> #include <string.h> int main(i...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: vi.cpp // Purpose: Implementation of class wxExSTC vi mode // Author: Anton van Wezenbeek // Created: 2009-11-21 // RCS-ID: $Id$ // Copyright: (c) 2009 Anton van Wezenbeek ////////////////////////////...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: vi.cpp // Purpose: Implementation of class wxExSTC vi mode // Author: Anton van Wezenbeek // Created: 2009-11-21 // RCS-ID: $Id$ // Copyright: (c) 2009 Anton van Wezenbeek ////////////////////////////...
<commit_before>/* * AttentionalFocusCB.cc * * Copyright (C) 2014 Misgana Bayetta * * Author: Misgana Bayetta <misgana.bayetta@gmail.com> July 2014 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Fre...