text stringlengths 54 60.6k |
|---|
<commit_before>/**
* Copyright (C) 2015 Topology LP
*
* 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 Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//==================================================... |
<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>/* -------------------------------------------------------------------------- *
* OpenSim: testOptimizationExample.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complian... |
<commit_before>#include "master.hpp"
namespace factor
{
bool factor_vm::fatal_erroring_p;
static inline void fa_diddly_atal_error()
{
printf("fatal_error in fatal_error!\n");
breakpoint();
::_exit(86);
}
void fatal_error(const char *msg, cell tagged)
{
if (factor_vm::fatal_erroring_p)
fa_diddly_atal_error();
... |
<commit_before>#include <QCoreApplication>
#include <QDebug>
#include "wakeproto.h"
const unsigned char crc8Table[256] = {
0x00, 0x31, 0x62, 0x53, 0xC4, 0xF5, 0xA6, 0x97,
0xB9, 0x88, 0xDB, 0xEA, 0x7D, 0x4C, 0x1F, 0x2E,
0x43, 0x72, 0x21, 0x10, 0x87, 0xB6, 0xE5, 0xD4,
0xFA, 0xCB, 0x98, 0xA9, 0x3E, 0x0F, 0x5C, 0x6D,
... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<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 "gpu/command_buffer/service/mailbox_synchronizer.h"
#include "base/bind.h"
#include "gpu/command_buffer/service/mailbox_manager.h... |
<commit_before>/*=========================================================================
Copyright (c) Kitware Inc.
All rights reserved.
=========================================================================*/
// .SECTION Thanks
// This test was written by Philippe Pebay and Charles Law, Kitware 2012
// This... |
<commit_before>#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <stdlib.h>
#include <QtGlobal>
#include <QtWidgets>
int main(int argc, char *argv[])
{
// Global menubar is broken for qt5 apps in Ubuntu Unity, see:
// https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/... |
<commit_before>/*
* feature suite - Feature detection suite
*
* Copyright (c) 2013-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
*
* Author(s):
*
* Nils Hamel <n.hamel@foxel.ch>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This ... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>/*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
<commit_before>/*
Copyright (c) 2012 Sweetdumplings <linmx0130@163.com>
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
no... |
<commit_before>#include "stdafx.h"
#include "Exception.h"
#include "FastSpinlock.h"
#include "DummyClients.h"
#include "PlayerSession.h"
#include "GameSession.h"
#include "IocpManager.h"
#include "GameLiftManager.h"
#include "PacketType.h"
#include "DummyClients.h"
#include "Log.h"
#include <Rpc.h>
#include <aws/core/... |
<commit_before>#include <allegro.h>
#ifdef ALLEGRO_WINDOWS
#include <winalleg.h>
#endif
#ifndef ALLEGRO_WINDOWS
#include <signal.h>
#include <string.h>
#endif
/* don't be a boring tuna */
#warning you are ugly
#include "globals.h"
#include "init.h"
#include <pthread.h>
#include "network/network.h"
#include <ostream... |
<commit_before>#include <functional>
#include <initializer_list>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <iostream>
#include <memory>
namespace parser{
using namespace std;
struct Sign{
std::string name;
bool isTerm;
Sign(std::string ... |
<commit_before>#include "parser.hpp"
#include <iostream>
#include <sstream>
#include <tuple>
#include <map>
#include "error.hpp"
std::tuple<int64_t, bool> get_int(std::stringstream &ss, const std::string &sn, const int &ln) {
int64_t integer_token;
ss >> integer_token;
if (ss.fail()) {
std::cerr << Error() <<... |
<commit_before>#ifndef ATL_PARSER_HPP
#define ATL_PARSER_HPP
/**
* @file /home/ryan/programming/atl/parser.hpp
* @author Ryan Domigan <ryan_domigan@sutdents@uml.edu>
* Created on Jun 29, 2013
*/
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include <functional>
#... |
<commit_before>#include <iostream>
#include <boost/timer.hpp>
#include <stdio.h>
int main( int argc, char **argv )
{
boost::timer t;
std::cout << "max timespan: "
<< t.elapsed_max() / 3600 << "h" << std::endl;
std::cout << "min timespan: "
<< t.elapsed_min() << "s" << std::endl;... |
<commit_before>/*************************************************************************
* Copyright (C) 2011-2012 by Paul-Louis Ageneau *
* paul-louis (at) ageneau (dot) org *
* *
* ... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// varchar_type.cpp
//
// Identification: src/codegen/type/varchar_type.cpp
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===--------------------------... |
<commit_before>#include <stack.cpp>
#include <catch.hpp>
#include <iostream>
using namespace std;
SCENARIO("count", "[count]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
}
SCENARIO("push", "[push]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
REQUIRE(s.pop()==1);
}
/*SCENARIO("top", "[top]")... |
<commit_before>#ifndef EXCHANGE_ENDPOINT_BY_SWAPPING
#define EXCHANGE_ENDPOINT_BY_SWAPPING
#include<algorithm>
#include<functional>
#include<iterator> //cbegin, cend
#include<type_traits> //result_of_t
#include<utility>
#include<vector>
namespace nAlgorithm
{
//vector<vector<return type of BinaryOp>>
template<class ... |
<commit_before>#include <iostream>
using namespace std;
int main()
{
cout << "hello world/n";
return 0;
}
<commit_msg>empty swap created<commit_after>#include <iostream>
using namespace std;
void swap(int &a, int &b){
}
int main()
{
cout << "hello world/n";
return 0;
}
<|endoftext|> |
<commit_before>#include <cstdio>
#include <cassert>
#include <iostream> // std::cout
#include <algorithm> // std::swap_ranges
#include <boost/thread/thread.hpp>
#include <boost/lockfree/queue.hpp>
#include <boost/atomic.hpp>
#include "Chromosome.hpp"
#include "Manager.hpp"
/*
bool testChromosomeCreation() {
... |
<commit_before>/*************************************************************************
*
* $RCSfile: prov.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: abi $ $Date: 2002-10-29 13:41:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
//#define VEXCL_SHOW_KERNELS
#include <vexcl/vexcl.hpp>
#include <vexcl/generator.hpp>
#include <boost/numeric/odeint.hpp>
#include <boost/numeric/odeint/algebra/vector_space_algebra.hpp>
#include <boost/numeric/odeint/external... |
<commit_before>/**
* Copyright (C) 2006 Brad Hards <bradh@frogmouth.net>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this... |
<commit_before>#include "engine/base64.hpp"
#include "engine/hint.hpp"
#include "mocks/mock_datafacade.hpp"
#include <boost/test/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include <iostream>
#include <algorithm>
// RFC 4648 "The Base16, Base32, and Base64 Data Encodings"
BOOST_AUTO_TEST_SUITE(base6... |
<commit_before>// Copyright (c) 2006, Google 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 code must retain the above copyright
// notice, this ... |
<commit_before>/**
* Copyright (C) 2006 Brad Hards <bradh@frogmouth.net>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this... |
<commit_before>/**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT 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
*
... |
<commit_before>/**
* @file CommonAPIClient.hpp
* @author Denis Kotov
* @date 3 Apr 2017
* @brief Contains CommonAPIClient wrapper class for creating client
* @copyright MIT License. Open source: https://github.com/redradist/Inter-Component-Communication.git
*/
#ifndef ICC_COMMONAPI_CLIENT_COMPONENT_HPP
#define I... |
<commit_before>#ifndef DICE_GETNUMBEROPERATION_H
#define DICE_GETNUMBEROPERATION_H
#include "IOperation.hpp"
class GetNumberOperation : public IOperation
{
const int _number; // stores number given by a constructor
// It's called directly by evaluate, so check its doc.
std::unique_ptr<RollResult> execut... |
<commit_before>#include "ledpoi.h"
#include "ledpoi_utils.h"
#include "memory/memoryTask.h"
#include "dispatch/dispatchTask.h"
#include "display/displayTask.h"
#include "player/playerTask.h"
#include "program/programTask.h"
#include "wifi/wifiTask.h"
#include "uart/uartTask.h"
#include "ui/button.h"
#include "selftest... |
<commit_before>/*
* File description: axon_client.cpp
* Author information: Mike Raninger mikeranzinger@gmail.com
* Copyright information: Copyright Mike Ranzinger
*/
#include "communication/messaging/axon_client.h"
#include "communication/timeout_exception.h"
#include <functional>
using namespace std;
namespac... |
<commit_before>#include <cstdlib>
#include "mseq.hpp"
#include "state.hpp"
#include "automata.hpp"
typedef Automata<mseq::empty>
::push_state<State<0>>::type
::push_state<State<1>>::type
::push_state<State<2, true>>::type
::start_state<2>::type
automata;
template <typename T>
void print_type() {
... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <pwd.h>
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
using namespace std;
int main() {
string userinput = "";
string login;
if(!getlogin())
perror("getlogin");
else
login = getlogin();
char hostname[64];
if(gethostname(... |
<commit_before>#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <omp.h>
#include <sstream>
#include <binUtils.h>
#include <ompUtils.h>
#include <parUtils.h>
#include <octUtils.h>
#include <TreeNode.h>
#include <gensort.h>
#include <sortRecord.h>
#define MAX_DEPTH ... |
<commit_before>/*
* StepParameters.hpp
*
* Created on: Feb 18, 2016
* Author: Péter Fankhauser
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#pragma once
#include "free_gait_core/TypeDefs.hpp"
#include "free_gait_core/step/StepCompleter.hpp"
namespace free_gait {
class StepParameters
{
public:
... |
<commit_before>#include "UDLR.h"
UDLR::UDLR(std::shared_ptr<Ps3Controller>& _controller) : controller(_controller) {
constexpr int width = 40;
constexpr int height = 60;
constexpr int padding = 15;
UButton.addVertex(ofVec3f(0, padding));
UButton.addVertex(ofVec3f(width/2, padding + height - width)... |
<commit_before>#include "User.hpp"
#include "Network.hpp"
#include "PawnDispatcher.hpp"
#include "PawnCallback.hpp"
#include "CLog.hpp"
#include "utils.hpp"
User::User(UserId_t pawn_id, json &data) :
m_PawnId(pawn_id)
{
if (!utils::TryGetJsonValue(data, m_Id, "id"))
{
CLog::Get()->Log(LogLevel::ERROR,
"invali... |
<commit_before>// Copyright 2014 RethinkDB, all rights reserved.
#ifndef CONCURRENCY_NEW_SEMAPHORE_HPP_
#define CONCURRENCY_NEW_SEMAPHORE_HPP_
#include "concurrency/cond_var.hpp"
#include "containers/intrusive_list.hpp"
// KSI: This is a horrible name, fix it.
// This semaphore obeys first-in-line/first-acquisition ... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vclxaccessiblestatusbar.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:27:53 $
*
* The Contents of this... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2015. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#if qHasFeature_libcurl
#include <curl/curl.h>
#endif
#include "../../../Characters/Format.h"
#include "../../../Characters/String_Constant.h"
#include "../../../Debug/... |
<commit_before>/*********************************
** Tsunagari Tile Engine **
** area.cpp **
** Copyright 2011-2012 OmegaSDG **
*********************************/
#include <algorithm>
#include <math.h>
#include <vector>
#include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp>
#include <... |
<commit_before>// builds all boost.asio source as a separate compilation unit
#include <boost/version.hpp>
#ifndef BOOST_ASIO_SOURCE
#define BOOST_ASIO_SOURCE
#endif
#ifdef _MSC_VER
// on windows; including timer_queue.hpp results in an
// actual link-time dependency on boost.date_time, even
// though it's never ref... |
<commit_before>AliAnalysisTaskPythiaNuclei* AddTaskPythiaNuclei(){
AliAnalysisTaskPythiaNuclei *task = new AliAnalysisTaskPythiaNuclei("");
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
cout<<"AliAnalysisTaskPythiaNuclei","No analysis manager to connect to."<<endl;
... |
<commit_before>/* base.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 29 Nov 2013
FreeBSD-style copyright and disclaimer apply
Endpoint base implementation.
*/
#include "base.h"
#include "utils.h"
#include <cassert>
#include <sys/epoll.h>
namespace slick {
/************... |
<commit_before>#include <string.h>
#include "s_object.h"
#include "s_runtime.h"
#include "s_gc.h"
#include "u_new.h"
#include "u_assert.h"
#include "u_log.h"
namespace s {
// TODO(daleweiler): make this part of the virtual machine state
Object *Object::m_lastAllocated;
size_t Object::m_numAllocated;
size_t Object::... |
<commit_before>#ifndef STAN_MATH_REV_CORE_SET_ZERO_ALL_ADJOINTS_NESTED_HPP
#define STAN_MATH_REV_CORE_SET_ZERO_ALL_ADJOINTS_NESTED_HPP
#include <stan/math/rev/core/chainable.hpp>
#include <stan/math/rev/core/chainable_alloc.hpp>
#include <stan/math/rev/core/chainablestack.hpp>
namespace stan {
namespace math {
... |
<commit_before>// Petter Strandmark 2013.
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <spii/string_utils.h>
using namespace spii;
using namespace std;
TEST_CASE("to_string")
{
CHECK(to_string("Test",12,"test") == "Test12test");
}
TEST_CASE("to_string_pair")
{
pair<int, string> p{123, "Test"};
CHECK(... |
<commit_before>#include <memory>
#include <gtest/gtest.h>
#include <parser.h>
using namespace lexers;
using namespace parser;
TEST(LibrariesParsingTest, BasicConsTest) {
Scope s;
lexers::Lexer lex("(load \"Base.scm\")");
parseExpr(lex)->eval(s);
ASSERT_TRUE(s
.count("cons"));
ASSERT_TRUE(s
.count("car"));
ASSERT_TRUE... |
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_LA_CONTAINER_FACTORY_EIGEN_HH
#define DUNE_DETAILED_DISCRETIZATIONS_LA_CONTAINER_FACTORY_EIGEN_HH
#include <dune/stuff/la/container/pattern.hh>
#include <dune/stuff/la/container/eigen.hh>
#include <dune/detailed/discretizations/space/interface.hh>
namespace Dune {... |
<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 "base/platform_test.h"
#include "base/task.h"
#include "base/waitable_event.h"
#include "base/worker_pool.h"
#include "te... |
<commit_before>/*
This file is part of Groho, a simulator for inter-planetary travel and warfare.
Copyright (c) 2017-2018 by Kaushik Ghose. Some rights reserved, see LICENSE
We have two types of objects in the simulation - Orrery bodies
(planets/moons/asteroid) and spaceships. They behave quite differently and
are des... |
<commit_before>/**
** \file scheduler/scheduler.cc
** \brief Implementation of scheduler::Scheduler.
*/
//#define ENABLE_DEBUG_TRACES
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <libport/compiler.hh>
#include <libport/containers.hh>
#include <libport/contract.hh>
#include <libport/foreach.... |
<commit_before>#include <groupby.hpp>
#include <vector>
#include <iostream>
#include <string>
using iter::groupby;
int length(std::string s)
{
return s.length();
}
int main()
{
std::vector<std::string> vec = {
"hi", "ab", "ho",
"abc", "def",
"abcde", "efghi"
};
for (auto gb... |
<commit_before>#define BOOST_TEST_MODULE VectorView
#include <boost/test/unit_test.hpp>
#include "context_setup.hpp"
BOOST_AUTO_TEST_CASE(vector_view)
{
const size_t N = 1024;
std::vector<cl::CommandQueue> queue(1, ctx.queue(0));
std::vector<double> x = random_vector<double>(2 * N);
vex::vector<doubl... |
<commit_before>#include <eeros/core/PeriodicThread.hpp>
#include <sched.h>
#include <time.h>
#include <sys/mman.h>
#define RT_PRIORITY (49) /* we use 49 as the PRREMPT_RT use 50 as the priority of kernel tasklets and interrupt handler by default */
#define MAX_SAFE_STACK (8*1024) /* The maximum stack size which is gu... |
<commit_before>#include "../include/tile.hpp"
////////////////////////////////////////////////////////////////////////////////
tile::tile():
neighbors_(4, nullptr),
adjacents_(4, nullptr),
tile_color_(NEUTRAL_TILE_COLOR),
tile_type_(tileType::NEUTRAL)
{}
//////////////////////////////////////////////... |
<commit_before>#include "ghost/config.h"
#include "ghost/types.h"
#include "ghost/densemat.h"
#include "ghost/util.h"
#include "ghost/math.h"
#include "ghost/tsmm.h"
#include "ghost/tsmm_gen.h"
#include "ghost/tsmm_avx_gen.h"
#include "ghost/tsmm_sse_gen.h"
#include "ghost/tsmm_cu_gen.h"
#include "ghost/timing.h"
#inc... |
<commit_before>/*
* StringUtils.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* 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 P... |
<commit_before>#ifndef VEXCL_SYMBOLIC_HPP
#define VEXCL_SYMBOLIC_HPP
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <exception>
#include <type_traits>
#include <vexcl/util.hpp>
namespace vex {
namespace generator {
template <bool dummy = true>
class recorder {
public:
static v... |
<commit_before>/***************************************************************************
Copyright (C) 2007
by Marco Gulino <marco@kmobiletools.org>
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 Softw... |
<commit_before>#include <ctime>
#include <iostream>
#include <cstdlib>
#include <iterator>
#include <memseries.h>
#include <ctime>
#include <limits>
#include <cmath>
#include <chrono>
int main(int argc, char *argv[]) {
auto ms = new memseries::storage::MemoryStorage{ 2000000 };
auto m = memseries::Meas::empty(... |
<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 "chromecast/browser/android/external_video_surface_container_impl.h"
#include "base/android/jni_android.h"
#include "content/publ... |
<commit_before>#include "util.hpp"
namespace util
{
bool createDir(QString dirname, bool remove_if_exists)
{
// remove the dir if it does exist
QDir dir(dirname);
if (remove_if_exists && dir.exists())
{
if (!dir.removeRecursively())
{
qCritical() << QString("Can't remove di... |
<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 "base/strings/utf_string_conversions.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/devtools/de... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2016-2021 Intel Corporation
*
* 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 limita... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2008-02-25 17:27:17 +0100 (Mo, 25 Feb 2008) $
Version: $Revision: 7837 $
Copyright (c) German Cancer Research Center, Division of Medical and
B... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 Mark Charlebois. 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. ... |
<commit_before>/*
* Copyright 2012 Matthew McCormick
*
* 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 applica... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// File : fbxmain.cpp
// Version : 1.35
// Modified : 27. Dec 2003.
// Author : Milan Babuskov (mbabuskov@yahoo.com)
// Purpose : This file contains main() function for command-line version
// ... |
<commit_before>/*
* Copyright 2021 Google LLC
*
* 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 la... |
<commit_before>//============================================================================
// Name : HelloWorld2.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//=====================================================================... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* 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 Licen... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by FThauer FHammer *
* f.thauer@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
*... |
<commit_before>
#ifndef NETWORK_IDENTIFIERS_HPP
#define NETWORK_IDENTIFIERS_HPP
#define GAME_PROTOCOL_ID 1357924680
#define GAME_PORT 12084
#define HEARTBEAT_MILLISECONDS 1500
#define PACKET_LOST_TIMEOUT_MILLISECONDS 1000
#define SENT_PACKET_LIST_MAX_SIZE 33
#define CONNECTION_TIMEOUT_MILLISECONDS 10000
#define NETWO... |
<commit_before>/*
* Copyright 2015 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>int main() {
return 0;
}
<commit_msg>Add license header to no_op.cc.<commit_after>/*
* Copyright (c) 2012 The WebRTC 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... |
<commit_before>//===----------------------------------------------------------------------===//
// LLVM 'GCCAS' UTILITY
//
// This utility is designed to be used by the GCC frontend for creating
// bytecode files from it's intermediate llvm assembly. The requirements for
// this utility are thus slightly different t... |
<commit_before>//===----------------------------------------------------------------------===//
// LLVM 'GCCAS' UTILITY
//
// This utility is designed to be used by the GCC frontend for creating
// bytecode files from it's intermediate llvm assembly. The requirements for
// this utility are thus slightly different t... |
<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>/****************************************************************************
*
* Copyright (c) 2013-2016 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 me... |
<commit_before>#include "core.hpp"
#include <ncurses.h>
#include <string>
#include "config.hpp"
#include "draw.hpp"
#include "todolist.hpp"
using std::string;
// ===================|
// internal variables |
// ===================|
TodoList *backup_;
// ===================|
// internal functions |
// ==============... |
<commit_before>/**
@file
@brief Hurwitz zeta function and polylogarithm.
For implemenation, see
<a href="http://fredrikj.net/math/hurwitz_zeta.pdf">
Fredrik Johansson.</a>
*/
#include <zeta.h>
#include <bernoulli.h>
#include <gsl/gsl_sf.h>
#include <gsl/gsl_math.h>
#include <complex>
#inclu... |
<commit_before>/*
* Copyright (c) 2012 Christoph Schulz
*
* 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, copy, mo... |
<commit_before>/*
* Copyright (c) 2014-2016, imec
* All rights reserved.
*/
#include <random>
#include <memory>
#include <cstdio>
#include <iostream>
#include <climits>
#include <stdexcept>
#include <cmath>
#include "error.h"
#include "bpmf.h"
#include "io.h"
static const bool measure_perf = false;
std::ostream... |
<commit_before>#pragma once
#include <eosio/chain/block_state.hpp>
#include <eosio/chain/trace.hpp>
#include <eosio/chain/genesis_state.hpp>
#include <chainbase/pinnable_mapped_file.hpp>
#include <boost/signals2/signal.hpp>
#include <eosio/chain/abi_serializer.hpp>
#include <eosio/chain/account_object.hpp>
#include <e... |
<commit_before>#include <stdlib.h>
#include "nan.h"
#include "v8-debug.h"
namespace nodex {
class Debug {
public:
static NAN_METHOD(Call) {
NanScope();
if (args.Length() < 1) {
return NanThrowError("Error");
}
v8::Handle<v8::Function> fn = v8::Handle<v8::Functi... |
<commit_before>//---------------------------------------------------------------------------
//
// Demo Borland + vtk Project,
//
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
... |
<commit_before>/*
* Jamoma OSC Receiver
* Copyright © 2011, Théo de la Hogue
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "TTOscSocket.h"
TTPtr TTOscSocketListener(TTPtr anArgument)
{
TTOscSocketPtr anOscSocket= (TTOscSocke... |
<commit_before>/*
* Copyright (C) 2010-2014 Jeremy Lainé
* Contact: https://github.com/jlaine/qdjango
*
* This file is part of the QDjango Library.
*
* 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 So... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2014-2016 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>// Copyright (c) 2011 Seiya Tokui <beam.web@gmail.com>. All Rights Reserved.
// This source code is distributed under MIT License in LICENSE file.
#ifndef ELOG_ELOG_HPP_
#define ELOG_ELOG_HPP_
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <type_traits>
#include <utility>
#ifdef ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.