text stringlengths 54 60.6k |
|---|
<commit_before>#include "GameManager.h"
#include "menu/PauseMenu.h"
#include "menu/Player.h"
#include <Indie.h>
namespace Symp {
GameManager::GameManager(const char *title, int width, int height, int bpp, bool vsync, bool fs, bool dBuffer){
//Initialize the engine
IndieLib::init(IND_DEBUG_MODE);
m_pWindow = new W... |
<commit_before>/*******************************************************************************
Program: Wake Forest University - Virginia Tech CTC Software
Id: $Id$
Language: C++
*******************************************************************************/
#include <limits>
#include "ctcSegmentProjection... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>#include "libwintermutecore/message.hpp"
#include <cxxtest/TestSuite.h>
using Wintermute::Procedure::Message;
class MessageTestSuite : public CxxTest::TestSuite
{
public:
void testClone(void)
{
Message::HashType data;
data.insert(std::make_pair("foo", "bar"));
Message message;
messa... |
<commit_before>/**
* $ g++ solution.cpp && ./a.out < input.txt
* Day 6!
* part 1: 3156
*/
#include <iostream>
#include <numeric>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
/**
* Notes on accumulate():
*
* - http://en.cppreference.com/w/cpp/algorithm/accumulate
* - htt... |
<commit_before>/**
* File : E2.cpp
* Author : Kazune Takahashi
* Created : 2018-3-28 12:29:59
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> /... |
<commit_before>#define DEBUG 1
/**
* File : F2.cpp
* Author : Kazune Takahashi
* Created : 2019/9/1 22:51:39
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack>
#... |
<commit_before>#include <cmath>
#include <gmpxx.h>
#include <iostream>
#include <vector>
#include <sstream>
#define SUCCESS 0
#define FAILURE 1
#define LOG_INFO
using namespace std;
mpf_class meanVal(const mpf_class* arr, size_t size, size_t acc) {
mpf_class sum(0, acc), length(size, acc), result(0, acc)... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>
#include "sui_service.h"
#include <algorithm>
#include "pub14_core/messages/sui_create_page_message.h"
#include "pub14_core/messages/sui_event_notification.h"
#include "pub14_core/messages/sui_update_page_message.h"
#include "pub14_core/messages/sui_force_close.h"
#include "swganh/connection/connecti... |
<commit_before>/*************************************************************************
*
* $RCSfile: dispatchrecordersupplier.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: as $ $Date: 2002-09-23 05:52:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the... |
<commit_before>
#include "base/bundle.hpp"
#include <functional>
#include <list>
#include "base/map_util.hpp"
#include "base/status.hpp"
namespace principia {
namespace base {
void Bundle::Add(Task task) {
absl::MutexLock l(&lock_);
CHECK(!joining_);
++number_of_active_workers_;
workers_.emplace_back(&Bund... |
<commit_before>/***************************************************************************
adash@cern.ch - last modified on 05/09/2016
//
// General macro to configure the RSN analysis task.
// It calls all configs desired by the user, by means
// of the boolean switches defined in the first lines.
// ---
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: generictoolbarcontroller.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: obo $ $Date: 2006-09-16 14:20:18 $
*
* The Contents of t... |
<commit_before>#pragma once
#include "../std/function.hpp"
namespace threads
{
typedef function<void()> RunnerFuncT;
// Base Runner interface: performes given tasks.
class IRunner
{
public:
virtual void Run(RunnerFuncT const & f) const = 0;
protected:
virtual ~IRunner() {}
// Waits until all running thread... |
<commit_before>#include "compress_keyword_encoding.h"
#include "bytebuffer.h"
#include <stdexcept>
#include <sstream>
#include <map>
#include <unordered_map>
std::string initializeSymbols()
{
std::string s;
for(int i = 32; i < 127; ++i)
s += i;
return s;
}
static std::string symbols = initializeSymbols();
bo... |
<commit_before>//
// recurse example usage
//
// build as:
//
// qmake .
// make
//
#include "../recurse.hpp"
#include <QtConcurrent/QtConcurrent>
int main(int argc, char *argv[])
{
Recurse app(argc, argv);
// Start middleware, logger
app.use([](auto &ctx, auto next) {
qDebug() << "received a ne... |
<commit_before>/*
* Copyright (c) 2012 The WebM 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. ... |
<commit_before>/*******************************************************************************
* c7a/c7a.hpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com>
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
*
* This file has no license. Only Chuck Norris can compile it.
*... |
<commit_before>#include "LLVM_Headers.h"
#include "LLVM_Output.h"
#include "LLVM_Runtime_Linker.h"
#include "CodeGen_LLVM.h"
#include "CodeGen_C.h"
#include "CodeGen_Internal.h"
#include <iostream>
#include <fstream>
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#else
#include <stdio.h>
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestRandomPContingencyStatisticsMPI.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for deta... |
<commit_before>/*
* File: multi_unbounded_queue.hpp
* Author: Barath Kannan
* Vector of unbounded queues. Enqueue operations are assigned a subqueue,
* which is used for all enqueue operations occuring from that thread. The dequeue
* operation maintains a list of subqueues on which a "hit" has occured - pertaini... |
<commit_before>#include "GeneralPoissonInputSpikingNeurons.hpp"
#include <stdlib.h>
#include <stdio.h>
#include <algorithm> // For random shuffle
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "../Helpers/FstreamWrapper.hpp"
using namespace std;
GeneralPoissonInputSpikingNeuron... |
<commit_before>// https://github.com/philsquared/Catch/wiki/Supplying-your-own-main()
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
// test utils
#include "test_utils.hpp"
#include "vector_tile_projection.hpp"
const unsigned x=0,y=0,z=0;
const unsigned tile_size = 256;
mapnik::box2d<double> bbox;
// vector outpu... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file EC_Hydrax.cpp
* @brief A photorealistic water plane component using Hydrax, http://www.ogre3d.org/tikiwiki/Hydrax
*/
#define OGRE_INTEROP
#include "DebugOperatorNew.h"
#include "EC_Hydrax.h"
#includ... |
<commit_before>#include <iostream>
#include <vector>
#include <tuple>
#include <cereal/archives/portable_binary.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/archives/json.hpp>
#include "locale"
#include "gmpfse.h"
#include "Benchmark.h"
using namespace forwardsec;
using namespace std;
bytes testVector = ... |
<commit_before><commit_msg>Update a_very_big_sum.cpp<commit_after>#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int ceiling;
long long t... |
<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>NAN_METHOD(GitPatch::ConvenientFromDiff) {
if (info.Length() == 0 || !info[0]->IsObject()) {
return Nan::ThrowError("Diff diff is required.");
}
if (info.Length() == 1 || !info[1]->IsFunction()) {
return Nan::ThrowError("Callback is required and must be a Function.");
}
ConvenientFrom... |
<commit_before>//===- Generics.cpp ---- Utilities for transforming generics ----*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.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 ob... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>#include "TextureEditor.hpp"
#include <Engine/Texture/TextureAsset.hpp>
#include <Video/Texture/Texture2D.hpp>
#include "../FileSelector.hpp"
#include <functional>
#include <Engine/Hymn.hpp>
#include <Engine/Util/FileSystem.hpp>
#include <imgui.h>
using namespace GUI;
TextureEditor::TextureEditor() {
... |
<commit_before>/****************************************************************************
** libebml : parse EBML files, see http://embl.sourceforge.net/
**
** <file/class description>
**
** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved.
**
** This file is part of libebml.
**
** This library is free sof... |
<commit_before>/* $Id: Result.C,v 1.16 1999-11-19 23:02:53 wilson Exp $ */
/* File sections:
* Service: constructors, destructors
* Solution: functions directly related to the solution of a (sub)problem
* Utility: advanced member access such as searching and counting
* List: maintenance of lists or arrays of objec... |
<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>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2008-10-02 16:21:08 +0200 (Do, 02 Okt 2008) $
Version: $Revision: 13129 $
Copyright (c) German Cancer Research Center, Division of Medic... |
<commit_before>// Copyright (c) 2013-2019 mogemimi. Distributed under the MIT license.
#include "Pomdog/Experimental/Graphics/SpriteFont.hpp"
#include "Pomdog/Experimental/Graphics/FontGlyph.hpp"
#include "Pomdog/Experimental/Graphics/SpriteBatch.hpp"
#include "Pomdog/Experimental/Graphics/TrueTypeFont.hpp"
#include "... |
<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
/... |
<commit_before>#include "aten.h"
#include "atenscene.h"
#include "FbxImporter.h"
#include "MdlExporter.h"
#include "MtrlExporter.h"
#include "AnmExporter.h"
#include <cmdline.h>
#include <imgui.h>
static const int WIDTH = 1280;
static const int HEIGHT = 720;
static const char* TITLE = "FbxConverter";
struct Option... |
<commit_before>#include <legui/ProgressBar.h>
#include <legui/Config.h>
namespace legui
{
ProgressBar::ProgressBar(Container *parent)
: Widget(parent)
{
m_leftShape = new sf::RectangleShape();
m_rightShape = new sf::RectangleShape();
m_leftShape->setOutlineThickness(Config::get... |
<commit_before>#include "RenderformCreator.hpp"
#include <algorithm>
RenderformCreator::RenderformCreator(ModelStore* modelStore, MaterialStore* matStore)
: mMaterialStore(matStore)
, mModelStore(modelStore)
{
}
void RenderformCreator::Update(const Scene::Updates& sceneUpdates)
{
ParseAddNodeUpdates(scene... |
<commit_before>// Copyright (c) 2014, 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 source in the root of the Project.
#include <boost/python.hpp... |
<commit_before>#include <iostream> /* allows to perform standard input and output operations */
#include <fstream>
#include <stdio.h> /* Standard input/output definitions */
#include <stdint.h> /* St... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_chiplet_fabric_scom... |
<commit_before>#include "SquareFormation.h"
using namespace BWAPI;
SquareFormation::SquareFormation(const SquareFormation& f)
: Formation(f) {}
SquareFormation::SquareFormation(const Vec& center, const Vec& direction)
: Formation(center, direction) {}
SquareFormation::SquareFormation(const Position& p, co... |
<commit_before>#include <Eigen/Core>
USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
int main(int, char **)
{
Matrix<double,2,2> m; // 2x2 fixed-size matrix with uninitialized entries
m(0,0) = 1;
m(0,1) = 2;
m(1,0) = 3;
m(1,1) = 4;
cout << "Here is a 2x2 matrix m:" << endl << m << endl;
cout << "Le... |
<commit_before>//
// PlatformSystem.cpp
// Chilli Source
//
// Created by Ian Copland on 24/11/2010.
// Copyright (c) 2014 Tag Games Ltd. All rights reserved.
//
#include <ChilliSource/Backend/Platform/Android/Core/Base/PlatformSystem.h>
#include <ChilliSource/Backend/Platform/Android/Core/Base/CoreJavaInterface.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: testapp.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: kz $ $Date: 2007-06-19 14:36:10 $
*
* The Contents of this file are made ... |
<commit_before>/// COMPONENT
#include <csapex/model/node.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex/msg/io.h>
#include <csapex/param/parameter_factory.h>
#include <csapex_opencv/cv_mat_message.h>
#include <csapex/model/node_modifier.h>
namespace csapex {
using namespace csapex;
using namespac... |
<commit_before>//===-- GlobalDCE.cpp - DCE unreachable internal functions ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2012 Torus Knot Software Ltd
Permission is hereby granted, free of charge, ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkBasicFiltersTests2.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
Se... |
<commit_before>//
// Arduino library for controlling TI's TLC59711
//
// 21 Feb 2016 by Ulrich Stern
//
// open source (see LICENSE file)
//
#include "Tlc59711.h"
#include <SPI.h>
Tlc59711::Tlc59711(uint16_t numTlc, uint8_t clkPin, uint8_t dataPin):
numTlc(numTlc), bufferSz(14*numTlc), clkPin(clkPin), dataPin(dat... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before>
// This is just a test.
#include <iostream>
#include <string>
int main(){
std::cout << "Helloooooo test!" << std::endl;
return 0;
}
<commit_msg>Remove test files<commit_after><|endoftext|> |
<commit_before>/* Copyright 2016 The TensorFlow 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 appl... |
<commit_before>/*
* Copyright (C) 2008-2010 The QXmpp developers
*
* Authors:
* Manjeet Dahiya
* Jeremy Lainé
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Le... |
<commit_before>/******************************************************************************
SDL_Display.cpp
SDL Display Class Interface Definition
Copyright (c) 2013 Jeffrey Carpenter
******************************************************************************/
#include "SDL_Display.h"
using namespac... |
<commit_before>// Terminal.cpp -- source file
/*
* Author: Ivan Chapkailo (septimomend)
* Date: 30.06.2017
*
* © 2017 Ivan Chapkailo. All rights reserved
* e-mail: chapkailo.ivan@gmail.com
*/
#include "stdafx.h"
#include "Terminal.h"
Terminal::Terminal() // cstr
{
ConfigurationController* configObj = all.ge... |
<commit_before>/*
NUI3 - C++ cross-platform GUI framework for OpenGL based applications
Copyright (C) 2002-2003 Sebastien Metrot
licence: see nui3/LICENCE.TXT
*/
#include "nui.h"
#include "nuiMainMenu.h"
//*****************************************************************************************
//
// nuiMainMe... |
<commit_before>/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* 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 "StateMachine.hh"
#include "Exception.hh"
#include "State.hh"
State * ansi_next_state;
State * ansi_internal_state;
void ansi_state_process( char c ) {
bool incomplete = false;
try {
ansi_next_state->feed( c );
} catch ( IncompleteParse * e ) {
incomplete = true;
}
if ( ansi_next_sta... |
<commit_before>#include "SGComputeResponser.h"
#include "SGMacro.h"
#include "SGHdfsStreamFactory.h"
#include "core/GPStreamFactory.h"
#include <fstream>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, const char* argv[])
{
if (argc < 2)
{
GPPRINT_FL("Usage: ./compute-resp... |
<commit_before>/*************************************************************************
*
* $RCSfile: idlc.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-03-30 16:47:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
... |
<commit_before>
// Copyright Casa Jasmina 2016
// LGPL License
//
// TelegramBot library
// https://github.com/CasaJasmina/TelegramBot-Library
#include "TelegramBot.h"
TelegramBot::TelegramBot(const char* token, Client &client) {
this->client = &client;
this->token=token;
}
void TelegramBot::begin() {
while(!clie... |
<commit_before>// Copyright (c) 2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/pivx/sendconfirmdialog.h"
#include "qt/pivx/forms/ui_sendconfirmdialog.h"
#include "bitcoinunits.h"
#include "... |
<commit_before>//
// UI3DProject.cpp
//
// Created by Patricio Gonzalez Vivo on 10/15/13.
//
//
#include "UI3DProject.h"
void UI3DProject::play(){
if (!bPlaying){
camera.enableMouseInput();
for(map<string, UILightReference>::iterator it = lights.begin(); it != lights.end(); ++it){
it... |
<commit_before>#pragma once
#include <string>
#include <ctime>
#include <glm/glm.hpp>
#include "linking.hpp"
/// Logging class.
/**
* Usage:
* @code{.cpp}
* Log() << "Testing: " << 5 << "\n";
* @endcode
*/
class Log {
public:
UTILITY_API enum Channel {
DEFAULT, ///< Default channel.
... |
<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/existing_user_controller.h"
#include <algorithm>
#include <functional>
#include <map>
#includ... |
<commit_before>/*
* SessionRmdNotebook.cpp
*
* Copyright (C) 2020 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 Genera... |
<commit_before>#include "VortexSheet.hpp"
VortexSheet::VortexSheet()
{
}
VortexSheet::VortexSheet(const XmlHandler &xml)
{
m_rho = xml.getValueAttribute("constants", "density");
m_nu = xml.getValueAttribute("constants", "nu");
m_dt = xml.getValueAttribute("time", "dt");
m_maxGamma= xml.getValueAttribute("constant... |
<commit_before>#pragma once
#include <optional>
// #include <type_traits>
#include "acmacs-base/float.hh"
// ----------------------------------------------------------------------
namespace acmacs::internal
{
template <typename T> class field_optional_with_default
{
public:
inline field_optiona... |
<commit_before>/****************************************************************************
* Copyright (C) 2015 *
* *
* This file is part of RC CAR *
* ... |
<commit_before>
// WinUI.cpp : 定义应用程序的类行为。
//
#include "stdafx.h"
#include "afxwinappex.h"
#include "afxdialogex.h"
#include "LogCC.h"
#include "MainFrm.h"
#include "ChildFrm.h"
#include "LogCCDoc.h"
#include "LogMainView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CLogCCApp
BEGIN_MESSAGE_MAP(CLogCCApp, CWi... |
<commit_before>#include "EntityInterfaceCallback.hpp"
#include "EntityInterface.hpp"
#include "MainPluginInstance.hpp"
#include "../inanity/script/Any.hpp"
BEGIN_INANITY_OIL
EntityInterfaceCallback::EntityInterfaceCallback(ptr<EntityInterface> entityInterface, ptr<Script::Any> callback)
: entityInterface(entityInterf... |
<commit_before>#include <cerrno>
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <stdexcept>
#include <string>
namespace generic
{
//////////////////////////////////////////////////////////////////////////////
struct cformat_error : ::std::runtime_error
{
cformat_error() : ::... |
<commit_before>#pragma once
#include <Utility/MemoryManager/Include/MemorySpecification.hpp>
#include <cstdint>
namespace Utility
{
namespace MemoryManager
{
class MemoryAllocator
{
public:
/**
TODORT docs
*/
MemoryAllocator();
... |
<commit_before>/*=========================================================================
Library : Image Registration Toolkit (IRTK)
Module : $Id$
Copyright : Imperial College, Department of Computing
Visual Information Processing (VIP), 2008 onwards
Date : $Date$
Version : $Revi... |
<commit_before>#include "catch.hpp"
#include <mapnik/transform_path_adapter.hpp>
#include <mapnik/geometry/correct.hpp>
#include <mapnik/vertex_adapters.hpp>
#include <mapnik/transform_path_adapter.hpp>
#include <mapnik/view_transform.hpp>
#include <mapnik/proj_transform.hpp>
#include <mapnik/projection.hpp>
TEST_CA... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SwBitArray.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2006-10-11 08:47:55 $
*
* The Contents of this file are ma... |
<commit_before>/*
Copyright 2011 Joe Hermaszewski. 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 list... |
<commit_before>/*
* Bayes++ the Bayesian Filtering Library
* Copyright (c) 2002 Michael Stevens
* See Bayes++.htm for copyright license details
*
* $Header$
*/
/*
* Good random numbers from Boost
* Provides a common class for all random number requirements to test Bayes++
*/
#include <boost/version.hpp>
#i... |
<commit_before>/*
* Copyright (c) 2015, 2016 Christian Surlykke
*
* This file is part of the Restful Inter Process Communication (Ripc) project.
* It is distributed under the LGPL 2.1 license.
* Please refer to the LICENSE file for a copy of the license.
*/
#include <string.h>
#include <unistd.h>
#include <iosf... |
<commit_before>#include "Workspace.h"
#include <memory>
#include <stdio.h>
#include <future>
#include "utils.h"
#include "git.h"
#include "estd.h"
#include "graph.h"
using namespace aBuild;
static void checkingMissingPackages(Workspace& ws) {
// Checking missing packages
auto missingPackages = ws.getAllMissingPac... |
<commit_before>/* -*- c-style: gnu -*-
Copyright (c) 2013 John Harper <jsh@unfactored.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,
including without li... |
<commit_before>// Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_download_handler.h"
#include "DownloadAdapter.h"
using namespace System;
usi... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 Foundat... |
<commit_before>/*******************************************************
* Copyright (c) 2017, 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><commit_msg>Added a single test for MemoryArena, just to get things started.<commit_after><|endoftext|> |
<commit_before>/* Copyright (c) 2012-2013 Twitter4QML Project.
* 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
* ... |
<commit_before>#pragma once
#include <functional>
#include <memory>
#include <vector>
#include "blackhole/logger.hpp"
namespace blackhole {
class handler_t;
class record_t;
class scoped_t;
} // namespace blackhole
namespace blackhole {
class root_logger_t : public logger_t {
public:
typedef std::function<au... |
<commit_before>/* $Id: OutputFormat.C,v 1.34 2008-07-31 18:07:52 phruksar Exp $ */
#include "OutputFormat.h"
#include "GammaSrc.h"
#include "Input/CoolingTime.h"
#include "Input/Volume.h"
#include "Input/Mixture.h"
#include "Input/Loading.h"
#include "Chains/Node.h"
const char *Out_Types = "ucnstabgpdfew";
const i... |
<commit_before>#pragma once
/**
@file
@brief int type definition and macros
Copyright (C) 2008 Cybozu Labs, Inc., all rights reserved.
*/
#if defined(_MSC_VER) && (MSC_VER <= 1500)
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned ... |
<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>// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// 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... |
<commit_before>#include <UtH\Platform\Graphics.hpp>
#include <UtH\Platform\Configuration.hpp>
#include <UtH\Platform\OpenGL.hpp>
#include <UtH\Platform\OGLCheck.hpp>
#include <iostream>
#ifdef _DEBUG
#pragma comment(lib, "freeglut_staticd.lib")
#pragma comment(lib, "glew32sd.lib")
#else // Release
// FIXME: Static 'Re... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.