text stringlengths 54 60.6k |
|---|
<commit_before>#include "main.hpp"
#include "FinalComposite.hpp"
void FinalComposite::create(const graphics::ScreenRectBuffer *rectangle) {
this->rectangle = rectangle;
static const char *vertexShaderSource = R"glsl(
#version 330 core
layout(location=0) in vec2 position;
out vec2 screenCoord;
ou... |
<commit_before>#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkDevice.h"
#include "SkPaint.h"
#include "SkShader.h"
static SkBitmap createBitmap(int n) {
SkBitmap bitmap;
bitmap.setConfig(SkBitmap::kARGB_8888_Config, n, n);
bitmap.allocPixels();
bitmap.eraseColor(SK_ColorG... |
<commit_before>/*
* DP
*
*/
class NumArray {
public:
NumArray(vector<int> nums) {
dp = nums;
for (int i = 1; i < nums.size(); ++i) {
dp[i] += dp[i - 1];
}
}
int sumRange(int i, int j) {
return i == 0 ? dp[j] : dp[j] - dp[i - 1];
}
private:
... |
<commit_before>///
/// @file pi_deleglise_rivat_parallel3.cpp
/// @brief Parallel implementation of the Deleglise-Rivat prime
/// counting algorithm. This implementation is identical to
/// pi_deleglise_rivat_parallel2(x) but uses 128-bit integers.
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gma... |
<commit_before>#define BX_IN_CPU_METHOD 1
#include "bochs.h"
#include <assert.h>
BX_CPU_C *apic_index[APIC_MAX_ID];
bx_apic_c::bx_apic_c(BX_CPU_C *mycpu)
{
id = APIC_UNKNOWN_ID;
cpu = mycpu;
// default address for a local APIC, can be moved
apic_base_msr = 0xfee00000;
err_status = 0;
}
bx_apic_c::~bx_apic_... |
<commit_before>#ifndef DICE_IOPERATION_H
#define DICE_IOPERATION_H
#include "../stdafx.hpp"
#include "DiceRoll/Operations/RollResult.h"
//Base for a Decorator Pattern
/**
* \brief An interface for the Operation classes.
*
* It is a base for the Decorator Pattern.
*/
class IOperation
{
protected:
// DELETE TH... |
<commit_before>#include <kdl_codyco/utils.hpp>
#include <kdl_codyco/undirectedtree.hpp>
#include "kdl_codyco/rnea_loops.hpp"
#include <kdl_codyco/regressor_utils.hpp>
#include <kdl/rigidbodyinertia.hpp>
#include <kdl/frames_io.hpp>
#include <kdl_codyco/treeidsolver_recursive_newton_euler.hpp>
#include <kdl_codyco/tr... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FilterContainer.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-09-16 17:53:48 $
*
* The Contents of this file a... |
<commit_before>// Overload.cpp
/*
* Copyright (C) 2013 Spencer T. Parkin
*
* This software has been released under the MIT License.
* See the "License.txt" file in the project root directory
* for more information about this license.
*
*/
#include "lua.hpp"
#include "Overload.h"
#include "Operation.h"
#include... |
<commit_before><commit_msg>Forgot to adjust GCF computation after FFT api change.<commit_after><|endoftext|> |
<commit_before>// ---------------------------------------------------------------------
//
// Copyright (C) 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser Gener... |
<commit_before>/*
** Copyright 2014-2016 The Earlham Institute
**
** 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>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>#include "../../testing/testing.hpp"
#include "../feature_bucketer.hpp"
#include "../../indexer/feature.hpp"
#include "../../indexer/mercator.hpp"
#include "../../indexer/cell_id.hpp"
#include "../../indexer/classificator_loader.hpp"
#include "../../platform/platform.hpp"
#include "../../indexer/inde... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_getecid.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_getecid.H $ ... |
<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><commit_msg>Update Ngen.Content.File.cpp<commit_after>
#include <Ngen.hpp>
namespace Ngen {
namespace Content {
class Path {
public:
static const string& SystemPathChar() const;
static string GetLastNode(const string& node=const_string("/\|")... |
<commit_before>//This program created by love by Hadi - Copyright(c) by Hadi Abdi Khojasteh - Summer 2017. All right reserved. / Email: hkhojasteh@iasbs.ac.ir, info@hadiabdikhojasteh.ir / Website: iasbs.ac.ir/~hkhojasteh, hadiabdikhojasteh.ir
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <ope... |
<commit_before>/*
* GLDepthStencilState.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "GLDepthStencilState.h"
#include "../Ext/GLExtensions.h"
#include "../../GLCommon/GLExtensionRegistry.h"
#include "../../GLC... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#include <fcntl.h>
#include "conn.h"
#include "event_base.h"
#include "logging.h"
#include "util.h"
#include "poller.h"
#ifdef OS_LINUX
#include <sys/epoll.h>
#elif defined(OS_MACOSX)
#include <sys/event.h>
#else
#error "platform unsupported"
#endif
namespace handy {
#ifdef OS_LINUX
struct PollerEpol... |
<commit_before>// Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_FILE_READER_HPP
#define TAO_PEGTL_INTERNAL_FILE_READER_HPP
#include <cstdio>
#include <filesystem>
#include <memory>
#include <string>
#incl... |
<commit_before>#include "flvizgv.h"
#include <QFile>
#include <QWheelEvent>
#include <QMouseEvent>
#include <QGraphicsRectItem>
#include <QGraphicsSvgItem>
#include <QPaintEvent>
#include <qmath.h>
/*
* Constructor makes graphical objects in which we will put picture of the
* C graph. Now we make draw a chess-board... |
<commit_before>/*
* Copyright (c) 2014 Patrick P. Frey
*
* 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/.
*/
/// \file textwolf/xmlpathautomatonparse.hpp
/// \brief... |
<commit_before>// Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#include "BrightnessController.h"
#include "../Monitor.h"
#include "../Logger.h"
BrightnessController::BrightnessController(HMONITOR monitor) {
BOOL result;
DWORD numPhysicalMon... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docvor.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: hr $ $Date: 2006-06-19 21:58:51 $
*
* The Contents of this file are made a... |
<commit_before>//============================================================================
// vSMC/include/vsmc/rng/discrete_distribution.hpp
//----------------------------------------------------------------------------
// vSMC: Scalable Monte Carlo
//----------------------------------------... |
<commit_before>#ifndef SILICIUM_BUFFER_HPP
#define SILICIUM_BUFFER_HPP
#include <silicium/observable/observer.hpp>
#include <silicium/config.hpp>
#include <boost/circular_buffer.hpp>
#include <cassert>
#include <cstddef>
namespace Si
{
template <class Element, class Original>
struct buffer_observable
: private ob... |
<commit_before>#include <fountain/ft_type.h>
#include <fountain/ft_render.h>
#include <fountain/ft_algorithm.h>
#include <cstdio>
using ftType::FontMan;
FT_Library library;
bool ftType::init()
{
int error = FT_Init_FreeType(&library);
if (error) {
return false;
}
return true;
}
void copyBitmapToBufferData(FT_... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Sven Kaulmann
#ifndef DUNE_STUFF_DISCRETEFUNCTION_PROJECTION_... |
<commit_before>/** @file
@brief Wrapper for a vrpn_Tracker_VideoBasedHMDTracker
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wit... |
<commit_before>/** @file test_kmeans_generate.cpp
* @brief generate Kmeans problem and save it to separate files
*
* @author Lukas Pospisil
*/
#include "pascinference.h"
#include "data/kmeansdata.h"
#include "model/kmeansh1fem.h"
#ifndef USE_PETSCVECTOR
#error 'This example is for PETSCVECTOR'
#endif
typedef... |
<commit_before>/*************************************************************************
File Name: SMPGCInterface.cpp
Author: Xin Cheng
Descriptions:
Created Time: Tue 06 Mar 2018 10:46:58 AM EST
*********************************************************************/
#include "PD2SMPGCOrdering.h"
#in... |
<commit_before>
#include "drake/examples/kuka_iiwa_arm/iiwa_simulation.h"
#include "drake/examples/kuka_iiwa_arm/iiwa_status.h"
#include "drake/Path.h"
#include "drake/systems/LCMSystem.h"
#include "drake/systems/plants/BotVisualizer.h"
#include "drake/systems/plants/RigidBodyTree.h"
#include "lcmtypes/drake/lcmt_iiwa... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <GPIOClass.cpp>
using namespace std;
int main (void)
{
string inputstate;
GPIOClass* gpio4 = new GPIOClass("4"); //create new GPIO object to be attached to GPIO4
GPIOClass* gpio17 ... |
<commit_before>#pragma once
#include <cmath>
#include <limits>
#include "float.hh"
// ----------------------------------------------------------------------
namespace _acmacs_base_internal
{
template <char Tag> class SizeScale
{
public:
inline SizeScale() : mValue(0) {}
inline explicit ... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_PLAYGROUND_OPERATORS_RECONSTRUCTIONS_HH
#define DUNE_GDT_PLAYGROUND_OPE... |
<commit_before>/**
* \file MouseController.cpp
*
* \author Volker Ahlers\n
* volker.ahlers@hs-hannover.de
*/
/*
* Copyright 2014 Volker Ahlers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: utility.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2005-10-05 14:58:48 $
*
* The Contents of this file are made a... |
<commit_before>
<commit_msg>Delete 1.cpp<commit_after><|endoftext|> |
<commit_before>#include "../includes/win32/Controller.h"
static std::wstring convertMultiByteToWideChar(const std::string &multiByte) {
const int wlen = MultiByteToWideChar(CP_UTF8, 0, multiByte.data(), -1, 0, 0);
if (wlen == 0) {
return std::wstring();
}
std::wstring wideString;
wideString.resize(wlen... |
<commit_before>#pragma once
#include "math.hpp"
#include <math.h>
namespace matrix
{
template<typename Type>
Type wrap_pi(Type x)
{
if (!isfinite(float(x))) {
return x;
}
while (x >= (Type)M_PI) {
x -= (Type)(2.0 * M_PI);
}
while (x < (Type)(-M_PI)) {
x += (Type)(2.0 *... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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 applic... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICEN... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<commit_before>//
// Copyright (c) 2008-2014 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to... |
<commit_before>// MediaInfo_Internal - All info about media files
// Copyright (C) 2002-2011 MediaArea.net SARL, Info@MediaArea.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
// the Free Software Foundati... |
<commit_before>/****************************************************************************************/
/* */
/* Pegasus */
/* ... |
<commit_before>/*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI... |
<commit_before>#include <cfloat>
#include "Steering.h"
#include "Math.h"
#include "Random.h"
namespace Common {
Steering::Steering(const Vehicle& e)
: mUnit(e),
mWanderRadius(2.0f),
mWanderDistance(3.0f),
mWanderJitter(1.0f)
{
}
Vector3 Steering::seek(const Vector3& tgtpos)
{
Vector3 desiredVelocity = (tgtpos... |
<commit_before>#ifndef ARABICA_XSLT_TEMPLATE_HANDLER_HPP
#define ARABICA_XSLT_TEMPLATE_HANDLER_HPP
#include "../xslt_template.hpp"
#include "xslt_item_container_handler.hpp"
namespace Arabica
{
namespace XSLT
{
class TemplateHandler : public ItemContainerHandler<Template>
{
public:
TemplateHandler(Co... |
<commit_before>/*******************************************************************************
* include/util/common.hpp
*
* Copyright (C) 2018 Jonas Ellert <jonas.ellert@tu-dortmund.de>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
**********************************************... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <iostream>
namespace temporaries {
struct A {
int f;
};
std::unique_ptr<A> some_f();
void FN_call_some... |
<commit_before>#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
#include <climits>
#include <complex>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <utility>
#include <queue>
#include <stack>
#include <list>
#include <... |
<commit_before>/* COPYRIGHT (c) 2014 Umut Acar, Arthur Chargueraud, and Michael
* Rainey
* All rights reserved.
*
* \file bench.cpp
* \brief Benchmarking driver
*
*/
#include "benchmark.hpp"
#include "hash.hpp"
#include "dup.hpp"
#include "string.hpp"
#include "sort.hpp"
#include "graph.hpp"
#include "fib.hpp"
... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
<commit_before>/*************************************************************************
*
* $RCSfile: matril3d.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:30:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/* openssl_threading.cc
Wolfgang Sourdeau, 15 July 2015
Copyright (c) 2015 Datacratic. All rights reserved.
This module registers OpenSSL-specific callbacks required to ensure proper
functioning of the library when used in multi-threaded programs. See
manpage "CRYPTO_set_dynlock_create_c... |
<commit_before>/*
* LoginServConn.cpp
*
* Created on: 2013-7-8
* Author: ziteng@mogujie.com
*/
#include "LoginServConn.h"
#include "MsgConn.h"
#include "ImUser.h"
#include "IM.Other.pb.h"
#include "IM.Server.pb.h"
#include "ImPduBase.h"
#include "public_define.h"
using namespace IM::BaseDefine;
static Con... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include "PlaneGeometry.h"
#include <vtkTransform.h>
//##ModelId=3E395F22035A
mitk::PlaneGeometry::PlaneGeometry() : Geometry2D(10.0, 10.0), m_ScaleFactorMMPerUnitX(1.0), m_ScaleFactorMMPerUnitY(1.0)
{
}
//##ModelId=3E395F220382
mitk::PlaneGeometry::~PlaneGeometry()
{
}
//##ModelId=3E395E3E0077
const... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2020 Alberto Gonzalez <boqwxp@airmail.cc>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission no... |
<commit_before>/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission no... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/utils/stopreg/p9_stop_util.C $ ... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: removeModel.C,v 1.2 2003/08/26 18:35:37 amoll Exp $
#include <BALL/VIEW/MODELS/removeModel.h>
#include <BALL/KERNEL/forEach.h>
#include <BALL/KERNEL/bond.h>
using namespace std;
namespace BALL
{
namespace VIEW
{
RemoveModel::RemoveMo... |
<commit_before>#pragma once
#include "lw/event/Promise.hpp"
#include "lw/event/Promise.void.hpp"
namespace lw {
namespace event {
template< typename T >
inline Future< T > Promise< T >::future( void ){
return Future< T >( m_state );
}
// --------------------------------------------------------------------------... |
<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>/* 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 applic... |
<commit_before> /*************************************************************************
*
* REDWOOD CONFIDENTIAL
* Author: Aaron Edsinger
* __________________
*
* [2012] - [+] Redwood Robotics Incorporated
* All Rights Reserved.
*
* All information contained herein is, and remains
* the property of R... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode:nil; c-basic-offset:4; -*- */
/*
* gtkmm-utils - tile-page-navigator.cc
*
* Copyright (C) 2007 Marko Anastasov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as publishe... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 License, or (a... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
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
ver... |
<commit_before>#include "bind.hpp"
#include "ast.hpp"
#include "context.hpp"
#include "eval.hpp"
#include <map>
#include <iostream>
#include <sstream>
#include "to_string.hpp"
namespace Sass {
using namespace std;
void bind(string callee, Parameters* ps, Arguments* as, Context& ctx, Env* env, Eval* eval)
{
... |
<commit_before>///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2010 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2005-01-14
... |
<commit_before>/*
This file is part of VROOM.
Copyright (c) 2015-2022, Julien Coupey.
All rights reserved (see LICENSE).
*/
#include "problems/cvrp/operators/intra_cross_exchange.h"
namespace vroom {
namespace cvrp {
IntraCrossExchange::IntraCrossExchange(const Input& input,
... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with th... |
<commit_before>/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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>
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <map>
#include <set>
#include "parse.h"
#include "braceexpr.h"
class Flags;
std::vector<std::string> parseOpts(int argc, char ** argv, Flags & flags);
int findParam(int argc, char ** argv);
int validate(int argc, cha... |
<commit_before>/*********************************************************************************************************
* FileManagerController.cpp
* Note: iBurnMgr FileManagerController
* E-mail:<forcemz@outlook.com>
* Data: @2015.03
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
*************************... |
<commit_before>#include <string>
#include <map>
#include "Parser.h"
#include "getpot.h"
#include "parameters.h"
#include "ParserBlockFactory.h"
Parser::Parser(std::string input_filename)
:_input_filename(input_filename),
_input_tree(NULL)
{}
Parser::~Parser()
{
if (_input_tree != NULL)
{
delete (_inp... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pcrcomponentcontext.hxx,v $
* $R... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xdictionary.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: kz $ $Date: 2005-11-01 14:52:31 $
*
* The Contents of this file are m... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 License, or (a... |
<commit_before>#include <string>
#ifdef _WIN32
# include <windows.h>
#else //POSIX
# include <dlfcn.h>
#endif
#include "plugin_loader.h"
//We don't *really* need this to be its own separate file, but i refuse to let
//this code near the main product.
bool load_plugin(std::string fname, const plugin_pipe &p)
{
#ifdef... |
<commit_before>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>#include "generator/road_access_generator.hpp"
#include "generator/routing_helpers.hpp"
#include "routing/road_access.hpp"
#include "routing/road_access_serialization.hpp"
#include "indexer/classificator.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_data.hpp"
#include "indexer/features... |
<commit_before>
#include "geometry/cartesian_product.hpp"
#include <algorithm>
#include "quantities/named_quantities.hpp"
#include "quantities/tuples.hpp"
namespace principia {
namespace geometry {
namespace internal_cartesian_product {
using quantities::Apply2;
template<typename LTuple, typename RTuple, int... in... |
<commit_before>// STL
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
// Boost
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/scoped_ptr.hpp>
// Local
#include "pyp-topics.hh"
#include "corpus.hh"
#include "contexts_corpu... |
<commit_before>// STL
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
// Boost
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/scoped_ptr.hpp>
// Local
#include "pyp-topics.hh"
#include "corpus.hh"
#include "contexts_corpu... |
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@webzone.net)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gen... |
<commit_before>/*********************************************************************
*
* Copyright 2012 the original author or authors.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");... |
<commit_before>#include <termbox.h>
#include <cstdint>
#include <nanojson.hpp>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <regex>
class TermBox {
public:
TermBox() = default;
~TermBox() noexcept
{
try {
tb_shutdown();
}
catch (...) {
}
}
void ... |
<commit_before>/*************************************************************************
> File Name: Combat.cpp
> Project Name: Hearthstonepp
> Author: Young-Joong Kim
> Purpose: Implement CombatTask
> Created Time: 2018/07/21
> Copyright (c) 2018, Young-Joong Kim
*****************************************************... |
<commit_before><commit_msg>Removed unused file QuadTree.cpp<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
** Author: Milian Wolff, KDAB (milian.wolff@kdab.com)
**
** This file is part of Qt Creator.
**
** Commercial License U... |
<commit_before>#ifndef ALEPH_MATH_PIECEWISE_LINEAR_FUNCTION_HH__
#define ALEPH_MATH_PIECEWISE_LINEAR_FUNCTION_HH__
#include <aleph/math/KahanSummation.hh>
#include <functional>
#include <iterator>
#include <limits>
#include <map>
#include <set>
#include <stdexcept>
#include <vector>
#include <cassert>
#include <cmat... |
<commit_before>/*
* Test Driver for Botan
*/
#include <vector>
#include <string>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <limits>
#include <botan/botan.h>
#include <botan/mp_types.h>
using namespace Botan_types;
#include "getopt.h"
const std::string VALIDATION_FIL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.