text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Report status message when stats export fails. (#83)<commit_after><|endoftext|> |
<commit_before>#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget ... |
<commit_before>#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *... |
<commit_before>#include <QTest>
#include <QObject>
#include "uritests.h"
// This is all you need to run all the tests
int main(int argc, char *argv[])
{
URITests test1;
QTest::qExec(&test1);
}
<commit_msg>Return !0 when qt tests fail.<commit_after>#include <QTest>
#include <QObject>
#include "u... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "rdb_protocol/error.hpp"
#include "backtrace.hpp"
#include "containers/archive/stl_types.hpp"
#include "rdb_protocol/datum.hpp"
#include "rdb_protocol/term_walker.hpp"
#include "rdb_protocol/val.hpp"
namespace ql {
#ifdef RQL_ERROR_BT
#de... |
<commit_before>/*
This file is part of Ingen.
Copyright 2007-2015 David Robillard <http://drobilla.net/>
Ingen 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 ... |
<commit_before>#pragma once
#include <cstring>
namespace iod
{
struct stringview
{
stringview() {}
stringview(const std::string& _str) : str(&_str[0]), len(_str.size()) {}
stringview(const char* _str, int _len) : str(_str), len(_len) {}
stringview(const char* _str) : str(_str), len(strlen(_str)... |
<commit_before>/*
Copyright 2013-present Barefoot Networks, 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 law or... |
<commit_before>/* Copyright (c) 2017, EPL-Vizards
* 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) 2011 - 2019, GS Group, https://github.com/GSGroup
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permission notice appear in all copies.
// THE SOFTWARE IS PRO... |
<commit_before>// SampSharp
// Copyright 2018 Tim Potze
//
// 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 appli... |
<commit_before>#include <sys/time.h>
#include "thread_private.h"
#include "parameters.h"
#include "exception.h"
#define NUM_PAGES (4096 * config.get_nthreads())
bool align_req = false;
int align_size = PAGE_SIZE;
extern struct timeval global_start;
void check_read_content(char *buf, int size, off_t off)
{
// I as... |
<commit_before>#include "AnnSpace.hpp"
namespace Elysia{
AnnSpace::AnnSpace(){
child[0] = NULL;
child[1] = NULL;
parent = NULL;
}
AnnSpace::~AnnSpace(){
if(child[0] != NULL){
delete child[0];
}
if(child[1] != NULL){
delete child[1];
}
}
bool AnnSpace::isLeaf(){
if (child[0] == NULL && c... |
<commit_before>#include "Parser.h"
namespace EpisodesParser {
EpisodeNameIDHash Parser::episodeNameIDHash;
DomainNameIDHash Parser::domainNameIDHash;
#ifdef DEBUG
EpisodeIDNameHash Parser::episodeIDNameHash;
DomainIDNameHash Parser::domainIDNameHash;
#endif
bool Parser::staticsInitialized = false;
... |
<commit_before>#include "tinfra/io/stream.h"
#include "tinfra/io/socket.h"
#include "tinfra/fmt.h"
#include "tinfra/string.h" // debug only
#include <iostream> // debug only
#ifdef _WIN32
#include <winsock.h>
#define TS_WINSOCK
#else
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
... |
<commit_before>/**
* Copyright (c) 2014 Sonora Games
*
*/
#include <Windows.h>
#include "D3D11Renderer.h"
#include "D3D11VertexBuffer.h"
using namespace Monsoon;
using namespace Monsoon::Renderer;
D3D11Renderer::D3D11Renderer(RendererSettings& settings, Scene::SpatialSystem* spatialSystem)
: Renderer(settings, spat... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabdlg.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 12:30:59 $
*
* The Contents of this file are made av... |
<commit_before>/**
* L I N E A R A L G E B R A O P C O D E S F O R C S O U N D
* Michael Gogins
*
* These opcodes implement many linear algebra operations
* from BLAS and LAPACK, up to and including eigenvalue decompositions.
* They are designed to facilitate signal processing,
* and of course other mat... |
<commit_before>// Copyright (c) 2016. Imed Eddine Nezzar <imad.eddine.nezzar[at]gmail.com>
#include <iostream>
#include <algorithm> // swap()
#include <vector> // vector<double>
#define MAX_SIZE 10
using namespace std;
vector<double> sum(const vector<double>& pli, const vector<double>& plii) {
/*
Retu... |
<commit_before>/*
pvsops.c: pvs and other spectral-based opcodes
Copyright (C) 2017 Victor Lazzarini
This file is part of Csound.
The Csound Library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundat... |
<commit_before>#include <QtNetwork/QTcpSocket>
#include <QFileInfo>
#include <QFile>
#include <QStringList>
#include <QDir>
#include <QThread>
#include "httpconnection.h"
HTTPConnection::HTTPConnection(int socketDescriptor, const QString &docRoot,
QObject *parent) : QObject(parent), socket(this... |
<commit_before>#include "urtupdater.h"
#include "ui_urtupdater.h"
UrTUpdater::UrTUpdater(QWidget *parent) : QMainWindow(parent), ui(new Ui::UrTUpdater)
{
ui->setupUi(this);
updaterVersion = "4.0.1";
downloadServer = 0;
gameEngine = 0;
configFileExists = false;
QMenu *menuFile = menuBar()->add... |
<commit_before><commit_msg>silence hlt message when event is finished<commit_after><|endoftext|> |
<commit_before>#include "VideodrommLiveCodingApp.h"
void VideodrommLiveCodingApp::prepare(Settings *settings)
{
settings->setWindowSize(1280, 720);
//settings->setBorderless();
settings->setWindowPos(0, 0);
#ifdef _DEBUG
settings->setConsoleWindowEnabled();
#else
#endif // _DEBUG
}
VideodrommLiveCodingApp::Videod... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPCAAnalysisFilter.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>/*
* observation.cpp
*
* Created on: Apr 29, 2013
* Author: F. Bellagamba
*/
#include "slsimlib.h"
#ifdef ENABLE_FITS
#include <CCfits/CCfits>
//#include <CCfits>
#endif
#ifdef ENABLE_FFTW
#include "fftw3.h"
#endif
#include <fstream>
#include <limits>
/*\brief Creates an observation setu... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageMapToColors.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>#ifndef VIENNAGRID_STORAGE_RANGE_HPP
#define VIENNAGRID_STORAGE_RANGE_HPP
/* =======================================================================
Copyright (c) 2011-2013, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>#ifndef VIENNAGRID_STORAGE_RANGE_HPP
#define VIENNAGRID_STORAGE_RANGE_HPP
namespace viennagrid
{
namespace storage
{
template<typename container_type>
class container_range_wrapper
{
public:
container_range_wrapper... |
<commit_before>#include "trace_manager.h"
#include "trace_thread.h"
#include "simulator.h"
#include "thread_manager.h"
#include "hooks_manager.h"
#include "config.hpp"
#include <sys/types.h>
#include <sys/stat.h>
TraceManager::TraceManager()
: m_threads(0)
, m_num_threads_running(0)
, m_done(0)
, m_stop_w... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkBivariateStatisticsAlgorithm.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm fo... |
<commit_before>#pragma once
#include <cstdint>
#include <atomic>
#include <limits>
#include <utility>
#include <functional>
#include <mutex>
namespace tell {
namespace store {
constexpr const unsigned NUM_LISTS = 64;
extern void init();
extern void destroy();
class allocator {
std::atomic<uint64_t>* cnt_;
... |
<commit_before>#include "ball.h"
#include <GL/gl.h>
Ball::Ball(V2d center, V2d movement):Circle(center, radius){
speed = movement.mod();
direction = movement % 1;
phase = rotation = 0;
}
void Ball::advance(float t){
center+= direction*speed*t;
phase += rotation ? rot_speed : -rot_speed;
}
bool Bal... |
<commit_before>/*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2003, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2003 Peter Kelly (pmk@post.com)
* Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
*
* This library is free software; you can redistribute it and/or
... |
<commit_before>//
// main.cpp
// Unit Tests
//
// Created by Evan McCartney-Melstad on 12/31/14.
// Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved.
//
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "../cPWP/generateSimulatedData.h"
#includ... |
<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>/*
* Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>// -*- C++ -*-
/**
* @file gnuwrapper.cpp
* @brief Replaces malloc family on GNU/Linux with custom versions.
* @author Emery Berger <http://www.emeryberger.com>
* @note Copyright (C) 2010-2020 by Emery Berger.
Heap Layers is distributed under the terms of the Apache 2.0 license.
You may o... |
<commit_before>#include "../strainMapping/PrincipalStretchesMapping.h"
#include "StrainMapping_test.h"
#include <sofa/helper/Logger.h>
using sofa::helper::Logger;
namespace sofa {
/// layer over PrincipalStretchesJacobianBlock that is able to order given child forces in the same order while computing J
tem... |
<commit_before>/*
* Copyright 2010, 2011 Esrille 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 applic... |
<commit_before>#include <isl/set.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/schedule.h>
#include <isl/schedule_node.h>
#include <tiramisu/debug.h>
#include <tiramisu/core.h>
#include <tiramisu/utils.h>
#include <string.h>
#include "configure.h"
#define SCHEDULE_... |
<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-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted prov... |
<commit_before>/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>//
// RobustTextDetection.cpp
// RobustTextDetection
//
// Created by Saburo Okita on 08/06/14.
// Copyright (c) 2014 Saburo Okita. All rights reserved.
//
#include "RobustTextDetection.h"
#include "ConnectedComponent.h"
#include <numeric>
using namespace std;
using namespace cv;
RobustTextDetect... |
<commit_before>#include "ResourceHandler.h"
#ifdef _DEBUG
void Resources::ResourceHandler::ResetQueryCounter()
{
queriesPerFrame = 0;
}
#endif // _DEBUG
Resources::ResourceHandler::ResourceHandler()
{
this->m_modelHandler = new ModelHandler(50);
}
Resources::ResourceHandler::ResourceHandler(ID3D11Device * ... |
<commit_before>//
// Created by Robert Segal on 2014-04-01.
// Copyright (c) 2016 Get Set Games Inc. All rights reserved.
//
#include "UpsightPrivatePCH.h"
#include "Android/AndroidJNI.h"
#include "AndroidApplication.h"
#if PLATFORM_IOS
#endif
<commit_msg>Validation data function used for several tracking function... |
<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 distr... |
<commit_before>//
// PushPillar.cpp
// Created by Matt Kaufmann on 03/31/14.
//
#include "ExampleGame/Components/GameScripts/Units/Assassin.h"
#include "ExampleGame/Components/GameScripts/Units/Obstacles/PushPillar.h"
#include "ExampleGame/Components/Grid/GridManager.h"
#include "ExampleGame/Components/Grid/GridNavi... |
<commit_before>namespace mant {
template <typename T>
class CuckooSearch : public PopulationBasedOptimisationAlgorithm<T>{
public:
inline explicit CuckooSearch(
const std::shared_ptr<OptimisationProblem<T>> optimisationProblem,
const unsigned int populationSize) noexcept;
in... |
<commit_before>#include "regex.h"
#include "unicode.h"
namespace regex {
Regex compile(const unicode& pattern) {
return Regex(pattern.encode());
}
REMatch Regex::match(const unicode &str, uint32_t start_pos) const {
REMatch result;
std::locale old;
std::locale::global(std::locale("en_US.UTF-8"));
... |
<commit_before>// ACPICA OSL. This provides the glue between ACPICA and the xv6
// kernel.
extern "C" {
#include "acpi.h"
}
#include "types.h"
#include "amd64.h"
#include "kernel.hh"
#include "cpu.hh"
#include "semaphore.h"
#include "spinlock.h"
#include "pci.hh"
#include <new>
// Environment
ACPI_STATUS
AcpiOsIni... |
<commit_before>/*
* Copyright (C) 2022-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include "mutation_fragment_v2.hh"
template <typename EndConsumer>
requires requires(EndConsumer& c, mutation_fragment_v2 mf) {
{ c(std::move(mf)) };
}
class upgrading_consumer {
co... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2018 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
<commit_before>#include <iostream>
using namespace std;
#define sqr(a) (a * a)
// O(log n)
// Returns x ^ n
long pow(long x, long n) {
if (!n) {
return 1;
}
if (n % 2) {
return x * pow(sqr(x), (n - 1) / 2);
} else {
return pow(sqr(x), n / 2);
}
}
// Removed recursion
lon... |
<commit_before>// Copyright (c) 2014, Calixte DENIZET
// 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, t... |
<commit_before>#include "TrackingWorker.hpp"
#include <boost/chrono/duration.hpp>
#include <ros/console.h>
#include "../matlab/profiling.hpp"
TrackingWorker::TrackingWorker(IPositionReceiver *receiver) : errorGraph(200, "Difference")
{
assert(receiver != 0);
this->receiver = receiver;
stop = false;
thread = n... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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... |
<commit_before>/*
* TI Voxel Lib component.
*
* Copyright (c) 2014 Texas Instruments Inc.
*/
#include "DarkPixFilter.h"
namespace Voxel
{
DarkPixFilter::DarkPixFilter(float aThrNear, float phThrNear, float aThrFar, float phThrFar): Filter("DarkPixFilter"), _aThrNear(aThrNear), _phThrNear(phThrNear), _aThrFar(a... |
<commit_before>#include <ticktack/benchmark.hpp>
#include <blackhole/detail/util/unique.hpp>
#include <blackhole/formatter/string.hpp>
#include <blackhole/logger.hpp>
#include <blackhole/macro.hpp>
#include <blackhole/sink/null.hpp>
#include <blackhole/sink/stream.hpp>
#include "../util.hpp"
#define BH_BASE_LOG(__lo... |
<commit_before>#include <ticktack/benchmark.hpp>
#include <blackhole/detail/util/unique.hpp>
#include <blackhole/formatter/string.hpp>
#include <blackhole/logger.hpp>
#include <blackhole/macro.hpp>
#include <blackhole/sink/null.hpp>
namespace { enum level_t { info }; }
namespace {
static const char FORMAT[] = "[%(t... |
<commit_before>#pragma once
// pqrs::osx::process_info v1.1
// (C) Copyright Takayama Fumihiko 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See http://www.boost.org/LICENSE_1_0.txt)
// `pqrs::osx::process_info` can be used safely in a multi-threaded environment.
#include "process_info/obj... |
<commit_before><?hh //strict
/**
* This file is part of hhpack\typesafety package.
*
* (c) Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace hhpack\typesafety;
use hhpack\typechecker\TypeCh... |
<commit_before>//MIT License
//Copyright(c) 2016 Patrick Laughrea
#include "utilsNumbers.h"
#include "utilsSweepers.h"
#include <cmath>
using namespace std;
using namespace webss;
#define FUNCTIONS_BIN [&]() { return isDigitBin(*it); }, [&]() { return binToInt(*it); }
#define FUNCTIONS_DEC [&]() { return isDigit(*it... |
<commit_before>#include "offeracceptdialogbtc.h"
#include "ui_offeracceptdialogbtc.h"
#include "init.h"
#include "util.h"
#include "offerpaydialog.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "platformstyle.h"
#include "syscoingui.h"
#include <QMessageBox>
#include "rpcserver.h"
#include "pubkey.h"
#inclu... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved
#ifndef RDB_PROTOCOL_REAL_TABLE_HPP_
#define RDB_PROTOCOL_REAL_TABLE_HPP_
#include <map>
#include <set>
#include <string>
#include <vector>
#include "rdb_protocol/context.hpp"
#include "rdb_protocol/protocol.hpp"
const char *const sindex_blob_prefi... |
<commit_before>/**********************************************************************
* File: mainblk.cpp (Formerly main.c)
* Description: Function to call from main() to setup.
* Author: Ray Smith
* Created: Tue Oct 22 11:09:40 BST 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed ... |
<commit_before>#ifndef CONFIG_HPP
#define CONFIG_HPP
// Window DLL support
#ifdef _WINDOWS
# define MAPNIK_DECL __declspec (dllexport)
# pragma warning( disable: 4251 )
# pragma warning( disable: 4275 )
#else
# define MAPNIK_DECL
#endif
#endif
<commit_msg>added pragma to disable 4996 warning<commit_after>#ifndef C... |
<commit_before>//! @Alan
//!
//! Exercise 11.9:
//! Define a map that associates words with a list of
//! line numbers on which the word might occur.
//!
//! Exercise 11.10:
//! Could we define a map from vector<int>::iterator
//! to int? What about from list<int>::iterator to int?
//! In each case, if not, why not?
//... |
<commit_before>/*!
* Copyright (c) 2017 by Contributors
* \file cuda_module.cc
*/
#include "./cuda_module.h"
#if TVM_CUDA_RUNTIME
#include <tvm/runtime/registry.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <vector>
#include <array>
#include <string>
#include <mutex>
#include "./cuda_common.h"
#include ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/workarounds/mcbi... |
<commit_before>using namespace std;
class Matrix {
private:
int row, col, **mas;
public:
Matrix(int length = 4);
Matrix(int, int);
Matrix(const Matrix&);
~Matrix();
void fill(const char*);
void show() const;
void rows();
void columns();
Matrix operator+(const Matrix&) const;
Matrix operator*(const Matrix&)... |
<commit_before>#ifndef __Z2H_PARSER__
#define __Z2H_PARSER__ = 1
#include <cmath>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <iostream>
#include <stddef.h>
#include <sys/stat.h>
#include <functional>
#include "token.hpp"
#include "symbol.hpp"
#include "binder.hpp"
using namesp... |
<commit_before>#include <string>
const size_t n_literals = 27;
size_t letterI(const char letter, const bool is_capital) {
int first_letter_code = static_cast<int>(is_capital ? 'A' : 'a');
size_t result = static_cast<int>(letter) - first_letter_code + 1;
return result;
}
struct person {
char * str;
unsigned char na... |
<commit_before>/*
* D3D11RenderContext.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "D3D11RenderContext.h"
#include "D3D11RenderSystem.h"
#include <LLGL/Platform/NativeHandle.h>
#include "../../Core/Helper.h"
... |
<commit_before>#include "person.h"
#include <algorithm>
#include <string>
using namespace std;
Person::Person()
{
}
Person::Person(string name, char gender, int birth, int death, string comment, int id)
{
_name = name;
_gender = gender;
_yearOfBirth = birth;
_yearOfDeath = death;
_comment = comme... |
<commit_before>// ======================================================================== //
// Copyright 2009-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>// Copyright (c) 2012 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 "ash/accelerators/accelerator_table.h"
#include "base/basictypes.h"
#include "ui/base/events.h"
namespace ash {
const Accel... |
<commit_before>#ifndef STAN_IO_STAN_CSV_READER_HPP
#define STAN_IO_STAN_CSV_READER_HPP
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <Eigen/Dense>
#include <istream>
#include <iostream>
#include <sstream>
#include <string>
namespace stan {
namespace io {
// FIXME: should cons... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... |
<commit_before>#include "ShardQuorumContext.h"
#include "Framework/Replication/ReplicationConfig.h"
#include "Framework/Replication/Paxos/PaxosMessage.h"
#include "Application/Common/ContextTransport.h"
#include "ShardQuorumProcessor.h"
#include "ShardServer.h"
void ShardQuorumContext::Init(ConfigQuorum* configQuorum,... |
<commit_before>/***************************************************************************
* io/test_cancel.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2009 Johannes Singler <singler@ira.uka.de>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompa... |
<commit_before>#include "planet.h"
//GET FUNCTIONS
double Planet::getx()
{
return x;
}
double Planet::gety()
{
return y;
}
double& Planet::getxv()
{
return xv;
}
double& Planet::getyv()
{
return yv;
}
double Planet::getmass()
{
return mass;
}
double Planet::getDist(Planet forcer)
{
return sqrt((forcer.getx... |
<commit_before>#include <gtest/gtest.h>
#include <iostream>
#include <vector>
#include <boost/numeric/odeint.hpp>
#include <stan/agrad/rev.hpp>
#include <stan/math/ode/solve_ode_diff_integrator.hpp>
#include <stan/math/ode/solve_ode.hpp>
//calculates finite diffs for solve_ode with varying parameters
template <typ... |
<commit_before>#include <gtest/gtest.h>
#include "../stubs/database/DB_ReadWrite.h"
#include "../../application/database/Database.h"
#include "../../application/interface/digital/output/leds/DataTypes.h"
#include "../../application/interface/display/Config.h"
class DatabaseTest : public ::testing::Test
{
protected... |
<commit_before>/*
* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/
*
* MRtrix3 is distributed in the hope that... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>/*
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
HEADER GUARDS INTENTIONALLY OMITTED
DO NOT INCLUDE THIS HEADER DIRECTLY
*/
#define BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
#def... |
<commit_before><commit_msg>removed extraneous file<commit_after><|endoftext|> |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGTank.cpp
Author: Jon Berndt
Date started: 01/21/99
Called by: FGAircraft
------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
This program is free software; you can... |
<commit_before>#include "errors.hpp"
#include <boost/bind.hpp>
#include <boost/program_options.hpp>
#include "arch/arch.hpp"
#include "arch/runtime/starter.hpp"
#include "arch/os_signal.hpp"
#include "clustering/administration/main/command_line.hpp"
#include "clustering/administration/main/serve.hpp"
#include "cluster... |
<commit_before>/*
* SimmelianOverlapAttributizer.cpp
*
* Created on: 22.07.2014
* Author: Gerd Lindner
*/
#include "SimmelianOverlapAttributizer.h"
#include <limits>
namespace NetworKit {
SimmelianOverlapAttributizer::SimmelianOverlapAttributizer(count maxRank) :
maxRank(maxRank) {}
EdgeAttribute Simme... |
<commit_before>#include "oclint/rule/UnusedMethodParameterRule.h"
#include "oclint/RuleSet.h"
#include "oclint/ViolationSet.h"
#include "oclint/Violation.h"
#include "oclint/helper/CursorHelper.h"
#include "oclint/helper/DeclHelper.h"
#include <clang/AST/Decl.h>
#include <clang/AST/DeclCXX.h>
#include <clang/AST/DeclO... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** ... |
<commit_before>/*
Copyright (C) 2008 Patrick Spendrin <ps_ml@gmx.de>
This file is part of the KDE project
This library is free software you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation either
version... |
<commit_before>/**
* @file log_softmax_layer.hpp
* @author Marcus Edel
*
* Definition of the LogSoftmaxLayer class.
*/
#ifndef __MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_LAYER_HPP
#define __MLPACK_METHODS_ANN_LAYER_LOG_SOFTMAX_LAYER_HPP
#include <mlpack/core.hpp>
namespace mlpack {
namespace ann /** Artificial Neura... |
<commit_before>/**
* @file
* @brief Implements the particle generator
* @remark Based on code from John Idarraga
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied
* verbatim in the file "LICENSE.md".
* In applying this l... |
<commit_before>/*
* Copyright 2011 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 l... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2014 Calin Cruceru <crucerucalincristian@gmail.com>
//
// Self
#inc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.