text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2015, Ming Wen
#include "fys.hpp"
#include "json_handler.hpp"
using namespace std;
namespace fys {
void testBasicIO(string featuresFile)
{
std::cout << "==== Test Start: BasicIO ====" << std::endl;
JsonFeatures jf = JsonFeatures(featuresFile);
jf.readJsonFile();
std:... |
<commit_before>#include "stdafx.h"
#include "cpu.h"
#include "cpu_instructions.h"
#include "mmu.h"
#include "ram.h"
#include "cartrige.h"
#include "interrupts.h"
#include "gpu.h"
#include "timer.h"
#include "joypad.h"
#include "apu.h"
#include "debugger.h"
struct TestReader final : public IMemory
{
u8 a;
public:
... |
<commit_before>/**
* Shader.cpp
* Contributors:
* * Arthur Sonzogni (author)
* Licence:
* * Public Domain
*/
#include "Shader.hpp"
#include <vector>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <glm/gtc/type_ptr.hpp>
using namespace std;
using namespace glm;
// file reading
v... |
<commit_before>#include "gui/coordinate.h"
#include "globals.h"
using namespace Gui;
static int getHorizontalAbsolute(double x){
const int center = Global::getScreenWidth()/2;
return (int)(center + (center * x));
}
static int getVerticalAbsolute(double y){
const int center = Global::getScree... |
<commit_before>#include "fallbackedgedb.h"
#include <fstream>
#include <limits>
using namespace annis;
using namespace std;
FallbackEdgeDB::FallbackEdgeDB(StringStorage &strings, const Component &component)
: strings(strings), component(component)
{
}
void FallbackEdgeDB::addEdge(const Edge &edge)
{
if(edge.sou... |
<commit_before>//
// GLWarpShader.cpp
// gatherer
//
// Created by David Hirvonen on 8/28/15.
//
//
#include "graphics/GLWarpShader.h"
#include "graphics/RenderTexture.h"
#include "graphics/GLTexture.h"
#include "graphics/GLExtra.h"
_GATHERER_GRAPHICS_BEGIN
WarpShader::WarpShader(const cv::Size &size, const cv::P... |
<commit_before>#include "util/bitmap.h"
#include "util/trans-bitmap.h"
#include "tabbed-box.h"
#include "menu/menu.h"
#include "util/font.h"
#include "gui/context-box.h"
using namespace Gui;
#if 0
/* FIXME add rounded tabs */
static void roundTab( const Bitmap & work, int radius, int x1, int y1, int x2, int y2, in... |
<commit_before>#include "client.h"
#include "gconsole.h"
#include "net_worm.h"
#include "particle.h"
#include "part_type.h"
#include "game/WormInputHandler.h"
#include "gusgame.h"
#include "network.h"
#include "player_options.h"
#include "encoding.h"
#include <memory>
#include "util/log.h"
#include "netstream.h"
Clie... |
<commit_before>/*
Copyright (c) 2015 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
*/
#include "kernel/instantiate.h"
#include "kernel/abstract.h"
#include "kernel/inductive/inductive.h"
#include "library/blast/blast.h"
#include "library/bl... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>#include "utils/tag-loader/tag-loader.h"
#include <QMessageBox>
#include <ui_tag-loader.h>
#include "helpers.h"
#include "models/profile.h"
#include "models/site.h"
#include "tags/tag-database.h"
#include "tools/tag-list-loader.h"
#define MIN_TAG_COUNT 20
TagLoader::TagLoader(Profile *profile, QWidget... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/common/scominfo/p9_cu.H $ ... |
<commit_before><commit_msg>Support profile_file_prefix in python binding (#5864)<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImageDecoder.h"
#include "SkImage_Base.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkData.h"
class SkImage_Codec : public SkImage_Base... |
<commit_before>/*
* Copyright 2007-2020 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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... |
<commit_before>/*
* This file is part of crash-reporter
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Ville Ilvonen <ville.p.ilvonen@nokia.com>
* Author: Riku Halonen <riku.halonen@nokia.com>
*
* Copyright (C) 2013 Jolla Ltd.
* Contact: Jakub Adam <jakub.adam@jollamobile.co... |
<commit_before>#include "Capture.h"
#include "Timer.h"
#include <iostream>
#include <time.h>
static const int cameraWidth = 848, cameraHeight = 480;
//static const int videoFileFPS = 60; // Set frame rate to 60 fps for ffmpeg.
static const int videoFileFPS = -1; // Let GStreamer control its own frame rate.
Capture... |
<commit_before>// Copyright 2015 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>/*
* Copyright (C) 2004-2009 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include "DCCSock.h"
#include "User.h"
#inclu... |
<commit_before>/*
* DataSet.cpp
*
* Copyright (c) 2012 Tsukasa OMOTO <henry0312@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... |
<commit_before>/*
Emon.cpp - Library for openenergymonitor
Created by Trystan Lea, April 27 2010
GNU GPL
*/
//#include "WProgram.h" un-comment for use on older versions of Arduino IDE
#include "EmonLib.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
//-----... |
<commit_before>#include "FATData.h"
#include <fstream>
#include <iostream>
#include <sys/stat.h>
using namespace std;
FATData::FATData(const char* mount)
{
uint8_t* BPB = new uint8_t[BPB_SIZE];
unsigned int FATSz;
unsigned int ROOTSz;
ifstream imageFile(mount, ios::in | ios::binary);
imageFile.read((char*... |
<commit_before>#include "player.h"
#include "json.h"
#include <iostream>
#include <cstdlib>
const char* Player::VERSION = "Default C++ player";
int Player::betRequest(json::Value game_state)
{
std::cerr<<json::Serialize(game_state)<<std::endl;
std::string s = json::Serialize(game_state);
std::string delim... |
<commit_before>#include "Clipper.h"
#include <algorithm>
#include <functional>
// Calculates the intersection point of a line segment lb->la which crosses the
// plane with normal 'n'.
static bool RayPlaneIntersection(const FLOATVECTOR3 &la,
const FLOATVECTOR3 &lb,
... |
<commit_before>#include <DO/Sara/Core/Math/UnivariatePolynomial.hpp>
#include <DO/Sara/Core/Math/NewtonRaphson.hpp>
#include <complex>
#include <ctime>
#include <memory>
namespace DO { namespace Sara {
auto compute_moduli_lower_bound(const UnivariatePolynomial<double>& P)
-> double
{
auto Q = P;
Q... |
<commit_before>// Copyright (c) 2012, Sergey Zolotarev
// 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. Redistributions of source code must retain the above copyright notice, this
// ... |
<commit_before>/*
* PCD8544 - Interface with Philips PCD8544 (or compatible) LCDs.
*
* Copyright (c) 2010 Carlos Rodrigues <cefrodrigues@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... |
<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 <utility>
#include <vector>
#include "util/interrupt.h"
#include "kernel/metavar.h"
#include "kernel/free_vars.h"
#include "kernel/j... |
<commit_before>#include "kraken_headers.hpp"
#include "krakendb.hpp"
#include "quickfile.hpp"
#include <sys/stat.h>
#include <sys/mman.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
// #define TEST_TAXA
using namespace std;
... |
<commit_before>//
// This file is part of the Marble Desktop 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 2006-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wall... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libkeynote 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 a... |
<commit_before>/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker 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, ... |
<commit_before>//
// Copyright (c) 2002-2012 The ANGLE 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.
//
// Surface.cpp: Implements the egl::Surface class, representing a drawing surface
// such as the client area of a windo... |
<commit_before>/*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
<commit_before>/* This file is part of Ingen.
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
*
* Ingen 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 (at y... |
<commit_before>#include "libircppclient.hpp"
#include "util.hpp"
#include <string>
#include <iostream>
#include <thread>
#include <stdexcept>
namespace irc {
client::client(const config &conf)
: conf_(conf), con_(conf_.ssl)
{
std::string ret = validate_conf(conf);
if (!ret.empty())
throw std::invalid_argument("... |
<commit_before>/*
SjASMPlus Z80 Cross Compiler
This is modified sources of SjASM by Aprisobal - aprisobal@tut.by
Copyright (c) 2005 Sjoerd Mastijn
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from t... |
<commit_before>#include "susi/DuktapeEngine.h"
std::string Susi::Duktape::susiJS = R"SUSIJS(
var susi = {
_consumerCallbacks: [],
_processorCallbacks: [],
_processorTopicCounter: {},
_consumerTopicCounter: {},
_publishCallbacks: {},
_processorProcesses: {},
_processed: [],
register... |
<commit_before>#include <Windows.h>
#include <stdint.h> // Types indpendents de la plateforme
#include <Xinput.h> // Pour la gestion des entres (manette...)
// Pour bien comprendre la diffrence de fonctionnement des variables statiques en C en fonction du scope
#define internal static // fonctions non visible depuis l... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
*
* Condor Software Copyright Notice
* Copyright (C) 1990-2006, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* This source code is covered by the Condor Public License, which can
* be foun... |
<commit_before>#include "texture.h"
#include "platform.h"
#include "util/geom.h"
#include "gl/renderState.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <cstring> // for memset
namespace Tangram {
int Texture::s_validGeneration = 0;
Texture::Texture(unsigned int _width, unsigned int _height, ... |
<commit_before>/*
* Copyright (C) 2016 Florent Revest <revestflo@gmail.com>
* All rights reserved.
*
* You may use this file under the terms of BSD license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are m... |
<commit_before>/**
Copyright (c) 2017, 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>#include <cerrno>
#include <cstring>
#include <ctime>
#include <iostream>
#include <pqxx/connection>
#include <pqxx/transaction>
#include <pqxx/transactor>
#include <pqxx/trigger>
#include <pqxx/result>
using namespace PGSTD;
using namespace pqxx;
// Example program for libpqxx. Send notification to... |
<commit_before><commit_msg>Always check return of stat #6345<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2012 Adam Murdoch
*
* 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 ... |
<commit_before>//! @file getcpinfo.cpp
//! @author Aaron Ktaz <v-aakatz@microsoft.com>
//! @brief Implements GetCpInfoW Win32 API
#include <errno.h>
#include <string>
#include <langinfo.h>
#include "getcpinfo.h"
//! @brief GetCPInfoW retrieves the name of the code page associated with
//! the current thread.
//!
//! ... |
<commit_before>// Copyright 2011 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 require... |
<commit_before>#include "math_container.h"
using std::complex;
/******************************************************/
/*solve the equation cosh(x)=exp(y), input y, return x*/
/******************************************************/
complex<double> coshx_eq_expy(double y)
{
complex<double> ey={exp(y),0};
com... |
<commit_before>/*
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementati... |
<commit_before>#include <algorithm>
#include <string>
#include <vector>
#include <boost/optional.hpp>
#include <locale>
#include "../../../src/prompt.hh"
#include "../../../src/configuration.hh"
#include "../../../src/to_str.hh"
#include "../../../src/show_message.hh"
#include "../../../src/visual.hh"
#include "move.h... |
<commit_before>/**
* @file UvUtils.cpp
* @brief uvpp miscellaneous utilities.
* @author zer0
* @date 2017-05-27
*/
#include <libtbag/uvpp/UvUtils.hpp>
#include <libtbag/string/StringUtils.hpp>
#include <libtbag/log/Log.hpp>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <uv.h>
// -------... |
<commit_before>#include "mutation.h"
#include "editdistance.h"
#include <iostream>
#include <fstream>
#include "util.h"
#include <string.h>
#include "builtinmutation.h"
#include <sstream>
#include "globalsettings.h"
Mutation::Mutation(string name, string left, string center, string right){
//we shift some bases from ... |
<commit_before>// Copyright (c) 2016 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// MVF-Core common objects and functions
#include "mvf-core.h"
#include "init.h"
#include "util.h"
#include "chainparams... |
<commit_before>//#define BOOST_ASIO_ENABLE_HANDLER_TRACKING
#include <iostream>
#include <fstream>
#include <string>
#include <tuple>
#include <chrono>
#include <functional>
#include <stdexcept>
#include <unistd.h>
#include <getopt.h>
#include <syslog.h>
#include <boost/asio.hpp>
#include <boost/filesystem/operations.... |
<commit_before>#pragma once
/*
* Some parts are from upb - a minimalist implementation of protocol buffers.
*
* Copyright (c) 2008-2011 Google Inc. See LICENSE for details.
* Author: Josh Haberman <jhaberman@gmail.com>
*/
#include <stdint.h>
#include <stdexcept>
#include <string>
#include <cassert>
#undef LIKE... |
<commit_before>/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2011-2013 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 Licen... |
<commit_before>#include <mos/gfx/assets.hpp>
#include <cstring>
#include <filesystem/path.h>
#include <fstream>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtx/io.hpp>
#include <glm/gtx/matrix_decompose.hpp>
#include <mos/util.hpp>
#include <iostream>
namespace mos {
namespace gfx... |
<commit_before>#include "stdafx.h"
#include "Texture.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
using namespace glm;
namespace softlit
{
Image::Image(const std::string & fileName)
{
m_data = stbi_load(fileName.c_str(), &m_width, &m_height, &m_numChannels, 0);
}
Image::~Image()
{
stbi_image... |
<commit_before>#include <iostream>
#include <string>
#include <limits>
#include "consoleui.h"
using namespace std;
const char TAB = '\t';
ConsoleUI::ConsoleUI()
{
WelcomeMenu();
}
void ConsoleUI::WelcomeMenu()
{
cout << endl;
cout << endl;
cout << TAB << "--------------------------------------------... |
<commit_before><commit_msg>Add unit test to check for zero length dir in FTP PWD response. <commit_after><|endoftext|> |
<commit_before>/// HEADER
#include "dynamic_transform.h"
/// COMPONENT
#include <csapex_transform/transform_message.h>
#include <csapex_transform/time_stamp_message.h>
#include "listener.h"
/// PROJECT
#include <csapex/msg/output.h>
#include <csapex/msg/input.h>
#include <utils_param/parameter_factory.h>
#include <cs... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/* Copyright (c) 2016 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
Unless required by ap... |
<commit_before>/*************************************************************************
*
* $RCSfile: htmlfile.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2005-03-23 09:05:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: postuninstall.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: vg $ $Date: 2008-03-18 12:54:23 $
*
* The Contents of this file are ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2010 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Class.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: obo $ $Date: 2006-09-17 02:44:59 $
*
* The Contents of this file are made a... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008, Image Engine Design Inc. 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 2011 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBlurImageFilter.h"
#include "SkColorPriv.h"
SkBlurImageFilter::SkBlurImageFilter(SkFlattenableReadBuffer& buffer)
: INHERITED... |
<commit_before>// Copyright (c) 2019 The Zcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "../property.h"
#include "../sigmadb.h"
#include "../sigmaprimitives.h"
#include "../wallet.h"
#include "../w... |
<commit_before>/*
MIT License
Copyright (c) 2018 namreeb http://github.com/namreeb legal@namreeb.org
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, inclu... |
<commit_before>#pragma once
#include <Gamma/Envelope.h>
#include <Gamma/Filter.h>
#include <Gamma/Oscillator.h>
#include <Gamma/Noise.h>
#include "util/dsp/overdrive.hpp"
#include "core/voices/voice_manager.hpp"
#include "goss.hpp"
//TODO: draw model
namespace otto::engines::goss {
struct Voice : voices::VoiceBa... |
<commit_before>#include "estimator/world_estimator.hpp"
#include <cstdio>
#include "hal.h"
#include "unit_config.hpp"
WorldEstimator::WorldEstimator(
LocationEstimator& locEstimator,
AttitudeEstimator& attEstimator,
Communicator& communicator)
: locEstimator(locEstimator),
attEstimator(attEstimator... |
<commit_before>//
// Created by Kevin on 15/10/2016.
//
#include <stdexcept>
#include "GPU/GPU.h"
using namespace std;
using namespace Gameboy::GPU;
using namespace Gameboy::General;
GPU::GPU(Gameboy::CPU::IInterruptible &p_interruptible, IReadable& p_readableMemoryMappedIO, IVideoOutputDevice& p_outputDevice)
:... |
<commit_before>#include <Wire.h> // I2C用
#include <ADXL345.h> // 加速度センサ用
#include <TimerOne.h> //timer1 //timer0はdelay、timer2はtoneで使われてる(´・ω・`)
// #include "dtmtdatas.h"
#include "Helper2_protected.h"
#include "LED.h"
Accel accel;
// val の値を min と max の値に収まるようにする
// val < min :=> min
// min <= val <= max :=... |
<commit_before>/// \file RNTuple.cxx
/// \ingroup NTuple ROOT7
/// \author Jakob Blomer <jblomer@cern.ch>
/// \date 2018-10-04
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/******************************************************... |
<commit_before>#include "TFile.h"
#include "TTree.h"
#include "TTreeReader.h"
#include "TTreeReaderArray.h"
#include "gtest/gtest.h"
#include <fstream>
TEST(TTreeReaderArray, MultiReaders) {
// See https://root.cern.ch/phpBB3/viewtopic.php?f=3&t=22790
TTree* tree = new TTree("TTreeReaderArrayTree", "In-memory ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/******************************************************************************\
* File: lexers.cpp
* Purpose: Implementation of wxExLexers classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2008-2009 Anton van Wezenbeek
* All rights are reserved. Reproduc... |
<commit_before>/******************************************************************************\
* File: lexers.cpp
* Purpose: Implementation of wxExLexers classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2008-2009 Anton van Wezenbeek
* All rights are reserved. Reproduc... |
<commit_before>/*
===========================================================================
Daemon BSD Source Code
Copyright (c) 2013-2014, Daemon Developers
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>#include <mill/math/Vector.hpp>
#include <mill/util/logger.hpp>
#include "mode_calc_help.hpp"
#include "mode_calc_rmsd.hpp"
#include "mode_calc_wham.hpp"
#include "mode_calc_dist.hpp"
#include "mode_calc_angle.hpp"
#include "mode_calc_aabb.hpp"
#include "mode_calc_obb.hpp"
#include "mode_calc_center.hpp"... |
<commit_before>/*************************************************************************
*
* $RCSfile: core_resource.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: fs $ $Date: 2001-04-26 11:18:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#include <chrono>
#include <derecho/sst/multicast_sst.hpp>
#include <iostream>
#include <memory>
#include <thread>
#include <vector>
#include "aggregate_bandwidth.hpp"
#include "initialize.h"
#include "log_results.hpp"
using namespace std;
using namespace sst;
volatile bool done = false;
struct exp_r... |
<commit_before>/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Repository handling.
*/
#include "thcrap.h"
#include "thcrap_update_wrapper.h"
#include <algorithm>
TH_CALLER_FREE char *RepoGetLocalFN(const char *id)
{
return strdup_cat("repos/", id, "/repo.js");
}
repo_t *RepoL... |
<commit_before>//---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the fil... |
<commit_before><include stdio.h>
project element static[object(slider) {
slider.static.Movable.object(for {user::prefs} meta::element)
} if [[element.slider: IOerror(pre: set, re-set: center)].post:'./makefile'];
<commit_msg>Update file property.cpp<commit_after><include stdio.h>
project element static[object(slid... |
<commit_before>#pragma once
#ifndef SOLVER_LBFGS_ATLAS_HPP
#define SOLVER_LBFGS_ATLAS_HPP
#include <utility/Constants.hpp>
// #include <utility/Exception.hpp>
#include <engine/Backend_par.hpp>
#include <algorithm>
using namespace Utility;
template <> inline
void Method_Solver<Solver::LBFGS_Atlas>::Initialize ()
{
... |
<commit_before>#include "problem.h"
#include "factor.h"
#include <time.h>
double prediction_time = 0.0;
extern Stats* stats;
bool debug = false;
void exit_with_help(){
cerr << "Usage: ./predict (options) [testfile] [model]" << endl;
cerr << "options:" << endl;
cerr << "-s solver: (default 0)" << endl;
cerr << " 0... |
<commit_before>/******************************************************************************
* Copyright (C) 2016-2017 Kitsune Ral <kitsune-ral@users.sf.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 th... |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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 Lic... |
<commit_before>/*
Copyright 2016 Colin Girling
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 writ... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Less... |
<commit_before>#include <list>
#include <algorithm>
#include "rtmidi/RtMidi.h"
#include "core.hpp"
#include "MidiIO.hpp"
#include "dsp/digital.hpp"
/*
* MIDIToCVInterface converts midi note on/off events, velocity , channel aftertouch, pitch wheel and mod wheel to
* CV
*/
struct MIDIToCVInterface : MidiIO, Module {... |
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "intro.h"
#include "ui_intro.h"
#include "util.h"
#include <QFileDialog>
#include <QSettings>
#includ... |
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "intro.h"
#include "ui_intro.h"
#include "util.h"
#include <boost/filesystem.hpp>
#include <QFileDia... |
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <fs.h>
#include <qt/intro.h>
#i... |
<commit_before>/*
* Copyright (c) 2016, The Bifrost Authors. All rights reserved.
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributio... |
<commit_before>#include "random_lcg.h"
#include <cmath>
// Starting seed
int64_t seed = 1;
// LCG parameters
const uint64_t prn_mult = 2806196910506780709LL; // multiplication factor, g
const uint64_t prn_add = 1; // additive factor, c
const uint64_t prn_mod = 0x8000000000000000; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.