text stringlengths 54 60.6k |
|---|
<commit_before>#include "store.h"
#include <map>
#include <iostream>
#include <fstream>
using namespace std;
class Store_map : Store
{
public:
Store_map();
~Store_map();
// Open and close store
void open(string filename){
ifstream ifs;
string buff_word;
int buff_n;
ifs.open(filename);
if (!ifs.is_open... |
<commit_before>/* This file is part of the UniSet project
* Copyright (c) 2002 Free Software Foundation, Inc.
* Copyright (c) 2002 Pavel Vainerman
*
* 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 Fou... |
<commit_before>#include "window.h"
#include "control.h"
#include "logger.h"
#include "string_utils.h"
#include <FL/fl_ask.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Input_Choice.H>
#include <cassert>
#include <algorithm>
#include <vector>
void Vindow::FileNew(Fl_Widget*, void*)
{}
void Vindow::FileOpen(Fl_Widget*,... |
<commit_before>//
// Managed C++ wrapper class around the Hugs server API.
//
#using <mscorlib.dll>
extern "C" {
#include "prelude.h"
#include "storage.h"
#include "connect.h"
};
#include "prim.h"
#include "HugsServ.h"
#define ToCharString(str) \
static_cast<char*>(System::Runtime::InteropServices::Marshal::StringTo... |
<commit_before>#include "drivers/mpu6000.hpp"
#include "unit_config.hpp"
void MPU6000::init() {
// Reset device.
txbuf[0] = mpu6000::PWR_MGMT_1;
txbuf[1] = 0x80;
exchange(2);
chThdSleepMilliseconds(100); // TODO(yoos): Check whether or not datasheet specifies this holdoff.
// Set sample rate to 1 kHz.... |
<commit_before><commit_msg>glsl: Move the definition of precision_qualifier_allowed<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2016 Greenheart Games Pty. Ltd. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "nan.h"
#include "steam/steam_api.h"
#include "steam/steamencryptedappticket.h"
#include "v8.h"
#include "greenworks_async_w... |
<commit_before>///
/// @file main.cpp
/// @brief primesieve console application.
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/ParallelPrimeSieve.hpp>
#include "cmd... |
<commit_before>/*
* Copyright (c) 2002-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include <iostream>
#include <sstream>
#include <iterator>
#include <stdexcept>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/CompilerOutputter.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestR... |
<commit_before><commit_msg>More tests<commit_after><|endoftext|> |
<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><commit_msg>Disable test-explorer.cpp<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sysdata.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-11-02 12:43:30 $
*
* The Contents of this file are made a... |
<commit_before>#include "acmacs-base/virus-name.hh"
#include "acmacs-base/range.hh"
#include "acmacs-draw/surface-cairo.hh"
#include "acmacs-draw/geographic-map.hh"
#include "geographic-map.hh"
// ----------------------------------------------------------------------
void GeographicMapPoints::draw(Surface& aSurface) ... |
<commit_before>#include "bananagrams.hpp"
using std::cerr;
using std::endl;
using std::string;
Typer::Typer()
{
ch = 'A' - 1;
}
bool Typer::get_ch(char* chr)
{
if (ch >= 'A' && ch <= 'Z')
{
*chr = ch;
ch = 'A' - 1;
return true;
}
return false;
}
bool Typer::process_event(sf::Event& event)
{
if (event.ty... |
<commit_before>// Copyright 2017 Global Phasing Ltd.
#include <iostream> // temporary, for debugging
#include "gemmi/cifgz.hpp"
#include "gemmi/mmcif.hpp"
#include "gemmi/pdbgz.hpp"
#include "gemmi/to_cif.hpp"
#include "gemmi/to_json.hpp"
#include "gemmi/to_pdb.hpp"
// set this before only one of stb_sprintf.h include... |
<commit_before>/*
* PuckManager.cpp
*
* Created on: 09.06.2017
* Author: aca592
*/
#include "PuckManager.h"
PuckManager::PuckManager() {
// TODO Auto-generated constructor stub
}
PuckManager::~PuckManager() {
// TODO Auto-generated destructor stub
}
void PuckManager::addPuck(PuckContext *puck) {
puck-... |
<commit_before>// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// ... |
<commit_before>// Copyright (c) 2013 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 "ui/base/ime/input_method_imm32.h"
#include "base/basictypes.h"
#include "ui/base/ime/composition_text.h"
#include "ui/base/i... |
<commit_before>/*=========================================================================
Program: Texture Analysis
Module: $$
Language: C++
Date: $Date: xxx-xx-xx $
Version: $Revision: xxx $
Copyright (c) University of North Carolina at Chapel Hill (UNC-CH) All Rights Reserved.
See Licen... |
<commit_before>/*
Al parecer, también se puede hacer gestión de lectura/escritura
mediante otras funciones propias de C++ y sus librerias.
El ejemplo anterior sería válido tanto para C y C++ (las funciones).
*/<commit_msg>file medium/04-ReadWrite2<commit_after>/*
Al parecer, también se puede hacer gestión de lectur... |
<commit_before>
void GetSampleName( TString inputFile="") {
string ret;
ret = inputFile;
//Drell Yan
if (inputFile.Contains("DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph")) ret = "ZJets" ;
if (inputFile.Contains("DYJetsToLL_HT-200To400_TuneZ2Star_8TeV-madgraph")) ret = "ZJets200";
if (inputFile.Conta... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <math.h>
#include <stdio.h> // FIXME(brettw) erase me.
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <time.h>
#includ... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>
#include "NNSound.h"
#include "NNApplication.h"
wchar_t* GetFileExtenstion (const wchar_t * file_name)
{
wchar_t* _file_name;
wcscpy_s(_file_name, wcslen(file_name), file_name);
int file_name_len = wcslen (_file_name);
_file_name +=file_name_len ;
wchar_t *file_ext ;
for(int i =0 ; i <f... |
<commit_before>// Copyright (c) 2016 Mirants Lu. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "voyager/core/tcp_monitor.h"
#include "voyager/util/logging.h"
namespace voyager {
TcpMonitor::TcpMonitor(int max_all_connections, int... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ContentInfo.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2006-06-20 06:14:03 $
*
* The Contents of this file are ma... |
<commit_before>//===- unittest/Tooling/ToolingTest.cpp - Tooling unit tests --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <stan/prob/distributions/univariate/discrete/neg_binomial.hpp>
#include <gtest/gtest.h>
#include <boost/random/mersenne_twister.hpp>
#include <boost/math/distributions.hpp>
TEST(ProbDistributionsNegBinomial, error_check) {
boost::random::mt19937 rng;
EXPECT_NO_THROW(stan::prob::neg_binomial... |
<commit_before>/*
* ThreadPool.cpp
* OpenLieroX
*
* Created by Albert Zeyer on 08.02.09.
* code under LGPL
*
*/
#include <SDL_thread.h>
#include "ThreadPool.h"
#include "Debug.h"
static const unsigned int THREADNUM = 20;
ThreadPool::ThreadPool() {
nextFunc = NULL; nextParam = NULL; nextData = NULL;
mute... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>#ifndef INCLUDE_AL_GRAPHICS_BUFFEROBJECT_HPP
#define INCLUDE_AL_GRAPHICS_BUFFEROBJECT_HPP
/* Allocore --
Multimedia / virtual environment application class library
Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB.
Copyright (C) 2012. The Regents of the University of Calif... |
<commit_before>#include "parallel.h"
#include <iostream>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include "cmdLineOptions.h"
#include "h5test.h"
void printVersion(const char* execName)
{
if (P.myProc == 0)
std::cerr << execName << " Version: " << H5TEST_VERSION << std::endl... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2009 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licenc... |
<commit_before>// Filename: INSStaggeredStokesOperator.C
// Created on 29 Apr 2008 by Boyce Griffith
//
// Copyright (c) 2002-2010, Boyce Griffith
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are me... |
<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>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... |
<commit_before>// win32_handmade.cpp
// compiles with -doc -FC -Zi win32_handmade.cpp user32.lib gdi32.lib
// see: build.bat for switches used in compilation
/* ========================================================================
$File: $
$Date: $
$Revision: 0.1.d4.b(build#) $
$Creator: Sebastian Meier zu Biesen $
... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#define _POSIX_SOURCE
#include "afs.h"
#include "condor_common.h"
#include "condor_config.h"
#include "condor_debug.h"
#include "condor_constants.h"
#include "subproc.h"
#include <string.h>
static char *_FileName_ = __FILE__; // Used by EXCEPT (see condor_debug.h)
AFS_Info::AFS_Info()
{
char *tmp... |
<commit_before>#define LUMIX_NO_CUSTOM_CRT
#include "../model.h"
#include "../renderer.h"
#include "../render_scene.h"
#include "editor/studio_app.h"
#include "editor/world_editor.h"
#include "engine/core.h"
#include "engine/engine.h"
#include "engine/universe.h"
#include "imgui/imgui.h"
#include "spline_geometry_plug... |
<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><commit_msg>Add TODO comment for when liblangtag gets updated<commit_after><|endoftext|> |
<commit_before>/*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was n... |
<commit_before>//
// Copyright (c) 2013 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_COMPONENTS_PLATFORM_HPP
#define RJ_GAME_COMPONENTS_PLATFORM_HPP
#include <rectojump/game/entity_rect.hpp>
namespace rj
{
class platform : public entity_rect
{
protected:
void update(dur duration) ov... |
<commit_before>#include <catch.hpp>
#include <rapidcheck-catch.h>
#include "rapidcheck/Gen.h"
#include "rapidcheck/shrinkable/Create.h"
#include "util/ArbitraryRandom.h"
using namespace rc;
using namespace rc::detail;
using namespace rc::newgen::detail;
struct MockGenerationHandler : public GenerationHandler
{
... |
<commit_before>/*
* Open Source Movement Analysis Library
* Copyright (C) 2016, Moveck Solution 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:
*
* * Redistributions of source... |
<commit_before>/*
* Copyright 2015 - 2021 gary@drinkingtea.net
*
* 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/.
*/
#pragma once
#ifdef OX_USE_STDLIB
#include <a... |
<commit_before>/******************************************************************************
* Copyright 2018 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>/*****************************************************************************
* ctrl_video.cpp
*****************************************************************************
* Copyright (C) 2004 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
* This program is free sof... |
<commit_before>#include "falcon/cxx/cxx.hpp"
#include "falcon/cxx/compiler_attributes.hpp"
#include "falcon/cxx/lib.hpp"
#include "falcon/cxx/lib_experimental.hpp"
#include "falcon/cxx/move_algorithm.hpp"
#include "falcon/cxx/move.hpp"
template<class... T>
void foo(T... x)
{
static_assert(noexcept(FALCON_UNPACK(x+1)... |
<commit_before>#include "download.h"
#include "test-helpers.h"
using namespace podboat;
TEST_CASE("Require-view-update callback gets called when download progress or status changes",
"[Download]")
{
GIVEN("A Download object") {
bool got_called = false;
std::function<void()> callback = [&got_called]() {
got_... |
<commit_before>#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <tudocomp/io.h>
#include <tudocomp/util/Generators.hpp>
#include <tudocomp/ds/TextDS.hpp>
#include "test_util.h"
using namespace tudocomp;
typedef void (*string_test_func_t)(const std::string&);
//Check that p is a permutation of ... |
<commit_before>#include "dt_RunDrawTest.C"
#include "TClassTable.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "TSystem.h"
#ifndef __CINT__
#include "Event.h"
#endif
TH1F* RefClone(TH1F* orig) {
TH1F *cloned = (TH1F*)orig->Clone();
TString name = orig->GetName();
... |
<commit_before>/*
* geo_test.cpp
*
* Created on: 201487
* Author: wangqiying
*/
#include "ardb.hpp"
using namespace ardb;
void test_geo_common(Context& ctx, Ardb& db)
{
db.GetConfig().zset_max_ziplist_entries = 16;
RedisCommandFrame del;
del.SetFullCommand("del mygeo");
db.Call(ctx, del, 0)... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPNMReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by ... |
<commit_before>/*****************************************************************************
* MindTheGap: Integrated detection and assembly of insertion variants
* A tool from the GATB (Genome Assembly Tool Box)
* Copyright (C) 2014 INRIA
* Authors: C.Lemaitre, G.Rizk, P.Marijon
*
* This program is fr... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>// Copyright 2018 Global Phasing Ltd.
//
// Selections.
#ifndef GEMMI_SELECT_HPP_
#define GEMMI_SELECT_HPP_
#include <string>
#include <cstdlib> // for strtol
#include <cctype> // for isalpha
#include <climits> // for INT_MIN, INT_MAX
#include "fail.hpp" // for fail
#include "util.hpp" // for ... |
<commit_before>#ifndef __LLVM_IKOS_HPP_
#define __LLVM_IKOS_HPP_
/*
* Compute invariants for each basic block using a numerical abstract
* domain.
*/
#include "llvm/Pass.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/DenseMap.h"
#include "boost/optional.hpp"
#include "... |
<commit_before>//-----------------------------------------------------------------------------
// Jikken - 3D Abstract High Performance Graphics API
// Copyright(c) 2017 Jeff Hutchinson
// Copyright(c) 2017 Tim Barnes
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>
#pragma once
#include <proxc/version.hpp>
////////////////////////////////////////////////////////////////////////////////
// Detect the compiler
////////////////////////////////////////////////////////////////////////////////
#if defined(_MSC_VER) && !defined(__clang__) // MSVC
# pragma message("... |
<commit_before>//----------------------------------------------------------------------------
/// \file pidfile.hpp
//----------------------------------------------------------------------------
/// \brief Creates and manages a file containing a process identifier.
/// This file is necessary for ease of administration... |
<commit_before>#include "indexer/feature_data.hpp"
#include "indexer/feature_impl.hpp"
#include "indexer/classificator.hpp"
#include "indexer/feature.hpp"
#include "base/assert.hpp"
#include "base/stl_add.hpp"
#include "std/algorithm.hpp"
#include "std/bind.hpp"
#include "std/vector.hpp"
using namespace feature;
//... |
<commit_before>#include "decrypt.h"
Tag5::Ptr find_decrypting_key(const PGP & k, const std::string &keyid){
if (k.get_ASCII_Armor() == 2){
std::vector <Packet::Ptr> packets = k.get_packets();
for(Packet::Ptr const & p : packets){
if ((p -> get_tag() == 5) || (p -> get_tag() == 7)){
... |
<commit_before>/* JCHOR - random-wait chorus instrument based on Paul Lansky's chor
and Doug Scott's trans code
p0 = output start time
p1 = input start time
p2 = output duration
p3 = input duration (not input end time)
p4 = maintain input duration, regardless of transposition (1: yes, 0:... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/captcha_view.h"
#include "app/l10n_util.h"
#include "base/string_util.h"
#include "base/utf_st... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/user_manager.h"
#include "app/resource_bundle.h"
#include "base/compiler_specific.h"
#include ... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/media/media_player.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_dom_ui.h"
#include "base/string_util.h"
#include "chrome/browser/browser.h"
#include "ch... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/prerender/prerender_manager.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/t... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/extensions/manifest.h"
#include <algorithm>
#include <set>
#include <string>
#include "base/memory/scoped_ptr... |
<commit_before>#include <algorithm>
#include <iostream>
#include <fstream>
#include <libxml/xmlmemory.h>
#include <stdexcept>
#include <string>
#include <vector>
#include "retriever.h"
#include "../node.h"
#include "../node_util.h"
#include "../string_util.h"
#include "../tree.hh"
using std::ifstream;
using std::inval... |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2009 Matthias Kretz <kretz@kde.org>
Vc 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><commit_msg>Create code.cpp<commit_after><|endoftext|> |
<commit_before>#include "Process.hpp"
#include "log.hpp"
#include "Filesystem.hpp"
#include <boost/algorithm/string/join.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <cassert>
#include <stdexcept>
#include <sys/wait.h>
#include <unistd.h>
#if defined(__AP... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (ivan.frade@nokia.com)
**
** This file is part of the QtSparql module (not yet part of the Qt To... |
<commit_before>#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include <C5G/C5G.h>
#include <C5G/Grasp.h>
namespace C5G{
void C5G::moveCartesian(const Pose& p){
std::cout << "Relative movement to (" << p.x << ", " << p.y << ", " << p.z << ")\nOrientation: (" << p.alpha << ", " << p.beta << ", " << p.gam... |
<commit_before>/************************************************************************
filename: CEGUIRenderer.cpp
created: 20/2/2004
author: Paul D Turner
purpose: Some base class implementation for Renderer objects
*************************************************************************/
/*****************... |
<commit_before>#include <time.h>
#include "xsi_application.h"
#include "AlembicLicensing.h"
#include <string>
#include <sstream>
using namespace std;
#if defined( EXOCORTEX_RLM_ONLY )
#include "RlmSingletonDeclarations.h"
#endif // EXOCORTEX_RLM_ONLY
int s_alembicLicense = -1;
int GetAlembicLicense() {
static st... |
<commit_before>/*
* Copyright 2014 The Imaging Source Europe GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
<commit_before>/*
* Copyright (C) 2006-2021 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>#include "cpid.h"
#include "init.h"
#include "rpcclient.h"
#include "rpcserver.h"
#include "rpcprotocol.h"
#include "keystore.h"
#include "beacon.h"
double GetTotalBalance();
std::string GetBurnAddress() { return fTestNet ? "mk1e432zWKH1MW57ragKywuXaWAtHy1AHZ" : "S67nL4vELWwdDVzjgtEP4MxryarTZ9a8GB";
... |
<commit_before>
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2013-2017 Igor Mironchik
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
restrict... |
<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 <iostream>
#include <cstdlib>
#include <locale>
#include "commandline_options.hpp"
namespace kp19pp{
commandline_options_type::commandline_options_type() :
ifile_path_(), ofile_path_(), language_(language_cpp), indent_(indent_space4)
{}
namespace{
std::string str_to... |
<commit_before>#include <iostream>
#include "CodeGen_Posix.h"
#include "CodeGen_Internal.h"
#include "LLVM_Headers.h"
#include "IR.h"
#include "IROperator.h"
#include "Debug.h"
#include "IRPrinter.h"
#include "Simplify.h"
namespace Halide {
namespace Internal {
using std::vector;
using std::string;
using std::map;
u... |
<commit_before>/// \file ROOT/TDisplayItem.h
/// \ingroup Base ROOT7
/// \author Sergey Linev
/// \date 2017-05-31
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/******************************************************************... |
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/runtime/browser/xwalk_browser_main_parts.h"
#include <stdlib.h>
#include <set>
#include "base/bind.h"
#include "base/co... |
<commit_before>// RUN: %libomp-cxx-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include <iostream>
#include <thread>
#if !defined(__NetBSD__)
#include <alloca.h>
#else
#include <cstdlib>
#endif
#include "callback.h"
#include "omp.h"
int condition = 0;
void f() {
// Call OpenMP API function to... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief 固定サイズ文字列クラス @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <algorithm>
#includ... |
<commit_before>#include "signalcenter.h"
#include "dispatchentry.h"
// TEST: git subtree commit in upstream repo
// TEST 2: git subtree commit made in application repo
// TEST 3: git subtree commit made in application repo and pushed with git subtree push
// TEST 4: yet another git subtree commit made in application r... |
<commit_before>/*************************************************************************
*
* $RCSfile: rtl_old_testbyteseq.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-05-03 08:55:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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:
*
* * Redistributions of... |
<commit_before>/*ckwg +5
* Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <vistk/pipeline/version.h>
#include <vistk/version.h>
#include <boo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.