text stringlengths 54 60.6k |
|---|
<commit_before>#include <iostream>
#include <type_traits>
struct A {};
struct B : A {};
struct C : B {};
struct D {};
int main(void) {
std::cout << "is_const:" << std::endl;
std::cout << "int: " << std::is_const<int>::value << std::endl;
std::cout << "const int: " << std::is_const<const int>::value << std... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2011 Dennis Nienhüser <[email protected]>
//
#include "AudioOut... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "CompileConfig.h"
#include "Label.h"
#include "Engine.h"
#include "Renderer.h"
#include "Layer.h"
#include "Camera.h"
#include "BMFont.h"
#include "Cache.h"
namespace ouzel
{
std::shared_ptr<Label> Label::crea... |
<commit_before>#include "browser/views/inspectable_web_contents_view_views.h"
#include "browser/inspectable_web_contents_delegate.h"
#include "browser/inspectable_web_contents_impl.h"
#include "browser/inspectable_web_contents_view_delegate.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/views/contro... |
<commit_before>#include "chacha20.h"
static Nan::Persistent<v8::FunctionTemplate> chacha20_constructor;
ChaCha20::ChaCha20() {}
ChaCha20::~ChaCha20() {}
void ChaCha20::Init(v8::Local<v8::Object> &target) {
Nan::HandleScope scope;
v8::Local<v8::FunctionTemplate> tpl =
Nan::New<v8::FunctionTemplate>(ChaCha20... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
# define DUNE_STUFF_TEST_MAIN_CATCH_EXCEPT... |
<commit_before><commit_msg>fixed vs2017 compile error<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix per-application DPI scaling. Make DPI scaling dropdown box require Windows Vista or above.<commit_after><|endoftext|> |
<commit_before>// Copyright 2014 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 <GLES2/gl2.h>
#include <GLES2/gl2chromium.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include "base/bind.h"
#... |
<commit_before>/* Copyright 2014 Peter Goodman, all rights reserved. */
#include <granary.h>
using namespace granary;
GRANARY_DEFINE_bool(count_execs, false,
"Count the number of times each block is executed. This option is only "
"meaningful for dynamic instrumentation. By default, `count_bbs` does not "
... |
<commit_before><commit_msg>Remove white spaces.<commit_after><|endoftext|> |
<commit_before>#include "control.hpp"
#include "math.hpp"
#include "model.hpp"
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <GL/glu.h>
#include <SOIL/SOIL.h>
#include <chrono>
#include <cmath>
#include <iostream>
#include <memory>
#include <sstream>
#include <thread>
#include "omp.h"
namespace Control... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 - 2022 by 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 Lice... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac ([email protected])
* Copyright (c) 2014 Manuel Wuthrich ([email protected])
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2013 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
<commit_before>#include <cstdlib>
#include <sqlite3.h>
#include <nan.h>
#include "macros.h"
#include "database.h"
namespace NODE_SQLITE3_PLUS_DATABASE {
int WRITE_MODE = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX;
int READ_MODE = SQLITE_OPEN_READONLY | SQLITE_OPEN_FULLMUTEX;
v8::Pro... |
<commit_before>#include "debugger.h"
#include "gameboy.h"
#include "cpu/cpu.h"
#include "util/log.h"
#include "util/string.h"
#include <iostream>
Debugger::Debugger(Gameboy& inGameboy, bool should_debug) :
gameboy(inGameboy),
enabled(should_debug)
{
}
void Debugger::cycle() {
if (!enabled) return;
... |
<commit_before>#include <cstdio>
#include <cstddef>
#include <cstring>
#include <string>
#include <iostream>
#include <system_error>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <pwd.h>
#include "control-cmds.h"
#include "service-constants.h"
#include "cpbuffer.h"
/... |
<commit_before>// Copyright (c) 2012-2015 Dano Pernis
// See LICENSE for details
#include <gtk/gtk.h>
#include <glib.h>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <cassert>
#include "CPU.h"
namespace hcc {
struct ROM : public IROM {
unsigned short *data;
static const unsigned int si... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; eit... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
<commit_before>/*
* Handler for HTTP requests.
*
* author: Max Kellermann <[email protected]>
*/
#include "lb_http.hxx"
#include "lb_instance.hxx"
#include "lb_connection.hxx"
#include "lb_config.hxx"
#include "lb_session.hxx"
#include "lb_cookie.hxx"
#include "lb_jvm_route.hxx"
#include "lb_headers.hxx"
#include "lb_... |
<commit_before>#include <algorithm>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "demoloop.h"
#include "graphics/2d_primitives.h"
#include "hsl.h"
using namespace std;
using namespace demoloop;
const uint32_t NUM_VERTS = 3;
float t = 0;
const float CYCLE_LENGTH = 6;
template ... |
<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 <algorithm>
#include <iterator>
#include <map>
#include <fcntl.h>
#include <netdb.h>
#include <net/if.h>
#include <netinet/i... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "sparse_merge_function.h"
#include "generic_merge.h"
#include <vespa/eval/eval/fast_value.hpp>
#include <vespa/vespalib/util/typify.h>
namespace vespalib::eval {
using namespace te... |
<commit_before>#pragma once
#include <opencv2/core/cuda.hpp>
#include <thrust/iterator/permutation_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/device_ptr.h>
/*
@Brief step_functor is an object to correctly step a thrust iterator accordin... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 wit... |
<commit_before>#include "ProjectWidgetDemoWindow.h"
#include "Required/Project/ProjectSerializer.h"
#include "Required/Project/ProjectException.h"
#include "Required/Project/FileCategory.h"
#include <QDebug>
#include <QFile>
#include <QMessageBox>
#include <QRegExp>
ProjectWidgetDemoWindow::ProjectWidgetDemoWindow(QWi... |
<commit_before>#ifndef SiconosVisitables_hpp
#define SiconosVisitables_hpp
#undef REGISTER
#define SICONOS_VISITABLES() \
REGISTER(DynamicalSystem) \
REGISTER(DynamicalSystemXML) \
REGISTER(DiskPlanR) ... |
<commit_before>#pragma once
#include "screenrect.hpp"
#include "../updater.hpp"
#include "../glresource.hpp"
namespace rs {
namespace util {
class PostEffect : public DrawableObjT<PostEffect> {
private:
using base_t = DrawableObjT<PostEffect>;
using ParamF = std::function<void (IEffect&)>;
using Para... |
<commit_before>/* Copyright 2014 Peter Goodman, all rights reserved. */
#define GRANARY_INTERNAL
#define GRANARY_ARCH_INTERNAL
#include "granary/base/string.h"
#include "granary/cfg/basic_block.h"
#include "granary/cfg/control_flow_graph.h"
#include "granary/cfg/instruction.h"
#include "granary/code/inline_assembly... |
<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>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_MAIN_MENU_BACKGROUND_MAIN_MENU_HPP
#define RJ_GAME_MAIN_MENU_BACKGROUND_MAIN_MENU_HPP
#include <rectojump/core/game_window.hpp>
#include <rectojump/core/render.hpp>
#include <rectojump/game/background... |
<commit_before>/**
* This file is part of Slideshow.
* Copyright (C) 2008 David Sveningsson <[email protected]>
*
* Slideshow is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
... |
<commit_before>// fastmap.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include "plugin_utils.h"
#include <map>
#include <string>
BZ_GET_PLUGIN_VERSION
class FastMapEventHandler;
class FastMapClient : public bz_NonPlayerConnectionHandler
{
public:
FastMapClient( in... |
<commit_before>/*!
* \file calibration_from_carl.cpp
* \brief External camera calibration from an AR tag with known position on the CARL robot
*
* \author David Kent, WPI - [email protected]
* \date November 14, 2014
*/
#include <rail_ceiling/calibration_from_carl.h>
using namespace std;
CalibrationFromCarl::Ca... |
<commit_before>/**
* @file PathPlanner.cpp
*
* @author <a href="mailto:[email protected]">Yigit Can Akcay</a>
* Implementation of class PathPlanner
*/
#include "PathPlanner.h"
PathPlanner::PathPlanner()
:
step_buffer({}),
foot_to_use(Foot::RIGHT),
last_stepcontrol_stepID(0),
kick_planned(false)
{
DEBUG_REQ... |
<commit_before>/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* 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 L... |
<commit_before>
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 1996, California Institute of Technology.
// ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledged.
//
// Please read the full copyright notice in the file COPYRIGH
// in this directory.
//
// Author... |
<commit_before>//
// C++ exception wrappers
//
// These will allow you to detect where an exception is thrown,
// and where it is caught.
//
#include <core/System.h>
#include <core/Interpose.h>
#include <stack/ThrowHandler.h>
#include <stack/CatchHandler.h>
#include <cxxabi.h>
#include <exception>
using namespac... |
<commit_before>// Copyright NVIDIA Corporation 2007 -- Ignacio Castano <[email protected]>
//
// 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 l... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin-explorer.
*
* libbitcoin-explorer is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License with
* additional permissions to the one pub... |
<commit_before>#include "tgatexture.h"
#include "detail/TextureImpl.h"
#include "ifile.h"
#include <boost/assert.hpp>
#include <algorithm>
namespace platform {
namespace {
struct Header
{
uint8_t mData[18];
// don't wanna pragma pack
uint8_t IdLength()const
{
return mData[0];
}
uint8_t ... |
<commit_before>/*************************************************************************
*
* $RCSfile: fmpgeimp.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: kz $ $Date: 2005-03-18 18:43:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>// arm-poky-linux-gnueabi-gcc -lopencv_video -lopencv_core -lopencv_highgui -lopencv_imgproc -lstdc++ -lpthread -shared-libgcc opencv.cpp -o opencv
#include "evision.h"
#include "tracer.h"
#include "gpio.h"
// Global variables
GPIO pwm_right(1, "out"), pwm_left(3, "out"); // led_right(2 , "out");
GPIO... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License version 2.1 as ... |
<commit_before>#include "server_state_game.hpp"
#include "server_state_idle.hpp"
#include "server_instance.hpp"
#include <filesystem.hpp>
namespace server {
namespace state {
game::game(server::instance& serv) : base(serv, server::state_id::game, "game") {
// TODO: add all game components to this container... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before> // RcpMaker
#include "Spectra/PidDataMaker.h"
#include "Correction/SpectraCorrecter.h"
// ROOT
#include "TLine.h"
// STL
#define _USE_MATH_DEFINES
#include <cmath> // for M_1_PI etc.
void PidDataMaker::initialize() {
InclusiveSpectra::initialize();
/**
* Initialize the Phase Space Recentering ... |
<commit_before>#ifndef MOBS_HPP
#define MOBS_HPP
#include <iostream>
{
public:
mob(std::string, std::string std::string, int, int, int, int);
void setName(std::string);
void setArea(std::string);
void setSkill(std::string);
void setLevel(int);
void setEXP(int);
void setHP(int);
void setMaxHealth(int... |
<commit_before>#ifndef DATAMANAGER_H
#define DATAMANAGER_H
#include "StdIncl.hpp"
#include "types/Data.hpp"
#include "InvalidConfigException.hpp"
#include "Utils.hpp"
namespace uipf{
using namespace std;
// Provides and controls access to Parameters, Input and Outputdata
class DataManager
{
public:
DataManager(... |
<commit_before>// Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2020 Antti Nuortimo.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
... |
<commit_before>#include "TChain.h"
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TLorentzVector.h"
#include <iostream>
#include "x.h"
#include "TCanvas.h"
#include <math.h>
#include <set>
#include "TString.h"
#include "TSystem.h"
using namespace mini;
const double PI = 4.0*atan(1.0);
#... |
<commit_before>#include "preferred_languages.hpp"
#include "../base/string_utils.hpp"
#include "../base/logging.hpp"
#include "../std/target_os.hpp"
#include "../std/set.hpp"
#if defined(OMIM_OS_MAC) || defined(OMIM_OS_IPHONE)
#include <CoreFoundation/CFLocale.h>
#include <CoreFoundation/CFString.h>
#elif defin... |
<commit_before>/* Copyright (c) 2015 The Squash Authors
*
* 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,
* ... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2018 Scott Moreau
*
* 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 ... |
<commit_before>// System Dependencies
#include <sys/time.h>
// Local Dependencies
#include "../include/datetime.h"
#include "../include/exception.h"
/** Divisors: The number of milliseconds per item. */
#define DAY_DIVISOR 86400000
#define HOUR_DIVISOR 3600000
#define MINUTE_DIVISOR 60000
#define SECOND_DIVISOR 1000... |
<commit_before>/**
Based on https://gist.github.com/jvranish/4441299
*/
#include "stacktrace.hpp"
#include "log.hpp"
#include <iostream>
#ifdef STACKTRACE
#include <sstream>
#include <cstdio>
#ifdef WIN
#include <windows.h>
#include <imagehlp.h>
#else
#include <signal.h>
#include <execinfo.h>
#end... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2012 Couchbase, 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 a... |
<commit_before>#include "dashplayer.hpp"
using namespace player;
DashPlayer::DashPlayer(std::string MPD, string adaptionlogic_name, int interest_lifetime)
{
this->adaptionlogic_name = adaptionlogic_name;
this->interest_lifetime = interest_lifetime;
streaming_active = false;
mpd_url=MPD;
mpd = NU... |
<commit_before>/**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
using namespace TRegression;
//////////////////////... |
<commit_before>#include <maya/MArgList.h>
#include <maya/MStatus.h>
#include <maya/MDGModifier.h>
#include <maya/MFnMesh.h>
#include <maya/MIntArray.h>
#include <maya/MFloatPointArray.h>
#include "assetCommand.h"
#include "assetManager.h"
#include "util.h"
AssetCommand::AssetCommand()
{
cerr << "AssetCommand cons... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; eithe... |
<commit_before>// Copyright(c) 2016 Jounayd Id Salah
// Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT).
#include "test_math/pch.h"
#include "test/unit/coTest.h"
#include "math/quaternion/coQuat_f.h"
coTEST(coQuat_f, coNormalize)
{
coEXPECT(coNea... |
<commit_before>/*
* Copyright (c) 2015 Mikhail Baranov
* Copyright (c) 2015 Victor Gaydov
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <CppUTest... |
<commit_before>/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include "transportsocketcache.hpp"
qiLogCategory("qimessaging.socketcache");
namespace qi {
TransportSocketCache::~TransportSocketCache() {
close();
}
void TransportSocketCache::init() {
boost::mutex::scop... |
<commit_before>/*
*
*/
#ifndef UNIX_CONDITION_QUEUE_HPP
#define UNIX_CONDITION_QUEUE_HPP
#include <condition_variable>
#include <mutex>
#include <optional>
#include "condition-queue-detail.hpp"
#include "move-queue.hpp"
namespace unix
{
// mutex_t is either std::mutex or std::ref(std::mutex)
// similar for co... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: node.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2006-06-19 23:29:34 $
*
* The Contents of this file are made avai... |
<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)
, _running(false)
, _video_buffer(nullptr)
, _data_length(0)
, _co... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 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. Redistr... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE... |
<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 (c) 2015, Nagoya University
* 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, t... |
<commit_before>#include "config.h"
// system
#include <vector>
// boost
#include <boost/filesystem.hpp>
// dune-common
#include <dune/common/exceptions.hh>
#include <dune/common/mpihelper.hh>
#include <dune/common/timer.hh>
// dune-grid-multiscale
#include <dune/grid/multiscale/provider/cube.hh>
// dune-fem
#inclu... |
<commit_before>#include "stdafx.h"
#include "StrategyOFGPara.h"
#include "MType.h"
/*
Global Top-k & bound
*/
using namespace std;
void StrategyOFGPara::topKCoordinate()
{
// TODO: make it total asynchronous (remove rph.input(...), send if there is a recent local-k change, broadcast if global k-th changes, change I... |
<commit_before>#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <st... |
<commit_before>/* JEBBase: generic algorithms and functions
* Copyright 2014 Jan Erik Breimo
* All rights reserved.
*
* This file is distributed under the BSD License.
* License text is included with the source distribution.
*/
#ifndef JEBBASE_ALGORITHMS_SORT_HPP
#define JEBBASE_ALGORITHMS_SORT_HPP
#include <uti... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved
*/
#include "../../StroikaPreComp.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#if qPlatform_Windows
#include <io.h>
#elif qPlatform_POSIX
#include <poll.h>
#include <unistd.h>
#... |
<commit_before>/*! \file
*
*/
#include "Layer.h"
#include "../../TEMLogger.h"
extern src::severity_logger< severity_level > glg;
Layer::Layer() {
BOOST_LOG_SEV(glg, debug) << "Creating a (generic) layer object...";
nextl= NULL;
prevl= NULL;
isSnow = false;
isSoil = false;
isRock = false;
... |
<commit_before>/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>// Copyright (c) 2020 The Orbit 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 "FramePointerValidator.h"
#include <capstone/capstone.h>
#include "FunctionFramePointerValidator.h"
#include "OrbitBase/Logging... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_COV_DOT_PROD_HPP
#define STAN_MATH_PRIM_MAT_FUN_COV_DOT_PROD_HPP
#include <boost/utility/enable_if.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/dot_product.hpp>
#include <stan/math/prim/mat/fun/dot_self.hpp>
#include <stan/math/prim/mat... |
<commit_before>void runGlauberMCpPb(Int_t option=0,Int_t N=250000)
{
//load libraries
gSystem->Load("libVMC");
gSystem->Load("libPhysics");
gSystem->Load("libTree");
gSystem->Load("libPWGGlauber");
//set the random seed from current time
TTimeStamp time;
Int_t seed = time.GetSec();
gRandom->SetSeed(s... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>/**
* This is the macro to include the Forward multiplicity in a train.
*
* @ingroup pwg2_forward_analysis_scripts
*/
AliAnalysisTask*
AddTaskFMD(Int_t nCutBins=1, Float_t correctionCut=0.1)
{
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTaskFMD... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_COV_DOT_PROD_HPP
#define STAN_MATH_PRIM_MAT_FUN_COV_DOT_PROD_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/value_of.hpp>
#include <stan/math/prim/scal/err/check_finite.hpp>
#include <stan/math/prim/scal/err/check_nonnegative.hpp>
#include... |
<commit_before>Bool_t kSimulation = kFALSE;
TString fDataType = "AOD";
Int_t kYears = 2011;
TString kCollisions = "PbPb";
TString fTrigger = "EMCGA";
Bool_t kEventTriggerAtTaskSE = kFALSE;
Float_t fMinCen = -1;
Float_t fMaxCen = -1;
TString fAnaMesonType = "Pi0";
Bo... |
<commit_before>/** \copyright
* Copyright (c) 2017, Balazs Racz
* 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>#ifndef STAN_MATH_REV_CORE_INIT_CHAINABLESTACK_HPP
#define STAN_MATH_REV_CORE_INIT_CHAINABLESTACK_HPP
#include <stan/math/rev/core/chainablestack.hpp>
#include <tbb/task_scheduler_observer.h>
#include <mutex>
#include <unordered_map>
#include <utility>
#include <thread>
#include <tuple>
namespace sta... |
<commit_before>#include "gm.h"
namespace skiagm {
/** Create a bitmap image suitable for testing SkBitmap::scrollRect().
*
* @param quarterWidth bitmap will be 4x this many pixels wide
* @param quarterHeight bitmap will be 4x this many pixels tall
* @param bitmap the bitmap data is written into this object
*/... |
<commit_before>#ifndef STAN_MATH_REV_MAT_FUNCTOR_KINSOL_SOLVE_HPP
#define STAN_MATH_REV_MAT_FUNCTOR_KINSOL_SOLVE_HPP
#include <stan/math/prim/mat/fun/to_array_1d.hpp>
#include <stan/math/prim/mat/fun/to_vector.hpp>
#include <stan/math/rev/mat/functor/kinsol_data.hpp>
#include <stan/math/rev/mat/functor/algebra_system.... |
<commit_before>#include "finiteem.h"
#include <cmath>
#include <functional>
#include <algorithm>
#include <iostream>
#include <stdexcept>
#include <cerrno>
#include <cstring>
#include <limits>
Finiteem::Finiteem(Pileupdata p, int ploidy) : plp(p), theta(std::make_tuple(0.1,std::map::map(),1)),
em(std::bind(&Finiteem:... |
<commit_before>#include "gtest/gtest.h"
#include "../src/scene/SceneManager.h"
#include "../src/scene/Ionosphere.h"
#include "../src/tracer/Ray.h"
#include "../src/math/Vector3d.h"
#include "../src/math/Line3d.h"
#include "../src/core/Config.h"
#include "../src/core/Application.h"
namespace {
using namespace raytrac... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dstribut.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-06-27 17:04:09 $
*
* The Contents of this file are made ... |
<commit_before>#include "databasewizard.h"
#include "traycontrol.h"
#include <QApplication>
#include <QDebug>
#include <dialogmaster.h>
#include <databasecontroller.h>
#include "contentdialog.h"
#include "editpackageswidget.h"
TrayControl::TrayControl(QObject *parent) :
QObject(parent),
_tray(new QSystemTrayIcon(QI... |
<commit_before>/************************************************************************
This file is part of Freekick.
Freekick is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of ... |
<commit_before>/*
* kwallet.cpp: KWallet provider for SVN_AUTH_CRED_*
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addit... |
<commit_before>/*
* Ascent MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the ... |
<commit_before>/*************************************************************************
*
* $RCSfile: gradtrns.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: aw $ $Date: 2001-01-16 13:48:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include <generation/generation.h>
#include <algorithm>
#include <fstream>
#include <queue>
namespace generation {
Dungeon::Dungeon(unsigned int width, unsigned int height, std::mt19937::result_type seed) : width(width), height(height), grid(width * height, 0), merged(width * height, 0), roompts(),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.