text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
#include <bitset>
#include <iomanip>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <iwlib.h>
#include <limits.h>
#include <linux/ethtool.h>
#include <linux/if_link.h>
#include <linux/sockios.h>
#include <net/if.h>
#include <netinet/in.h>
#include <signal.h>
#include <sys/socket.h>
#... |
<commit_before>#include "game/states/skirmishstate.hpp"
#include <SFML/Graphics/Sprite.hpp>
#include "game/gui/victorydialog.hpp"
#include "game/states/deploystate.hpp"
#include "game/path.hpp"
#include "engine/pathfinding/astar.hpp"
#include "engine/pathfinding/path.hpp"
#include "engine/player.hpp"
#include "gui/... |
<commit_before>
namespace cusim
{
namespace detail
{
template< typename tCount > __device__ inline
tCount warp_prefix( unsigned aWTID, tCount aValue )
{
/* The PTX version results in much tighter code than the C version.
* The C version produces four instructions per step (a ISETP,
* IADD, SHFL and ... |
<commit_before>/**
* @file rotations.hpp
* @author Paul Furgale <paul.furgale@utoronto.ca>
* @date Mon Nov 22 21:45:54 2010
*
* @brief
*
*
*/
#define SM_2_PI 0.6366197723675814 // 2/pi
#define SM_PI 3.141592653589793 // pi
#define SM_PI_2 1.5707963267948966 // pi/2
#define SM_PI_4 0.78539816... |
<commit_before>/*
* AnalyticPassPlanner.cpp
*
* Created on: Dec 9, 2009
* Author: Philip Rogers
*/
#include <AnalyticPassPlanner.hpp>
#include <motion/planning/rrt.hpp>
#include <framework/Path.hpp>
#include <PassState.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
using namespace Geometry2d;
using nam... |
<commit_before>#include <climits>
#include <iostream>
#include <atomic>
#include <thread>
#include <chrono>
#include <set>
#include <wibble/commandline/parser.h>
#include <elevator/elevator.h>
#include <elevator/scheduler.h>
#include <elevator/udptools.h>
#include <elevator/udpqueue.h>
#include <elevator/sessionmanag... |
<commit_before>
#include <gloperate/painter/ContextFormat.h>
#include <cassert>
#include <sstream>
#include <map>
#include <globjects/base/baselogging.h>
using namespace globjects;
namespace gloperate
{
ContextFormat::ContextFormat()
: m_version(glbinding::Version(4, 5))
, m_profile(Profile::None)
, m_debugCont... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>
#include "ApplicationContext.hpp"
#include <boost/algorithm/string.hpp>
#include <cstdio>
#include "Werk/Config/ReloadConfigCommand.hpp"
#include "Werk/OS/Signals.hpp"
#include "Werk/Profiling/WriteProfilesAction.hpp"
#include "QuitCommand.hpp"
namespace werk
{
ApplicationContext::ApplicationContex... |
<commit_before>#include "data/shortlist.h"
#include "microsoft/shortlist/utils/ParameterTree.h"
#include "marian.h"
#if BLAS_FOUND
#include "3rd_party/faiss/IndexLSH.h"
#endif
namespace marian {
namespace data {
// cast current void pointer to T pointer and move forward by num elements
template <typename T>
const T... |
<commit_before>#include "LogServerWorkThread.h"
#include <glog/logging.h>
namespace sf1r
{
LogServerWorkThread::LogServerWorkThread()
: workThread_(&LogServerWorkThread::run, this)
, drumRequestQueue_(LogServerCfg::get()->getRpcRequestQueueSize())
{
}
LogServerWorkThread::~LogServerWorkThread()
{
}
void Lo... |
<commit_before>// Copyright 2017 Global Phasing Ltd.
// Writing cif::Document or its parts to std::ostream.
#ifndef GEMMI_TO_CIF_HPP_
#define GEMMI_TO_CIF_HPP_
#include <ostream>
#include "cifdoc.hpp"
namespace gemmi {
namespace cif {
enum class Style {
Simple,
NoBlankLines,
PreferPairs, // write single-row... |
<commit_before>///
/// @file generate_phi.hpp
/// @brief The PhiCache class calculates the partial sieve function
/// (a.k.a. Legendre-sum) using the recursive formula:
/// phi(x, a) = phi(x, a - 1) - phi(x / primes[a], a - 1).
/// phi(x, a) counts the numbers <= x that are not divisible
/// ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>class AliAnalysisGrid;
const char *dataset = "";
TString anaLibs = "";
//Int_t iESDfilter = 1;
Int_t iESDfilter = 0;
Int_t iAODTagCreation = 1;
Int_t iAODAddMCBranch = 0;
//______________________________________________________________________________
void RunGrid(
const char* r... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2009 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>// Copyright © 2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner ... |
<commit_before>//--------------------------------------------------------------------------------------------------
// Implementation of the papers "Exact Acceleration of Linear Object Detectors", 12th European
// Conference on Computer Vision, 2012 and "Deformable Part Models with Individual Part Scaling",
// 24th Bri... |
<commit_before>//--------------------------------------------------------------------------------------------------
// Implementation of the papers "Exact Acceleration of Linear Object Detectors", 12th European
// Conference on Computer Vision, 2012 and "Deformable Part Models with Individual Part Scaling",
// 24th Bri... |
<commit_before>#include "State.h"
Context::Context(char * cursor) : start(0) {
this->cursor = cursor;
this->currentState = new OpenDTA();
}
void * Context::advance() {
for (start = cursor; cursor && *cursor != '>'; cursor++);
if (cursor && *cursor == '>') {
cursor++;
strncpy(buffer, start,... |
<commit_before>/*
* Copyright (c) 2010 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementati... |
<commit_before>///
/// @file tos_counters.hpp
/// @brief This file contains functions to initialize, update and query
/// the special tree data structure used for summing the
/// number of unsieved elements in the Lagarias-Miller-Odlyzko
/// and Deleglise-Rivat prime summing algorithms.
///
/... |
<commit_before>#ifndef VSMC_RNG_AES_HPP
#define VSMC_RNG_AES_HPP
#include <vsmc/rng/ars.hpp>
#define VSMC_DEFINE_RNG_AES_ROUND_CONSTANT(N, val) \
template <> struct AESRoundConstantValue< N > : \
public cxx11::integral_constant<int, val > {};
/// \brief AESEngine default blocks
/... |
<commit_before>#ifndef VG_FEATURES_HPP_INCLUDED
#define VG_FEATURES_HPP_INCLUDED
/// \file
/// features.hpp: utilities for working with Feature and FeatureType from the VG Protobuf
#include <vg.pb.h>
#include "json2pb.h"
#include <vector>
#include <string>
#include <type_traits>
namespace vg {
using namespace s... |
<commit_before>/*
Copyright (c) 2003, Magnus Jonsson & 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, t... |
<commit_before>#include "openmc/finalize.h"
#include "openmc/bank.h"
#include "openmc/capi.h"
#include "openmc/cmfd_solver.h"
#include "openmc/constants.h"
#include "openmc/cross_sections.h"
#include "openmc/dagmc.h"
#include "openmc/eigenvalue.h"
#include "openmc/geometry.h"
#include "openmc/geometry_aux.h"
#include ... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2005 Artem Pavlenko
*
* Mapnik 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 an... |
<commit_before>#include <algorithm>
#include <QFileDialog>
#include <QMessageBox>
#include "fish_annotator/common/species_dialog.h"
#include "fish_annotator/image_annotator/mainwindow.h"
#include "ui_mainwindow.h"
namespace fish_annotator { namespace image_annotator {
namespace fs = boost::filesystem;
namespace { ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright (c) 2019-2020 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 <map>
#include <vector>
#include <assert.h>
#include <crypto/common.h>
namespace {
constexpr uint32... |
<commit_before>// Ouzel by Elviss Strazdins
#ifndef OUZEL_PLATFORM_COREVIDEO_DISPLAYLINK_HPP
#define OUZEL_PLATFORM_COREVIDEO_DISPLAYLINK_HPP
#include <system_error>
#include <CoreVideo/CVDisplayLink.h>
#include "CoreVideoErrorCategory.hpp"
namespace ouzel::platform::corevideo
{
class DisplayLink final
{
... |
<commit_before>// FFModule.cc
// This file is part of bes, A C++ back-end server implementation framework
// for the OPeNDAP Data Access Protocol.
// Copyright (c) 2004,2005 University Corporation for Atmospheric Research
// Author: Patrick West <pwest@ucar.org>
//
// This library is free software; you can redistribu... |
<commit_before>/***
* Removes the meta boxes from the provided mpeg4 source file, writing the result
* out to a new file given the provided filename.
*
* This sample program only works for media files that stay within 32-bit box/file sizes.
* If the file is larger than the 32-bit maximum, the following additions c... |
<commit_before>#include "./center_force.h"
#include <vector>
#include "./label_state.h"
namespace Forces
{
CenterForce::CenterForce() : Force("Center", 0.1f)
{
}
void CenterForce::beforeAll(std::vector<LabelState> &labels)
{
Eigen::Vector2f anchorPositionSum;
for (auto &labelState : labels)
anchorPositionSum ... |
<commit_before>#include "geometry.hpp"
Segment::Segment()
{
p1=sf::Vector2f(0.f,0.f);
p2=sf::Vector2f(0.f,0.f);
}
Segment::Segment(sf::Vector2f pointA, sf::Vector2f pointB)
{
p1=pointA;
p2=pointB;
}
const sf::Vector2f Segment::intersection_time(const Segment &other) const
{
auto dir1 = p2 - p1;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: imapdlg.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:56:14 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbgoutsw.hxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: rt $ $Date: 2005-11-08 17:11:44 $
*
* The Contents of this file are made... |
<commit_before>/**
* A set of functions and method which assist the main function to set up
* the requested feature of the Intelligent Automation System.
*
* @date Jul 2, 2014
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licens... |
<commit_before>/*
* Copyright (c) 2016 tildearrow
*
* 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, modify, ... |
<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>// 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 "content/common/unix_domain_socket_posix.h"
#include <errno.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/socket.... |
<commit_before>#include "statistic.h"
#include <cassert>
using namespace dariadb::statistic;
using namespace dariadb::statistic::integral;
using namespace dariadb::statistic::average;
class StatisticReadClbk :public dariadb::storage::ReaderClb {
public:
StatisticReadClbk(BaseMethod*m):_method(m)
{
}
void cal... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <pandora/util/Refer... |
<commit_before>/* This file is part of VoltDB.
* Copyright (C) 2008-2014 VoltDB Inc.
*
* This program 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... |
<commit_before>int main() {
}
<commit_msg>argc, argV<commit_after>int main(int argc, char **argv) {
return 0;
}
<|endoftext|> |
<commit_before>#include "shared.h"
#include "job.h"
#include "image.h"
ImagePair Job::get_next_pair() {
std::unique_lock<std::mutex> ul{mutex};
while (index_major != images.size() && images[index_major] == nullptr) {
if (index_next_to_create < images.size()) {
// create image
auto i = index_ne... |
<commit_before>/* 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/. */
#include "contents.hh"
#include "show_message.hh"
namespace vick {
namespace join {
struct join_c... |
<commit_before>// win32find.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
void _check_invariant_conditions(int argc, char *argv[])
{
if (argc == 1 || argc ... |
<commit_before>#ifndef SILICIUM_SINK_HPP
#define SILICIUM_SINK_HPP
#include <silicium/override.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/range/algorithm/copy.hpp>
#include <boost/filesystem/path.hpp>
#include <ostream>
#include <array>
#include <memory>
namespace Si
{
template <class Element>
s... |
<commit_before>/** @file ScenesManager.cpp
@author Philip Abbet
Implementation of the class 'Athena::Entities::ScenesManager'
*/
#include <Athena-Entities/ScenesManager.h>
#include <Athena-Entities/Scene.h>
#include <Athena-Core/Log/LogManager.h>
using namespace Athena::Entities;
using namespace Athena::Utils;
us... |
<commit_before>#include "common.h"
#include "World.h"
#include "PositionComponent.h"
#include "PlayerCameraComponent.h"
void World::Init() {
}
void World::Update(DeltaTicks &, std::vector<Object *> &) {
chunks.With([] (ChunksType &chunks) {
//INFO(chunks.size());
});
if(cameraObj == nullptr) { return; }
auto... |
<commit_before>#include "common.h"
#include "World.h"
#include "JobManager.h"
#include "PositionComponent.h"
#include "PlayerCameraComponent.h"
void World::Init() {
}
void World::Update(DeltaTicks &) {
auto pair = engine->objects.right.equal_range(&typeid(PlayerCameraComponent));
for(auto it = pair.first; it != p... |
<commit_before>/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2010-08-13 Markus Litz <Markus.Litz@dlr.de>
* Changed: $Id: main.cpp 203 2012-09-25 08:47:55Z martinsiggel $
*
* Version: $Revision: 203 $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/* <x0/request.hpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
*
* (c) 2009 Chrisitan Parpart <trapni@gentoo.org>
*/
#ifndef x0_http_request_hpp
#define x0_http_request_hpp (1)
#include <x0/io/fileinfo.hpp>
#include <x0/buffer.hpp>
#include <x0/header.hpp>
#in... |
<commit_before>#include "Galaxy.h"
extern "C"
{
#include <png.h>
#include <pngconf.h>
}
#include <fstream>
#include <ctime>
#include <math.h>
#include <algorithm>
#include <direct.h>
Galaxy::Galaxy()
{
mWidth = 2000;
mHeight = 2000;
mAverageStellarDensity = 0.1;
mAverageStellarTemperature = 0.5;
mAverageStellarR... |
<commit_before>// Copyright (c) 2009-2019 The libsfz Authors
//
// This file is part of libsfz, a free software project. You can redistribute it and/or modify it
// under the terms of the MIT License.
#include <sfz/string-utils.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <pn/string>
#include <sfz... |
<commit_before>/*
* Memory Mapping Allocator
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/internal/mmap_mem.h>
#include <cstring>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#ifndef... |
<commit_before>#include "condor_common.h"
#include "classad_collection.h"
#include "gahp-client.h"
#include "Functor.h"
#include "GenerateConfigFile.h"
#include "condor_config.h"
#include "filename_tools.h"
#include "directory.h"
#include "safe_fopen.h"
int
GenerateConfigFile::operator() () {
dprintf( D_FULLDEBUG, "... |
<commit_before>/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this fi... |
<commit_before>/*
* Copyright (C) 2008, 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.... |
<commit_before>#include "libdialog.h"
#include <qfiledialog.h>
libraryDialog::libraryDialog(ssmp *parent, Qt::WFlags flags)
: QDialog(parent, flags)
{
myparent = parent;
ui.setupUi(this);
connect(ui.browseBtn,SIGNAL(clicked()),this,SLOT(getDir()));
if(parent->settings->value("libdir") != QVariant())
ui.libDirTx... |
<commit_before>#include "StaticLibrary.h"
#include <fstream>
#include <stdio.h>
#include "Error.h"
namespace Halide {
namespace Internal {
namespace {
std::string pad_right(std::string s, size_t max) {
internal_assert(s.size() <= max) << s.size() << " " << s;
while (s.size() < max) {
s += " ";
... |
<commit_before>// SciTE - Scintilla based Text Editor
/** @file StringHelpers.cxx
** Implementation of widely useful string functions.
**/
// Copyright 2010 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <string.h>
#inclu... |
<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>#include <node.h>
#include <nan.h>
#include <openssl/obj_mac.h>
#include "eckey.h"
using namespace v8;
void InitCurves(Handle<Object> exports) {
Local<Object> obj = Object::New();
obj->Set(NanNew<String>("secp112r1"), NanNew<Number>(NID_secp112r1));
obj->Set(NanNew<String>("secp112r2"), ... |
<commit_before>/**
* @file main.cc
* @author Rafal Slota
* @copyright (C) 2016 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef linux
/* For pread()/pwrite()/utimensat() */
#define _XOPEN_SOURCE 700
#... |
<commit_before>#include <iostream>
#include "NTClient.h"
int main(int argc, char** argv) {
return 0;
}<commit_msg>Makefile updates<commit_after>#include <iostream>
#include "NTClient.h"
int main(int argc, char** argv) {
NTClient nclient = NTClient("asd4wderg", "123asd123"); // Throw-away account
return 0;
}<|endof... |
<commit_before>//
// Copyright (C) Michael Yang. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full
// license information.
//
#include "config.h"
#include "funny_pics.h"
#include "girl_pics.h"
#include "joke.h"
#include "message.h"
#include "quote.h"
#include <boost/... |
<commit_before>/*
* Copyright (C) 2011, Paul Tagliamonte <tag@pault.ag>
*
* 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
* ... |
<commit_before>#include "catch.hpp"
#include <iostream>
#include <vector>
#include "yaml-cpp/yaml.h"
#include "scene/filters.h"
#include "data/tileData.h"
#include "scene/sceneLoader.h"
#include "scene/scene.h"
#include "scene/styleContext.h"
using namespace Tangram;
using YAML::Node;
using Context = StyleContext;
... |
<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) 2009-2011 Satoshi Nakamoto & Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
#include "db.h"
////////////////////////////////////////////////////... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>#include "condor_common.h"
#include "directory.h"
#include "condor_debug.h"
#ifdef LINUX
bool isChildOf(const char *subdir, pid_t parent);
#endif
// Given a parent pid, find the first child pid of that parent pid
// by groveling through /proc
pid_t
findChildProc(pid_t parent) {
#ifdef LINUX
Directory ... |
<commit_before>/*
* JPetCmdParser.cpp
*
*
* Created by Karol Stola on 13-11-22.
* Copyright 2013 __MyCompanyName__. All rights reserved.
*
*/
#include "JPetCmdParser.h"
//#ifndef __CINT__ // guard against being included into dictionary
JPetCmdParser::JPetCmdParser()
: fOptDescriptions("Allowed options... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <arith_uint256.h>
#include <uint256.h>
#include <utilstr... |
<commit_before>///
/// @file pi_deleglise_rivat2.cpp
/// @brief Implementation of the Deleglise-Rivat prime counting
/// algorithm. Compared to pi_deleglise_rivat1.cpp this version
/// uses compression (FactorTable & PiTable) to reduce the
/// memory usage.
///
/// This implementation is ba... |
<commit_before>/**
* @file grAdapter.cc
* @author Konrad Zemek
* @copyright (C) 2014 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "auth/grAdapter.h"
#include "auth/authException.h"
#include "config.h"
#include "context.h"
#include "logging.h"... |
<commit_before>/*************************************************
* Library Internal/Global State Source File *
* (C) 1999-2006 The Botan Project *
*************************************************/
#include <botan/libstate.h>
#include <botan/engine.h>
#include <botan/x509stat.h>
#include <botan/st... |
<commit_before>//!@todo: performance: Review string formatting. Use attached stream.
//!@todo: api: Make elasticsearch frontend. Use swarm + asio and only index request with simple response checking.
//!@todo: files_t: Make file naming by pattern.
//!@todo: api: Ability to set global attribute mapper (?)
//!@todo: api:... |
<commit_before>#ifndef BUILTIN_UTIL_I_HH
#define BUILTIN_UTIL_I_HH
#ifndef BUILTIN_UTIL_HH
#error "Please include via parent file"
#endif
#include <stack>
#include <vector>
#include <array>
#include <cstdio>
#include "util.hh"
#include "lisp_ptr.hh"
#include "cons.hh"
#include "vm.hh"
template<bool dot_list, typena... |
<commit_before>#include "client_manager.hh"
#include "buffer_manager.hh"
#include "command_manager.hh"
#include "containers.hh"
#include "event_manager.hh"
#include "face_registry.hh"
#include "file.hh"
#include "user_interface.hh"
#include "window.hh"
namespace Kakoune
{
ClientManager::ClientManager() = default;
Cl... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/elementaryFluxModes/CStepMatrix.cpp,v $
// $Revision: 1.6 $
// $Name: $
// $Author: shoops $
// $Date: 2009/09/24 18:13:13 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// ... |
<commit_before>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>#include <time.h>
#include <unistd.h>
#include <iostream>
struct node {
struct node *pr;
struct node *lf;
struct node *rg;
int value;
} typedef Node;
class BST
{
public:
void insert_node(int value);
void delete_node(int value);
void print_nodes(void);
... |
<commit_before>/*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>/** Copyright (C) 2016, 2017 European Spallation Source ERIC */
#include <cassert>
#include <cinttypes>
#include <common/Detector.h>
#include <common/EFUArgs.h>
#include <iostream>
#include <libs/include/Socket.h>
#include <libs/include/TSCTimer.h>
#include <libs/include/Timer.h>
#include <memory>
#incl... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <stdlib.h... |
<commit_before>#include <iostream>
#include <sstream>
#include <stdexcept>
#include "CallIRBuilder.h"
#include "Registers.h"
#include "SMT2Lib.h"
#include "SymbolicElement.h"
CallIRBuilder::CallIRBuilder(uint64_t address, const std::string &disassembly):
BaseIRBuilder(address, disassembly) {
}
static SymbolicEle... |
<commit_before><commit_msg>HMI: fix recorder bug<commit_after><|endoftext|> |
<commit_before>/*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008 <http://www.ArcEmu.org/>
*
* This program 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 Fre... |
<commit_before>#include "texture_loader.hpp"
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h> // GLfloat, GLuint etc.
#endif
// Include GLFW
#ifndef __GLFW3_H_INCLUDED
#define __GLFW3_H_INCLUDED
#include <glfw3.h>
#endif
// Include standard headers
#include <cstdio> //... |
<commit_before>//===-- ELFDump.cpp - ELF-specific dumper -----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>/**
* \file
* \brief SpiPeripheral class header for SPIv2 in STM32
*
* \author Copyright (C) 2016-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: enumhelper.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 02:45:10 $
*
* The Contents of this file are mad... |
<commit_before>#include <iostream>
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <sodium.h>
int main(int argc, char **argv)
{
if (sodium_init() == -1) {
std::cerr << "Failed to initialize libsodium" << std::endl;
return 1;
}
Catch::Session session;
int ret = session.apply... |
<commit_before>/**
* \file
* \remark This file is part of VITA.
*
* \copyright Copyright (C) 2013-2017 EOS di Manlio Morini.
*
* \license
* 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>/*
TGD2151 Computer Graphics Fundamentals
Faculty of Computing & Informatics, Multimedia University
CGLab01.hpp
Objective: Header File for Lab01 Demo Models / World
(C) 2006-2015 Ya Ping Wong, All Rights Reserved.
http://wongyaping.com
Stanford Dragon:
Original Model : Copyright by Stanfo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.