text stringlengths 54 60.6k |
|---|
<commit_before>#include <stddef.h>
#include <stdlib.h>
#include <new>
#include <string>
#include <locale>
#include <stdio.h>
#include <iostream>
#include "novoht.h"
NoVoHT::NoVoHT(){
kvpairs = new kvpair*[1000];
size = 1000;
numEl = 0;
magicNumber = 1000;
resizeNum = -1;
}
/*
NoVoHT::NoVoHT(int s){
... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 r... |
<commit_before>// Copyright (c) 2020 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 "quiche/quic/qbone/bonnet/tun_device_controller.h"
#include <linux/if_addr.h>
#include <linux/rtnetlink.h>
#include "absl/st... |
<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/extensions/extension_page_actions_module.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/brow... |
<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>/*
* SimulationClient.cpp
*
* Created on: 08.04.2016
* Author: Marc Hartung
*/
#include "../include/SimulationClient.hpp"
#include "../include/messages/messages.hpp"
#include "../include/network_impl/SimNetworkFunctions.hpp"
#include <stdexcept>
namespace NetOff
{
SimulationClient::Sim... |
<commit_before>#include "material_exporter.h"
#include "logger.h"
#include <assimp/../../code/BoostWorkaround/boost/lexical_cast.hpp>
static const std::map<aiTextureType, std::string> SupportedTextureTypes = {
{ aiTextureType_DIFFUSE, "diffuseTexture" },
{ aiTextureType_SPECULAR, "specularTexture" },
{ aiTextureTyp... |
<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <pthread.h>
#include <queue>
#include <deque>
#include <algorithm>
#include "assert.h"
#include "parlib.h"
/*
The Weld parallel runtime. When the comments refer to a "computation",
this means a single complete execut... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>//
// Copyright (c) 2008-2013 the Urho3D project.
//
// 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... |
<commit_before>#include "config.h"
Config* Config::getHandle() {
static Config instance;
return &instance;
}
void Config::setMainConfigFile(const std::string& configFileName) {
if (confname.empty())
confname = configFileName;
}
void Config::readConfig() {
config = readConfig(confname, std::ifstream(confname));... |
<commit_before>/*
* SchemeExec.cc
*
* Execute ExecutionLink's
* Copyright (c) 2009 Linas Vepstas <linasvepstas@gmail.com>
*/
#ifdef HAVE_GUILE
#include <libguile.h>
#include <opencog/atomspace/Link.h>
#include <boost/shared_ptr.hpp>
#include "SchemeEval.h"
#include "SchemeSmob.h"
using namespace opencog;
/*... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>//===-- ARMTargetMachine.cpp - Define TargetMachine for ARM ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#ifndef _Stroika_Foundation_Traversal_Range_inl_
#define _Stroika_Foundation_Traversal_Range_inl_
#include "../Debug/Assertions.h"
#include "../Math/Overlap.h"
namespace Stroika {
namespace Foundation {
... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2010-03-15 11:12:36 +0100 (Mo, 15 Mrz 2010) $
Version: $Revision: 21745 $
Copyright (c) German Cancer Research Center, Division of Medic... |
<commit_before>/*
* Copyright (c) 2012-2013 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 implem... |
<commit_before>AliAnalysisTask *AddTask_rbailhac_lowmass(Bool_t getFromAlien=kFALSE,
TString cFileName = "Config_rbailhac_lowmass.C",
Char_t* outputFileName="LMEE.root",
ULong64_t triggerMask = AliVEvent::kINT7,
Bool_t pileupon = kFALSE,
Int_t wagon = 0
... |
<commit_before>
#include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <boost/program_options.hpp>
#include "filter/compiler.h"
#include "fileemitor.h"
#include "version.h"
#include "worker.h"
namespace po = boost::program_options;
std::mutex screenMutex;
std::string recordSeparator = "... |
<commit_before>// 12 december 2016
#define UNICODE
#define _UNICODE
#define STRICT
#define STRICT_TYPED_ITEMIDS
// get Windows version right; right now Windows Vista
// unless otherwise stated, all values from Microsoft's sdkddkver.h
// TODO is all of this necessary? how is NTDDI_VERSION used?
// TODO plaform update sp... |
<commit_before>/***************************************************************************
* *
* Copyright (C) 2009-2015 by frePPLe bvba *
* ... |
<commit_before>/*
* SchemeEval.c
*
* Simple scheme evaluator
* Copyright (c) 2008 Linas Vepstas <linas@linas.org>
*/
#ifdef HAVE_GUILE
#include "SchemeEval.h"
#include <libguile.h>
#include <libguile/backtrace.h>
#include <libguile/debug.h>
#include <libguile/lang.h>
#include <pthread.h>
#include <opencog/util... |
<commit_before>/*
* Recognizer.cc
*
* Copyright (C) 2015 Linas Vepstas
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation and including the
* exceptions
* at http://opencog.org/... |
<commit_before>/*
* Copyright (c) 2003-2011 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.... |
<commit_before>// Copyright 2015-2018 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_AUDIO_AUDIODEVICE_HPP
#define OUZEL_AUDIO_AUDIODEVICE_HPP
#include <functional>
#include <memory>
#include <mutex>
#include <queue>
#include <vector>
#include "audio/Driver.hpp"
#include "audio/Node.hpp"
#include "audio/SampleF... |
<commit_before>// ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<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/wm/app_list_controller.h"
#include "ash/ash_switches.h"
#include "ash/launcher/launcher.h"
#include "ash/root_window_con... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleSlideSorterObject.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: kz $ $Date: 2008-04-03 13:24:02 $
*
* The Contents of... |
<commit_before>/*
This program does a PAM authentication check using the username on
the command line and reading the password from stdin (to be more
secure). When PAM mode is enabled and users request LDAP/PAM
authentication (irodsAuthScheme of 'PAM' or 'pam'), the irodsAgent
spawns this process and writes ... |
<commit_before>
namespace freeflow {
inline
Transfer::Transfer(int f, uint8_t* b, std::size_t n) :
fd(f), buff(b), n_bytes(n), fd_state(1), n_transferred(0)
{ }
inline
Transfer::operator int()
{
return fd_state < 0 ? fd_state : n_transferred;
}
inline int
transfer_available(Transfer& t, std::size_t (*op)(int, vo... |
<commit_before>//----------------------------------------------------------------------------------------
// Name: main.cc
// Purpose: Core application
// Author: Michael Van Donselaar
// Modified by:
// Created: 2003
// Copyright: (c) Michael Van Donselaar ( michael@vandonselaar.org )
// Licence:... |
<commit_before>#include "aten.h"
#include "atenscene.h"
#include <cmdline.h>
#include <imgui.h>
#include "VoxelViewer.h"
static const int WIDTH = 1280;
static const int HEIGHT = 720;
static const char* TITLE = "VoxelViewer";
struct Options {
std::string input;
std::string output;
std::string inputBasepath;
st... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2002 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>/*
* 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>#include "ruler.hpp"
#include "measurement_utils.hpp"
#include "../platform/settings.hpp"
#include "../yg/overlay_renderer.hpp"
#include "../yg/skin.hpp"
#include "../indexer/mercator.hpp"
#include "../base/logging.hpp"
#include "../base/string_utils.hpp"
#include "../base/macros.hpp"
namespace
{
... |
<commit_before>// ========================================================================================
// ApproxMVBB
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy o... |
<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 "chrome/browser/chromeos/login/login_manager_view.h"
#include <signal.h>
#include <sys/types.h>
#include <algorithm>
#includ... |
<commit_before>#include "cansignalencoder_p.h"
#include <QCanBusFrame>
#include <log.h>
CanSignalEncoderPrivate::CanSignalEncoderPrivate(CanSignalEncoder* q, CanSignalEncoderCtx&& ctx)
: _ctx(std::move(ctx))
, q_ptr(q)
{
initProps();
connect(&_db, &CanDbHandler::sendCanDbRequest, q_ptr, &CanSignalEnco... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/Config.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/Core/File.hpp>
#include <Nazara/Core/MemoryVie... |
<commit_before>#ifndef ARC_UTILITIES_MATH_HELPERS_HPP
#define ARC_UTILITIES_MATH_HELPERS_HPP
#include <vector>
#include <cmath>
#include <cstddef>
#include <iostream>
#include <cassert>
namespace EigenHelpers //TODO: Change namespace to ArcMath, breaking change
{
//////////////////////////////////////////////////... |
<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 "chrome/browser/chromeos/options/wifi_config_view.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "ba... |
<commit_before><commit_msg>Re-disable ExtensionApiTest.Tabs (flakey)<commit_after><|endoftext|> |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file apple.hpp
/// ---------------
///
/// (c) Copyright Domagoj Saric 2016 - 2017.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1.0. (See accompanying file
///... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file apple.hpp
/// ---------------
///
/// (c) Copyright Domagoj Saric 2016.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1.0. (See accompanying file
/// LICEN... |
<commit_before>/*
** File Name: list_operations.hpp
** Author: Aditya Ramesh
** Date: 08/05/2015
** Contact: _@adityaramesh.com
**
** Advanced list operations that are easier to implement using `functional.hpp`.
*/
#ifndef ZA52A5035_94F1_4F4E_9587_BD2A3D87A4E3
#define ZA52A5035_94F1_4F4E_9587_BD2A3D87A4E3
n... |
<commit_before><commit_msg>Add some limits to incoming audio stream requests to avoid allocating massive buffers.<commit_after><|endoftext|> |
<commit_before>#include "PopulationNode.hpp"
#pragma once
class PopulationNodeFactory {
private:
protected:
public:
template <typename NodeType, typename... params>
static PopulationNode * createNode(
unsigned int populationSize,
std::vector<Locus*> loci,
std::vector<ObjectiveFunction*> objectives,
ToSt... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlfiltertabpagexslt.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2004-12-13 12:25:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 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>#include "sam.h"
#include "samSz.h"
#include <apfField.h>
#include <cassert>
#include <apfField.h>
namespace sam {
apf::Field* errorThreshold(apf::Mesh* m, const char* fieldName,
const unsigned idx, const double limit, const double factor)
{
apf::Field* f = m->findField(fieldName);
assert(f);
... |
<commit_before>/* mockturtle: C++ logic network library
* Copyright (C) 2018 EPFL
*
* 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 ... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>#pragma once
#include <mtao/types.hpp>
namespace mtao::geometry::trigonometry {
// pushes an angle to the range [0,2*M_PI)
template <typename S>
S angle_clamp_positive(S ang) {
while(ang > 2* M_PI) {
ang -= 2 * M_PI;
}
while(ang < 0) {
ang +... |
<commit_before>/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright 2020 Joel E. Anderson
*
* 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/LI... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "local_rpc_monitor_map.h"
#include "sbenv.h"
#include <vespa/fnet/frt/supervisor.h>
#include <vespa/log/log.h>
LOG_SETUP(".slobrok.server.local_rpc_monitor_map");
namespace slobrok ... |
<commit_before>/*
* D3D11RenderSystem_Textures.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "D3D11RenderSystem.h"
#include "D3D11Types.h"
#include "../DXCommon/DXCore.h"
#include "../CheckedCast.h"
#include "../Ass... |
<commit_before>// Natron
/* 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 "AnimationButton.h"
#include <QMouseEvent>
#include <QApplication>
#include <... |
<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 <config.h>
// When defined, different heap allocators can be used via an environment
// variable set before running the progr... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>/*
* Copyright (c) 2016 RISC-V Foundation
* Copyright (c) 2016 The University of Virginia
* Copyright (c) 2018 TU Dresden
* Copyright (c) 2020 Barkhausen Institut
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
<commit_before>/*
* Copyright (c) 2002-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>#include <iostream>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include "backends/backends.h"
using namespace blitz;
// N C H W
Shape input_shape(4);
// K C R S
Shape filter_shape(4);
// N K P Q
Shape output_shape(4);
// cpu workspace
Shape workspace_shape_cpu(1);
// gpu workspace
Shape workspac... |
<commit_before>#include "src/archive/Archiver.hpp"
#include "quazipfile.h"
#include "quazipfileinfo.h"
#include <QDir>
#include <QFile>
#include <QStringBuilder>
#include <QDebug>
qint64 copyData(QIODevice& inFile, QIODevice& outFile) {
char buffer[4096];
const qint64 readSize = inFile.read(buffer, 4096);
if (... |
<commit_before>#include "scripting/script_environment.h"
#include "world.h"
#include "halley/support/logger.h"
#include "scripting/script_graph.h"
#include "scripting/script_state.h"
using namespace Halley;
ScriptEnvironment::ScriptEnvironment(const HalleyAPI& api, World& world, Resources& resources, const ScriptNod... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <stdexcept>
#include <GL/glew.h>
#include <visionaray/detail/platform.h>
#if defined(VSNRAY_OS_DARWIN)
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
#pr... |
<commit_before>#include "appinfo.h"
const Version AppInfo::version = Version(0, 0, 7, 0, 101);
const std::string AppInfo::name = "JASP";
std::string AppInfo::getShortDesc(bool includeMassive)
{
return AppInfo::name + " " + AppInfo::version.asString(includeMassive, true);
}
<commit_msg>Version bump: 0.7.0 Beta 2<comm... |
<commit_before>//-- Copyright 2015 Intrig
//-- See https://github.com/intrig/xenon for license.
#include <iostream>
#include <vector>
#include <ict/xenon.h>
using std::cout;
using std::cerr;
using ict::message;
struct nv_pairs {
nv_pairs(const std::string & name, int64_t value) : name(name), value(value) {}
s... |
<commit_before>/* <x0/FileInfo.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.ws/
*
* (c) 2009-2010 Christian Parpart <trapni@gentoo.org>
*/
#include <x0/io/FileInfo.h>
#include <x0/io/FileInfoService.h>
namespace x0 {
FileInfo::FileInfo(FileInfoService... |
<commit_before>// SA:MP Profiler plugin
//
// Copyright (c) 2011 Zeex
//
// 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>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Machinecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <protocol.h>
#include <util.h>
#include <utilstrenc... |
<commit_before>/* -----------------------------------------------------------------------------
Copyright (c) 2006 Simon Brown si@sjbrown.co.uk
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"... |
<commit_before>// Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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 the Software without
// restriction, including with... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: KPreparedStatement.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2005-12-19 16:50:16 $
*
* The Contents of this fil... |
<commit_before>#include "catch/catch.hpp"
#include "RaZ/Entity.hpp"
namespace {
// Declaring entities to be tested
Raz::Entity entity0(0);
Raz::Entity entity1(1);
Raz::Entity entity2(2);
} // namespace
TEST_CASE("Entity base tests") {
REQUIRE(entity0.getId() == 0);
REQUIRE(entity1.getId() == 1);
REQUIRE(entit... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: UStringDescription_Impl.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2007-05-10 09:38:25 $
*
* The Contents of this... |
<commit_before>/** @file iterativeSolvers.cpp
@brief Example on how the solve a system of linear equation with the MINRES, GMRes and CG method.
This file is part of the G+Smo library.
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 dis... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>/** @file iterativeSolvers.cpp
@brief Example on how the solve a system of linear equation with the MINRES, GMRes and CG method.
This file is part of the G+Smo library.
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 dis... |
<commit_before>/****************************************************************************
**
** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtMultimedia module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGP... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2009 Tim Riker
* Written By Dave Rodgers (aka: trepan)
*
* 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... |
<commit_before>/*
Copyright (C) 2010 Marco Ballesio <gibrovacco@gmail.com>
Copyright (C) 2011 Collabora Ltd.
@author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... |
<commit_before>// Copyright (c) 2011, Christian Rorvik
// Distributed under the Simplified BSD License (See accompanying file LICENSE.txt)
#include "crunch/concurrency/thread.hpp"
#include "crunch/concurrency/exceptions.hpp"
#include "crunch/base/assert.hpp"
#include "../../thread_data.hpp"
#include <memory>
#incl... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2010 Aldebaran Robotics
*/
#ifndef QI_LOG_LOG_H
#define QI_LOG_LOG_H
#include <string>
#include <sstream>
#include <cstdarg>
#include <boost/function.hpp>
#include <qi/api.hpp>
#ifdef NO_QI_DEBUG
# define qiDebug... |
<commit_before>/* The MIT License (MIT)
Copyright (c) 2015 Gabriel Corona
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... |
<commit_before>/*
* Copyright (C) 2020 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>#include <cstdlib>
#include <complex>
#include <iostream>
#include <mpl/mpl.hpp>
template<typename T1, typename T2>
std::ostream & operator<<(std::ostream &out, const std::pair<T1, T2> &p) {
out << p.first << ' ' << p.second;
return out;
}
template<typename F, typename T, std::size_t n>
class apply... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Jana Kiesel <jana.kiesel@tu-ilmenau.de>
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @v... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief CSV クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef CONCURRENCY_SIGNAL_HPP_
#define CONCURRENCY_SIGNAL_HPP_
#include "concurrency/pubsub.hpp"
#include "utils.hpp"
/* A `signal_t` is a boolean variable, combined with a way to be notified if
that boolean variable becomes true. Typically you wi... |
<commit_before>#ifndef ENTT_REGISTRY_HPP
#define ENTT_REGISTRY_HPP
#include <tuple>
#include <vector>
#include <bitset>
#include <utility>
#include <cstddef>
#include <iterator>
#include <cassert>
#include <type_traits>
#include "sparse_set.hpp"
#include "ident.hpp"
namespace entt {
template<typename, std::size_t... |
<commit_before>/* Luwra
* Minimal-overhead Lua wrapper for C++
*
* Copyright (C) 2015, Ole Krüger <ole@vprsm.de>
*/
#ifndef LUWRA_TYPES_H_
#define LUWRA_TYPES_H_
#include "common.hpp"
#include <utility>
#include <tuple>
#include <string>
#include <type_traits>
#include <limits>
LUWRA_NS_BEGIN
/* Lua types */
u... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 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>// vw_explore.cpp : Defines the entry point for the console application.
//
#include "MWTExplorer.h"
#include <chrono>
#include <tuple>
#include <iostream>
using namespace std;
using namespace std::chrono;
using namespace MultiWorldTesting;
class MyContext
{
};
class MyPolicy : publ... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, PAL Robotics, S.L.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
<commit_before>#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#define F_CPU 1000000L
#include <util/delay.h>
#include <common.hpp>
#include <am2302.hpp>
#include <sensor.hpp>
#include <vcc.hpp>
#include <interrupt/WDT.hpp>
typedef AM2302< Pin<Port<B>, 4> > Tsensor1;
unsigned char id;
static unsi... |
<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 "SkFlattenable.h"
#include "SkTypeface.h"
SK_DEFINE_INST_COUNT(SkFlattenable)
///////////////////////////////////////////////////////////////////////... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2003 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>/*
* Molch, an implementation of the axolotl ratchet based on libsodium
*
* ISC License
*
* Copyright (C) 2015-2016 1984not Security GmbH
* Author: Max Bruckner (FSMaxB)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, ... |
<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 "src/core/SkStrikeCache.h"
#include <cctype>
#include "include/core/SkGraphics.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkTraceMe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.