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.
// Tests for the Command Buffer Helper.
#include "base/at_exit.h"
#include "base/callback.h"
#include "base/message_loop.h"
#include "... |
<commit_before>#include "KeyValBase.h"
#include <iostream>
#include <array>
#include <boost/spirit/include/qi.hpp>
#include <boost/fusion/include/std_pair.hpp>
#include "utils.h"
size_t KeyValBase::depth() const
{
return depth_;
}
void KeyValBase::depth(size_t depth) const
{
depth_ = depth;
}
std::string KeyValB... |
<commit_before>#include "TileRenderer.h"
#include "components/Options.h"
#include "components/ThreadWorker.h"
#include "graphics/ViewState.h"
#include "projections/ProjectionSurface.h"
#include "projections/PlanarProjectionSurface.h"
#include "renderers/MapRenderer.h"
#include "renderers/drawdatas/TileDrawData.h"
#incl... |
<commit_before>/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooFitModels
* File:
* Authors:
* Jim Smith, jgsmith@pizero.colorado.edu
* History:
* 08-Jul-2002 JGS Created initial version
*
***************... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI Inc. 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/LICEN... |
<commit_before>// Copyright (c) 2014-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INPUT_ERROR_HPP
#define TAO_PEGTL_INPUT_ERROR_HPP
#include <cerrno>
#include <sstream>
#include <stdexcept>
#include "config.hpp"
// In PEGTL 3 inp... |
<commit_before>#include "ModI2CHost.h"
CModI2CHost::CModI2CHost(void)
{
// nothing
}
void CModI2CHost::Begin(void)
{
CModTemplate::Begin();
ModGUID = 8; // GUID of this sspecific mod
if (Global.HasUSB) // i2c host only activates if this device is plugged into the PC
{
Wire.begin();
}
}
void CModI2CH... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2005 Artem Pavlenko
*
* Mapnik is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or an... |
<commit_before>/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file virtualF... |
<commit_before>/*
Copyright (C) 2013 Martin Klapetek <mklapetek@kde.org>
Copyright (C) 2014 David Edmundson <davidedmundson@kde.org>
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 ... |
<commit_before>#pragma once
#include "util.cpp"
//return intervals during which the satellite can photograph the object
//ignoring the photos the satellite should already take
vector<pair<ll, ll>> possible_intervals(Input& input, Satellite& satellite, Object& object) {
vector<pair<ll, ll>> ret(1);
ret[0] = make_pair... |
<commit_before><commit_msg>nitpick: avoid triple redirection inside loop, fdo#75264 related<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: acredlin.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:44:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before><commit_msg>tdf#91015 - CSV dialog crasher.<commit_after><|endoftext|> |
<commit_before>/*************************************************************************/
/* remote_transform.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include <sstream> // ostringstream
#include <iomanip> // std::setw
#include <stdio.h> // printf
#include "allocore/math/al_Constants.hpp"
#include "allocore/system/al_Time.hpp"
/* Windows */
#if defined(AL_WINDOWS)
#include <windows.h>
/*
Info on Windows timing:
http://windowstimestamp.com/description
... |
<commit_before>/**
* \file
* \brief ConditionVariableOperationsTestCase class implementation
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy... |
<commit_before>#include "gc_mark_queue.h"
#include "logging.h"
namespace precisegc { namespace details {
gc_mark_queue::gc_mark_queue()
: m_queue(MAX_SIZE)
{}
//gc_mark_queue& gc_mark_queue::instance()
//{
// static gc_mark_queue queue;
// return queue;
//}
bool gc_mark_queue::empty()
{
return m_queu... |
<commit_before>#include <stdio.h> // for printf()
#include <stdlib.h> // for malloc()
#include <algorithm>
#include <fstream> // for std::ifstream
#include <iostream> // for std::cout
#include <map> // for std::map
std::vector<char> bases = {'A', 'T', 'C', 'G'};
std::map<char, char> complem... |
<commit_before>/***********************************************************************
filename: NavigationStrategies.cpp
created: 25/08/2013
author: Timotei Dolean
*************************************************************************/
/*********************************************************... |
<commit_before>/*************************************************************************
*
* $RCSfile: AccessibleDocument.hxx,v $
*
* $Revision: 1.23 $
*
* last change: $Author: vg $ $Date: 2003-05-22 13:46:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/*************************************************************************
*
* $RCSfile: ScriptData.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: dfoster $ $Date: 2002-10-30 16:12:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<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.
Foobar is distribut... |
<commit_before>//
// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <armnn/backends/ICustomAllocator.hpp>
#include <armnn/Descriptors.hpp>
#include <armnn/Exceptions.hpp>
#include <armnn/INetwork.hpp>
#include <armnn/IRuntime.hpp>
#include <armnn/Utils.hpp>
... |
<commit_before>/* Copyright 2019 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sbxcore.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2008-01-07 08:44:34 $
*
* The Contents of this file are made ... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <getopt.h>
#include "gen.h"
#include "interface.h"
#include "parser.h"
int main(int argc, char *argv[])
{
Generate Gen;
Parser Prs;
char *ybf;
while (1) {
static struct option long_options[] = {
{ "new", optional_argument, 0, 'n' },
{ "help", ... |
<commit_before>#include "update.hpp"
#include <cstdio>
#include "storage.hpp"
static std::map<uint16_t, LiveUpdate::resume_func> resume_funcs;
bool resume_begin(storage_header& storage, LiveUpdate::resume_func func)
{
/// verify checksum
/// restore each entry one by one, calling registered handlers
printf(... |
<commit_before>#include <hx/CFFI.h>
#include <ui/GamepadEvent.h>
namespace lime {
AutoGCRoot* GamepadEvent::callback = 0;
AutoGCRoot* GamepadEvent::eventObject = 0;
static double id_axis;
static int id_button;
static int id_id;
static int id_type;
static int id_value;
static bool init = false;
Game... |
<commit_before>/**
Copyright (c) 2013, Philip Deegan.
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 conditions... |
<commit_before>/**
@file Log.hpp
@brief Logging utilities.
@author Timothy Howard
@copyright 2013-2014 Timothy Howard under the MIT license;
see @ref index or the accompanying LICENSE file for full text.
*/
#ifndef HORD_LOG_HPP_
#define HORD_LOG_HPP_
#include <Hord/config.hpp>
#include <Hord/String.hpp>
#include <d... |
<commit_before><commit_msg>CWS-TOOLING: integrate CWS ab61 2009-01-29 09:39:19 +0100 jsk r267096 : #i97038 2009-01-20 12:35:31 +0100 ab r266568 : #i94994# Applied patch 2009-01-19 17:50:55 +0100 ab r266514 : #i97038# Applied patch 2009-01-13 14:47:20 +0100 ab r266226 : #i96087# Applied patch 2009-01-13 12:24:30 +01... |
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-443271.
//
// This file is part of the GLVis visualization tool and library. For more
// informatio... |
<commit_before>/**
* @file
* @copyright defined in eos/LICENSE
*/
#include <appbase/application.hpp>
#include <eosio/http_plugin/http_plugin.hpp>
#include <eosio/wallet_plugin/wallet_plugin.hpp>
#include <eosio/wallet_api_plugin/wallet_api_plugin.hpp>
#include <fc/log/logger_config.hpp>
#include <fc/exception/ex... |
<commit_before>/*
* file.cpp
*
* Created on: Feb 5, 2014
* Author: nbingham
*/
#include <std/file.h>
#include <unistd.h>
#include <fcntl.h>
namespace core
{
file::file()
{
desc = -1;
}
file::file(int desc)
{
this->desc = desc;
index = -1;
}
file::file(const file ©)
{
desc = ::dup(copy.desc);
i... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: propread.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 03:16:31 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgolbul.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2004-05-10 15:43:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: fudspord.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-01-20 12:00:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* $RCSfile: fuoaprms.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2004-01-20 12:04:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* TimeManager.cpp
*
* Kubo Ryosuke
*/
#include "TimeManager.h"
#include "core/def.h"
#include "logger/Logger.h"
#include <cassert>
#define ENABLE_EASY_LOG 1
namespace sunfish {
void TimeManager::init() {
_depth = 0;
}
void TimeManager::nextDepth() {
_depth++;
assert(_depth < Tree::... |
<commit_before>#include <iostream>
#include <string>
#include <stdexcept>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <Eigen/Core>
#include <QApplication>
#include <QMainWindow>
#include <QMenu>
#include <QAction>
#include <QKeyEvent>
#include <QHBoxLayout>
#include <dependency_gra... |
<commit_before><commit_msg>const correctness<commit_after><|endoftext|> |
<commit_before>/*
* Sponge: hash sha-3 (keccak)
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "keccak.H"
#include "action_sponge.H"
#define HASH_SIZE 64
#define RESULT_SIZE 8
#define TEST /* get faster turn-around time */
#ifdef TEST /* NO_SYNTH */ /* TEST */
# define NB_SLICES 4
# defi... |
<commit_before>#include <QSettings>
#include <QDebug>
#include <QCoreApplication>
#include <QFile>
#include <QRegularExpression>
#include "QGC.h"
#include "QGCAudioWorker.h"
#include "GAudioOutput.h"
#if defined Q_OS_MAC && defined QGC_SPEECH_ENABLED
#include <ApplicationServices/ApplicationServices.h>
#endif
// Spe... |
<commit_before>/* -*- mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
// vim:sts=4:sw=4:ts=4:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
/* Copyright (c) FFLAS-FFPACK
* Written by Philippe LEDENT <philippe.ledent@etu.univ-grenoble-alpes.fr>
* ========LICENCE========
* This file is part of the l... |
<commit_before>
// .\Release\x64\benchmarks.exe --benchmark_repetitions=10 --benchmark_min_time=2 --benchmark_filter=Geopotential // NOLINT(whitespace/line_length)
#include "physics/geopotential_body.hpp"
#include <random>
#include <vector>
#include "astronomy/fortran_astrodynamics_toolkit.hpp"
#include "astronomy... |
<commit_before>#include "manip.h"
using namespace std;
// Manipulator stuff is _always_ in namespace mysqlpp.
namespace mysqlpp {
extern bool dont_quote_auto;
// quote manipulator
bool dont_quote_auto = false;
SQLQueryParms& operator <<(quote_type2 p, SQLString& in)
{
if (in.is_string) {
if (in.dont_escape) {
... |
<commit_before><commit_msg>Removed an excessively brittle test.<commit_after><|endoftext|> |
<commit_before><commit_msg>Added some comments to better explain the test.<commit_after><|endoftext|> |
<commit_before>/**
* @file instance.hpp
* @brief COSSB Instance
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 7. 27
* @details COSSB Instance
*/
#ifndef _COSSB_INSTANCE_HPP_
#define _COSSB_INSTANCE_HPP_
#include "config.hpp"
namespace cossb {
namespace core {
#ifndef _cplusplus
extern "C" ... |
<commit_before>#ifndef US_WORLD_HPP
#define US_WORLD_HPP
/*
Copyright (c) 2013, J.D. Koftinoff Software, Ltd.
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 re... |
<commit_before>// Copyright 2017 The NXT 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
<commit_before><commit_msg>Reorganized smoke tests, removed videoplayer from windows.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2011-2020 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 <bench/bench.h>
#include <policy/policy.h>
#include <test/util/setup_common.h>
#include <txmempool.h>... |
<commit_before>#pragma once
#include "blackhole/attribute.hpp"
#include "blackhole/repository/factory/traits.hpp"
#include "blackhole/sink/files/backend.hpp"
#include "blackhole/sink/files/config.hpp"
#include "blackhole/sink/files/flusher.hpp"
#include "blackhole/sink/files/rotation.hpp"
#include "blackhole/sink/file... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pe_class.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-07 18:23:07 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pe_param.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2007-10-09 15:03:02 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cmdstrm.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:30:21 $
*
* The Contents of this file are made a... |
<commit_before><commit_msg>Windows compatibility<commit_after><|endoftext|> |
<commit_before>
#include "Internal.hpp"
#include "ALAudioDevice.hpp"
#include "AudioNode.hpp"
#include "AudioDecoder.hpp" // TODO: test
#include <Lumino/Engine/Diagnostics.hpp> // TODO: test
namespace ln {
namespace detail {
WaveDecoder wd;// TODO: test
std::vector<float> tmpBuffer;
//=============... |
<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 (a... |
<commit_before>/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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 t... |
<commit_before>// 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 writing, software
// ... |
<commit_before>#include "ATKUniversalVariableDelay.h"
#include "IPlug_include_in_plug_src.h"
#include "IControl.h"
#include "resource.h"
const int kNumPrograms = 1;
enum EParams
{
kDelay = 0,
kDepth,
kMod,
kBlend,
kFeedforward,
kFeedback,
kNumParams
};
enum ELayout
{
kWidth = GUI_WIDTH,
kHeight = G... |
<commit_before>/////////////////////////////////////////
//
// OpenLieroX
//
// code under LGPL, based on JasonBs work,
// enhanced by Dark Charlie and Albert Zeyer
//
//
/////////////////////////////////////////
// Profile system
// Created 13/8/02
// Jason Boettcher
#include <assert.h>
#include "Lier... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WIT... |
<commit_before>#include "config.h"
#include "horde3dwindow.h"
#include "entity.h"
#include <Horde3DUtils.h>
#include <QtCore/QPropertyAnimation>
#include <QtCore/QDir>
#include <QtGui/QGuiApplication>
#include <QtGui/QOpenGLFunctions>
#include <QtGui/QOpenGLFramebufferObject>
#include <QtGui/QScreen>
#include <QtQuic... |
<commit_before>#ifndef LISTHOOKEDDEVICE_HPP
#define LISTHOOKEDDEVICE_HPP
#include "base.hpp"
#include "KeyCode.hpp"
#include "List.hpp"
#include "TimerWrapper.hpp"
namespace org_pqrs_KeyRemap4MacBook {
class ListHookedDevice {
public:
class Item : public List::Item {
friend class ListHookedDevice;
... |
<commit_before>// Copyright Daniel Wallin & Arvid Norberg 2009. Use, modification and distribution is
// subject to 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)
#include <boost/python.hpp>
#include <libtorrent/create_torrent.hpp>
#i... |
<commit_before><commit_msg>SSE query_error event<commit_after><|endoftext|> |
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to 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)
#include <libtorrent/torrent_handle.hpp>
#include <boost/python.hpp>
#include <boost/py... |
<commit_before>#include <TF3.h>
#include <TTree.h>
#include <TStopwatch.h>
#include "X.h"
#include "Units.h"
using namespace GeFiCa;
X::X(int nx, const char *name, const char *title) : TNamed(name,title), V0(0),
V1(2e3*volt), n1(nx), n(nx), MaxIterations(9999), Nsor(0), Csor(1.95),
Precision(1e-7*volt), fE2(0),... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-mandrake.com/
// http://www.mandrakesoft.com/
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Les... |
<commit_before>#include "Config.hpp"
#include "EventWatcher.hpp"
#include "KeyOverlaidModifier.hpp"
#include "VirtualKey.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace RemapFunc {
TimerWrapper KeyOverlaidModifier::firerepeat_timer_;
KeyOverlaidModifier* KeyOverlaidModifier::target_ = NULL;
void
... |
<commit_before>// Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/*
* Copyright (c) 2007-2009 Digital Bazaar, Inc. All rights reserved.
*/
#include "db/rt/DynamicObject.h"
#include "db/rt/DynamicObjectIterator.h"
#include "db/rt/DynamicObjectIterators.h"
#include <cstdlib>
#include <cctype>
using namespace db::rt;
DynamicObject::DynamicObject() :
Collectable<... |
<commit_before><commit_msg>fixed addevent<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
*
* Copyright (c) 2019 PX4 Development Team. 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>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/tensor/sparse/sparse_tensor.h>
#include <vespa/eval/tensor/sparse/sparse_tensor_builder.h>
#include <vespa/eval/tensor/... |
<commit_before>#include "reportqueue.h"
#include <chrono>
ReportQueue::ReportQueue(const Config& config_in, std::shared_ptr<HttpInterface> http_client)
: config(config_in), http(std::move(http_client)) {
thread_ = std::thread(std::bind(&ReportQueue::run, this));
}
ReportQueue::~ReportQueue() {
{
std::loc... |
<commit_before>/**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary... |
<commit_before><commit_msg><commit_after><|endoftext|> |
<commit_before><commit_msg>we want the b2BodyConfig typedef to be nested from within the physics class since it is physics engine specific<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <unordered_map>
#include <utility>
using namespace std;
struct RandomListNode {
int label;
RandomListNode *next, *random;
RandomListNode(int x) : label(x), next(NULL), random(NULL) {}
};
class Solution {
public:
RandomListNode *copyRandomList(RandomLi... |
<commit_before>/*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/abstract.h"
#include "kernel/instantiate.h"
#include "kernel/inductive/inductive.h"
#include "library/locals.h"
#include "li... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2014-2015 Pedro Côrte-Real
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 Foundati... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file hardware_concurrency.hpp
/// ------------------------------
///
/// (c) Copyright Domagoj Saric 2016 - 2017.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2020, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_MAIN_MENU_SITE_HOME_HPP
#define RJ_GAME_MAIN_MENU_SITE_HOME_HPP
#include <rectojump/game/popup_manager.hpp>
#include <rectojump/ui/button.hpp>
#include <rectojump/ui/sf_widget.hpp>
#include <rectojump... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No ... |
<commit_before>#ifndef VSMC_UNIFORM_REAL_DISTRIBUTION_HPP
#define VSMC_UNIFORM_REAL_DISTRIBUTION_HPP
#include <vsmc/internal/common.hpp>
#include <vsmc/rng/u01.h>
#define VSMC_RUNTIME_ASSERT_RNG_UNIFORM_REAL_DISTRIBUTION_ENG_MIN(eng_min) \
VSMC_RUNTIME_ASSERT((eng_min == 0), \... |
<commit_before>#include <fstream>
#include <string>
#include <string.h>
#include <iostream>
#include "io.hh"
#include "str.hh"
#include "conf.hh"
#include "HmmSet.hh"
#include "FeatureGenerator.hh"
#include "Recipe.hh"
std::string out_file;
std::string save_summary_file;
int info;
int accum_pos;
bool raw_flag;
bo... |
<commit_before>// Copyright (c) 2014 Jae-jun Kang
// See the file COPYING for license details.
#ifndef X2BOOST_SINGLE_THREADED_FLOW_HPP_
#define X2BOOST_SINGLE_THREADED_FLOW_HPP_
#ifndef X2BOOST_PRE_HPP_
#include "x2boost/pre.hpp"
#endif
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include "x2boost/flows/... |
<commit_before>/* libwpd
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002-2004 Marc Maurer (uwog@uwog.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 Foundat... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkArenaAlloc.h"
#include "SkAutoBlitterChoose.h"
#include "SkComposeShader.h"
#include "SkDraw.h"
#include "SkNx.h"
#include "SkPM4fPriv.h"
#include "... |
<commit_before>/*
*
* Copyright 2017 gRPC 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>// 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 writing, software
// ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.