text
stringlengths
54
60.6k
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE JPetOptionsTest #include <boost/test/unit_test.hpp> #define private public #include "../../JPetOptions/JPetOptions.h" //JPetOptions //public methods //JPetOptions(); //explicit JPetOptions(const Options& opts); //bool areCorrect(const Options& opts...
<commit_before>class Solution { public: vector<vector<int>> subsets(vector<int>& nums) { vector<vector<int>> vvi; vvi.push_back(vector<int> ()); for (int i = 0; i < nums.size(); i++) { vector<vector<int>> temp; for (int j = 0; j < vvi.size(); j++) { ve...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Declaration of ATL module object for EXE module. #include <atlbase.h> #include <atlhost.h> #include "base/at_exit.h" #include "b...
<commit_before>/*-------------------------------------------------------------------------------------------------- * Author: * Date: 2016-08-18 * Assignment: Final Project * Source File: interface.cpp * Language: C/C++ * Course: Operating Systems * Purpose: Contains the implementation ...
<commit_before>// sphere tracing demo with a few random elements #include <stdio.h> #include <math.h> #include <unistd.h> #include <algorithm> #include "render.h" #include "vec3.h" float frame_ = 0; vec3 lcol(0.5,0.7,0.5); float mshiny[] = {100,10,10,10}; vec3 mcol[] = { vec3(1.0f, 1.0f, 1.0f), vec3(0.0f, 0.0f, 1...
<commit_before>// Copyright (c) 2019 ASMlover. 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 o...
<commit_before>#include <cstdio> #include <iterator> #include "tictactoe.hpp" TicTacToe* TicTacToe::GetChild(Integer move) { if (!children[move]) children[move] = new TicTacToe(this, move, -Infinity, +Infinity); return children[move]; } bool TicTacToe::IsWin() const { const Integer parentTurn = p...
<commit_before>// -*- C++ -*- // ex1_histogram.cc // an exercise for the sandia 2014 clinic team. // here we do a histogram calculation over unsigned ints #include <cmath> #include <cstdio> #include <cstdlib> #include <vector> #include <array> #include <string> #include <chrono> #include <algorithm> // header file fo...
<commit_before>// @(#)root/hist:$Name: $:$Id: Haxis.cxx,v 1.2 2000/06/13 10:34:10 brun Exp $ // Author: Rene Brun 18/05/95 // ---------------------------------- haxis.C #include <string.h> #include <stdio.h> #include <ctype.h> #include "TH1.h" //___________________________________________________________________...
<commit_before>//----------------------------------------------------------------------------- // Copyright (c) 2014 Michael G. Brehm // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software wi...
<commit_before>// (C) Copyright Gennadiy Rozental & Ullrich Koethe 2001. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its...
<commit_before>#include "engine.h" #include "component.h" #include "object.h" #include "yaml-cpp/yaml.h" #include <fstream> #include <vector> #include <string> #include <cstdio> #include <ctime> #include "SDL.h" #include <algorithm> #ifndef GEAR2D_VERSION #define GEAR2D_VERSION "undefined" #warning GEAR2D_VERSION un...
<commit_before>#ifndef SRC_ESIEVE_HPP_ #define SRC_ESIEVE_HPP_ #include <cmath> #include <vector> template <typename T> std::vector<T> esieve(const T &n) { auto xs = std::vector<T>(n, 0); for (T i = 2; i < n; ++i) { if (xs[i] != 0) continue; for (T j = i; j < n; j += i) { xs[j] ...
<commit_before>#include "fast++.hpp" #include <phypp/core/main.hpp> const char* fastpp_version = "0.1"; int phypp_main(int argc, char* argv[]) { std::string param_file = (argc >= 2 ? argv[1] : "fast.param"); // Read input data options_t opts; input_state_t input; if (!read_input(opts, input, para...
<commit_before>#include "filter.h" Image filterNoise(const Image& img) { Domain dom = img.domain(); Image out(dom); unsigned int matrix[] = { 1,2,1, 2,4,2, 1,2,1 }; unsigned int max = 0; for(unsigned int k=0;k<9;k++) { max += matrix[k]; } for (auto it = dom....
<commit_before>/*! * \file helpers.cc * * \brief Helper functions (implementation) * * This file implements several small helper functions that do not belong to * any other file. * * \author * - responsible: Niels Lohmann <nlohmann@informatik.hu-berlin.de> * - last changes of: \$Author: g...
<commit_before>/* * The StockMap class is a hash table of any number of Stock objects, * each with a different URI. * * author: Max Kellermann <mk@cm4all.com> */ #include "hstock.hxx" #include "stock.hxx" #include "hashmap.hxx" #include "pool.hxx" #include <daemon/log.h> #include <assert.h> struct StockMap { ...
<commit_before>/** * \file * \brief Reset_Handler() for ARMv6-M and ARMv7-M * * \author Copyright (C) 2014-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was n...
<commit_before>#include <iostream> #include <fstream> #ifdef __APPLE__ #include <OpenGL/OpenGL.h> #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include <list> #include <iomanip> #include "common.h" #include "Timer.h" #include "Replay.h" #include "Field.h" extern bool playReplay; extern int gameState...
<commit_before><commit_msg>put stuff in cp<commit_after>sjkdhicuha <|endoftext|>
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "db.h" #include "addrman.h" #include "hash.h" #include "u...
<commit_before>/*************************************************************************** * $MCI Mdulo de implementao: Mdulo de teste especfico * * Arquivo gerado: TESTARV.C * Letras identificadoras: TARV * * Nome da base de software: Exemplo de teste automatizado * Arquivo da base de...
<commit_before>#include <QCoreApplication> #include <iostream> #include <QString> #include <string> #include <newcryptograph.h> using namespace std; void Permutation() { char c; cout << "e to encode. d to decode: "; cin >> c; cout << "Input string: "; string text; cin >> text; //cout << t...
<commit_before>#include <uWS/uWS.h> #include <iostream> #include "json.hpp" #include "PID.h" #include <math.h> // for convenience using json = nlohmann::json; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double deg2rad(double x) { return x * pi() / 180; } double...
<commit_before><commit_msg>-fsanitize=vptr: SID_ATTR_*LANGUAGE are of type SvxLanguageItem<commit_after><|endoftext|>
<commit_before>// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal.h" #include "args.h" #include "trace.h" #include "deps_resolver.h" #include "utils.h" #include "coreclr.h" enum Sta...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/browser_prefs.h" #include "chrome/browser/autofill_manager.h" #include "chrome/browser/browser.h" #inclu...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* * Copyright (C) 2009 Marc Boris Duerner, Tommi Maekitalo * * 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...
<commit_before>/* * Copyright (C) 2009 Marc Boris Duerner, Tommi Maekitalo * * 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...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_path.h" #include "app/app_switches.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/ui/npapi_te...
<commit_before>#include "PowerUp.hpp" // Implementation headers #include "Ghost.hpp" #include "client.hpp" static void setScared(Ghost*, std::map<GameSprite*, ActorMovement*> &, AnimationFilm*); static void ScaredToNormal(Ghost *ghost, std::map<GameSprite*, ActorMovement*> &akmovs, AnimationFilm *film); struct Gh...
<commit_before>#include <iostream> #include <string> #include "kangaru/kangaru.hpp" /** * This example explains advanced use of kangaru and it's components. * It covers overriding services */ using std::cout; using std::endl; struct Wand { virtual void doTrick() = 0; }; struct MagicWand : Wand { void doTrick(...
<commit_before>// @(#)root/test:$Id$ // Author: Rene Brun 19/01/97 //////////////////////////////////////////////////////////////////////// // // A simple example with a ROOT tree // ================================= // // This program creates : // - a ROOT file // - a tree // Additio...
<commit_before>// Copyright (c) 2013, 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. #include "TestBlock.hpp" #i...
<commit_before>#include "editor.h" #include <qwt_plot.h> #include <qwt_plot_canvas.h> #include <qwt_scale_map.h> #include <qwt_plot_shapeitem.h> #include <qevent.h> class Overlay: public QwtPlotOverlay { public: Overlay( QWidget *parent, Editor *editor ): QwtPlotOverlay( parent ), d_editor( editor ...
<commit_before>// [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> #include <string> #include <sstream> // Patch for std::to_string() issue // See here: http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g namespace patch { template < typename T > std::string to_string...
<commit_before>#include <boost/test/unit_test.hpp> #include <boost/optional.hpp> #include <silicium/transform_if_initialized.hpp> #include <silicium/empty.hpp> #include <silicium/coroutine.hpp> #include <silicium/memory_source.hpp> #include <silicium/transforming_source.hpp> #include <silicium/for_each.hpp> #include <b...
<commit_before>#include <iostream> #include <unistd.h> #include <sys/stat.h> #include <stdio.h> #include <vector> #include <sstream> #include <dirent.h> #include <errno.h> #include <sys/types.h> using namespace std; bool isDirectory(char* directoryName) { struct stat directoryInCurrent; if (-1 == (stat(directoryN...
<commit_before>#include <iostream> #include <string> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <string.h> #include <cstring> #include <vector> #include <boost/algorithm/string/trim.hpp> #include <sys/stat.h> #include <fcntl.h> #include <cstdlib> #include <errno.h> #in...
<commit_before>#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #include <dirent.h> #include <fcntl.h> #include <stdlib.h> #include <pwd.h> #include <grp.h> #include <string.h> #include <vector> #include <queue> #include <iomanip> #include <algor...
<commit_before>// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include <targetPAL.h> #include <corlib_native.h> #include "sys_dev_gpio_native_target.h" #include "nf_rt_e...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2017 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>// (C) Copyright Gennadiy Rozental 2001. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // //! @file //! @brief Floating poin...
<commit_before>/* * Copyright 2011, * Olivier Stasse, CNRS * * CNRS * * This file is part of sot-core. * sot-core 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 3 of * the Lice...
<commit_before>int main(int argc, char *argv[]) { // Reads from the file build/version_number the new version // number and generates the header base/inc/RVersion.h. // To be executed as CINT script by build/unix/makeversion.sh. // // Author: Fons Rademakers 11/10/99 const char *in = "build/versio...
<commit_before><commit_msg>Convert SV_DECL_PTRARR to std::vector<commit_after><|endoftext|>
<commit_before>// https://leetcode.com/problems/word-break/ /* Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet", "code"]. Return true because "leetcode" can...
<commit_before>/******************************************************************************* * c7a/api/write.hpp * * Part of Project c7a. * * Copyright (C) 2015 Matthias Stumpp <mstumpp@gmail.com> * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris can compile...
<commit_before>// Copyright (C) 2017 Rob Caelers <rob.caelers@gmail.com> // // 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 // ...
<commit_before>/** * @file */ #pragma once //#include <atomic> namespace libbirch { /** * Atomic value. * * @tparam Value type. * * The implementation uses OpenMP atomics as opposed to std::atomic. The * advantage of this is ensured memory model consistency and the organic * disabling of atomics when OpenMP,...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* * This file is part of the Shiboken Python Bindings Generator project. * * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). * * Contact: PySide team <contact@pyside.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gen...
<commit_before>/* * Copyright (c) 2015, Cryptonomex, Inc. * All rights reserved. * * This source code is provided for evaluation in private test networks only, until September 8, 2015. After this date, this license expires and * the code may not be used, modified or distributed for any purpose. Redistribution and ...
<commit_before>/** * @file Global.hpp * @brief Global class prototype. * @author zer0 * @date 2017-02-16 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_CONTAINER_GLOBAL_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_CONTAINER_GLOBAL_HPP__ // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >...
<commit_before>#include "tag.h" #include <errno.h> #include <string.h> #include <node_buffer.h> #include "taglib.h" #include "bufferstream.h" using namespace node_taglib; using namespace v8; using namespace node; namespace node_taglib { static suseconds_t now() { struct timeval t; gettimeofday(&t, NULL); ...
<commit_before>#ifndef _FALCON_TUPLE_TUPLE_COMPOSE_HPP #define _FALCON_TUPLE_TUPLE_COMPOSE_HPP #include <tuple> #include <type_traits> #include <falcon/tuple/tuple_apply.hpp> #include <falcon/type_traits/cv_selector.hpp> #include <falcon/tuple/parameter_index.hpp> namespace falcon { template <std::size_t _I, std::si...
<commit_before>#include <cassert> #include <functional> #include <iostream> #include <type_traits> #include <unordered_map> #include "vm.h" const int STACK_SIZE = 1024; enum offset { return_address = 0, enclosing_frame = 1, declaration_frame = 2, local = 3 }; void pl0::execute(const bytecode & code, int entry_a...
<commit_before>#pragma once #include <string> #include <vector> #include <map> #include "rapidjson/writer.h" #include "rapidjson/prettywriter.h" #include "rapidjson/error/en.h" #include "rapidjson/stringbuffer.h" #include "acmacs-base/read-file.hh" // ----------------------------------------------------------------...
<commit_before>// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
<commit_before>//======================================================================= // Copyright (c) 2014-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>/* * test-uart.cpp * * Copyright (c) 2017 Lix N. Paulian (lix@paulian.net) * * 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 <map> #include <string> #include "memdb/schema.h" #include "base/all.h" using namespace base; using namespace mdb; using namespace std; TEST(value, types) { Value v; EXPECT_EQ(v.get_kind(), Value::UNKNOWN); v.set_i32(1987); EXPECT_EQ(v.get_kind(), Value::I32); EXPECT_EQ(v....
<commit_before>/*************************************************************************** * Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht * * * * Distributed under the terms of the BSD 3-Clause License. ...
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "platform/globals.h" #if defined(HOST_OS_ANDROID) #include "bin/socket.h" #in...
<commit_before>//! @Alan //! //! Exercise 11.3: //! Write your own version of the word-counting program. //! //! Exercise 11.4: //! Extend your program to ignore case and punctuation. //! For example, “example.” “example,” and “Example” should //! all increment the same counter. //! #include <iostream> #include <map> ...
<commit_before>/* The MIT License (MIT) Copyright (c) 2015 University of Central Florida's Computer Software Engineering Scalable & Secure Systems (CSE - S3) Lab 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 ...
<commit_before>#include "ocu.h" #include <cuda.h> #include <nvrtc.h> #ifdef __USE_CUDA__ ocu_args_d_t& getOcu(void) { static bool bInit = false; static ocu_args_d_t ocu; if (bInit == true) return ocu; bInit = true; CUresult err = cuInit(0); LOG_CU_RESULT(err); CUdevice dev = 0; CUco...
<commit_before>/*********************************************************************** filename: ItemView.cpp created: Sat May 24 2014 author: Timotei Dolean <timotei21@gmail.com> purpose: Implementation of the base class for all item model-based views. ************************************...
<commit_before>#include "stdafx.h" #include "Version.h" #include "D435iCamera.h" #include "Visualizer.h" #include <librealsense2/rs.h> #include <librealsense2/rs.hpp> #include <librealsense2/rsutil.h> #include <librealsense2/hpp/rs_pipeline.hpp> /** RealSense SDK2 Cross-Platform Depth Camera Backend **/ namespace ark...
<commit_before><commit_msg>adjust also RPN reference tokens, tdf#91842 and probably others<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: tphfedit.hxx,v $ * * $Revision: 1.10 $ * * last change: $Author: rt $ $Date: 2004-08-23 09:35:08 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/************************************************************************* * * $RCSfile: cellsh4.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2004-02-03 12:50:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbfunc2.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 22:54:33 $ * * The Contents of this file are made a...
<commit_before><commit_msg>remove unnecessary check<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/test/ui_test_utils.h" #include "base/json_reader.h" #include "base/message_loop.h" #include "base/path_service.h" #in...
<commit_before>#include <chrono> #include <iostream> #include <memory> // unique_ptr #include <set> #include <utility> // pair #include <sdd/sdd.hh> #include "mc/live.hh" #include "mc/post.hh" #include "mc/pre.hh" #include "mc/work.hh" namespace pnmc { namespace mc { namespace chrono = std::chrono; typedef sdd::c...
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <poll.h> #include "tcp.h" /****************** * tcp crap */ int tcp_read(int sd, char *buf, int len) { struct pollfd pfd; pfd.fd = sd; pfd.events = POLLIN | POLLHUP | POLLRDHUP | POLLNVA...
<commit_before>// #include <stdio.h> // #include <stdlib.h> #include <ext/stdio_filebuf.h> #include <unistd.h> /* for fork */ #include <sys/types.h> /* for pid_t */ #include <sys/wait.h> /* for wait */ #include <algorithm> #include <fstream> #include <sstream> #include <iostream> #include <DumpFile.hh> void m...
<commit_before>/*********************************************************************** query.cpp - Implements the Query class. Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc. Others may also hold copyrights on code in this fil...
<commit_before>#include "ofxDmx.h" #include "ofMain.h" #define DMX_PRO_HEADER_SIZE 4 #define DMX_PRO_START_MSG 0x7E #define DMX_START_CODE 0 #define DMX_START_CODE_SIZE 1 #define DMX_PRO_SEND_PACKET 6 // "periodically send a DMX packet" mode #define DMX_PRO_END_SIZE 1 #define DMX_PRO_END_MSG 0xE7 ofxDmx::ofxDmx() :co...
<commit_before>/* * Copyright 2016-2017 deepstreamHub GmbH * * 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 "parser.hpp" #include <algorithm> #include <boost/algorithm/string.hpp> #include <boost/regex.hpp> #include <boost/algorithm/string/regex.hpp> using namespace std; map<string,int> init_builtins() { map<string,int> builtins; const char *types[] = {"uint8", "uint16", "uint32", "uint64", ...
<commit_before>#ifndef TOML_PARSER #define TOML_PARSER #include "definitions.hpp" #include "exceptions.hpp" #include "line_operation.hpp" #include "toml_values.hpp" #include "parse_value.hpp" #include <memory> namespace toml { enum class LineKind { TABLE_TITLE, // (ex) [tablename] ARRAY_OF_TABLE_TITL...
<commit_before>/* * Copyright (C) 2014 Mellnik * * 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 la...
<commit_before>#include "perfmon.hpp" #include "arch/arch.hpp" #include "utils.hpp" #include <stdarg.h> #include "coroutine/coroutines.hpp" /* The var list keeps track of all of the perfmon_t objects. */ intrusive_list_t<perfmon_t> &get_var_list() { /* Getter function so that we can be sure that var_list is initi...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX グループ・GPT I/O 制御 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2013 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICE...
<commit_before>/** * \file prastar.cc * * * * \author Seth Lemons * \date 2008-11-19 */ #include <assert.h> #include <math.h> #include <errno.h> #include <vector> #include <limits> extern "C" { #include "lockfree/include/atomic.h" } #include "util/timer.h" #include "util/mutex.h" #include "util/msg_buffer.h"...
<commit_before>#include <iostream> #include <sstream> #include <boost/algorithm/string.hpp> #include <bitcoin/bitcoin.hpp> #include "util.hpp" using namespace bc; int main(int argc, char** argv) { if (argc > 2) { std::cerr << "sx pubkey [IS_COMPRESSED]" << std::endl; return -1; } int i...
<commit_before>#include <boost/python.hpp> #include <boost/python/exception_translator.hpp> #include <boost/python/numpy.hpp> #include "cimage.h" #include "cproc.h" #include "gil.h" #include "except.h" #include "bitmap.h" using namespace boost::python; class BitmapWrapper : public Bitmap , pub...
<commit_before>//===- Symbols.cpp --------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2015-2018 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #inclu...
<commit_before>// // Exponent.cpp // Calculator // // Created by Gavin Scheele on 3/27/14. // Copyright (c) 2014 Gavin Scheele. All rights reserved. // #include "Exponential.h" Exponential::Exponential(Expression* base, Rational* exponent){ this->type = "exponential"; this->base = base; this->exponen...
<commit_before>#ifndef TKBIO_H #define TKBIO_H #include <string> using namespace std; namespace tkbio { class fragment { string _sequence; string _cigar; string _chromosome; int _position; int _flag; vector<pair<int,char> > _mapped; public: ...
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit) * Copyright (C) 2005 Artem Pavlenko * * Mapnik 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 an...
<commit_before>/* * Copyright (c) 2013-2015 John Connor (BM-NC49AxAjcqVcF5jNPu85Rb8MJ2d9JqZt) * * This file is part of vanillacoin. * * vanillacoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one publis...
<commit_before>/* * Copyright 2008, 2009 Google Inc. * Copyright 2007 Nintendo Co., Ltd. * * 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...
<commit_before><commit_msg>output traffic cone from camera<commit_after><|endoftext|>
<commit_before>/* * File: cogwheeldatachannel.cpp * * Author: Robert Tizzard * * Created on August 10, 2017 * * Copyright 2017. * */ // // Class: CogWheelDataChannel // // Description: Class to provide FTP server data channel functionality. // The channel to created and destroyed on an as needed basis and c...
<commit_before>#include <memory> #include <algorithm> #include <iterator> #include <unordered_set> #include <unordered_map> #include "s_rules.hh" #include "s_closure.hh" #include "cons_util.hh" #include "env.hh" #include "zs_error.hh" #include "builtin_equal.hh" #include "builtin_extra.hh" #include "builtin_util.hh" #...