text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef CTHREADPOOL
#define CTHREADPOOL
#include<functional> //bind, function
#include<thread> //thread::hardware_concurrency, thread::id
#include<type_traits> //result_of
#include<utility> //forward
#include"../../lib/header/tool/CPimpl.hpp"
namespace nThread
{
//1. a fixed-sized threadpool
//2. cann... |
<commit_before>// Copyright (C) 2013 The Regents of the University of California (Regents).
// 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 r... |
<commit_before>#include "task_manager_mpi.hpp"
namespace TaskDistribution {
MPITaskManager::MPITaskManager(boost::mpi::communicator& world,
MPIHandler& handler, MPIObjectArchive<Key>& archive,
MPIComputingUnitManager& unit_manager):
MPITaskManager(Tags(), world, handler, archive, unit_manager) { }
... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* VR Juggler is (C) Copyright 1998-2005 by Iowa State University
*
* Original Authors:
* Allen Bierbaum, Christopher Just,
* Patrick Hartling, Kevin Meinert,
* Carolina Cruz-Neira, Albert Baker
*
* This libra... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2020 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#incl... |
<commit_before>/*
* appacc_test.cpp
*
* Created on: 2015329
* Author: ranger.shi
*/
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
#include "txdb.h"
#include "database.h"
#include <iostream>
#include "boost/filesystem/operations.hpp"
#include "boost/filesystem/path.hpp"
#include "../vm... |
<commit_before>#include "taichi/ir/ir.h"
#include "taichi/ir/transforms.h"
#include "taichi/ir/visitors.h"
TLANG_NAMESPACE_BEGIN
// This pass manipulates the id of statements so that they are successive values
// starting from 0
class ReId : public BasicStmtVisitor {
public:
int id_counter;
ReId() : id_counter(... |
<commit_before>#include <stan/math/prim/mat/meta/get.hpp>
#include <stan/math/prim/arr/meta/get.hpp>
#include <stan/math/prim/mat/meta/length.hpp>
#include <stan/math/prim/mat/meta/is_vector.hpp>
#include <stan/math/prim/mat/meta/is_vector_like.hpp>
#include <stan/math/prim/mat/fun/value_of_rec.hpp>
#include <stan/math... |
<commit_before>#include "test.h"
static auto Job0 = JobQueueT<1>();
static auto Job1 = JobQueueT<1>();
static auto Job2 = JobQueueT<1>();
static auto Job3 = JobQueueT<1>();
static int counter;
static void proc()
{
CriticalSection cs;
counter++;
}
static void proc3()
{
unsigned event;
event = Job3.wai... |
<commit_before>#include "packets/radius_packet.h"
#include "packets/eap_packet.h"
#include "logging.h"
#include <sstream>
#include <string>
#include <iostream>
#include "typedefs.h"
#include "catch.hpp"
#include "constants.h"
namespace radius {
namespace packets {
namespace {
const std::vector<radius::byte> RADIUS_BA... |
<commit_before>#include "../common/init.h"
#include "../common/timer.h"
#include <iostream>
#include <vector>
#include <stdexcept>
#include "util/graphics/bitmap.h"
#include "util/font.h"
#include "util/debug.h"
#include "util/exceptions/load_exception.h"
#include "util/token_exception.h"
#include "util/input/input.h... |
<commit_before>#include <numeric>
#include <ros/ros.h>
#include <algorithm>
#include <geometry_msgs/PointStamped.h>
#include <opencv/cv.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <image_transport/image_transport.h>
#include <image_geometry/pinhole_camera_model.h>
#include... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/hwas/hostbootIstep.C $ ... |
<commit_before>#include <stdlib.h>
#include <string.h>
#include <iostream>
extern "C"
{
#include "SlimList.h"
#include "SlimListDeserializer.h"
#include "SlimListSerializer.h"
}
#include "CppUTest/TestHarness.h"
#include "CppUTest/TestHarness_c.h"
TEST_GROUP(SlimListDeserializer)
{
SlimList* slimList;
SlimList*... |
<commit_before>#include <string>
#include <cstring>
#include "math3d/math3d.h"
#include "pbge/pbge.h"
#include "Ellipsoids.h"
Ellipsoids::Ellipsoids(pbge::GraphicAPI * _gfx) {
this->sphere = pbge::Geometrics::createSphere(1.0f, 3, _gfx);
this->gfx = _gfx;
}
pbge::ModelCollection * Ellipsoids::createEllipsoi... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2016 musikcube 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 2021 The Cross-Media Measurement 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 req... |
<commit_before>// Copyright (c) 2017 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 <wallet/coinselection.h>
#include <privatesend.h>
#include <util.h>
#include <utilmoneystr.h>
// Descendi... |
<commit_before>/*******************************************************************************
* Copyright 2017-2018 Intel Corporation
*
* 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>//===----------------------------------------------------------------------===//
//
// Peloton
//
// catalog.cpp
//
// Identification: src/wire/libevent_server.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------------... |
<commit_before>#ifndef CONST_H
#define CONST_H
using namespace std;
const int WORD_SIZE = 8;
const int ADDR_SIZE = 4;
const int RAM_SIZE = ADDR_SIZE*ADDR_SIZE-1;
// Miliseconds between cycles (if automatic)
const int FQ = 300;
const int NUM_OF_INSTRUCTIONS = 8;
#endif<commit_msg>changed RAM_SIZE init... |
<commit_before>#include "crash.hpp"
// Needed for automatic name demangling, but not all that portable
#include <cxxabi.h>
#include <execinfo.h>
// Needed to hack contexts for signal traces
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#include <ucontext.h>
#undef _XOPEN_SOURCE
#else
#include <ucontext.h... |
<commit_before>/** -*- c++ -*-
* progressdialog.cpp
*
* Copyright (c) 2004 Till Adam <adam@kde.org>,
* David Faure <faure@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free So... |
<commit_before>/*
Min Kao Drone Tour
Modified by Elliot Greenlee
*/
#include "objectFollowing.h"
#include "../control.h"
#include <string>
using namespace std;
const string THRESHOLDS_FILE_NAME = "thresholds.xml";
const double dt = 1.0; //Sampling time [s]
/*
*/
ObjectFollowing::ObjectFollowing(Control *cont... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>#include "stdafx.h"
#include "include/script.h"
#include "include/exceptions.h"
#include "include/debug.h"
#include "include/file.h"
namespace yappy {
namespace lua {
LuaError::LuaError(const std::string &msg, lua_State *L) :
runtime_error("")
{
const char *str = lua_tostring(L, -1);
i... |
<commit_before>
#include <nstd/Event.h>
#include <nstd/String.h>
#include <nstd/Debug.h>
void testEvent()
{
class MyEmitter : public Event::Source
{
public:
virtual ~MyEmitter() {}
void emitMySignal(const String& arg)
{
emit(&MyEmitter::mySignal, arg);
}
void emitMySignal2(const String... |
<commit_before>#include "persistentstore.h"
#include "debug.h"
#include <QSettings>
#include <QFileInfo>
#include <QFile>
PersistentStore::PersistentStore(QObject *parent) : QObject(parent), _initialized(false)
{
init();
}
bool PersistentStore::init()
{
QMutexLocker locker(&_mutex);
QSettings settings;
... |
<commit_before>// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "dbwrapper.h"
#include "uint256.h"
#include "random.h"
#include "test/test_pivx.h"
#include <boost/t... |
<commit_before>#include "serialize.h"
#include <stdint.h>
#include <boost/test/unit_test.hpp>
using namespace std;
BOOST_AUTO_TEST_SUITE(serialize_tests)
BOOST_AUTO_TEST_CASE(varints)
{
// encode
CDataStream ss(SER_DISK, 0);
CDataStream::size_type size = 0;
for (int i = 0; i < 100000; i++) {
... |
<commit_before>//
// Bitplanes.cpp
// Clock Signal
//
// Created by Thomas Harte on 26/11/2021.
// Copyright © 2021 Thomas Harte. All rights reserved.
//
#include "Bitplanes.hpp"
#include "Chipset.hpp"
using namespace Amiga;
namespace {
/// Expands @c source so that b7 is the least-significant bit of the most-s... |
<commit_before>//
// Dave.cpp
// Clock Signal
//
// Created by Thomas Harte on 22/06/2021.
// Copyright © 2021 Thomas Harte. All rights reserved.
//
#include "Dave.hpp"
using namespace Enterprise::Dave;
// MARK: - Audio generator
Audio::Audio(Concurrency::DeferringAsyncTaskQueue &audio_queue) :
audio_queue_(au... |
<commit_before><commit_msg>Planning: fix code style<commit_after><|endoftext|> |
<commit_before>#include "writer/verilog/array.h"
#include "iroha/i_design.h"
#include "iroha/insn_operands.h"
#include "iroha/resource_class.h"
#include "iroha/resource_params.h"
#include "writer/module_template.h"
#include "writer/verilog/embedded_modules.h"
#include "writer/verilog/insn_writer.h"
#include "writer/ve... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: it_named.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-07 16:54:41 $
*
* The Contents of this file are made ... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>//===--- RISCV.cpp - Implement RISCV target feature support ---------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before><commit_msg>remove unused file<commit_after><|endoftext|> |
<commit_before>/*Copyright 2014 George Karagoulis
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 w... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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>// Check if trailing return types are supported
#include <algorithm>
#include <vector>
void fun() {
int val = 0;
std::vector<int> v{0, 1, 2, 4, 8};
std::sort(v.begin(), v.end(),
[&](int i, int j)->bool{ val++; return i < j && val++ < i; });
}
<commit_msg>Make independent of initializer... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QObject>
#include <QtWidgets>
/****************SETTING UP STATUS BAR*********************/
QWidget *topFiller = new QWidget;
topFiller->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
#ifdef Q_OS_SYMBIAN
_infoLabel = new QLabel... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>// Copyright 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 "cc/tile_manager.h"
#include <algorithm>
#include "base/bind.h"
#include "base/debug/trace_event.h"
#include "base/logging.h"
#i... |
<commit_before>/*
* exchange_graph_test.cc
* Copyright 2014-2015 John Lawson
*
* 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
*
* U... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SlsSlideFunction.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 06:20:04 $
*
* The Contents of this file a... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2013 - 2015 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 ... |
<commit_before>/**
* 2.2.2 变量声明和定义的关系
* @Author Bob
* @Eamil 0haizhu0@gmail.com
* @Date 2017/6/28
*/
#include <iostream>
int main() {
/**
* 为了支持分离式编译,C++语言将生命和定义区分开来。
* 声明:使得名字为程度所知,一个文件如果想使用别处定义的名字,则必须包含对那个名字的声明,使用关键字extern。【ˈekstɜ:n】
* 定义:负责创建与名字关联的实体,申请内存空间,还可能会为变量赋一个初始值。
* 注意:变量只能被定义一次,但是可以被多次... |
<commit_before>// bsls_assert.cpp -*-C++-*-
#include <bsls_assert.h>
#include <bsls_ident.h>
BSLS_IDENT("$Id$ $CSID$")
#include <bsls_asserttestexception.h>
#include <bsls_pointercastutil.h>
#include <bsls_types.h>
#include <bsls_log.h>
#include <bsls_logseverity.h>
... |
<commit_before>#include "NumberTest.h"
#include "SimpleAudioEngine.h"
#include "LanguageManager.h"
#include "Planet.h"
USING_NS_CC;
using namespace CocosDenshion;
NumberTest * NumberTest::create(int _number, Sprite * _bg)
{
NumberTest * tip = new NumberTest();
if (tip && tip->init())
{
tip->autorelease();
ti... |
<commit_before>// Copyright (c) 2019 PaddlePaddle 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
//
// ... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with th... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/*
* Copyright (c) 2020 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>/* Copyright (c) 2017-2022 hors<horsicq@gmail.com>
*
* 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... |
<commit_before>/*
* Copyright (c) 2020 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>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <errno.h>
#include <openssl/ec.h>
#include <openssl/bn.h>
#include <openssl/objects.h>
#inclu... |
<commit_before><commit_msg>Commented out all code related to "imageNames" and "img_name" since they aren't being used at the moment.<commit_after><|endoftext|> |
<commit_before>AddTask_dNdPtpp_TPCITS(Int_t cutMode =223, char *controString ="default", char* eventTrigger="kINT7"){
TString stEventTrigger(eventTrigger);
//TString stParticleMode(particleMode);
TString stControlString(controlString);
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
... |
<commit_before>// @(#)root/hist:$Id$
// Author: David Gonzalez Maline 12/11/09
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>//===- FuzzerMutate.cpp - Mutate a test input -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
Copyright 2013 The Trustees of Princeton University
All Rights Reserved
*/
#include "AG-disk.h"
// server config
struct md_syndicate_conf CONF;
// set of files we're exposing
content_map DATA;
// Metadata service client of the AG
ms_client *mc = NULL;
// Location of local files we're expos... |
<commit_before>/** My first Galois program -*- C++ -*-
*/
#include "Galois/Galois.h"
#include "Galois/Graph/Graph.h"
#include <boost/iterator/counting_iterator.hpp>
#include <iostream>
#include <string>
using namespace std;
//typedef Galois::Graph::FirstGraph<std::string,std::string,true> Graph;
typed... |
<commit_before>#include "vlc_video_source.h"
#include <cstdio>
#include <cstdlib>
#include <chrono>
#include <thread>
namespace gg
{
VideoSourceVLC::VideoSourceVLC(const std::string path)
: _vlc_inst(nullptr)
, _vlc_mp(nullptr)
, _video_buffer(nullptr)
, _data_length(0)
, _cols(0)
, _rows(0)
... |
<commit_before>/*
* Copyright (c) 2017, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
<commit_before>//===- FunctionResolution.cpp - Resolve declarations to implementations ---===//
//
// Loop over the functions that are in the module and look for functions that
// have the same name. More often than not, there will be things like:
//
// declare void %foo(...)
// void %foo(int, int) { ... }
//
//... |
<commit_before>//===- PassManagerBuilder.cpp - Build Standard Pass -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "replayState.h"
#include <deque>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include "libwatcher/message.h"
#include "serverConnection.h"
#include "Assert.h"
#include "database.h"
#include "watcherd.h"
using namespace util;
using namespace watcher;
using namespace watcher::event;
... |
<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 test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <glog/logging.h>
#include <iostream>
#include <string>
#include <boost/unordered_map.hpp>
#include "config.hpp"
#include "pid.hpp"
#include "process.hpp"
using std::istream;
using std::ostr... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: animationbasenode.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2006-09-17 08:33:15 $
*
* The Contents of this fil... |
<commit_before>// This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2017 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the Licens... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR 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 ap... |
<commit_before>#include "html.h"
#include "el_li.h"
#include "document.h"
litehtml::el_li::el_li(const std::shared_ptr<litehtml::document>& doc) : litehtml::html_tag(doc)
{
}
int litehtml::el_li::render(int x, int y, int max_width, bool second_pass)
{
if (m_list_style_type >= list_style_type_armenian && !m_index_ini... |
<commit_before>/**
* Unit Tests for Piezas
**/
#include <gtest/gtest.h>
#include "Piezas.h"
class PiezasTest : public ::testing::Test
{
protected:
PiezasTest(){} //constructor runs before each test
virtual ~PiezasTest(){} //destructor cleans up after tests
virtual void SetUp(){} //sets up before each test (a... |
<commit_before>//===---------- SILGlobalOpt.cpp - Optimize global initializers -----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/*!
\file CacheSimulator.cpp
\author Sudnya Padalikar <sudnya.padalikar@gatech.edu>
\date Sunday November 29, 2009
\brief implementation of a CacheSimulator class to be the child of
TraceGenerator
*/
#ifndef TRACE_CACHESIMULATOR_CPP_INCLUDED
#define TRACE_CACHESIMULATOR_CPP_INCLUDED
#include <... |
<commit_before>#include "catch.hpp"
#include "matrix.h"
TEST_CASE( "Test matrix access out of range", "[matrix][access]" ) {
SECTION("Try accessing an empty matrix"){
matrix<int> m = {};
REQUIRE_THROWS_AS( m.at(0,0), std::out_of_range );
}
SECTION("Try access out of range column"){
matrix<int> m(2,3)... |
<commit_before>
#pragma once
#include <qdb/client.h>
#include "utilities.hpp"
namespace quasardb
{
class Error : public node::ObjectWrap
{
public:
explicit Error(qdb_error_t e) : _error(e)
{
}
virtual ~Error(void)
{
}
private:
static void AddErrorOrigin(v8::Local<v8::Object> exports, c... |
<commit_before>#include "framework/unit.h"
#include <cassert>
#include <cstdlib>
#include <regex>
char const* unit::color::reset = "\033[0m";
char const* unit::color::black = "\033[30m";
char const* unit::color::red = "\033[31m";
char const* unit::color::green = "\033[32m";
char const* u... |
<commit_before>/*
* Copyright (C) 2011
* Alessio Sclocco <a.sclocco@vu.nl>
*
* 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 3 of the License, or
* (at your option) any lat... |
<commit_before>#include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
template <typename T>
struct Node {
Node *left;
Node *right;
T data;
};
template <class T>
class BinaryTree
{
private:
Node<T>*root;
int CountElements = 0;
public:
BinaryTree();
~BinaryTree();
... |
<commit_before>//=================================================================================================
// Copyright (C) 2016 Olivier Mallet - All Rights Reserved
//=================================================================================================
#ifn... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#include "../../../../Foundation/Characters/Format.h"
#include "../../../../Foundation/Execution/Sleep.h"
#include "../../../../Foundation/Execution/Thread.h"
#include "../.... |
<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>/*
* Copyright 2014 Google 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/LICENSE-2.0
*
* Unless requ... |
<commit_before>#ifndef _IAGENT_HH_
# define _IAGENT_HH_
#include <string>
#include <pcl-1.7/pcl/common/common.h>
#include <pcl-1.7/pcl/impl/point_types.hpp>
#include <pcl-1.7/pcl/common/projection_matrix.h>
#include "event/Dispatcher.h"
#include "Capture.hh"
class IAgent : public Utils::Dispatcher
{
pu... |
<commit_before>AliAnalysisTaskElectronEfficiencyV2* AddTask_dsekihat_ElectronEfficiencyV2_PbPb(
Bool_t getFromAlien = kFALSE,
TString configFile="Config_dsekihat_ElectronEfficiencyV2_PbPb.C",
TString libFile="LMEECutLib_dsekihat.C",
UInt_t trigger = AliVEvent::kINT7,
const Int_t CenMin = 0,
con... |
<commit_before>
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrContextPriv.h"
#include "tools/gpu/GrContextFactory.h"
#ifdef SK_GL
#include "tools/gpu/gl/GLTestContext.h"
#endif
#if SK_ANGLE
#include "... |
<commit_before>#include "fonts.h"
#include "fonts/utf8-utils.h"
#include "fonts/shader.h"
#include <cmath>
#define DEBUG_FONTS false
//
// AminoFonts
//
AminoFonts::AminoFonts(): AminoJSObject(getFactory()->name) {
//empty
}
AminoFonts::~AminoFonts() {
//empty
}
/**
* Get factory instance.
*/
AminoFont... |
<commit_before>#ifndef MGF_DRIVER_HPP
#define MGF_DRIVER_HPP
#include <iostream>
#include <mgf/Spectrum.hpp>
#include <mgf/GlobalHeader.hpp>
#include <mgf/Analyse.hpp>
#include <mgf/Scanner.hpp>
namespace mgf
{
class Analyse;
class Spectrum;
/**
* A class that have to be use to parse a MGF input
... |
<commit_before>#pragma once
enum fatigue_model {
/*
* Horrible inaccurate fatigue model that does not assign a fatigue-related
* cost at all.
*/
FATIGUE_IGNORE,
/*
* Uses the reactivation timer as the cost for a jump. Doesn't account for
* fatigue and may incurr large amount of fa... |
<commit_before>/* Basic type aliases and forward declarations.
*
* Copyright (c) 2000-2021, Jeroen T. Vermeulen
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this
* mistake, or contact the author.
*/
#ifndef PQXX_H_T... |
<commit_before>/*
Copyright (C) 2016 - Gbor "Razzie" Grzsny
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, copy, modify, merge... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>#include "rapid_pbd/action_executor.h"
#include <string>
#include "actionlib/client/simple_action_client.h"
#include "actionlib/server/simple_action_server.h"
#include "control_msgs/FollowJointTrajectoryAction.h"
#include "control_msgs/GripperCommandAction.h"
#include "rapid_pbd_msgs/SegmentSurfacesAct... |
<commit_before>#include"all_defines.hpp"
#include"objects.hpp"
#include"heaps.hpp"
#include"types.hpp"
#include<map>
#include<stack>
#include<cstdlib>
#include<stdint.h>
/*-----------------------------------------------------------------------------
Semispaces
---------------------------------------------------------... |
<commit_before>#include <string>
#include <set>
#include <iostream>
#include <string.h>
#include <algorithm>
#include <iterator>
#include <ext/stdio_filebuf.h>
#include "stream.h"
using namespace std;
struct compare_t {
bool operator()(const char* p, const char* q) const {
return strcmp(p,q) < 0;
}
};... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.