text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2017 ASTRON - Netherlands Institute for Radio Astronomy
// Copyright 2017 NLeSC - Netherlands eScience Center
//
// 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>// Copyright (c) 2012 Pieter Wuille
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addrman.h"
#include "hash.h"
using namespace std;
int CAddrInfo::GetTriedBucket(const std::vector<unsigned char> ... |
<commit_before>//
// likelihood.cpp
// EpiGenMCMC
//
// Created by Lucy Li on 13/04/2016.
//
#include "likelihood.h"
Likelihood::Likelihood() {}
double Likelihood::binomial_lik(double reporting_rate, double process, int size, int start, int end, int num_groups, bool return_log) {
// Assuming no data is obser... |
<commit_before>#include "wvtftps.h"
int main()
{
WvTFTPs tftps("/tftpboot", 30*1000);
while (tftps.isok())
{
if (tftps.select(0))
tftps.callback();
}
wvcon->print("TFTPs is not okay; aborting.\n");
}
<commit_msg>Support for blksize option (RFC 2348).<commit_after>#include "wvtftps.h"
int ma... |
<commit_before>//
// Copyright 2020 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>/*
* 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 of conditions and the
* following disclaimer.
*
... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
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 list of condi... |
<commit_before>/*
* *****************************************************************************
* Copyright 2014-2015 Spectra Logic Corporation. 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. A copy of... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2016
**
** This file is generated by the Magus toolkit
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITE... |
<commit_before>/* Mobile On Desktop - A Smartphone emulator on desktop
* Copyright (c) 2012 Régis FLORET
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source ... |
<commit_before>// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Renderer/Renderer.hpp>
#include <Nazara/Core/CallOnExit.hpp>
#include <Nazara/Co... |
<commit_before>#include "PS2VM.h"
#include <boost/filesystem.hpp>
#include "StdStream.h"
#include "StdStreamUtils.h"
#include "Utils.h"
#include "JUnitTestReportWriter.h"
std::vector<std::string> ReadLines(Framework::CStream& inputStream)
{
std::vector<std::string> lines;
lines.push_back(Utils::GetLine(&inputStream)... |
<commit_before>/******************************************************************************
*
* Project: integrating laszip into liblas - http://liblas.org -
* Purpose:
* Author: Martin Isenburg
* isenburg at cs.unc.edu
*
********************************************************************... |
<commit_before>#ifndef AMGCL_SOLVERS_CG_HPP
#define AMGCL_SOLVERS_CG_HPP
/*
The MIT License
Copyright (c) 2012-2014 Denis Demidov <dennis.demidov@gmail.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 th... |
<commit_before>// Copyright 2009, 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:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list o... |
<commit_before>/*************************************************************************
*
* $RCSfile: fmtline.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: mba $ $Date: 2002-06-10 17:00:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include <plasp/sas/Description.h>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <boost/filesystem.hpp>
#include <plasp/utils/ParserException.h>
#include <plasp/sas/VariableTransition.h>
namespace plasp
{
namespace sas
{
/////////////////////////////////////... |
<commit_before>void scalar_partition_epi32(uint32_t* array, const uint32_t pivot, int& left, int& right) {
while (left <= right) {
while (array[left] < pivot) {
left += 1;
}
while (array[right] > pivot) {
right -= 1;
}
if (left <= right) {
... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>/* XMMS2 - X Music Multiplexer System
* Copyright (C) 2003-2008 XMMS2 Team
*
* PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
*
* 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 S... |
<commit_before>/**
* @file
*
* @brief Write key sets using yaml-cpp
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "write.hpp"
#include "yaml-cpp/yaml.h"
#include <kdbassert.h>
#include <kdbease.h>
#include <kdblogger.h>
#include <kdbplugin.h>
#include <fstream>
using na... |
<commit_before>#include "chainerx/routines/type_util.h"
#include <vector>
#include <gtest/gtest.h>
#include "chainerx/array.h"
#include "chainerx/dtype.h"
#include "chainerx/error.h"
#include "chainerx/routines/creation.h"
#include "chainerx/shape.h"
#include "chainerx/testing/context_session.h"
namespace chainerx ... |
<commit_before>/// \file
/// \ingroup tutorial_v7
///
/// \macro_code
///
/// \date 2015-03-22
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/// \author Axel Naumann <axel@cern.ch>
/**********************************************... |
<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 <string>
#include "app/keyboard_code_conversion.h"
#include "base/basictypes.h"
#include "base/ref_counted.h"
#include "base/... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/cros/network_library.h"
#include <algorithm>
#include "base/string_util.h"
#include "chrome/browser... |
<commit_before>/*
Copyright libCellML Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
<commit_before>// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 limi... |
<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 "base/basictypes.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/platform_thread.h"
#include "base/shared_me... |
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "trafficgraphwidget.h"
#include "clientmodel.h"
#include <QPainter>
#include <QColor>
#include <QTime... |
<commit_before>// compare speed of attribute access, using various implementations
#define NUM_ATTRIBUTES 30
#define NUM_TRIALS (3000000 / NUM_ATTRIBUTES)
#include <map>
#include <ctime>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <boost/p... |
<commit_before>/*
Copyright (c) 2010, The Mineserver 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
notice, th... |
<commit_before>#include "renderer/frame_buffer.h"
#include "core/json_serializer.h"
#include "core/log.h"
#include "core/string.h"
#include "core/vec.h"
#include <bgfx/bgfx.h>
#include <lua.hpp>
#include <lauxlib.h>
namespace Lumix
{
FrameBuffer::FrameBuffer(const Declaration& decl)
{
m_autodestroy_handle = true;
... |
<commit_before>
/**************************************************
* Source Code for the Original Compiler for the
* Programming Language Wake
*
* PrecedenceEnforcer.cpp
*
* Licensed under the MIT license
* See LICENSE.TXT for details
*
* Author: Michael Fairhurst
* Revised By:
*
**************************... |
<commit_before>// kate: indent-mode cstyle; indent-width 4; tab-width 4; space-indent false;
// vim:ai ts=4 et
#include "WorldModel.hpp"
#include <QObject>
#include <QString>
#include <vector>
#include <boost/foreach.hpp>
#include <Constants.hpp>
#include <Utils.hpp>
#include "framework/Module.hpp"
//#include "Ball... |
<commit_before>#include <Geometry2d/Util.hpp>
#include <iostream>
#include <time.hpp>
#include <status.h>
#include "PacketConvert.hpp"
void from_robot_tx_proto(const Packet::Robot& proto_packet, rtp::RobotTxMessage* msg) {
Packet::Control control = proto_packet.control();
msg->uid = proto_packet.uid();
msg... |
<commit_before>#ifdef _MFC_VER
#pragma warning(disable:4996)
#endif
#include "sitkImageFileReader.h"
#include <itkImageIOBase.h>
#include <itkImageFileReader.h>
namespace itk {
namespace simple {
ImageFileReader& ImageFileReader::SetFilename ( std::string fn ) {
this->m_Filename = fn;
return *... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <iostream>
#include "svm_interface.h"
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
struct svm_parameter param; // set by parse_command_line
struct svm_problem prob; // set by r... |
<commit_before>#include "customermanagementform.hpp"
#include "ui_customermanagementform.h"
#include "../lib/db/connection.hpp"
CustomerManagementForm::CustomerManagementForm(QWidget *parent) :
QDialog(parent),
ui(new Ui::CustomerManagementForm)
{
ui->setupUi(this);
}
CustomerManagementForm::~CustomerMan... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before><commit_msg>SWAPLONG -> OSL_SWAPDWORD<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <string>
using namespace std;
typedef struct {
string left;
string right;
int result;
} Record;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
}
}
<commit_msg>p1013 WA<commit_after>#include <iostream>
#include <string>
#include <cstring>
#in... |
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "DispatchQueue.h"
#include "at_exit.h"
#include <assert.h>
using namespace autowiring;
DispatchQueue::DispatchQueue(void) {}
DispatchQueue::DispatchQueue(size_t dispatchCap):
m_dispatchCap(dispatchCap)
{}
... |
<commit_before>#include "CoolProp.h"
#include <vector>
#include "CPExceptions.h"
#include "FluidClass.h"
#include "Ethanol.h"
EthanolClass::EthanolClass()
{
double n[]= {0, 5.8200796E-02, 9.4391227E-01, -8.0941908E-01, 5.5359038E-01, -1.4269032E+00, 1.3448717E-01, 4.2671978E-01, -1.1700261E+00, -9.2405872E... |
<commit_before>#include "SysControl.h"
#include "ControlsApp.h"
#include "ControlsXPad360.h"
#include "Engine.h"
#include "App.h"
#include "Engine.h"
#include "App.h"
#include "Input.h"
#include "ObjectGui.h"
#include "WidgetLabel.h"
//解决跨平台字符集兼容问题
#ifdef _WIN32
#pragma execution_character_set("utf-8")
#endif
using ... |
<commit_before>#include <QTimer>
#include "server-status-service.h"
#include "seafile-applet.h"
#include "account-mgr.h"
#include "api/api-error.h"
#include "api/requests.h"
namespace {
const int kRefreshInterval = 3 * 60 * 1000; // 3 min
const int kRefreshIntervalForUnconnected = 30 * 1000; // 30 sec
}
SINGLETON_... |
<commit_before>#include "server/api/url_parser.hpp"
#include "engine/polyline_compressor.hpp"
#include <boost/bind.hpp>
#include <boost/spirit/include/qi_char_.hpp>
#include <boost/spirit/include/qi_grammar.hpp>
#include <boost/spirit/include/qi_uint.hpp>
#include <boost/spirit/include/qi_real.hpp>
#include <boost/sp... |
<commit_before>/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| tha... |
<commit_before>
#include "z80.h"
using z80::fast_u8;
using z80::fast_u16;
using z80::least_u8;
class my_emulator : public z80::z80_cpu<my_emulator> {
public:
typedef z80::z80_cpu<my_emulator> base;
my_emulator() {}
void on_set_pc(fast_u16 pc) {
std::printf("pc = 0x%04x\n", static_cast<unsigned>(... |
<commit_before>#include "IDatabaseEngine.h"
#include "DBEngineFactory.h"
#include "core/global.h"
#include "dcparser/hashGenerator.h"
#include "dcparser/dcFile.h"
#include "dcparser/dcClass.h"
#include "dcparser/dcField.h"
#include <soci.h>
#include <boost/icl/interval_set.hpp>
using namespace std;
using namespace s... |
<commit_before>#include "MessageGetField.h"
#include "MessageSptr.h" // for MessageSptr
#include <LuaIntf/LuaIntf.h>
#include <google/protobuf/descriptor.h> // for Descriptor
#include <google/protobuf/message.h> // for Message
#include "google/protobuf/descriptor.pb.h" // for map_entry()
using namespace LuaIntf;... |
<commit_before>#include "base/basictypes.h"
#include "base/logging.h"
#include "base/timeutil.h"
// For NV time functions. Ugly!
#include "gfx_es2/gl_state.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#include <unistd.h>
#endif
#include <stdio.h>
static double curtime = 0;
static float curtime_f... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Tim Severeijns
*
* 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... |
<commit_before>//
// Copyright Copyright 2009-2021, AMT – The Association For Manufacturing Technology (“AMT”)
// 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 Licens... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated docume... |
<commit_before>#include <string>
#include <iostream>
#include <thread>
#include <cstdlib>
using namespace std;
int main(int argc, char ** argv)
{
//thread t1(task1, "Hello");
// Makes the main thread wait for the new thread to finish execution, therefore blocks execution.
//t1.join();
cout << "Curren... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated docume... |
<commit_before>#pragma once
#include "keilo_application.hpp"
#include <memory>
#include <list>
#include <atomic>
#include <mutex>
#include <queue>
#include <boost/asio.hpp>
class keilo_server
{
public:
keilo_server(int port);
~keilo_server();
public: // user accessable functions
void run();
void run_local();... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001 The Apache Software Foundation. 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. Redistri... |
<commit_before>/* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2017, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions apply:
*
* This program is free software: you can redistribute it and/or m... |
<commit_before><commit_msg>[DRT] Fix subtle TA mistranslation<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2017, Ford Motor Company
* 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) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/vmstats_impl.h"
#include <sstream>
#include "bin/file.h"
#include "bin/l... |
<commit_before>#include "game.h"
#include <algorithm>
// Todo: Add gfx2d functionality to draw arbitrary
// polygons. Also specify transformation (rotation)
const uint BG_COLOR = 0x404968ff;
const int PLAYER_BULLET_DAMAGE = 5;
const int PLAYER_HITPOINTS = 10;
const float PLAYER_MOVE_SPEED = 300.0f;
const float P... |
<commit_before>#include "gurobi_solver.h"
#include <Eigen/Core>
#include "gurobi_c++.h"
#include "drake/common/drake_assert.h"
#include "drake/solvers/Optimization.h"
namespace drake {
namespace solvers {
namespace {
// TODO(naveenoid): This is currently largely copy-pasta from the deprecated
// Gurobi wrapper in s... |
<commit_before>/*
* SnapFind
* An interactive image search application
* Version 1
*
* Copyright (c) 2009 Carnegie Mellon University
* All Rights Reserved.
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be found in the file named LICENSE.
* ANY ... |
<commit_before>#include <sal/net/__bits/platform.hpp>
#if __sal_os_windows
#include <mutex>
#else
#include <fcntl.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <unistd.h>
#endif
__sal_begin
namespace net {
#if __sal_os_windows
namespace {
struct lib_t
{
lib_t () noexcept
{
setup();
... |
<commit_before>//
// Copyright (c) 2012 Kim Walisch, <kim.walisch@gmail.com>.
// All rights reserved.
//
// This file is part of primesieve.
// Homepage: http://primesieve.googlecode.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
<commit_before>#ifdef PLATFORM_WINDOWS_64
#include"platform.h"
#include<Windows.h>
//globals
s_platform_globals g_platform_globals;
void platform_init()
{
//NOTE: May cause unexpected behavior if/when the engine is compiled into a DLL
// keep an eye on this!
g_platform_globals.hInstance = GetModuleHandle(NULL);
}... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2000 The Apache Software Foundation. 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. Red... |
<commit_before>/* Copyright (c) 2013, Devin Matthews
* 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
* notic... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkPath.h"
#include "SkRegion.h"
#include "SkShader.h"
... |
<commit_before>#include <stdexcept>
#include <string>
#include <iostream>
#include <functional>
#include <chrono>
#include <SDL.h>
#include <SDL_opengl.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <window.h>
#include <input.h>
#include <timer.h>
#include <glcamera.h>
#include <glfunctions.h>
#include <glsh... |
<commit_before>/*
patterndisp.cpp
Copyright (c) 2014 Terumasa Tadano
This file is distributed under the terms of the MIT license.
Please see the file 'LICENCE.txt' in the root directory
or http://opensource.org/licenses/mit-license.php for information.
*/
#include <iostream>
#include "patterndisp.h"
#include "memor... |
<commit_before>//
// Created by Vadim N. on 04/04/2015.
//
//#include <omp.h>
//#include <stdio.h>
//
//int main() {
//#pragma omp parallel
// printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
//}
#include <ostream>
#include "Model"
using namespace ymir;
/**
* \brief ... |
<commit_before>#include "precompiled.h"
#include "engine/actor/Inventory.h"
namespace engine {
namespace actor {
const std::vector<item::ItemBase*> Inventory::getItemList() {
return itemList;
}
std::vector<item::ItemBase*> Inventory::getItemsByName(const String name) {
std::vector<item::ItemBase*> foundItems... |
<commit_before>// @(#)root/base:$Id$
// Author: Fons Rademakers 29/07/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>// @(#)root/base:$Id$
// Author: Fons Rademakers 29/07/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#pragma once
#include <vector>
#include <memory>
#include "pugixml.hpp"
#include "core/angle.hpp"
#include "core/angular_quadrature.hpp"
#include "core/core_mesh.hpp"
#include "core/geom.hpp"
#include "ray.hpp"
namespace mocc { namespace moc {
enum VolumeCorrection {
FLAT,
ANGLE
... |
<commit_before>// Copyright (c) 2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <coins.h>
#include <consensus/tx_check.h>
#include <consensus/tx_verify.h>
#inclu... |
<commit_before>// Copyright 2007, 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 list... |
<commit_before>/*
Copyright (c) 2015, Project OSRM contributors
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 list
of condi... |
<commit_before>/*
* Copyright (C) 2008-2013 The Communi Project
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Th... |
<commit_before><commit_msg>set the correct url for vba unit test<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>/*************************************************************************/
/* box_container.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>// Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extension/widget/widget.h"
#include <list>
#include <memory>
#include <map>
#include <vector>
#include "extension/xwalk/X... |
<commit_before>// Copyright (c) 2013-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpcclient.h"
#include "base58.h"
#include "wallet.h"
#include <boost/al... |
<commit_before>#ifndef SIMPLE_UTIL_VALUE_PTR_HPP_INCLUDED
#define SIMPLE_UTIL_VALUE_PTR_HPP_INCLUDED
#include "cloner.hpp"
#include <type_traits>
#include <memory>
#include <cassert>
namespace sutil
{
/**
* A value_ptr shall fill the need for a smart pointer that clones the pointee.
* Th... |
<commit_before>#include <TApplication.h>
#include <TGClient.h>
#include "AliZMQMTviewerGUI.h"
int main(int argc, char **argv) {
TApplication theApp("App", &argc, argv);
AliZMQMTviewerGUI viewer(gClient->GetRoot(), 200, 200, argc, argv);
if (viewer.GetInitStatus()<0) {
printf("%s",viewer.fUSAGE);
ret... |
<commit_before>/*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include "game.hpp"
#include <iostream>
//////////
// Code //
struct PositionEvent : public clibgame::Event {
std::string name;
float x, y;
float w, h;
PositionEvent(std::string name,
float x, float y,
float w, float h) {
this->name = name... |
<commit_before>// friend class as template parameter
// originally found in package 'zipios'
// typechecking results:
// errors: 0
// warnings: 0
// error: k0069.cc:15:12: internal error: found dependent type `Friend' in non-template
// ERR-MATCH: internal error: found dependent type `.*?' in non-template
tem... |
<commit_before>#ifndef PERMUTE_PERMUTE_HPP
#define PERMUTE_PERMUTE_HPP
#include <cmath>
#include <string>
#include "../base-conversion/base_conversion.hpp"
namespace n {
void permute(int n, int k, void (*f)(const std::string &)) {
int numPermutations = pow(k, n);
std::string configuration;
... |
<commit_before>/*
* Copyright 2009-2018 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
<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)
/**
* \file logging.hh
* \brief logging
**/
#ifndef DUNE_STUFF_COMMON... |
<commit_before>#include <taichi/visual/gui.h>
#include "../tlang.h"
TLANG_NAMESPACE_BEGIN
bool use_gui = false;
auto volume_renderer = [] {
// CoreState::set_trigger_gdb_when_crash(true);
int depth_limit = 40;
int n = 512;
int grid_resolution = 256;
Vector3 albedo(0.95, 0.95, 0.95);
float32 scale = 724.... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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>// For stat, getcwd
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
// For bad_alloc
#include <exception>
#include <boost/format.hpp>
#include <object/directory.hh>
#include <object/file.hh>
#include <object/path.hh>
namespace object
{
using bo... |
<commit_before>/*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/**
** \file obje... |
<commit_before>/***************************************************************************
* Copyright (c) 2011-2012, Qualys, 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:
*
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.