text
stringlengths
54
60.6k
<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/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not ...
<commit_before>/* Copyright 2011 Joe Hermaszewski. 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 must retain the above copyright notice, this list...
<commit_before>/* * Copyright 2011-2013 Blender Foundation * * 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 appli...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: StorageFileAccess.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-09-17 02:42:54 $ * * The Contents of this file...
<commit_before>/* * Category.cpp * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <log4cpp/Portability.hh> #ifdef LOG4CPP_HAVE_UNISTD_H # incl...
<commit_before>// Copyright Hugh Perkins 2016 // 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 or agr...
<commit_before>#include "Smartcar.h" ESCMotor::ESCMotor(unsigned short pin) { _pin = pin; setFreqsAndSpeeds(); setAllowedSpeedLimits(); } void ESCMotor::setFreqsAndSpeeds(){ FULL_FORWARD = 100; FULL_BACKWARD = 100; IDLE_RAW_SPEED = 1500; MAX_FRONT_RAW_SPEED = 1800; MAX_BACK_RAW_SPEED = 1200; _speed = ...
<commit_before>/* Copyright (C) 2015 Olavi Haapala ojhaapala@gmail.com Twitter: @olpetik 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 right...
<commit_before>#include <iostream> using namespace std; const int length = sizeof(int) * 8; void binaryNumber(int number, bool binaryArray[]) { for (int i = 0; i < length; i++) { if (number & 1) { binaryArray[i] = 1; } number = number >> 1; } } void binarySum(bool binaryNumber1[], bool binaryNumber2[...
<commit_before>#include <iostream> //#include <conio.h> #include <vector> #include "../include/Common.h" #include "../include/Gambling.h" #include "../include/Player.h" using namespace std; using namespace Common; // Contains the functions needed to simulate a gamble for items. void Gambling::Gamble(Player *_Player...
<commit_before><commit_msg>reset remote ids on inter-resource moves<commit_after><|endoftext|>
<commit_before>#ifndef SERVER_HTTP_HPP #define SERVER_HTTP_HPP #include <boost/asio.hpp> #include <boost/asio/spawn.hpp> #include <regex> #include <unordered_map> #include <thread> #include <functional> #include <iostream> namespace SimpleWeb { template <class socket_type> class ServerBase { public: ...
<commit_before>#include "server_functions.h" #include <create_server.cpp> #include <string.h> #include <rpc.h> #include <iostream> #include <sstream> #include <netinet/in.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <vector> #include <algorithm> #include <net...
<commit_before>/** bidding_agent_ex.cc -*- C++ -*- Rémi Attab, 22 Feb 2013 Copyright (c) 2013 Datacratic. All rights reserved. Example of a simple fixed-price bidding agent. */ #include "rtbkit/common/bids.h" #include "rtbkit/core/banker/slave_banker.h" #include "rtbkit/c...
<commit_before>#include "Geometry.h" #include "VertexAttrib.h" Geometry::Geometry() { glGenVertexArrays(1, &glVertexArray); glBindVertexArray(glVertexArray); glGenBuffers(1, &glIndiceBuffer); glGenBuffers(1, &glPositionBuffer); glBindVertexArray(0); } Geometry::Ptr createGeometryFromFile(std::string file...
<commit_before>// // Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved. // #ifndef WITHOUT_HSA_BACKEND #include <string> #include <sstream> #include <fstream> #include <iostream> #include "os/os.hpp" #include "rocdevice.hpp" #include "rocprogram.hpp" #if defined(WITH_LIGHTNING_COMPILER) #include "op...
<commit_before>/** * This file is part of Slideshow. * Copyright (C) 2008-2010 David Sveningsson <ext@sidvind.com> * * Slideshow 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...
<commit_before>#include <iostream> #include <cstdio> #include <vector> #include <set> #include <map> #include <cstdlib> #include <algorithm> #include <sstream> #include <queue> #include <stack> #include <ctime> #include <iomanip> #include <cmath> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif using namespace...
<commit_before>/********************************************************************* * * Condor ClassAd library * Copyright (C) 1990-2001, CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, WI, and Rajesh Raman. * * This library is free software; you can redistribute it and/or * modif...
<commit_before>// File_DtvccTransport - Info for DTVCC Transport strams // Copyright (C) 2010-2010 MediaArea.net SARL, Info@MediaArea.net // // 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 Fo...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 ...
<commit_before>/************************************************************************* * * $RCSfile: tabletree.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: hr $ $Date: 2004-11-09 12:35:33 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/* * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) * Copyright (C) 2007 Alp Toker <alp@atoker.com> * Copyright (C) 2008 Eric Seidel <eric@webkit.org> * Copyright (C) 2008 Dir...
<commit_before>/** * @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required b...
<commit_before>#include <map> #include <limits> #include <algorithm> #include "ObjModel.hpp" #include "glm/geometric.hpp" namespace { class VertexIndexIndexer { public: VertexIndexIndexer() : _object(0) { } VertexIndexIndexer& operator << (vfm::Object &o) { if (_object != &o) { ...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // 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>/** The MIT License (MIT) Copyright (c) <2013> <Moritz Schulze> 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,...
<commit_before>#include "oddlib/compressiontype3.hpp" #include "oddlib/stream.hpp" #include "logger.hpp" #include <windows.h> namespace Oddlib { static void NextBits(signed int& bitCounter, unsigned int& src_data, IStream& stream) { if (bitCounter > 0) { if (bitCounter == 14) ...
<commit_before> // Copyright (c) 2015 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include "openMVG/sfm/sfm_data_io.hpp" #include "openMVG/stl/...
<commit_before>#include <debugger/bridge/delayload.h> #include <debugger/lua.h> #include <debugger/debugger.h> #include <debugger/io/socket.h> #include <memory> #include <intrin.h> namespace luaw { struct ud { std::unique_ptr<vscode::io::socket> io; std::unique_ptr<vscode::debugger> dbg; void listen(const ch...
<commit_before>/************************************************************************* * * $RCSfile: pamain.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2004-03-18 12:13:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2004 The Apache Software Foundation. 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. Red...
<commit_before>#include "TATUInterpreter.h" void TATUInterpreter::Interpreter(unsigned char *string, unsigned int length){ switch(string[0]){ case COMMAND_SET: cmd.OBJ.TYPE = TATU_SET; if(string[4] == CODE_INFO){ cmd.OBJ.CODE = TATU_CODE_INFO; // Not...
<commit_before>/** * Copyright (C) 2015 3D Repo Ltd * * This program 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 option) any later version. * * T...
<commit_before>#include <iostream> #include <algorithm> #include <SDL2/SDL.h> #include <IL/il.h> #include <IL/ilu.h> #include <cassert> #include "cluster.h" #include <cstdio> #include <cstdlib> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string> #include <locale> #include "arduino-serial-...
<commit_before>// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include "MainMenu.hpp" #include "SpritesSample.hpp" #include "GUISample.hpp" #include "RTSample.hpp" #include "AnimationsSample.hpp" #include "InputSample.hpp" #include "SoundSample.hpp" #include "PerspectiveSample.hpp" s...
<commit_before>#include "El.hpp" using namespace El; int main( int argc, char* argv[] ) { Initialize( argc, argv ); const Int m = Input("--m","matrix height",100); const Int n = Input("--n","matrix width",100); DistMatrix<double> A; Uniform( A, m, n ); Display( A, "A" ); Finalize(); ...
<commit_before>/* * PEyeLog.cpp * * This file is part of libeye and responsible for logging experiments * * Copyright (C) 2016 Maarten Duijndam * * 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 Sof...
<commit_before>#include <fstream> #include <iostream> #include <chrono> #include <cstdio> #include <string> #include <vector> #include <sdbusplus/vtable.hpp> #include <systemd/sd-bus.h> #include <systemd/sd-journal.h> #include "elog-lookup.cpp" #include "config.h" #include "elog_entry.hpp" #include "log.hpp" #include "...
<commit_before>/* RTcmix - Copyright (C) 2004 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #include <RTcmixMIDI.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> ...
<commit_before><commit_msg>Use separate code path for loading prefabs from assetlibrary<commit_after><|endoftext|>
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met:...
<commit_before>// Scintilla source code edit control /** @file KeyWords.cxx ** Colourise for particular languages. **/ // Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #i...
<commit_before><commit_msg>Added missing dummy return statements.<commit_after><|endoftext|>
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapProcShader.h" #include "SkColorPriv.h" #include "SkFlattenableBuffers.h" #include "SkPixelRef.h" bool SkBitmapProcShader::CanDo(const SkBitma...
<commit_before>/* * Use and distribution licensed under the Apache license version 2. * * See the COPYING file in the root project directory for full text. */ #include "sqltoast.h" #include "parser/error.h" #include "parser/parse.h" namespace sqltoast { // <insert statement> ::= INSERT INTO <table name> <insert...
<commit_before>/* * DesktopMain.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTABILIT...
<commit_before>#include "spell_logic.h" #include "game/transcendental/logic_step.h" #include "game/transcendental/cosmos.h" #include "game/transcendental/entity_handle.h" #include "game/components/sentience_component.h" #include "game/components/render_component.h" #include "game/components/wandering_pixels_component.h...
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* ------------------------------------------------------------------------- ATS License: see $ATS_DIR/COPYRIGHT Author: Ethan Coon Interface for EWC, a helper class that does projections and preconditioners in energy/water-cont...
<commit_before>#pragma ident "$Id$" //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published //...
<commit_before>/// /// @file PreSieve.cpp /// @brief Pre-sieve multiples of small primes to speed up the sieve /// of Eratosthenes. At startup primesieve initializes a small /// buffer of size p1*p2*p3*pn and removes the multiples of /// the first n primes from that buffer. Then while sieving...
<commit_before><commit_msg>Updating for the new way of getting data from sensors.<commit_after><|endoftext|>
<commit_before>/**************************************************************************** ** ** Copyright (C) Qxt Foundation. Some rights reserved. ** ** This file is part of the QxtGui module of the Qxt library. ** ** This library is free software; you can redistribute it and/or modify it ** under the...
<commit_before><commit_msg>fixed access to private cmaes pli members<commit_after><|endoftext|>
<commit_before>#pragma once #include <cstdint> #include <initializer_list> #include <unordered_map> #include <boost/variant.hpp> #include "utils/underlying.hpp" #if defined(__clang__) || defined(GCC47) #else namespace std { typedef double double_t; } // namespace std #endif namespace blackhole { namespace log {...
<commit_before><commit_msg>Fix multiple-definition issue with Curve::solve.<commit_after><|endoftext|>
<commit_before>// // Copyright (c) 2014 CNRS // Authors: Florent Lamiraux // // This file is part of hpp-core // hpp-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 Lic...
<commit_before>#include "Settings.hpp" #include "File.hpp" #include <cstring> #include <fstream> void loadSettingsFromFile(std::vector<std::string> &args_, std::string settFile_) { std::ifstream in(settFile_); if (!in.is_open()) { throw (std::string("SSettings:loadSettingsFromFile: can't open setti...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Quick Controls module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial ...
<commit_before><commit_msg>fix arrows to full stops (syntax errors)<commit_after><|endoftext|>
<commit_before>#include <list> #include <algorithm> #include "rtmidi/RtMidi.h" #include "core.hpp" #include "MidiIO.hpp" /* * MIDIToCVInterface converts midi note on/off events, velocity , channel aftertouch, pitch wheel and mod weel to * CV */ struct MIDICCToCVInterface : MidiIO, Module { enum ParamIds { NUM_PA...
<commit_before><commit_msg>Use double when reading double value :-)<commit_after><|endoftext|>
<commit_before><commit_msg>-Wmisleading-indentation<commit_after><|endoftext|>
<commit_before><commit_msg>Add highbd inv_txfm unit test to support eob logic<commit_after><|endoftext|>
<commit_before>/* * Copyright 2015 WebAssembly Community Group * * 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 ...
<commit_before>// // ThreadLocal.cpp // // $Id$ // // Library: Foundation // Package: Threading // Module: Thread // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of t...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2019, Vinitha Ranganeni, Eric Pan // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are me...
<commit_before>/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. * * THE BSD LICENSE * * Re...
<commit_before>#include "cryptfiledevice.h" #include <openssl/evp.h> #include <limits> #include <QtEndian> #include <QFileDevice> #include <QFile> #include <QCryptographicHash> static int const kHeaderLength = 128; static int const kSaltMaxLength = 8; CryptFileDevice::CryptFileDevice(QObject *parent) : QIODe...
<commit_before>/* * anagrams.cpp */ #include "../include/dict.h" #include <iostream> #include <chrono> #include <sstream> #include <set> #include <list> #include <queue> #include <vector> #include <climits> using namespace std; void solve(int solutionLimit, unsigned long timeoutAtMillis); string sortAndFilterCh...
<commit_before>/* * Illarionserver - server for the game Illarion * Copyright 2011 Illarion e.V. * * This file is part of Illarionserver. * * Illarionserver 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 * Softw...
<commit_before>// RegisterTypes_Analyses.cpp // author: Frank C. Anderson //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #include <string> #include <iostream> #include <OpenSim/Common/Object.h> #include "RegisterTypes_osimAnalyses.h" #include "Kinematics.h" #include "Actuation...
<commit_before>#include <algorithm> #include <cassert> #include <limits> #include <unordered_map> #include "SDL.h" #include "ProvinceMapPanel.h" #include "CursorAlignment.h" #include "ProvinceButtonName.h" #include "RichTextString.h" #include "TextAlignment.h" #include "TextBox.h" #include "WorldMapPanel.h" #include...
<commit_before>// // Find a minimum spanning tree in a graph. // #include <algorithm> #include <cassert> #include <fstream> #include <iostream> #include <limits> #include <vector> #include "edge.hpp" #include "point.hpp" using namespace std; static void load( const string& filename, vector<point>& ); static void pri...
<commit_before> AliAnalysisTaskEMCALIsoPhoton *AddTaskEMCALIsoPhoton( TString period = "LHC11d", TString trigbitname = "kEMC7", TString pathstrsel = "/" ) { // Get the pointer to the existing analysis manager via the static access method. //==============================...
<commit_before>// // ulib - a collection of useful classes // Copyright (C) 2000-2017 Michael Fink // /// \file Atl.hpp ATL includes // #pragma once // ignore /analyze warnings in ATL header files #pragma warning(push) #pragma warning(disable: 6001 6031 6387 26110) /// prevent ATL using stuff removed by WIN32_LEAN_AN...
<commit_before><commit_msg>use result from Traverse instead of counting ourselves<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be /...
<commit_before>#include <nds.h> #include <maxmod9.h> #include <stdio.h> #include "ball.h" #include "geometry.h" #include "player.h" #include "stats.h" // Audio #include "soundbank.h" #include "soundbank_bin.h" // Methods void initBall(ball *b) { b->speed = 1.5; b->box.pos.x = 100; b->box.pos.y = 30; ...
<commit_before>#include <ctrcommon/common.hpp> #include <sstream> #include <iomanip> #include <stdio.h> #include <sys/errno.h> typedef enum { INSTALL, DELETE } Mode; int main(int argc, char **argv) { if(!platform_init()) { return 0; } std::vector<std::string> extensions;...
<commit_before>// The MIT License (MIT) // Copyright (c) 2015 Skorezore // 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 right...
<commit_before>#include <ctrcommon/input.hpp> #include <ctrcommon/platform.hpp> #include <ctrcommon/ui.hpp> #include <stdio.h> #include <sstream> #include <iomanip> #include <sys/dirent.h> #include <3ds.h> typedef enum { INSTALL_CIA, DELETE_CIA, DELETE_TITLE } Mode; int main(int argc,...
<commit_before>#include <iostream> #include "cost.hpp" #include "timing.hpp" #include "layer.hpp" #include "activations.hpp" int main() { { using namespace nn; using InputLayer = layer<LayerType::kEigenInput, ActivationType::kSigmoid, 256>; using FirstLayer = layer<LayerType::kEigenRegular, ActivationType::kSi...
<commit_before>/// /// @file help.cpp /// /// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primecount.hpp> #include <iostream> #include <cstdlib> #include <string> using namespace st...
<commit_before>/* * Copyright (C) 2015 Dan Leinir Turthra Jensen <admin@leinir.dk> * * 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...
<commit_before>#include "arpTable.hpp" using namespace std; using namespace headers; constexpr array<uint8_t, 6> ARPTable::nextHop::invalidMac; void ARPTable::createCurrentTable(std::shared_ptr<RoutingTable> routingTable){ logDebug("ARPTable::createCurrentTable constructing tables for mapping"); // create a new t...
<commit_before>#include <llvm/ADT/StringRef.h> #include <llvm/Support/ErrorHandling.h> #include "decl.h" #include "../support/utility.h" using namespace delta; const FuncType* FuncDecl::getFuncType() const { auto paramTypes = map(params, *[](const ParamDecl& p) -> Type { return p.type; }); return &llvm::cast<...
<commit_before>#include <llvm/ADT/StringRef.h> #include <llvm/Support/ErrorHandling.h> #include "decl.h" #include "../support/utility.h" using namespace delta; const FuncType* FuncDecl::getFuncType() const { auto paramTypes = map(params, *[](const ParamDecl& p) { return p.type; }); return &llvm::cast<FuncType...
<commit_before>/* * Copyright (C) 2019 The Android Open Source Project * * 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 ...
<commit_before>#include "fid/base_fid.h" namespace fid { void BaseFid::Init() { // Initialize the health properly. health_ = 100.0; // Resize the temp array (maybe others?) temp_.reserve(wf_.size()); // Initialize the BaseFid for analysis LoadParams(); CenterFid(); CalcNoise(); CalcMaxAmp(); Fin...
<commit_before>/* * Certificate Message * (C) 2004-2006,2012 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/tls_messages.h> #include <botan/tls_extensions.h> #include <botan/internal/tls_reader.h> #include <botan/internal/tls_handshake_io.h> #include <botan/inter...
<commit_before>#include "targetver.h" #include "spipc.h" #include <stdio.h> #include <tchar.h> #include <thread> #include <atomic> #include <boost/interprocess/sync/named_mutex.hpp> #include <boost/interprocess/sync/named_condition.hpp> #include <boost/thread/thread.hpp> namespace spipc { namespace testing { class Me...
<commit_before><commit_msg>Const correctness<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 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" #end...
<commit_before>/*! * \file main.cc * * \brief The control component for BPEL2oWFN * * This file controls the behaviour of BPEL2oWFN and is the interface to the * environment. * * \author * - responsible: Christian Gierds <gierds@informatik.hu-berlin.de> * - last changes of: \$Author: gie...
<commit_before>#include <bson.h> #include "hphp/runtime/base/base-includes.h" static bool cbson_loads_visit_int64 (const bson_iter_t *iter, const char* key, int64_t v_int64, Array *output) { output->add(String(key)...
<commit_before>#include "calendar.h" #include <QDebug> #include <calformat.h> #include <extendedstorage.h> #include <extendedcalendar.h> void CalendarTest::test() { // const KDateTime &dateTime = KDateTime::fromString("20140919T100000Z"); // qDebug() << dateTime.toString(); // const KTimeZone &timezone = dateTime....
<commit_before>#include "Genes/Sphere_of_Influence_Gene.h" #include <algorithm> #include "Game/Board.h" #include "Moves/Complete_Move.h" #include "Utility.h" Sphere_of_Influence_Gene::Sphere_of_Influence_Gene() : legal_bonus(1.0) { } Sphere_of_Influence_Gene::~Sphere_of_Influence_Gene() { } void Sphere_of_Influen...
<commit_before>#include "Genes/Sphere_of_Influence_Gene.h" #include <algorithm> #include <array> #include <memory> #include "Genes/Gene.h" #include "Game/Board.h" #include "Game/Square.h" #include "Moves/Move.h" #include "Utility.h" Sphere_of_Influence_Gene::Sphere_of_Influence_Gene() : legal_square_score(1.0),...
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU ...