text stringlengths 54 60.6k |
|---|
<commit_before>#include "flexinfo.h"
#include <boost/lexical_cast.hpp>
#include <openbabel/mol.h>
#include <openbabel/atom.h>
#include <openbabel/bond.h>
#include <boost/unordered_map.hpp>
#include <exception>
#include <limits>
using namespace std;
FlexInfo::FlexInfo(const std::string& flexres, double flexdist,
c... |
<commit_before>#include <algorithm>
#include <cfloat>
#include <iostream>
#include <iterator>
#include <list>
#include <numeric>
#include <vector>
struct action {
float lin_vel;
float ang_vel;
float duration;
};
// For generating a sequence of equidistant values
struct double_inc_iterator : std::iterator... |
<commit_before>/*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker 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.
**
** Centreon Broker is distribu... |
<commit_before>#include <exception>
#include <iostream>
#include <string>
#include <vector>
void* operator new(size_t size) {
throw std::bad_alloc();
return nullptr;
}
int my_atoi(const std::string& str) {
int value = std::atoi(str.c_str());
if (value == 0 && str == "0") {
return value;
}
... |
<commit_before>/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>/*
* imageviewer2.cpp
* Copyright (C) 2009-2015 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "imageviewer2/imageviewer2.h"
#include "mmcore/api/MegaMolCore.std.h"
#include "mmcore/utility/plugins/Plugin200Instance.h"
#include "mmcore/versioninfo.h"
#include "vislib/vis... |
<commit_before>/*************************************************************************/
/* camera_server.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include <iostream>
#include <fstream>
#include <unordered_set>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include "csvlint.h"
using namespace std;
using namespace boost;
namespace po = boost::program_options;
int main (int argc, char *argv[]) {
char quote_char;
char fs_... |
<commit_before>#define BOOST_TEST_MODULE account_query_db
#include <eosio/chain/permission_object.hpp>
#include <boost/test/unit_test.hpp>
#include <eosio/testing/tester.hpp>
#include <eosio/chain/types.hpp>
#include <eosio/chain/block_state.hpp>
#include <eosio/chain_plugin/account_query_db.hpp>
#ifdef NON_VALIDATING... |
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "AutoPacketGraph.h"
#include "CoreContext.h"
#include "DecorationDisposition.h"
#include "demangle.h"
#include "SatCounter.h"
#include <algorithm>
#include <fstream>
#include <string>
#include <sstream>
#includ... |
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "AutowiringDebug.h"
#include "Autowired.h"
#include <iomanip>
#include <iostream>
#include <sstream>
using namespace autowiring;
using namespace autowiring::dbg;
#ifdef _MSC_VER
// On Windows, lambda function... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sfxdefs.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2008-01-07 09:02:48 $
*
* The Contents of this file are made ... |
<commit_before>#ifndef __Data_course__
#define __Data_course__
#include "data-general.hpp"
#include "data-major.hpp"
#include "data-department.hpp"
using namespace std;
class Course {
protected:
string ID;
int number;
string title;
string description;
char section;
vector<Major> majors;
Department* departmen... |
<commit_before>#include "configure.hpp"
#include <silicium/file_operations.hpp>
#include <silicium/cmake.hpp>
#include <fstream>
namespace
{
Si::absolute_path build_configure(
Si::absolute_path const &application_source,
Si::absolute_path const &temporary,
Si::optional<Si::absolute_path> const &boost_root,
Si... |
<commit_before>/*
* MiniSatWrapper.cpp - MiniSat wrapper
*
* This source code is licensed under the MIT License.
* See the file COPYING for more details.
*
* @author: Taku Fukushima <tfukushima@dcl.info.waseda.ac.jp>
*/
#include <Solver.h>
#include "minisat.h"
using namespace Minisat
// Variable
extern "C" in... |
<commit_before>/*************************************************************************
*
* $RCSfile: canvasfont.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-11-26 17:11:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>#include "HTTPSession.hpp"
#include <boost/beast/http/read.hpp>
#include <boost/beast/http/write.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/ssl/rfc2818_verification.hpp>
const int DEFAULT_HTTP_VERSION = 11;
RequestSession::RequestSession(boost::asio::io_context& ioc) : m_resolver(ioc)... |
<commit_before>#include "pldm_fw_update_cmd.hpp"
#include "libpldm/firmware_update.h"
#include "common/utils.hpp"
#include "pldm_cmd_helper.hpp"
namespace pldmtool
{
namespace fw_update
{
namespace
{
using namespace pldmtool::helper;
std::vector<std::unique_ptr<CommandInterface>> commands;
} // namespace
const... |
<commit_before>/*
Copyright (C) 2001 by Jorrit Tyberghein
Copyright (C) 2000 by W.C.A. Wijngaards
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; either
version 2 of... |
<commit_before>#include <vector>
#include <algorithm>
#include <experimental/random>
#include <iostream>
#include <iterator>
int main(int, char*[])
{
const size_t size = 10;
const int range_min = 0;
const int range_max = 1000;
std::vector<int> v(size);
std::generate(v.begin(), v.end(), [](){return... |
<commit_before>/************************************************************************
filename: CEGuiSample.cpp
created: 24/9/2004
author: Paul D Turner
*************************************************************************/
/*******************************************************************... |
<commit_before>/* bzflag
* Copyright (c) 1993-2011 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 "erl_nif.h"
#include "CPool.hpp"
#include "stdio.h"
extern "C" {
static ErlNifResourceType* cpool_node_RESOURCE = NULL;
static ErlNifResourceType* cpool_RESOURCE = NULL;
typedef struct {
CPool *pool;
} cpool_handle;
typedef struct {
CPoolNode *node;
} cp... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Javier López-Gómez <jalopezg@inf.uc3m.es>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or th... |
<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 "athena/content/public/web_contents_view_delegate_creator.h"
#include "athena/content/render_view_context_menu_impl.h"
#include "... |
<commit_before>// Copyright 2011, Tokyo Institute of Technology.
// All rights reserved.
//
// This file is distributed under the license described in
// LICENSE.txt.
//
// Author: Naoya Maruyama (naoya@matsulab.is.titech.ac.jp)
#include <boost/program_options.hpp>
#include "translator/config.h"
#include "translator/... |
<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/fullscreen.h"
#include <windows.h>
#include <shellapi.h>
static bool IsPlatformFullScreenMode() {
#if 0
re... |
<commit_before>// Copyright (c) 2006-2008 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/views/dom_view.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "views/focus/focus_mana... |
<commit_before>// Copyright (c) 2006-2008 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/renderer/render_thread.h"
#include <algorithm>
#include <vector>
#include "base/command_line.h"
#include "base/... |
<commit_before>// Copyright (c) 2006-2008 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 "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/field_trial.h"
#include ... |
<commit_before>// Time: O(n + k)
// Space: O(k)
// Wiki of KMP algorithm:
//http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm
class Solution {
public:
/**
* Returns a index to the first occurrence of target in source,
* or -1 if target is not part of source.
* @param source string to be sc... |
<commit_before>#include "config_file.h"
#ifdef Q_OS_UNIX
#include <qfile.h>
#include <qtextstream.h>
#include <qdir.h>
#define general_section "general"
#else
#include <qsettings.h>
#define winwget_register "winwget"
#endif
// -------------------------------------------------------
// -------- WGConfigFile
// ---... |
<commit_before><commit_msg>WaE: -Wunused-variable<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: except.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: obo $ $Date: 2006-09-16 15:47:40 $
*
* The Contents of this file are made ... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2013 Adam Roben <adam@roben.org>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser/inspectable_web_contents_impl.h"
#i... |
<commit_before>// Author: Danilo Piparo CERN 08/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/* This file is part of the KDE project.
Copyright (C) 2009 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 as published by
the Free Software Foundation, eith... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>
#ifndef __TWO_LEVEL_ARRAY_HPP__
#define __TWO_LEVEL_ARRAY_HPP__
#include "utils.hpp"
/* two_level_array_t is a tree that always has exactly two levels. Its computational complexity is
similar to that of an array, but it neither allocates all of its memory at once nor needs to
realloc() as it grows.
I... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Games/GameManager.hpp>
namespace Hearth... |
<commit_before>#include <QTimer>
#include <QLabel>
#include <QPainter>
#include "CommentLib.h"
#include "AssassinWar.h"
#include "MapLoader.h"
#include "UnderGrid.h"
#include "PixelCoordinateTransfer.h"
const int GRID_NUMBER_IS_ZERO = -1;
AssassinWar::AssassinWar(QWidget *parent, Qt::WFlags flags)
: QMainWindow... |
<commit_before>#include "panel_console.h"
#include <glgui/label.h>
#include <glgui/textfield.h>
#include <glgui/rootpanel.h>
#include <tinker/application.h>
#include <tinker/profiler.h>
#include "monitor_window.h"
using namespace glgui;
CPanel_Console::CPanel_Console()
{
m_hOutput = AddControl(new CLabel(0, 0, 100... |
<commit_before>/*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>#include "StringTools.h"
#include <string>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <iterator>
using namespace std;
using namespace nspace::stringtools;
StringToken::StringToken(std::istream & stream):stream(stream){}
bool StringToken::next(){
... |
<commit_before>/*
* Copyright 2014-2021 Real Logic Limited.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
<commit_before>/*
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Stephen F. Booth <me@sbooth.org>
* 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 co... |
<commit_before>/*
* RToolsInfo.cpp
*
* Copyright (C) 2009-19 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Pub... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL... |
<commit_before>//
// ex7_01.cpp
// Exercise 7.1
//
// Created by pezy on 14/10/30.
// Copyright (c) 2014 pezy. All rights reserved.
//
#include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
struct Sales_data {
string bookNo;
unsigned units_sold = 0;
... |
<commit_before>#include "ClientConnection.hpp"
#include "ClientDhLayer.hpp"
#include "ClientRpcLayer.hpp"
#include "CTelegramTransport.hpp"
#include "SendPackageHelper.hpp"
#include "TelegramUtils.hpp"
#include "Utils.hpp"
#include <QDateTime>
namespace Telegram {
namespace Client {
class SendPackageHelper : public... |
<commit_before>#if !defined( __CINT__) || defined(__MAKECINT__)
#include <iostream>
#include <AliCDBManager.h>
#include <AliCDBStorage.h>
#include <AliCDBEntry.h>
#include <AliCDBMetaData.h>
#include "AliTRDgeometry.h"
#include "AliTRDCalROC.h"
#include "AliTRDCalPad.h"
#include "AliTRDCalDet.h"
#include "AliTRDCa... |
<commit_before>#include <string>
#include <memory>
#include <sstream>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Shlwapi.h>
#include <dxgi.h>
#include <d3d11.h>
#include <DirectXMath.h>
#include <D3Dcompiler.h>
#include <wrl.h>
#endif
#include <dxfw/dxfw.h>
class DxfwGuard... |
<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_HDD_LINEARELLIPTIC_DISCRETIZATIONS_DEFAULT_HH
#define DUNE_HDD_LINEARELLIPT... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/**
* \file py_keyword_manager.cpp
* \brief Exports python wrappers for keyword_manager,
* see keyword_manager.h
* \author Sergey Miryanov (sergey-miryanov), sergey.miryanov@gmail.com
* \date 28.10.2009
* \copyright This source code is released under the term... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlfilter.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2007-11-09 08:19:11 $
*
* The Contents of this file are made... |
<commit_before>/******************************************************************************
This source file is part of the Avogadro project.
This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/
#include "cl... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "DMPDFTask.h"
#include "DMExpectationsTask.h"
#include "DMPDFRasterizeTask.h"
#include "DMUtil.h"
#include "DMWriteTask.h"
#include "SkCommandLineFlags... |
<commit_before>#include "ffmpeg_video_target.h"
#include "except.h"
#ifdef USE_BOOST_TIMER
#include <boost/timer/timer.hpp>
#endif
namespace gg
{
VideoTargetFFmpeg::VideoTargetFFmpeg(const std::string codec) :
_codec(NULL),
_codec_name(""),
_frame(NULL),
_framerate(-1),
_sws_context(NULL),
_f... |
<commit_before>#include <derecho/derecho.h>
#include <derecho/view.h>
#include <vector>
#include <fstream>
using namespace derecho;
using std::vector;
using std::pair;
class CookedMessages : public mutils::ByteRepresentable {
vector<pair<uint, uint>> msgs; // vector of (nodeid, msg #)
public:
CookedMessages () ... |
<commit_before>/**
Copyright (c) 2009 James Wynn (james@jameswynn.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
<commit_before>/*###################################################
##################Cic-Cac-Coe######################
######## All rights reserved to SAFAD(C) ##########
###########Please read the LICENSE file############
###################################################*/
#include <iostream>
#include <cs... |
<commit_before>/**
* \file t_LA.cpp
* \brief
* \date Oct 13, 2010
* \author Vernkin Chen
*/
#include <ilplib.hpp>
#include <string>
#include <util/ustring/UString.h>
#include "la_bin_test_def.h"
using namespace std;
using namespace la;
using namespace izenelib::util;
void testTokenizer()
{
Tokenizer tokeni... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <cstdarg>
#include <random>
#include "core/CompileConfig.h"
#if OUZEL_PLATFORM_IOS || OUZEL_PLATFORM_TVOS
#include <sys/syslog.h>
#endif
#if OUZEL_PLATFORM_WINDOWS
#define NOMINMAX
#include <windows.h>
#include <... |
<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>//------------------------------------------------------------------------------
// voice.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "voice.h"
#include "Core/Assert.h"
#include "Synth/Core/synth.h"
#include <cmath>
#include <cstd... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>#include <Automaton.h>
#include "Atm_command.h"
Atm_command & Atm_command::begin( Stream * stream, char buffer[], int size )
{
const static state_t state_table[] PROGMEM = {
/* ON_ENTER ON_LOOP ON_EXIT EVT_INPUT EVT_EOL ELSE */
/* IDLE */ -1, -1, ... |
<commit_before>/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>//===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V ... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2013 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 Softwar... |
<commit_before>#include "gtest/gtest.h"
#include <Managers/GameAgent.h>
#include <Managers/GameInterface.h>
#include <Tasks/BasicTasks/Draw.h>
#include <Tasks/BasicTasks/PlayCard.h>
#include <future>
using namespace Hearthstonepp;
TEST(BasicCard, EX1_066)
{
GameAgent agent(
Player(new Account("Player 1"... |
<commit_before>/*
* Motors_Controller.cpp
*
* Created on: 18. 7. 2017
* Author: michp
*/
#include "Motors_Controller.h"
namespace flyhero
{
Motors_Controller &Motors_Controller::Instance()
{
static Motors_Controller instance;
return instance;
}
Motors_Controller::Motors_Cont... |
<commit_before>#include <list>
#include "network.h"
#include "Connection.h"
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
extern UServer * THESERVER;
namespace Network {
class TCPServerPipe: public Pipe {
public:
TCPServerPipe(): fd(-1), port(-1) {}
bool init(in... |
<commit_before>// Copyright (c) 2015
// Author: Chrono Law
#ifndef _NDG_TEST_INIT_HPP
#define _NDG_TEST_INIT_HPP
#include "NdgTestConf.hpp"
#include "NdgTestHandler.hpp"
class NdgTestInit final
{
public:
typedef NdgTestConf conf_type;
typedef NdgTestHandler handler_type;
typedef NdgTestInit this_type;
pub... |
<commit_before>/******************************************************************************\
* File: test.cpp
* Purpose: Implementation for wxextension cpp unit testing
* Author: Anton van Wezenbeek
* RCS-ID: $Id: test.cpp 450 2009-03-11 20:02:41Z antonvw $
* Created: za 17 jan 200... |
<commit_before>/////////////////////////////////////////////////////////////////////////////
//
// BSD 3-Clause License
//
// Copyright (c) 2019, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pr... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/hdf5/EntityWit... |
<commit_before>// Copyright 2016-2019 Jean-Francois Poilpret
//
// 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 ... |
<commit_before>/*
Source File : PDFModifiedPage.cpp
Copyright 2013 Gal Kahana PDFWriter
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/licen... |
<commit_before>// Macro redoFinish.C is used after macro mergeOutput.C has been used for merging.
// Before using this macro first read the explanation at the beginning of macro mergeOutput.C.
enum libModes {mLocal,mLocalSource};
void redoFinish(TString type="ESD", Int_t mode=mLocal)
{
// type: type of analysis ca... |
<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 2013 Mihail Ivchenko <ematirov@gmail.com>
// Copyright 2014 Sanjiban Bair... |
<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>#include "machines.hh"
#include "worker.hh"
#include "substitution-goal.hh"
#include "derivation-goal.hh"
namespace nix {
void Store::buildPaths(const std::vector<StorePathWithOutputs> & drvPaths, BuildMode buildMode)
{
Worker worker(*this);
Goals goals;
for (auto & path : drvPaths) {
... |
<commit_before>#include "core/stringutils.h"
#include "catch.hpp"
namespace euco = euphoria::core;
TEST_CASE("stringutils-laststrings", "[stringutils]")
{
SECTION("basic")
{
const auto r = euco::last_strings("hello.world", '.');
CHECK(r.first == "hello");
CHECK(r.second == ".world");
... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>// test program for quasi random numbers
#include "Math/QuasiRandom.h"
#include "Math/Random.h"
#include "TH2.h"
#include "TCanvas.h"
#include "TApplication.h"
//#include "TSopwatch.h"
#include <iostream>
using namespace ROOT::Math;
int testQuasiRandom() {
const int n = 10000;
TH2D * h0 = ne... |
<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 <vector>
#include "media/base/mock_filters.h"
#include "media/filters/decoder_base.h"
#include "testing/gmock/include/gmock/g... |
<commit_before>
#include "jnif.h"
static jmethodID m_eobject__testNumber;
static jmethodID m_enumber__doubleValue;
static jmethodID m_enumber__intValue;
static jmethodID m_enumber__longValue;
static jclass ERT_class;
static jmethodID m_ERT__box_int;
static jmethodID m_ERT__box_long;
static jmethodID m_ERT__box_do... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DrawViewWrapper.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: kz $ $Date: 2006-12-12 16:45:16 $
*
* The Contents of this file a... |
<commit_before>/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... |
<commit_before>#ifndef ISOMON_MONEY_CALC_HPP
#define ISOMON_MONEY_CALC_HPP
#include "money.hpp"
namespace isomon {
template <class _Number>
struct money_calc {};
typedef money_calc<double> money_double;
template <>
struct money_calc<double>
{
double minors;
currency unit;
money_calc() : minors(NAN) {}
mo... |
<commit_before>/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
// clang-format off
// Keep it on top of all other includes to fix double in... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "Component.h"
#include "utils/Utils.h"
#include "math/MathUtils.h"
namespace ouzel
{
namespace scene
{
Component::~Component()
{
}
void Component::draw(const Matrix4&,
... |
<commit_before>#pragma once
/*
MIT License
Copyright (c) 2017 Blockchain-VCS
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, c... |
<commit_before>/* An Environment is the toplevel class for Rubinius. It manages multiple
* VMs, as well as imports C data from the process into Rubyland. */
#include "prelude.hpp"
#include "environment.hpp"
#include "config.hpp" // HACK rename to config_parser.hpp
#include "compiled_file.hpp"
#include "probes.hpp"
#in... |
<commit_before>#ifdef ENABLE_LLVM
#include "llvm/passes.hpp"
#include <llvm/Attributes.h>
#include <llvm/BasicBlock.h>
#include <llvm/Function.h>
#include <llvm/Instructions.h>
#include <llvm/Transforms/Utils/Cloning.h>
#include <llvm/Support/CallSite.h>
#include <llvm/ADT/APInt.h>
#include <llvm/Constants.h>
#includ... |
<commit_before>/**
* @file backtrace.cpp
* @author Grzegorz Krajewski
*
* Implementation of the Backtrace class.
*
* This file is part of mlpack 2.0.1.
*
* mlpack is free software; you may redstribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* ... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2014 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:
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.