text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * $RCSfile: filehelper.hxx,v $ * * $Revision: 1.11 $ * * last change: $Author: rt $ $Date: 2004-08-20 12:54:41 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>//#include <iostream> //#include <fstream> // //#include <TAlienCollection.h> //#include <TFile.h> //#include <TGrid.h> //#include <TGridResult.h> //#include <TMath.h> //#include <TROOT.h> //#include <TString.h> //#include <TSystem.h> // //#include "AliCDBManager.h" //#include "AliDAQ.h" //#include "AliL...
<commit_before>// Copyright 2020 Open Source Robotics Foundation, 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 re...
<commit_before>#include <stdio.h> #include <stdlib.h> #include "App.h" #include <Directory.h> #include <NodeMonitor.h> #include <Entry.h> #include <Path.h> #include <String.h> #include <File.h> /* * Runs a command in the terminal, given the string you'd type */ BString* run_script(const char *cmd) { char buf[BUFSIZ...
<commit_before>#include <stdio.h> #include <stdlib.h> #include "App.h" #include <Window.h> #include <Button.h> #include <View.h> #include <String.h> #include <Directory.h> #include <NodeMonitor.h> App::App(void) : BApplication("application/x-vnd.lh-MyDropboxClient") { //start watching ~/Dropbox folder BDirector...
<commit_before>#include <algorithm> #include <iterator> #include <vector> #ifdef DEBUG #include <bitset> #include <iostream> #endif // Algorithm to be tested unsigned corresponding_pow(unsigned num) { for ( ; (num & (num -1)) != 0 ; num &= num -1) {} return num; } std::vector<unsigned> build_grays(unsigned ...
<commit_before> #include "discord.hpp" #include "topics.hpp" using namespace rtu::topics; using namespace discord; namespace ezecs::network { static constexpr auto appId = 667545903715975168; static std::string toString(discord::Status statusNum) { switch(statusNum) { case discord::Status::Online: return ...
<commit_before>#include "test.h" #include "mjolnir/osmnode.h" #include <fstream> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include "mjolnir/pbfgraphparser.h" #include <valhalla/baldr/graphconstants.h> using namespace std; using namespace valhalla::mjolnir; using namespa...
<commit_before>#include "virtualview.hpp" #include <QGLBuilder> #include <QGLSceneNode> #include <QGLAbstractScene> #include <QMessageBox> #include <QGraphicsPixmapItem> #include <QtGui\QMouseEvent> #include <GoBoard.h> VirtualView::VirtualView(QWidget *parent){ this->setParent(parent); this->setHorizontal...
<commit_before>#include "ImwWindow.h" #include "ImwWindowManager.h" namespace ImWindow { //SFF_BEGIN int ImwWindow::s_iNextId = 0; #ifdef IMW_CUSTOM_IMPLEMENT_IMWWINDOW IMW_CUSTOM_IMPLEMENT_IMWWINDOW #endif //IMW_CUSTOM_IMPLEMENT_IMWWINDOW ImwWindow::ImwWindow() { m_pTitle = NULL; m_bClosable = true; m_b...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>AliAnalysisTaskLegendreCoef* AddTaskLegendreCoef(TString name = "name") { // get the manager via the static access member. since it's static, you don't need // to create an instance of the class here to call the function AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); ...
<commit_before>/* * AliFemtoDreamAnalysis.cxx * * Created on: 24 Nov 2017 * Author: bernhardhohlweger */ #include <vector> #include "AliLog.h" #include "AliFemtoDreamAnalysis.h" #include "TClonesArray.h" #include <iostream> ClassImp(AliFemtoDreamAnalysis) AliFemtoDreamAnalysis::AliFemtoDreamAnalysis() :fMVPi...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2008 Renato Araujo Oliveira Filho <renatox@gmail.com> Copyright (c) 2000-2009 To...
<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/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" IN...
<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 "chrome/browser/geolocation/access_token_store.h" #include "chrome/browser/chrome_thread.h" #include "chrome/test/in_process_...
<commit_before>// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/ui/drag_util.h" #include "ui/aura/window.h" #include "ui/base/dragdrop/drag_drop_types.h" #include "ui/base/dragdrop/drag_utils.h" #include "ui/b...
<commit_before>#include "evpp/inner_pre.h" #include "evpp/libevent_headers.h" #include "evpp/sockets.h" namespace evpp { std::string strerror(int e) { #ifdef H_OS_WINDOWS LPVOID buf = NULL; ::FormatMessageA( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: c_slots.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-07 16:33:13 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ca_type.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-07 16:34:15 $ * * The Contents of this file are made a...
<commit_before>#include "BaseScene.h" #include "../Context.h" #include "../Input/InputManager.h" #include "../Objects/Object.h" #include "../StarComponents.h" #include "../Objects/BaseCamera.h" #include "../Graphics/GraphicsManager.h" #include "../Graphics/ScaleSystem.h" #include "../Helpers/Debug/DebugDraw.h" ...
<commit_before>/* * Android File Transfer for Linux: MTP client for android devices * Copyright (C) 2015 Vladimir Menshakov * 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 ...
<commit_before>// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- /* * DecodedBitStreamParser.cpp * zxing * * Created by Christian Brunschen on 20/05/2008. * Copyright 2008 ZXing authors All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT 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 * ...
<commit_before>/* * This file is part of TelepathyQt4 * * Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2010 Nokia Corporation * * 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 b...
<commit_before>// // CoreScene.cpp // // Copyright (c) 2001 Virtual Terrain Project // Free for all uses, see license.txt for details. // /** \mainpage vtlib library documentation \section overview Overview The <b>vtlib</b> library is built on top of the <b>vtdata</b> library which handles many kinds of geospatial da...
<commit_before>#include <stm32f0xx_rcc.h> #include <core_cm0.h> uint32_t guTickFactor; uint32_t gmTickFactor; struct AutoInitSysTick { AutoInitSysTick() { //update SystemCoreClock to the right frequency SystemCoreClockUpdate(); //set ms and us factor guTickFactor = SystemCoreClock / 1000000; gmTick...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX600 グループ・IWDT 定義 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018, 2021 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blo...
<commit_before>// @(#)root/pyroot:$Id$ // Author: Wim Lavrijsen, Jan 2005 // Bindings #include "PyROOT.h" #include "PyRootType.h" #include "RootWrapper.h" #include "Adapters.h" // Standard #include <string.h> #include <string> namespace PyROOT { namespace { //= PyROOT type proxy construction/destruction =========...
<commit_before>#include "stdafx.h" #include "Rasterizer.h" using namespace std; using namespace glm; using namespace softlit; Rasterizer::Rasterizer(const RasterizerSetup& setup) : m_setup(setup) { m_frameBuffer.resize(m_setup.viewport.width * m_setup.viewport.height); m_depthBuffer.resize(m_setup.viewport.width ...
<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 ...
<commit_before>#include "SCTPSocket.h" #include "SocketUtils.h" #include <netinet/in.h> #include <poll.h> using namespace NET; SCTPSocket::SCTPSocket( unsigned numOutStreams /* = 10 */, unsigned maxInStreams /* = 65535 */, unsigned maxAttempts /* = 4 */, ...
<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 ...
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "serializablearray.h" #include <vespa/document/util/serializableexceptions.h> #include <vespa/document/util/bytebuffer.h> #include <vespa/vespalib/stllike/hash_map.hpp> #include <ves...
<commit_before>//------------------------------------------------------------------------- // // The MIT License (MIT) // // Copyright (c) 2015 Andrew Duncan // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to ...
<commit_before>/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IM...
<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-CHROMIUM file. #include "common/content_client.h" #include "common/application_info.h" #include "base/stringprintf.h" #include "ui/base/res...
<commit_before>#include "mettle.hpp" using namespace mettle; suite<suites_list> test_suite("test suite", [](auto &_) { _.test("create a test suite", [](suites_list &suites) { suite<> inner("inner test suite", [](auto &_){ _.test("inner test", []() {}); }, suites); expect(suites, array(&inner)); ...
<commit_before>#include "libtorrent/session.hpp" #include "libtorrent/session_settings.hpp" #include "libtorrent/hasher.hpp" #include "libtorrent/alert_types.hpp" #include <boost/thread.hpp> #include <boost/tuple/tuple.hpp> #include <boost/filesystem/operations.hpp> #include "test.hpp" #include "setup_transfer.hpp" u...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld 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...
<commit_before>#include <iostream> #include "input.hpp" extern "C" { char sci_getch(void) { return 0; } }; int main(int argc, char* argv[]); int main(int argc, char* argv[]) { using namespace utils; #if 0 int a = 0; uint32_t b = 0; auto n = (input("%d[, ]%x", "-99 100") % a % b...
<commit_before>#include <config.h> #include <davix.hpp> #include <gtest/gtest.h> // instanciate and play with gates TEST(ContextTest, CreateDelete){ Davix::Context c1; Davix::Context* c2 = c1.clone(); ASSERT_TRUE(c2 != NULL); Davix::Context* c3 = c1.clone(); delete c2; delete c3; } TES...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 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>// Copyright 2016 AUV-IITK #include <ros.h> #include <Arduino.h> #include <std_msgs/Int32.h> #include <math.h> #define pwmPinWest 3 #define pwmPinEast 2 #define directionPinEast1 30 #define directionPinEast2 31 #define directionPinWest1 32 #define directionPinWest2 33 #define pwmPinNorthSway 5 #define ...
<commit_before> /* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkError.h" #include "SkPath.h" #include "SkRect.h" #define CHECK(errcode) \ ...
<commit_before>/* * Copyright (c) 2012 Sacha Refshauge * */ // Qt 4.7 implementation of the framework. // Currently supports: Symbian, Blackberry, Meego, Linux, Windows #include <QApplication> #include <QUrl> #include <QDir> #include <QDesktopWidget> #include <QDesktopServices> #include <QLocale> #include <QThread>...
<commit_before>#include "App.h" #include "helpers.h" /* This function pushes data to the uSockets mock */ extern "C" void us_loop_read_mocked_data(struct us_loop *loop, char *data, unsigned int size); uWS::TemplatedApp<false> *app; us_listen_socket_t *listenSocket; extern "C" int LLVMFuzzerInitialize(int *argc, cha...
<commit_before>#include <fstream> #include "glsl++.h" namespace glsl { struct shader { float eps = 0.0001; float pi = 3.1415926; float pi2 = pi/2.0; float pi4 = pi/4.0; float time; uniform vec3 origin; uniform vec3 up; uniform vec3 dir; mat3 rm(float angle, vec3 n) { float c = cos(angle), s = sin(angle...
<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 "content/common/set_process_title.h" #include "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #...
<commit_before>#include "FemusInit.hpp" #include "MultiLevelProblem.hpp" #include "VTKWriter.hpp" #include "GMVWriter.hpp" #include "LinearImplicitSystem.hpp" #include "NumericVector.hpp" using namespace femus; double InitialValueThom(const std::vector < double >& x) { return x[0] + x[1]; } double InitialValueThom...
<commit_before>/* Copyright libCellML Contributors 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 agreed to in ...
<commit_before>// To build this file from scratch, use something like the following: // g++ -lQtCore -lQtGui -I/usr/include/QtCore -I/usr/include/QtGui main.cpp #include <QApplication> #include <QMainWindow> #include <QDesktopWidget> #include <QPushButton> #include <QSize> void centerApp(QMainWindow& window) { QS...
<commit_before>#include "recursed_range.hpp" #include <algorithm> #include <array> #include <iostream> #include <string> #include <vector> template<typename Range> void print_range_recursive(const Range& range) { auto rr = recurse_range(range); using value_type = typename decltype(rr)::value_type; using output...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>#include "compiler.h" #include <boost/program_options.hpp> #include <fstream> #include <iostream> #include <iterator> #include <string> namespace po = boost::program_options; int main(int argc, char **argv) { po::options_description desc("Options"); desc.add_options() ("input-file,i", ...
<commit_before>/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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, i...
<commit_before>#include "compiler.h" #include <boost/program_options.hpp> #include <fstream> #include <iostream> #include <iterator> #include <string> namespace po = boost::program_options; int main(int argc, char **argv) { po::options_description desc("Options"); desc.add_options() ("input-file,i", ...
<commit_before>#include "minion_impl.h" #include <time.h> #include <unistd.h> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/scoped_ptr.hpp> #include <cstdlib> #include <gflags/gflags.h> #include "logging.h" #include "proto/app_master.pb.h" DECLARE_string(master_nexus_path); DECLARE_string(ne...
<commit_before>/* * Test Driver for Botan */ #include <vector> #include <string> #include <iostream> #include <cstdlib> #include <cstring> #include <exception> #include <limits> #include <memory> #include <botan/botan.h> #include <botan/libstate.h> using namespace Botan; #include "getopt.h" #include "bench.h" #i...
<commit_before>#include <primitives/executor.h> #include <iostream> #include <string> #ifdef _WIN32 #include <windows.h> #endif //#include "log.h" //DECLARE_STATIC_LOGGER(logger, "executor"); size_t get_max_threads(size_t N) { return std::max<size_t>(N, std::thread::hardware_concurrency()); } Executor::Executo...
<commit_before>//===- GreedyPatternRewriteDriver.cpp - A greedy rewriter -----------------===// // // Copyright 2019 The MLIR 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 // /...
<commit_before>/************************************************************************* * * $RCSfile: sdattr.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: ka $ $Date: 2001-10-22 13:36:37 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>//===--- Trace.cpp - Performance tracing facilities -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <pxp-agent/agent.hpp> #include <pxp-agent/configuration.hpp> #include <pxp-agent/util/daemonize.hpp> #include <cpp-pcp-client/util/thread.hpp> #include <cpp-pcp-client/util/chrono.hpp> #include <leatherman/file_util/file.hpp> #define LEATHERMAN_LOGGING_NAMESPACE "puppetlabs.pxp_agent.main" #...
<commit_before>/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#pragma once #include <functional> #include <vector> #include <thread> #include <mutex> #include <condition_variable> #include <assert.h> namespace autocxxpy { class dispatcher { public: using task_type = std::function<void()>; using task_list_type = std::vector<task_type>; ...
<commit_before>/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/core/utils/event/EventHeader.h> #include <aws/core/utils/event/EventMessage.h> #include <aws/core/utils/event/EventStreamEncoder.h> #include <aws/core/utils/logging/LogMacr...
<commit_before>/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015 Vladimír Vondruš <mosra@centrum.cz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
<commit_before>/*************************************************************************** * Copyright (c) 2012 Werner Mayer <wmayer[at]users.sourceforge.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before><commit_msg>Sketcher: Force solver to return non-driving angles in [-pi,pi]<commit_after><|endoftext|>
<commit_before>/*************************************************************************** * Copyright (c) 2006 Werner Mayer <wmayer[at]users.sourceforge.net> * * * * This file is part of the FreeCAD CAx development system. ...
<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. // Tests the MetricsService stat recording to make sure that the numbers are // what we expect. #include <string> #include "base/comm...
<commit_before>// File: btBoostDynamicsShapes.hpp #ifndef _btBoostDynamicsShapes_hpp #define _btBoostDynamicsShapes_hpp #include <btBulletDynamicsCommon.h> #include <BulletCollision/CollisionShapes/btBox2dShape.h> #include <boost/python.hpp> #include "array_helpers.hpp" using namespace boost::python; BOOST_PYTHON_ME...
<commit_before>#include <memory> #include "math.h" #include "window.h" #include "rect.h" #include "gameobject.h" #include "camera.h" Camera::Camera(){ mBox.Set(0, 0, Window::Box().W(), Window::Box().H()); } Camera::~Camera(){ mFocus.reset(); } void Camera::SetFocus(std::shared_ptr<GameObject> obj){ mFocus = obj; } ...
<commit_before>#pragma once #include <bts/blockchain/types.hpp> #include <bts/blockchain/withdraw_types.hpp> #include <bts/blockchain/transaction.hpp> namespace bts { namespace blockchain { struct asset_record { enum { market_issued_asset = -2 }; asset_record() :id(0),iss...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/** @file @brief Implementation @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) // Internal Includes #include <osvr/Plugi...
<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: cairo_canvascustomsprite.hxx,v $ ...
<commit_before>// @(#)root/foundation: // Author: Axel Naumann, Enrico Guiraud, June 2017 /************************************************************************* * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>// @(#)root/foundation: // Author: Axel Naumann, Enrico Guiraud, June 2017 /************************************************************************* * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include "DissentTest.hpp" #include "RoundTest.hpp" #include "BulkRoundHelpers.hpp" #include "ShuffleRoundHelpers.hpp" namespace Dissent { namespace Tests { class BadBlogDropRound : public BlogDropRound, public Triggerable { public: explicit BadBlogDropRound(const QSharedPointer<Parameters>...
<commit_before>#include "TimeWarpEventDispatcher.hpp" #include <atomic> #include <memory> #include <string> #include <thread> #include <unordered_map> #include <utility> #include <vector> #include <cmath> #include <limits> // for std::numeric_limits<>::max(); #include <algorithm> // for std::min #include <chrono> ...
<commit_before> #pragma once #include <cstring> namespace werk { //Level of the log, ordered to allow simple filtering enum class LogLevel { CRITICAL, ERROR, WARNING, ALERT, SUCCESS, CONFIG, INFO, DETAIL, JSON, TRACE }; extern const char *logLevels[]; //Used for passing log messages between threads struct...
<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: CommandDispatchContainer.cxx,v $ ...
<commit_before>/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/function/CEvaluationNode.cpp,v $ $Revision: 1.8 $ $Name: $ $Author: gauges $ $Date: 2005/06/09 13:46:28 $ End CVS Header */ #include "copasi.h" #include "CEvaluationNode.h" #include "sbml/math/ASTNode.h" ...
<commit_before>#include "UnicornHat.h" #include "Image.h" #include "Animation.h" #include <cstring> extern "C" { #include <ws2811.h> } #include <unistd.h> #include <signal.h> #include <stdexcept> #include <thread> #include <chrono> using namespace std; namespace Gif2UnicornHat { bool UnicornHat::alreadyShutdown ...
<commit_before>/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #include <algorithm> #include "core/reactor.hh" struct file_test { file_test(file&& f) : f(std::move(f)) {} file f; semaphore sem = { 0 }; semaphore par = { 1000 }; }; int main(int ac, char** av) { static constexpr auto max = 1000...
<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/utf_string_conversions.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/extensions/extension_apitest...
<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. // Tests the MetricsService stat recording to make sure that the numbers are // what we expect. #include <string> #include "base/file...
<commit_before><commit_msg>Disable IndexTest BUG=70773 TEST=none<commit_after><|endoftext|>
<commit_before>// type wrapper #include "type_wrapper.h" #include "nan_macros.h" std::map<const TypeHandle *, std::shared_ptr<const TypeHandle>> TypeWrapper::type_cache; NAN_METHOD(TypeWrapper::New) { if (!info.IsConstructCall() || info.Length() == 0 || !info[0]->IsExternal()) { return Nan::ThrowErro...
<commit_before>// This code is in the public domain -- castano@gmail.com #include "FileSystem.h" #include <nvcore/nvcore.h> #if NV_OS_WIN32 #include <direct.h> #else #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #endif using namespace nv; bool FileSystem::exists(const char * path...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <qitype/objecttypebuilder.hpp> #include <boost/thread.hpp> #include <qitype/genericobject.hpp> #include "staticobjecttype.hpp" #include "metaobject_p.hpp" namespace qi { class ObjectTypeBuilderPrivate { publi...
<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/app_list_controller.h" #include "ash/ash_switches.h" #include "ash/launcher/launcher.h" #include "ash/root_window_con...
<commit_before>#include "entities/Node.hpp" #include "entities/Way.hpp" #include "entities/Area.hpp" #include "entities/Relation.hpp" #include "formats/osm/BuildingProcessor.hpp" #include "formats/osm/MultipolygonProcessor.hpp" #include "formats/osm/RelationProcessor.hpp" #include "formats/osm/OsmDataVisitor.hpp" #incl...
<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 * "...
<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 "chrome/common/extensions/manifest_url_handler.h" #include "base/files/file_util.h" #include "base/lazy_instance.h" #include ...
<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/installer/util/duplicate_tree_detector.h" #include "base/file_util.h" #include "base/logging.h" namespace install...
<commit_before>#include <franka_hw/service_server.h> #include <franka/robot.h> #include <ros/ros.h> #include <array> #include <functional> namespace { template <typename T1, typename T2> const boost::function<bool(T1&, T2&)> createErrorFunction( std::function<void(T1&, T2&)> handler) { return [handler](T1& req...