text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef HLL_HEADER_ONLY
# include "hll.h"
#endif
#include <stdexcept>
#include <cstring>
#include <numeric>
#include <thread>
#include <cinttypes>
#include <atomic>
#include "kthread.h"
namespace hll {
#if !NDEBUG
template<typename T>
std::string arrstr(T it, T it2) {
std::string ret;
for(au... |
<commit_before>#pragma once
#include "detail/function_traits.hpp"
#include "detail/traits.hpp"
#include "detail/utils.hpp"
#include "detail/container_service.hpp"
#include "detail/invoke.hpp"
#include <unordered_map>
#include <memory>
#include <type_traits>
#include <tuple>
#include <algorithm>
#include <vector>
nam... |
<commit_before>/*
* SessionClang.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 ... |
<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>#include <lug/Window/Android/WindowImplAndroid.hpp>
namespace lug {
namespace Window {
namespace priv {
std::queue<lug::Window::Event> WindowImpl::events;
AInputQueue* WindowImpl::inputQueue = nullptr;
ANativeWindow* WindowImpl::nativeWindow = nullptr;
ANativeActivity* WindowImpl::activity = nullptr;
... |
<commit_before>//Written by Steven An
//Apache Licence
//implementation of complex long long integer object
#include "complex-llong.h"
#include<iostream>
//Constructors
Complex_llong::Complex_llong(void){
real = imag = 0LL;
are_squared = false;
}
Complex_llong::Complex_llong(long long real, long long imag){
... |
<commit_before>#include "search_index_builder.hpp"
#include "feature_utils.hpp"
#include "features_vector.hpp"
#include "search_delimiters.hpp"
#include "search_trie.hpp"
#include "search_string_utils.hpp"
#include "string_file.hpp"
#include "classificator.hpp"
#include "feature_visibility.hpp"
#include "../defines.h... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>/*!
@file SetupHalo.cpp
HPCG routine
*/
#ifndef HPCG_NOMPI
#include <mpi.h>
#include <map>
#include <set>
#endif
/*
#ifndef HPCG_NOOPENMP
#include <omp.h>
#endif
*/
#ifdef HPCG_DETAILED_DEBUG
#include <fstream>
using std::endl;
#include "hpcg.hpp"
#include <cassert>
#endif
#include "SetupHalo.hpp"
... |
<commit_before>// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Lice... |
<commit_before>#include "precompiled.h"
//
// Copyright (c) 2012 The ANGLE 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.
//
// InputLayoutCache.cpp: Defines InputLayoutCache, a class that builds and caches
// D3D11 input la... |
<commit_before>/*
Copyright (c) 2005, 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 (c) 2003-2012, 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 ... |
<commit_before>/*
Copyright (c) 2003, 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 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkottiePriv.h"
#include "SkJSON.h"
#include "SkottieJson.h"
#include "SkSGColor.h"
#include "SkSGColorFilter.h"
namespace skottie {
namespace intern... |
<commit_before>/*
* Copyright 2020 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/skshaper/include/SkShaper.h"
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
#ifdef SK_BUILD_FOR_MAC
#import <ApplicationServices... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner
* Copyright (C) 2009, 2010 Peter Schüller
* Copyright (C) 2011, 2012, 2013 Christoph Redl
*
* This file is part of dlvhe... |
<commit_before>/******************************************************************************
* File: cube.cpp
*
* Purpose: Implements the Rubik's cube at the cubie level, and provides
* translation to the coordinates required for the two-phase Kociemba
* algorithm to run.
************************... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013-2014 winlin
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, m... |
<commit_before>/*
* Copyright (C) Daliworks, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <Arduino.h>
#include <ArduinoJson.h>
#include <PubSubClient.h>
#include <Time.h>
#include "Thingplus.h"
#define THINGPLUS_VALUE_MESSAGE_LEN 36
#define THINGPLUS_TOPIC_LEN 80
#define THINGPLUS_SHOR... |
<commit_before><commit_msg>adding config numbers to apply MBW from 5 TeV Nch<commit_after><|endoftext|> |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>#include <sstream>
#include <string>
#include <curl/curl.h>
#include "curl.h"
#include "logger.h"
namespace
{
static size_t curlWriteCallBack(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::ostringstream*)userp)->write((char*)contents, size * nmemb);
return size * nmemb;
}
}
... |
<commit_before>AliAnalysisTaskChargedJetsPA* AddTaskChargedJetsPA(
const char* containerSuffix = "",
Double_t jetRadius = 0.4,
const char* centralityType = "V0A",
Int_t trigger = AliVEvent::kINT7,
Bool_t isPA ... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>#include <cstdlib>
#include <cstring>
#include <ctime>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
/// Normalizes path removing relative subpaths such as "." and "..".
/// Path delimiter is slash "/".
///
/// Note 1: consecutive delimiters are treated as ... |
<commit_before>#include <iostream>
using namespace std;
class bstNode
{
private:
int data;
bstNode *left;
bstNode *right;
public:
bstNode* Insert (bstNode*,int);
bool Search (bstNode*,int);
void preorder (bstNode*);
void inorder (bstNode*);
void postorder (bstNode*);
void levelorder (bstNode*);
int countL... |
<commit_before>#include "stdafx.h"
#include "DecoratorTest.h"
#include "AutoPacket.h"
#include "AutoPacketFactory.h"
#include "AutoPacketListener.h"
#include "FilterPropertyExtractor.h"
#include "TestFixtures/Decoration.h"
using namespace std;
TEST_F(DecoratorTest, VerifyCorrectExtraction) {
vector<const type_info*... |
<commit_before><commit_msg>Update ConfigPhiLeadingPb.C<commit_after><|endoftext|> |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>#include <algorithm>
#include "TrimNoOps.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Simplify.h"
#include "Solve.h"
#include "IREquality.h"
#include "ExprUsesVar.h"
#include "Substitute.h"
#include "CodeGen_GPU_Dev.h"
#include "Var.h"
#include "CSE.h"
namespace Halide {
namespace Intern... |
<commit_before>#include <QtWidgets>
#include "dragwidget.h"
#include <log.h>
DragWidget::DragWidget(QWidget* parent)
: QFrame(parent)
{
setAcceptDrops(true);
}
void DragWidget::dragEnterEvent(QDragEnterEvent* event)
{
if (event->mimeData()->hasFormat("application/x-dnditemdata")) {
if (event->sou... |
<commit_before>/**
* @file configreader.hpp
* @brief COSSB configuration Reader
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details Load(Read) configuration file
*/
#ifndef _COSSB_CONFIG_HPP_
#define _COSSB_CONFIG_HPP_
#include "../arch/singleton.hpp"
#include <tinyxml2.h>
#includ... |
<commit_before>/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 David Shah <david@symbioticeda.com>
*
* 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 permiss... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>/******************************************************************
motorized device control
This object extends Patriot to support motorized devices such as
motorized vents or curtains. It operates in 2 different modes.
In the default mode, the open or close output is held for the
desired percentage... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>#include "mep.hpp"
void out_print_address(op_t &x, ea_t /*pc*/)
{
if (!out_name_expr(x, x.addr))
{
OutValue(x, OOF_ADDR | OOF_NUMBER | OOFS_NOSIGN);
QueueSet(Q_noName, cmd.ea);
}
}
void out_print_spreg(op_t &/*x*/, ea_t /*pc*/)
{
out_register("$sp");
}
void out_print_tpreg(op_t &/*x*/,... |
<commit_before>/*
* Copyright (C) 2004-2015 ZNC, see the NOTICE file for details.
*
* 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>#pragma once
#include <type_traits>
#include <iterator>
#include <utility>
namespace helene
{
namespace detail
{
template <class Iterator, class IteratorTag>
constexpr bool is_iterator_of_category_v =
std::is_same<typename std::iterator_traits<Iterator>::iterator_category,
Iterat... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>#ifndef MJOLNIR_CLEMENTI_DIHEDRAL_POTENTIAL
#define MJOLNIR_CLEMENTI_DIHEDRAL_POTENTIAL
#include <mjolnir/core/LocalPotentialBase.hpp>
#include <cmath>
namespace mjolnir
{
/*! @brief Clementi-Go dihedral modified-triple-cosine potential *
* V(phi) = k1 * (1-cos(phi-phi0)) + k3 * (1-cos(3(phi-phi0))) ... |
<commit_before>#pragma once
#include "CSingleton.hpp"
#include "sdk.hpp"
#include <string>
#include <unordered_set>
#include <memory>
using std::string;
using std::unordered_set;
#include "CError.hpp"
using Callback_t = std::shared_ptr<class CCallback>;
class CCallback
{
public: //type definitions
enum class Er... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Realm 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://ww... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>/*
* simple_parser.hpp - Parser that only splits the command arguments and
* supports quoted strings
*
* Copyright 2010-2011 Jesús Torres <jmtorres@ull.es>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... |
<commit_before>/*
* ArcScripts for ArcEmu MMORPG Server
* Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
* Copyright (C) 2008 WEmu Team
* Copyright (C) 2009 WhyScripts Team <http://www.whydb.org/>
*
* This program is free software: you ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No ... |
<commit_before>/**
* @file llsearcheditor.cpp
* @brief LLSearchEditor implementation
*
* $LicenseInfo:firstyear=2001&license=viewergpl$
*
* Copyright (c) 2001-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you und... |
<commit_before>#include "pdbformat.h"
#include <avogadro/core/elements.h>
#include <avogadro/core/molecule.h>
#include <avogadro/core/utilities.h>
#include <avogadro/core/vector.h>
#include <istream>
#include <string>
using Avogadro::Core::Atom;
using Avogadro::Core::Bond;
using Avogadro::Core::Elements;
using Avoga... |
<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 "net/base/network_change_notifier_helper.h"
#include <algorithm>
#include "base/logging.h"
namespace net {
namespace interna... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>// Scintilla source code edit control
/** @file KeyWords.cxx
** Colourise for particular languages.
**/
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#i... |
<commit_before>#include <iostream>
#include <map>
#include <mutex>
#include <netinet/in.h>
#include <signal.h>
#include <stdlib.h>
#include <thread>
#include <unistd.h>
#include <string.h>
#include "metacard.h"
#include "utils.h"
using namespace std;
// GLOBAL VARIABLES
int listener_socket;
map<string, uint64_t> bal... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>/*
* SolverLamg.cpp
*
* Created on: 12.01.2015
* Author: Michael
*/
#include "SolverLamg.h"
#include "LAMGSettings.h"
#include "../CG.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include "../../io/LineFileReader.h"
#include "../../auxiliary/Enforce.h"
#include "../../auxili... |
<commit_before>// Windowmenu.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// 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 ... |
<commit_before>/*
* Copyright 2013 The OpenMx 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 required b... |
<commit_before><commit_msg>Revert behavior for zero-sized regions.<commit_after><|endoftext|> |
<commit_before><commit_msg>Couple quick updates for handling failed update checks.<commit_after><|endoftext|> |
<commit_before>///
/// @file macros.hpp
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef MACROS_HPP
#define MACROS_HPP
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2011, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>/*
* IceWM
*
* Copyright (C) 1998-2001 Marko Macek
*
* CPU Status
*/
#include "config.h"
#ifdef CONFIG_APPLET_CPU_STATUS
#include "ylib.h"
#include "wmapp.h"
#include "acpustatus.h"
#include "sysdep.h"
#include "default.h"
#if defined(linux)
//#include <linux/kernel.h>
#include <sys/sysinfo.h>
#... |
<commit_before>#ifndef V_SMC_CORE_SAMPLER_HPP
#define V_SMC_CORE_SAMPLER_HPP
#include <vSMC/internal/common.hpp>
#include <iostream>
#include <map>
#include <set>
#include <string>
namespace vSMC {
/// \brief SMC Sampler
///
/// \tparam T State state type. Requiment:
/// \li Consturctor: T (IntType N)
/// \li Method... |
<commit_before>#ifndef V_SMC_CORE_SAMPLER_HPP
#define V_SMC_CORE_SAMPLER_HPP
#include <vSMC/internal/common.hpp>
#include <ostream>
#include <map>
#include <set>
#include <string>
namespace vSMC {
/// \brief SMC Sampler
///
/// \tparam T State state type. Requiment:
/// \li Consturctor: T (IntType N)
/// \li Method:... |
<commit_before>#ifndef NANO_SIGNAL_SLOT_HPP
#define NANO_SIGNAL_SLOT_HPP
#include "nano_function.hpp"
#include "nano_observer.hpp"
namespace Nano
{
template <typename RT> class Signal;
template <typename RT, typename... Args>
class Signal<RT(Args...)> : private Observer
{
template <typename T>
void insert_sf... |
<commit_before><commit_msg>Getting confused about the derivative...<commit_after><|endoftext|> |
<commit_before><commit_msg>Allocate deep copied varis on no-chain stack<commit_after><|endoftext|> |
<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.
#ifndef NIX_FILE_HDF5_H
#def... |
<commit_before>/*
Copyright (c) 2006, 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 (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_EDITOR_SETTINGSBAR_HPP
#define RJ_GAME_EDITOR_SETTINGSBAR_HPP
#include "button_item.hpp"
#include <rectojump/global/common.hpp>
#include <rectojump/global/config_settings.hpp>
#include <rectojump/sha... |
<commit_before><commit_msg>newly set nStart and nEnd are not used<commit_after><|endoftext|> |
<commit_before>/* -*- c++ -*-
c2ffi
Copyright (C) 2013 Ryan Pavlik
This file is part of c2ffi.
c2ffi 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... |
<commit_before>
#ifdef _WIN32
#include <windows.h>
#else
#include <cstdio>
#include <cerrno>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
#include <nstd/File.h>
#include <nstd/Debug.h>
File::File()
{
#ifdef _WIN32
ASSERT(sizeof(void*) >= sizeof(HANDLE));
fp = INVALID_HANDLE_VALUE;
#else... |
<commit_before>// @(#)root/base:$Name: $:$Id: TQConnection.cxx,v 1.9 2002/12/02 18:50:01 rdm Exp $
// Author: Valeriy Onuchin & Fons Rademakers 15/10/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All righ... |
<commit_before>/*
* Copyright (c) 2013 Pavlo Lavrenenko
*
* 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>
#include "base/thread_pool.hpp"
#include <vector>
#include "glog/logging.h"
#include "gmock/gmock.h"
namespace principia {
namespace base {
class ThreadPoolTest : public ::testing::Test {
protected:
ThreadPoolTest() : pool_(std::thread::hardware_concurrency()) {
LOG(ERROR) << "Concurrency is ... |
<commit_before>
#include "Gfdi.h"
#include <array>
#include <cassert>
#include <cmath>
// helper functions and data
namespace {
// numerous constants used in the analytic approximations
//const std::array<double, 5> x = {{
const auto x = std::array<double, 5> {{
7.265351e-2, 0.2694608, 0.533122, 0.7868801... |
<commit_before>#ifndef __ENVIRE_MAPS_GRID_HPP__
#define __ENVIRE_MAPS_GRID_HPP__
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <boost/function.hpp>
#include "LocalMap.hpp"
namespace envire { namespace maps
{
/**@brief type for the number of cells
*/
typedef Eigen::Matrix<unsigned int, 2, 1... |
<commit_before>// ChiCheFrame.cpp
#include "ChiChe.h"
using namespace ChiChe;
//=====================================================================================
Frame::Frame( void ) : wxFrame( 0, wxID_ANY, "Chinese Checkers", wxDefaultPosition, wxSize( 900, 600 ) ), timer( this, ID_Timer )
{
wxMenu* gameMenu =... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of the Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this fi... |
<commit_before>// DOC: https://tools.ietf.org/html/rfc3550#appendix-A.1
#define MS_CLASS "RTC::RtpStream"
// #define MS_LOG_DEV
#include "RTC/RtpStream.h"
#include "DepLibUV.h"
#include "Logger.h"
#define MIN_SEQUENTIAL 2
#define MAX_DROPOUT 3000
#define MAX_MISORDER 100
#define RTP_SEQ_MOD (1<<16)
namespace RTC
{
... |
<commit_before>#include "zs.hh"
#include "test_util.hh"
int main(){
zs_init();
// traditional macro (extension)
check_e_success("(define tmp-func (lambda (x) `(define ,x ',x)))");
check_e("(tmp-func 'a)", "(define a (quote a))");
check_e_success("(define-syntax tmp-macro (traditional-transformer tmp-func))... |
<commit_before><commit_msg>Updated guessing_game<commit_after><|endoftext|> |
<commit_before><commit_msg>Added comparison objects (Issue #3)<commit_after><|endoftext|> |
<commit_before>#include "MetaProvider.ipp"
#include "../../meta/ClassBase.ipp"
BEGIN_INANITY_V8
//*** class MetaProvider::NamedCallableBase
MetaProvider::NamedCallableBase::NamedCallableBase(const char* name)
: name(name) {}
const char* MetaProvider::NamedCallableBase::GetName() const
{
return name;
}
//*** class... |
<commit_before>#ifndef STAN_MATH_PRIM_SCAL_FUN_INC_BETA_DDA_HPP
#define STAN_MATH_PRIM_SCAL_FUN_INC_BETA_DDA_HPP
#include <stan/math/prim/scal/fun/inc_beta.hpp>
#include <stan/math/prim/scal/fun/inc_beta_ddb.hpp>
#include <cmath>
namespace stan {
namespace math {
template <typename T>
T inc_beta_ddb(T a, T... |
<commit_before>#include <stdint.h>
#include "ndb_wrapper.h"
#include "../varkey.h"
#include "../macros.h"
void *
ndb_wrapper::new_txn()
{
return new transaction;
}
bool
ndb_wrapper::commit_txn(void *txn)
{
bool ret;
try {
((transaction *) txn)->commit();
ret = true;
} catch (transaction_abort_exceptio... |
<commit_before>
#include <random>
#include <tuple>
#include "benchmark/benchmark.h"
#include "numerics/polynomial.hpp"
namespace principia {
namespace numerics {
namespace {
int const evaluations_per_iteration = 1000;
} // namespace
template<typename T>
T GenerateElement(std::mt19937_64& random);
template<>
doub... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2010 Laurent Bauer
Copyright (C) 2010 Laurent Ribon (laumaya@users.sourceforge.net)
http://glc-lib.sourceforge.net
GLC-lib is free software; you can redistribute it... |
<commit_before>/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
namespace El {
templ... |
<commit_before>/*
Copyright 2015-2020 Igor Petrovic
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 i... |
<commit_before>/***************************************************************************
LALR.cpp - description
------------------------
begin : Fri Jun 14 2002
copyright : (C) 2002 by Manuel Astudillo
*************************... |
<commit_before>#include "Compiler.h"
#include <fstream>
#include <cstring>
using namespace std;
using namespace compiler;
void print_help(char *program_name)
{
cout << "Usage: " << program_name << " [options] <inputs>" << endl;
cout << "Options:" << endl;
cout << " --help -h Show avail... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.