text
stringlengths
54
60.6k
<commit_before>//! \file /* ** Copyright (C) - Triton ** ** This program is under the terms of the Apache License 2.0. */ #include <triton/config.hpp> #include <triton/pythonBindings.hpp> #include <triton/pythonUtils.hpp> #include <triton/pythonXFunctions.hpp> #include <triton/version.hpp> /*! \page py_VERSION_pa...
<commit_before>#include <gtest/gtest.h> #include "LRUCache.hxx" TEST(LRUCache, InsertPair) { LRUCache<int, std::string, 3> cache; auto pairResult = cache.insert(std::make_pair<int, std::string>(1, "1")); EXPECT_EQ(std::string("1"), pairResult.first->second); EXPECT_TRUE(pairResult.second); EXPECT_...
<commit_before>/* Copyright (c) 2009-2019, Intel Corporation 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 con...
<commit_before>/// /// @file LoadBalancer.cpp /// @brief The LoadBalancer assigns work to the individual /// threads in the computation of the special leaves /// in the Lagarias-Miller-Odlyzko and /// Deleglise-Rivat prime counting algorithms. /// /// Simply parallelizing the computation of the sp...
<commit_before>#include <stdio.h> #include <iostream> #include <vector> // glm additional header to generate transformation matrices directly. #include <glm/gtc/matrix_transform.hpp> #include <cstring> // For memcopy depending on the platform. #include "helpers/ProgramUtilities.h" #include "Renderer.h" Renderer::~Re...
<commit_before>/**************************************************** * This is a test that will test the pthreads API * * * ****************************************************/ #include <stdio.h> #include <stdlib.h> #include <pthread.h> pthread_barrier_t barrier;...
<commit_before>#include "LoadingState.h" #include "Input.h" #include "Qor.h" #include "TileMap.h" #include "Sprite.h" #include "kit/log/log.h" #include <glm/glm.hpp> #include <cstdlib> using namespace std; using namespace glm; LoadingState :: LoadingState(Qor* qor): m_pQor(qor), m_pWindow(qor->window()), m...
<commit_before><?hh //strict /** * This file is part of hhpack\color. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace hhpack\color; enum StyleType : int { DefaultStyle = 0; ...
<commit_before>/* MStringArray - Dynamic Array of MString objects Copyright (C) 2001-2004 Jesse L. Lovelace (jllovela@eos.ncsu.edu) 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; ei...
<commit_before>/* * File: Topology.hpp * Author: emanuele * * Created on 27 April 2012, 11:18 */ #ifndef TOPOLOGY_HPP #define TOPOLOGY_HPP #include "ContentElement.hpp" #include <string> #include "boost/graph/adjacency_list.hpp" #include "boost/graph/graph_traits.hpp" #include <vector> #include <map> #include...
<commit_before>/* * * */ // Conclusion: // <commit_msg>Update 847.cpp<commit_after>/* * BFS * */ class Solution { public: int shortestPathLength(vector<vector<int>>& graph) { const int n = graph.size(); const int kAns = (1 << n) - 1; queue<pair<int, int>> q; vector<vector<int...
<commit_before>#include "MarkupWindow.h" MarkupWindow::MarkupWindow(BRect frame, const char* title) : BWindow(frame, title, B_TITLED_WINDOW, B_NOT_H_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE) { // initialize controls s AddShortcut('q', B_COMMAND_KEY, new BMessage(B_QU...
<commit_before>#define BX_IN_CPU_METHOD 1 #include "bochs.h" #include <assert.h> bx_apic_c::bx_apic_c(void) { static int apic_ids_used = 1; // default address for a local APIC, can be moved apic_base_msr = 0xfee00000; id = apic_ids_used++; err_status = 0; } bx_apic_c::~bx_apic_c(void) { // nothing for now...
<commit_before>#include "GameManager.hpp" #include "GameSlave.hpp" #include <random> #include <iostream> #include <time.h> #ifndef DONTUSEMPI #include <mpi.h> #endif // yep... it's a global variable. But it makes sense here. std::default_random_engine rng; int main(int argc, char** argv) { //Get Inputs std:...
<commit_before>#include "ModularSynth.h" #include "ModuleFactory.h" #include "Sample.h" #include "FileSection.h" #include "ModuleFactory.h" #include "TrackState.h" #include "SDL.h" #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #ifndef TUNING #define TUNING 440.0 #endif ModularSynth::Modular...
<commit_before>/******************************************************************************* GPU OPTIMIZED MONTE CARLO (GOMC) 2.70 Copyright (C) 2018 GOMC Group A copy of the GNU General Public License can be found in the COPYRIGHT.txt along with this program, also can be found at <http://www.gnu.org/licenses/>. **...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 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 <logging.h> #include <util/threadnames.h> #include <util/...
<commit_before>//#include <iostream> #include <ctime> #ifndef _NO_CUI_ #include <iostream> #endif #include "machine.h" namespace kagami { map<string, Machine> &GetFunctionBase() { static map<string, Machine> base; return base; } inline void AddFunction(string id, vector<Processor> proc, vector<string> p...
<commit_before>#include <cassert> #include <cstdlib> #include "QuadGLWidget.h" const int HALF_RANGE = 200; QuadGLWidget::QuadGLWidget(QWidget* const parent) : GLWidget(parent) { for(int i = 0; i < QuadGLWidget::NUM_QUADS; i++) { const int size = 1 + rand() % (HALF_RANGE / 7); Quad quad = { QVector3D( -H...
<commit_before> #include "iApp.h" string iApp::app_name = "iApp"; string iApp::app_version = "1.0.0"; iApp::iApp(string _app_name, string _app_version) { auto_hide_cursor = true; cursor_visible = true; cursor_duration_ms = 3000; if(_app_name != "") app_name = _app_name; if(_app_version != "")...
<commit_before>#if 1 // set to 0 to build minimal lunex example #include "engine/allocators.h" #include "engine/command_line_parser.h" #include "engine/crc32.h" #include "engine/debug.h" #include "engine/engine.h" #include "engine/file_system.h" #include "engine/geometry.h" #include "engine/input_system.h" #include "e...
<commit_before>/* Copyright (C) 2013-2015 The Communi Project You may use this file under the terms of BSD license as follows: 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 mus...
<commit_before>/************************************************************************ * * Flood Project (2008-201x) * Licensed under the simplified BSD license. All rights reserved. * ************************************************************************/ #include "Runtime/API.h" #include "Runtime/Mono.h" #inclu...
<commit_before>#include "ProgramReader.h" #include "../types/InternalTypes.h" const std::string ProgramReader::MAGIC = "THING"; ProgramInfo ProgramReader::process() { read_header(); auto data = read_data(); auto code = read_code(); return ProgramInfo(data, code); } void ProgramReader::read_header() { if (!f...
<commit_before>/************************************************************************** * * Copyright 2011 LunarG, Inc. * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkDashPathEffect.h" static void test_nulldev(SkCanvas* canvas) { SkBitmap bm; bm.setConfig(SkBitmap::kA...
<commit_before>#include "DissentTest.hpp" //#include <cryptosha.h> using Dissent::Connections::Id; namespace Dissent { namespace Tests { TEST(Id, Basic) { CryptoPP::SHA1 sha1; QByteArray hash(20, 0); byte *hashb = reinterpret_cast<byte *>(hash.data()); QByteArray zero("hello"); const byte *zero...
<commit_before>#include "mpx2bits.h" #include <complex> #include <deque> #include "liquid_wrappers.h" #define FS 228000.0f #define FC_0 57000.0f #define IBUFLEN 4096 #define OBUFLEN 128 #define BITBUFLEN 1024 #define PI_f 3.1415926535898f #define PI_2_f 1.5707963267949f namespace redsea { ...
<commit_before>#include <string> #include <stdlib.h> #include <sstream> #include "../USB.h" #include "../configuration.h" extern HINSTANCE hInst; std::wstring IniDir; std::wstring LogDir; void CALLBACK USBsetSettingsDir( const char* dir ) { OSDebugOut(L"USBsetSettingsDir: %S\n", dir); wchar_t dst[4096] = {0}; siz...
<commit_before>/* * Copyright 2016 Riccardo Melioli. */ #include "network.h" Server::Server(std::string encryptionKeyArg) { encryptionKey = encryptionKeyArg; port = "none"; hThread = NULL; listenSocket = INVALID_SOCKET; sta.encryptionKey = encryptionKeyArg; sta.ListenSocket = INVALID_SO...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_ASSEMLBER_LOCAL_CODIM0_HH #define DUNE_GDT_ASSEMLBER_LOCAL_CODIM0_HH #i...
<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 "rpcserver.h" #include "rpcclient.h" #include "init.h" #in...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pymor/dune-pymor // Copyright holders: Stephan Rave, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_PYMOR_OPERATORS_INTERFACES_HH #define DUNE_PYMOR_OPERATORS_INTERFACES_H...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 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 "clientversion.h" #include "rpcserver.h" #include "init.h...
<commit_before>#include "command.hh" #include "hash.hh" #include "legacy.hh" #include "shared.hh" using namespace nix; struct CmdHash : Command { enum Mode { mFile, mPath }; Mode mode; bool base32 = false; bool truncate = false; HashType ht = htSHA512; Strings paths; CmdHash(Mode mode) : ...
<commit_before>#include <algorithm> #include "command.hh" #include "common-args.hh" #include "eval.hh" #include "globals.hh" #include "legacy.hh" #include "shared.hh" #include "store-api.hh" #include "filetransfer.hh" #include "finally.hh" #include "loggers.hh" #include "markdown.hh" #include <sys/types.h> #include <...
<commit_before>#include "main.h" // blabla /// Filename of input file. char* filename = NULL; int yyerror(const char* msg) { // display passed error message fprintf(stderr, "Error in '%s' in line %d:\n", filename, yylineno); fprintf(stderr, " token/text last read was '%s'\n\n", yytext); // close input fil...
<commit_before>#include "notebook.h" #include "logging.h" #include "sourcefile.h" #include "singletons.h" #include <fstream> #include <regex> #include "cmake.h" #include <iostream> //TODO: remove using namespace std; //TODO: remove namespace sigc { SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE } Notebook::Noteboo...
<commit_before>/* * Nouncer Implementation */ #include "nouncer.h" /* * Assembles the map<word,phoneme> dictionary by reading one line at a time, * separating the word from the pronunciation, encoding the phoneme, and * putting the pair in the map */ std::vector<char> Nouncer::cons = {'9',':',';','<','I','J','...
<commit_before>#include "commands.h" #include "config.h" #include "diagnostics.h" #include "interface/usb.h" #include "util/log.h" #include "config.h" #include "openxc.pb.h" #include "pb_decode.h" #include <payload/payload.h> #include "signals.h" #include <can/canutil.h> #include <bitfield/bitfield.h> #include <limits....
<commit_before>#include "p11engine.h" #include <openssl/evp.h> #include <openssl/pem.h> #include <boost/scoped_array.hpp> #include "utils.h" #ifdef TEST_PKCS11_ENGINE_PATH #define kPkcs11Path TEST_PKCS11_ENGINE_PATH #else #define kPkcs11Path "/usr/lib/engines/libpkcs11.so" #endif P11Engine* P11EngineGuard::instance...
<commit_before><commit_msg>Update gizmo transform every frame when objects are selected<commit_after><|endoftext|>
<commit_before><commit_msg>Fixed typo<commit_after><|endoftext|>
<commit_before>#include "typedbytes.h" #include "stdio.h" #include <string> #include <vector> #define IS_TYPEDBYTES_BYTE_SEQUENCE(type) ((type) >= 50 && (type) <= 200) static inline void push_opaque_typecode(typedbytes_opaque& buffer, TypedBytesType code) { buffer.push_back(...
<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 // "Lic...
<commit_before>/****************************************************************** * * Copyright 2016 Samsung Electronics 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 cop...
<commit_before>/* * This file is part of telepathy-accounts-kcm * * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/> * * 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...
<commit_before>void main(int argc, int** argv) { double dt=0.1*ns; double dx=0.1*nm; double Ee=1000*V/cm; double t=0; for (int i=-imin; i<imax; i++) { p[i]=-n[i]=gaus(i); } while (t<100*ns) { for (int i=-imin; i<imax; i++) { E[i]=0; for (int j=-imin; j<i; j++) { ...
<commit_before>/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef DATABASE_HH_ #define DATABASE_HH_ #include "dht/i_partitioner.hh" #include "core/sstring.hh" #include "core/shared_ptr.hh" #include "net/byteorder.hh" #include "utils/UUID.hh" #include "db_clock.hh" #include "gc_clock.hh" #include <functional>...
<commit_before>#include <cassert> #include "operators.h" namespace ad { static void AddBackprop(Var& val, Var* lhs, Var* rhs) { lhs->derivative() += val.derivative(); rhs->derivative() += val.derivative(); } Var operator+(const Var& v1, const Var& v2) { return v1.graph()->CreateNode(v1.value() + v2.valu...
<commit_before>/************************************************************************* * * $RCSfile: slidebitmap.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-11-26 19:20:53 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before><commit_msg>Be extra-careful about closing pipes; don't close stdout/stderr by mistake!<commit_after><|endoftext|>
<commit_before><commit_msg>FindPidsST corrected for incorrect subsampling, pid types changed to std::vectors<commit_after><|endoftext|>
<commit_before><commit_msg>INTEGRATION: CWS pchfix02 (1.4.92); FILE MERGED 2006/09/01 17:43:19 kaib 1.4.92.1: #i68856# Added header markers and pch files<commit_after><|endoftext|>
<commit_before>#include <QCoreApplication> #include "./mindwavecontroller.h" #include "./arduinointerface.h" int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); if (app.arguments().size() != 3) { qDebug() << "Invalid Arguments provided"; qDebug() << "Correct arguement syntax ...
<commit_before>#ifndef __PERFMON_HPP__ #define __PERFMON_HPP__ #include <string> #include <map> #include "config/alloc.hpp" #include "utils.hpp" // Horrible hack because we define fail() as a macro #pragma push_macro("fail") #undef fail #include <sstream> #pragma pop_macro("fail") class perfmon_watcher_t; class perf...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sfxresid.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2007-04-26 10:08:44 $ * * The Contents of this file are made ...
<commit_before>/* * Static.hpp * * Created on: Jan 13, 2011 * Author: Peter Goodman * Version: $Id$ * * Copyright 2011 Peter Goodman, all rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
<commit_before>/** * This file is part of the "libfnord" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with th...
<commit_before>#pragma once #include <boost/thread.hpp> #include <opencv2/core/core.hpp> // Base class for output. Derived classes are for writing // AVI videos, zms (video + depth), plus whatever else we // imagine in the future. class MediaOut { public: MediaOut(int frameSkip, int framesPerFile); virtual ~...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** No Commercial Usage ** ** This file contains pre-release cod...
<commit_before>// // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ /////////////////////////////////////////////////////////////////////////////...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // stock_loan.cpp // -------------- // // Author: Parsiad Azimzadeh //////////////////////////////////////////////////////////////////////////////// #include <QuantPDE/Core> #include <QuantPDE/Modules/Lambdas> #include <Qua...
<commit_before>#ifndef SAVE_STATE_H # define SAVE_STATE_H # pragma once struct statebuf { void* sp; void* label; }; #if defined(__GNUC__) inline bool __attribute__((always_inline)) savestate(statebuf& ssb) noexcept { bool r; #if defined(i386) || defined(__i386) || defined(__i386__) asm volatile ( "movl %%esp...
<commit_before>#ifndef SAVE_STATE_H # define SAVE_STATE_H # pragma once struct statebuf { void* sp; void* label; }; #if defined(__GNUC__) static inline bool __attribute__((always_inline)) savestate( statebuf& ssb) noexcept { bool r; #if defined(i386) || defined(__i386) || defined(__i386__) asm volatile ( ...
<commit_before>#include <iostream> #include <random> #include <thread> using std::cout; using std::cin; using std::random_device; using std::mt19937_64; using std::uniform_real_distribution; using std::vector; using std::thread; #define SIZEF 500 typedef struct Info{ int board[SIZEF][SIZEF]; int x; int y; } In...
<commit_before>#include "cuiserve.h" #include "json/json_spirit_utils.h" #include "json/json_spirit_value.h" #include "json/json_spirit_writer_template.h" using namespace json_spirit; bool CUIServer::HasConnection(){ if(NULL == instance) return false; return instance->m_bConnect; } void CUIServer::StartServer(boo...
<commit_before>/*************************************************************************** * Copyright (C) 2006, IBM * * * * Maintained By: ...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 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 o...
<commit_before>/* This file is part of KOrganizer. Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> 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 Li...
<commit_before>//============================================================================================================= /** * @file main.cpp * @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>; * Matti Hamalainen <msh@nmr.mgh.harvard.edu> * @version 1.0 * @date July, 2012 * * @section LIC...
<commit_before>#include "rubymotion.h" #include "motion-game.h" /// @class Director < Object /// Director is a shared object that takes care of the scene graph. VALUE rb_cDirector = Qnil; static VALUE mc_director_instance = Qnil; static VALUE director_using_scene = Qnil; /// @group Constructors /// @method .shared ...
<commit_before> #include "types.h" #include "depthmap.cc" namespace csfm { class DepthmapEstimatorWrapper { public: void AddView(PyObject *K, PyObject *R, PyObject *t, PyObject *image) { PyArrayContiguousView<double> K_view((PyArrayObject *)K); PyArrayContiguou...
<commit_before>#include <download.h> #include <pb_controller.h> #include <config.h> #include <string> namespace podbeuter { download::download(pb_controller * c) : dlstatus(DL_QUEUED), cursize(0), totalsize(0), ctrl(c) { } download::~download() { } const char * download::filename() { return fn.c_str(); } const ch...
<commit_before>#ifndef __RANK_FILTER__ #define __RANK_FILTER__ #include <list> #include <set> #include <cmath> #include <cassert> #include <iostream> #include <iterator> #include <type_traits> #include <utility> #include <vigra/multi_array.hxx> #include <vigra/linear_algebra.hxx> namespace vigra { template<unsigne...
<commit_before>#include "tags.h" #include <0mq/context.h> #include <0mq/socket.h> #include <0mq/message.h> #include <0mq/poller.h> #include <iostream> #include <cstddef> #include <chrono> #include <thread> #include <list> #include <unordered_map> #include <cassert> typedef std::size_t jobid_type; typedef std::chrono...
<commit_before>#include "SysConfig.h" #if(HAS_MPL3115A2) #include <CI2C.h> #include "CMPL3115A2.h" #include "CTimer.h" #include "NDataManager.h" namespace { CTimer mpl3115a2_report_timer; CTimer mpl3115a2_sample_timer; bool isInitialized = false; } CMPL3115A2::CMPL3115A2( CI2C *i2cInterfaceIn ) : ...
<commit_before>/* * Copyright (C) 2019 pengjian.uestc @ gmail.com */ /* * 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,...
<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/common/slide_animation.h" #include <math.h> // How many frames per second to target. static const int kDefaultF...
<commit_before>// Copyright (c) 2011 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/nacl/nacl_ui_test.h" // TODO(jvoung) see what includes we really need. #include "base/file_util.h" #include "bas...
<commit_before>// // replace.cpp // // Perform search-and-replace using pcre++ on file names matching file_regex. // // Created by Daniel Kozitza // #include <csignal> #include <cstdlib> #include <dirent.h> #include <fstream> #include <iomanip> #include <iostream> #include "options.hpp" #include "tools.hpp" using nam...
<commit_before>// @(#)root/reflex:$Id$ // Author: Stefan Roiser 2004 // Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved. // // Permission to use, copy, modify, and distribute this software for any // purpose is hereby granted without fee, provided that this copyright and // permissions notice appear ...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>////////////////////////////////////////////////////////////////////// // // Pixie // // Copyright 1999 - 2003, Okan Arikan // // Contact: okan@cs.berkeley.edu // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU...
<commit_before>#include "mem/cache/tags/f_dynalru.hh" #include "base/intmath.hh" #include "debug/CacheRepl.hh" #include "mem/cache/tags/cacheset.hh" #include "mem/cache/tags/lru.hh" #include "mem/cache/base.hh" #include "sim/core.hh" #include "mem/cache/blk.hh" #include <typeinfo> F_DYNALRU::F_DYNALRU( unsigned _numSe...
<commit_before>// Module: Log4CPLUS // File: property.cxx // Created: 2/2002 // Author: Tad E. Smith // // // Copyright 2002-2010 Tad E. Smith // // 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 Li...
<commit_before>//////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Realm 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://ww...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Machinecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "protocol.h" #include "util.h" #include "utilstrenco...
<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 "protocol.h" #include "util.h" #include "netbase.h" #ifnd...
<commit_before>#include "BoundingBox.hpp" #include "MotionPlanner.hpp" namespace Slic3r { MotionPlanner::MotionPlanner(const ExPolygons &islands) : islands(islands), initialized(false) {} MotionPlanner::~MotionPlanner() { for (std::vector<VisiLibity::Environment*>::iterator env = this->envs.begin(); env != t...
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "intro.h...
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <fs.h> #include <qt/intro.h> #i...
<commit_before>/** * Copyright (c) 2016 Los Alamos National Security, LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code ...
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved. #include <iomanip> #include <map> #include <string> #include <sstream> #include <vector> #include <boost/lexical_cast.hpp> #include "osquery/core.h" #include "osquery/database.h" #define FEATURE(name, reg, bit) std::make_pair(name, std::make_pa...
<commit_before> #pragma once #include <reflectionzeug/variant/Variant.h> #include <reflectionzeug/property/AccessorValue.h> namespace { template <typename ValueType> struct ConvertTo { static ValueType convertTo(const reflectionzeug::Variant & variant) { return ValueType(); } }; template <> stru...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011-2012. // 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) //=================================...
<commit_before><commit_msg>Convert test07 to new transactor.<commit_after><|endoftext|>
<commit_before>#ifndef ADDRESSES_HPP #define ADDRESSES_HPP #include <logical_address.h> const LogicalAddress la_LSM(1, 0); const LogicalAddress la_AGGREGATOR(1, 1); const LogicalAddress la_RADIO(1, 2); const LogicalAddress la_TEMPEX(1, 3); const LogicalAddress la_TEMPIN(1, 4); const LogicalAddress la_RTC(1, 5); const ...
<commit_before>/* * Point.cpp * * Created on: Mar 28, 2014 * Author: icaro */ #include "Point.h" Point::Point(){ x=0, y=0; } Point::Point(float x, float y){ this->x=x, this->y=y; } void Point::Set(Point point){ x=point.GetX(); y=point.GetY(); } void Point::Set(float x, float y){ this->x=x,this->y=y;...