text
stringlengths
54
60.6k
<commit_before>/* .L $ALICE_ROOT/TPC/Upgrade/macros/AnaEpsScan.C AnaEpsScan(); */ void AnaEpsScan(TString dir=".",TString baseFile="0.0_1_2_130_10") { TString files=gSystem->GetFromPipe( Form("ls %s/eps*/*%s*.root", dir.Data(), baseFile.Data() ) ); TObjArray *arr=files.Tokenize("\n"); TGraph *grFrac05=new ...
<commit_before>/* * pv.cpp * */ #include "../PetaVision/src/columns/buildandrun.hpp" #define MAIN_USES_CUSTOMGROUPS #ifdef MAIN_USES_CUSTOMGROUPS void * customgroup(const char * name, const char * groupname, HyPerCol * hc); // customgroups is for adding objects not supported by build(). #endif // MAIN_USES_ADDCU...
<commit_before>/* * Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved. */ #include "ConnectionService.h" #include "ConnectionAcceptor.h" #include "Server.h" #include "TcpSocket.h" #include "Convert.h" using namespace std; using namespace db::modest; using namespace db::net; using namespace db::rt; using n...
<commit_before>void fit1() { //Simple fitting example (1-d histogram with an interpreted function) //To see the output of this macro, click begin_html <a href="gif/fit1.gif">here</a>. end_html //Author: Rene Brun TCanvas *c1 = new TCanvas("c1_fit1","The Fit Canvas",200,10,700,500); c1->SetGridx(); ...
<commit_before>// JSBsim.cxx -- interface to the JSBsim flight model // // Written by Curtis Olson, started February 1999. // // Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License a...
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Header: JSBSim.hxx Author: Curtis L. Olson Maintained by: Tony Peden, Curt Olson Date started: 02/01/1999 ------ Copyright (C) 1999 - 2000 Curtis L. Olson (curt@flightgear.org) ------ This program is f...
<commit_before>#include "TChain.h" #include "TTree.h" #include "TH1F.h" #include "TF1.h" #include "TH2F.h" #include "TCanvas.h" #include "TObjArray.h" #include "AliAnalysisTask.h" #include "AliAnalysisManager.h" #include "AliESDEvent.h" #include "AliESDInputHandler.h" #include "AliT0AnalysisTaskQA.h" #include "AliES...
<commit_before>/*** __ __ _ _ __ __ ___ / _\ ( )( \/ )( ) / \ / __) / \ )( ) ( / (_/\( O )( (_ \ \_/\_/(__)(_/\_)\____/ \__/ \___/ This file is part of aixlog Copyright (C) 2017-2020 Johannes Pohl This software may be modified and distributed under the terms ...
<commit_before>#define BOOST_TEST_MAIN #define BOOST_TEST_MODULE EquelleControllerTest #include <memory> #include <iostream> #include <algorithm> #include <sstream> #include <iterator> #include <vector> #include <numeric> #include <fstream> #include <boost/test/unit_test.hpp> #include <zoltan_cpp.h> #include "Equel...
<commit_before>// Copyright (c) 2012 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 "ash/wm/workspace/snap_sizer.h" #include <cmath> #include "ash/screen_ash.h" #include "ash/wm/window_resizer.h" #include "ui...
<commit_before>//=====================================================================// /*! @file @brief RX65N デジタル・ストレージ・オシロスコープ @n マイコン内臓12ビットA/D変換を使って、波形を観測するガジェット @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://gith...
<commit_before>#include <cerrno> #include <cstring> #include <iostream> #include <fstream> #include <sstream> #include "lib/picojson.h" #include "convert.hpp" #include "definitions.hpp" #include "error.hpp" #include "llvm_asm_loader.hpp" #include "process.hpp" #include "vmemory.hpp" using namespace processwarp; sta...
<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>/* * Copyright (C) 2014 Luke San Antonio * All rights reserved. */ #pragma once #include <memory> #include <utility> // for std::move namespace survive { template <class T> struct Maybe_Owned; template <class T, class... Args> Maybe_Owned<T> make_maybe_owned(Args&&... args) noexcept { ret...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2013 Patrick Van Oosterwijck // // 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 limitat...
<commit_before>/* * Copyright (C) 2008-2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ /** ** \fil...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cow_wrapper.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: thb $ $Date: 2006-01-25 16:14:25 $ * * The Contents of this file are m...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff/ // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_STUFF_LA_SOLVER_ISTL_HH #define DUNE_STUFF_LA_SOLVER_ISTL_HH #incl...
<commit_before>#define _JNI_IMPLEMENTATION_ 1 #include <jni.h> #include <dlfcn.h> #include <assert.h> #include "KrapsRDD.h" #include <unistd.h> typedef KrapsIterator* (*iterator_constructor_t)(JNIEnv* env); struct KrapsRDD { void* dll; KrapsIterator* iterator; void* next() { return iterator->ne...
<commit_before><commit_msg>[HEVCd] Fix HEVC SCC self reference<commit_after><|endoftext|>
<commit_before>/* * PatternMatch.cc * * Copyright (C) 2009 Linas Vepstas * * Author: Linas Vepstas <linasvepstas@gmail.com> January 2009 * * 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 Free Software...
<commit_before>/* * opencog/server/ListRequest.cc * * Copyright (C) 2008 by Singularity Institute for Artificial Intelligence * All Rights Reserved * * Written by Gustavo Gama <gama@vettalabs.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
<commit_before>#include "parsing/utf8.hpp" #include <string> #include <string.h> #include "rdb_protocol/datum_string.hpp" namespace utf8 { static unsigned int HIGH_BIT = 0x80; static unsigned int HIGH_TWO_BITS = 0xC0; static unsigned int HIGH_THREE_BITS = 0xE0; static unsigned int HIGH_FOUR_BITS = 0xF0; static unsi...
<commit_before>/* * Copyright 2015 WebAssembly Community Group participants * * 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 * * Unl...
<commit_before>// Copyright 2010 Gregory Szorc // // 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 applicab...
<commit_before>/* * Copyright (C) 2019 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>#include <memory> #include <UnitTest++/UnitTest++.h> #include "Article.h" #include "ArticleCollection.h" #include "WalkerException.h" SUITE(CollectionMergeTests) { using namespace WikiWalker; /*! * Create test data of the following structure: * dragon -> treasure * -> fire * ...
<commit_before>/* Copyright (c) 2014-2015 DataStax 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 agree...
<commit_before>// Time: O(nlogn) // Space: O(n) class Solution { public: enum {start, end, height}; /** * @param buildings: A list of lists of integers * @return: Find the outline of those buildings */ vector<vector<int> > buildingOutline(vector<vector<int> > &buildings) { return Co...
<commit_before>// Time: O(n * k^2 + r), n is the number of the words, // k is the max length of the words, // r is the number of the result. // Space: O(n * k + r) class Solution { public: struct hashPair { public: template <typename T, typename U> ...
<commit_before>/* This file is part of the KDE project Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org> Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk> Copyright (C) 2007 Anders Lund <anders@alweb.dk> This library is free software...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: b2dmultirange.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-07-13 09:55:34 $ * * The Contents of this file are...
<commit_before>/** * This file is part of the CernVM file system */ #include "sync_item.h" #include <cerrno> #include <vector> #include "sync_mediator.h" #include "sync_union.h" using namespace std; // NOLINT namespace publish { SyncItem::SyncItem() : union_engine_(NULL), whiteout_(false), opaque_(false...
<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>// Author: Wim Lavrijsen, Jan 2005 // Bindings #include "PyROOT.h" #include "TemplateProxy.h" #include "Utility.h" namespace PyROOT { namespace { //= PyROOT template proxy construction/destruction =========================== TemplateProxy* tpp_new( PyTypeObject*, PyObject*, PyObject* ) { //...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU L...
<commit_before>#ifndef CONTEXT_HPP_ #define CONTEXT_HPP_ #include <string> #include <atomic> #include <memory> #include <thread> #include <cstdio> std::string runCommand(std::string command) { std::FILE* pipe = popen(command.c_str(), "r"); if(!pipe) return ""; char buffer[128]; std::string result; while(!std...
<commit_before>#include "STBText.h" #include "PrimitiveMode.h" #include <string> #include "image/TextureLoader.h" #include "render/TextureManager.h" #include "platform/Log.h" #include "image/ColorType.h" #include "FileData.h" #include <codecvt> using namespace Supernova; STBText::STBText() { atlasWidth = 0; ...
<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 test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ...
<commit_before>/* * Copyright 1999-2004 The Apache Software 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 ...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 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. Redistributi...
<commit_before>// // Created by Scott Stark on 4/7/15. // #include "LcdDisplay.h" #include <wiringPi.h> #include <lcd.h> void LcdDisplay::displayBeacon(const Beacon &beacon) { char tmp[80]; sprintf(tmp, "Beacon(%d):", beacon.getMinor()); lcdPosition(lcdHandle, 0, 0) ; lcdPuts(lcdHandle, tmp); spri...
<commit_before><commit_msg>Change platform_file_unittest.cc to report the time values when an assertion fails.<commit_after><|endoftext|>
<commit_before>#include "incoherent.h" #include "spiMaster.h" IncoherentDetector incoherentDetector; IncoherentDetector::IncoherentDetector() { // Real setup is in incoherentSetup, in setup() function for (int i = 0; i < buffer_length; i++) { buff[i] = 0; } } void IncoherentDetector::incoherentSe...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 License, or ...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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) any later version. cpp-ethereum is dis...
<commit_before><commit_msg>[libcxx] [test] Allow a standard library that implements LWG 1203 in istream.rvalue/rvalue.pass.cpp<commit_after><|endoftext|>
<commit_before>/* ======================================================================= Copyright (c) 2010, Institute for Microelectronics, TU Wien http://www.iue.tuwien.ac.at ----------------- ViennaGrid - The Vienna Grid Library --...
<commit_before>// Copyright © 2011, Université catholique de Louvain // 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 not...
<commit_before>#include <iostream> #include <map> #include <unordered_map> #include <vector> #include <string> #include "dict.h" typedef std::unordered_map<std::string, std::string> Dict; typedef unsigned long IdentificatorType; // consider map<unsigned long, unordered_map> std::map<IdentificatorType, Dict> dictionar...
<commit_before>#include <sstream> #include <map> #include <unordered_map> #include <vector> #include <string> #include "dict.h" #include "dictglobal.h" using Dict = std::unordered_map<std::string, std::string>; using IdentifierType = unsigned long; namespace jnp1 { namespace { #ifdef NDEBUG const bool de...
<commit_before>#include "dir.hpp" namespace spn { // -------------------------- Dir -------------------------- const char Dir::SC('/'), Dir::DOT('.'), Dir::EOS('\0'), *Dir::SC_P(u8"/"), Dir::LBK('['), Dir::RBK(']'); Dir::Dir(Dir&& d): PathBlock(std::move(d)) {} Dir& Dir::operator = (Dir&& d) { ...
<commit_before>/* $Id$ */ /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. ...
<commit_before>//! Copyright (c) 2013 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, thi...
<commit_before>// Standard demo of the numerical Bayesian calculator /* Author: Kyle Cranmer date: Dec. 2010 This is a standard demo that can be used with any ROOT file prepared in the standard way. You specify: - name for input ROOT file - name of workspace inside ROOT file that holds model and data - name of ...
<commit_before>// http://www.apache.org/licenses/LICENSE-2.0 // Copyright 2014 Perttu Ahola <celeron55@gmail.com> #include "core/types.h" #include "core/log.h" #include "server/config.h" #include "server/state.h" #include "interface/server.h" #include <c55/getopt.h> #include <c55/os.h> #pragma GCC diagnostic push #prag...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: precompiled_canvas.hxx,v $ * $Re...
<commit_before>/************************************************************************* * * $RCSfile: hierarchydatasupplier.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kso $ $Date: 2000-12-10 15:13:51 $ * * The Contents of this file are made available subject to the terms of * either of the f...
<commit_before>//===-- ObjectContainerBSDArchive.cpp ---------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before><commit_msg>Fix impalad crash: impala::LlvmCodeGen::OptimizeModule()<commit_after><|endoftext|>
<commit_before>// // Copyright (c) 2015 - 2016 CNRS // // This file is part of Pinocchio // Pinocchio 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 License, or (at your op...
<commit_before>#include "stft_client.h" #include "app_globals.h" #include "audio_nodes.h" #include "recorder_node.h" #include "stft_request.h" #include "stft_client_storage.h" #include <cinder/audio/dsp/Fft.h> #include <cinder/audio/Buffer.h> #include <cinder/CinderMath.h> #include <mutex> #include <thread> #include ...
<commit_before>/* * author: Max Kellermann <mk@cm4all.com> */ #include "Stock.hxx" #include "Class.hxx" #include "GetHandler.hxx" #include "pool.hxx" #include "event/Callback.hxx" #include "util/Cast.hxx" #include <daemon/log.h> #include <glib.h> #include <assert.h> inline Stock::Waiting::Waiting(Stock &_stock, ...
<commit_before>#pragma once #include "global.hpp" namespace testing { namespace mock { class timer_t { public: MOCK_CONST_METHOD0(current, std::time_t()); }; class time_picker_t { public: time_picker_t() { std::tm timeinfo; std::memset(&timeinfo, 0, sizeof(timeinfo)); ON_CALL(*this,...
<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>#include <AltSoftSerial.h> void clearVars(void); /** * \brief Software serial port object * \author volodink */ AltSoftSerial mySerial; volatile uint8_t message[512]; /**< Maximum message size */ /** * The first argument to calculate the checksum */ uint8_t CK_A = 0, CK_B = 0; /**< The second ...
<commit_before>#include "physics/kepler_orbit.hpp" #include "astronomy/frames.hpp" #include "geometry/epoch.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "mathematica/mathematica.hpp" #include "physics/solar_system.hpp" #include "testing_utilities/almost_equals.hpp" namespace principia { using ast...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 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. Redistrib...
<commit_before>#ifdef USE_SDL #include <SDL.h> #endif #include "bitmap.h" #include "events.h" #include "exceptions/shutdown_exception.h" #include "funcs.h" #include "thread.h" namespace Util{ EventManager::EventManager(){ } #ifdef USE_SDL void EventManager::runSDL(){ SDL_Event event; while (SDL_PollEvent(&ev...
<commit_before>#include "util/logger.h" #include <spdlog/sinks/rotating_file_sink.h> #include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/sinks/basic_file_sink.h> #include <spdlog/sinks/daily_file_sink.h> #include <spdlog/async.h> void khorost::log::prepare_logger(const config& configure, const std::string&...
<commit_before>/** * Runtime CPU detection * (C) 2009 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/cpuid.h> #include <botan/types.h> #include <botan/loadstor.h> #include <botan/mem_ops.h> #if defined(BOTAN_TARGET_ARCH_IS_X86) || defined(BOTAN_TARGET_ARCH_IS_AMD64) #if defined(BO...
<commit_before>#include <vast/program.h> #include <cstdlib> #include <iostream> #include <boost/exception/diagnostic_information.hpp> #include <vast/exception.h> #include <vast/comm/broccoli.h> #include <vast/detail/cppa_type_info.h> #include <vast/fs/path.h> #include <vast/fs/operations.h> #include <vast/ingest/inges...
<commit_before>/* Copyright (c) 2007-2010, Python File Format Interface 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>//===- MipsRegisterInfo.cpp - MIPS Register Information -== -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Copyright (c) 2008, 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) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* Copyright (c) 2008, 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>#include "amatrix.h" #include "checks.h" template <std::size_t TSize1, std::size_t TSize2> std::size_t TestMatrixIteratorAssign() { AMatrix::Matrix<double, TSize1, TSize2> a_matrix; double memberwise_coeficient = 0.00; for (auto i = a_matrix.begin(); i != a_matrix.end(); i++) *i = 2....
<commit_before>// // IndexBox.h // InternetMap // // Created by Alexander on 11.12.12. // Copyright (c) 2012 Peer1. All rights reserved. // #ifndef InternetMap_IndexBox_hpp #define InternetMap_IndexBox_hpp #include "Types.hpp" #include <set> static const float IndexBoxMinX = -8; static const float IndexBoxMaxX =...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkCollection.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redistribu...
<commit_before><commit_msg>Fix a few unresolved symbols.<commit_after><|endoftext|>
<commit_before>#ifdef USE_OPENCV #include <opencv2/core/core.hpp> #include <fstream> // NOLINT(readability/streams) #include <iostream> // NOLINT(readability/streams) #include <string> #include <utility> #include <vector> #include <boost/algorithm/string.hpp> #include <opencv2/core/core.hpp> #include <opencv2/imgpro...
<commit_before>#include <iostream> using std::cin; using std::cout; class VarString { public: VarString() {}; VarString(char* init); ~VarString(); int length(); char characterAt(int pos); void append(char c); void concatenate(const VarString s2); private...
<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. #if defined(ENABLE_GPU) #include "base/process_util.h" #include "base/shared_memory.h" #include "build/build_config.h" #include "chrom...
<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. // // See the corresponding header file for description of the functions in this // file. #include "chrome/installer/util/install_...
<commit_before>/* Kernel modules can handle sub-microsecond interrupts: http://raspberrypi.stackexchange.com/questions/8586/arm-timer-in-kernel-module-with-precision-less-than-microsecond cat /proc/timer_list indicates that high-res timer (hrtimer) resolution is actually 1 ns hrtimer is available to userspace programs....
<commit_before>#pragma once #ifdef HAVE_CONFIG_H #include "../config.h" #endif #include "php.h" #define PHP_XHP_VERSION "1.3.0" #define PHP_XHP_EXTNAME "xhp" extern zend_module_entry xhp_module_entry; #define phpext_xhp &xhp_module_entry <commit_msg>Bump to 1.3.1<commit_after>#pragma once #ifdef HAVE_CONFIG_H #includ...
<commit_before>#include "genesis.h" Genesis::Genesis() : map(28) { engine.init(TITLE, WIDTH, HEIGHT, 0); engine.bypassSplash(4231998); running=true; vector<Tile> tmp1, tmp2; tmp1 = map.loadMaps("wall", "res/avery.wall", "res/wall.bmp", engine.renderScreen(), TILE_SIZE, TILE_SIZE, 1, 7); tmp2 = map.loadMaps...
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc. 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, co...
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc. 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, co...
<commit_before>/****************************************************************** * * Round for C++ * * Copyright (C) Satoshi Konno 2014 * * This is licensed under BSD-style license, see file COPYING. * ******************************************************************/ #include <boost/test/unit_test.hpp> #i...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>//---------------------------- tensor_base.cc --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the file ...
<commit_before>// Copyright 2019 The TCMalloc Authors // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<commit_before>{{{header}}} {{#includes}} #include <{{{.}}}> {{/includes}} #include <boost/python.hpp> #include <cmath> /* main postinclude */ BOOST_PYTHON_MODULE({{module.name}}) { {{{precontent}}} {{#module.namespaces}} ::boost::python::scope().attr("{{name}}") = {{! }}::boost::python::object(::boost::python...
<commit_before>/* * This file is part of cryptopp-bindings-api. * * (c) Stephen Berquet <stephen.berquet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #include "test_api_assertions.h" #include <ostream> #include <stri...
<commit_before>#include <Fastor/Fastor.h> using namespace Fastor; template<typename T, FASTOR_INDEX mm, FASTOR_INDEX nn> void run_fixed_size() { { Tensor<T,mm,nn> a; a.iota(5); Tensor<bool,mm,nn> ba1 = a == a; for (FASTOR_INDEX i=0; i<mm; ++i) { for (FASTOR_INDEX j=0; j<nn; ...
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>/* * Copyright 2015 Cloudius Systems */ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE core #include <boost/test/included/unit_test.hpp> #include "core/sstring.hh" #include "database.hh" static sstring some_keyspace("ks"); static sstring some_column_family("cf"); static atomic_cell::one make...