text stringlengths 54 60.6k |
|---|
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open public ... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2005-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU ... |
<commit_before>/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Damien P. George
*
* 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>#include <cstring>
#include <iostream>
#include <iomanip>
#include <vector>
#include <utility>
#include "smf.hpp"
uint32_t SmfReader::readVarLen()
{
uint8_t c = read_type<uint8_t>(*m_smf);
uint32_t value = c & 0x7F;
if (c & 0x80) {
do {
c = read_type<uint8_t>(*m_smf);
... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#ifndef PARSE_REFERENCE_HPP_
#define PARSE_REFERENCE_HPP_
#include "symbol.hpp"
#include <boost/optional.hpp>
namespace parse_reference_detail
{
inline bool is_letter(char c)
{
return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z');
}
inline bool is_alpha_numeric(char c)
{
return is_letter(c... |
<commit_before>#include "platform.hpp"
#ifdef WIN32
#include "../classes/string.hpp"
#include "../collector.hpp"
#include "../runtime.hpp"
namespace Mirb
{
namespace Platform
{
void raise(const CharArray &message)
{
TCHAR *msg_buffer;
DWORD err_no = GetLastError();
FormatMessage(FORMAT_MESSAGE_ALLOC... |
<commit_before>#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h"
#include <iostream>
#include <QAbstractItemDelegate>
#... |
<commit_before>/*
* main.cpp
*
* Created on: Jul 14, 2017
* Author: ondra
*/
#include <unistd.h>
#include <fstream>
#include <stdexcept>
#include <imtjson/value.h>
#include <couchit/couchDB.h>
#include <couchit/document.h>
using namespace json;
using namespace couchit;
void createConfig(std::ostream &o... |
<commit_before>//
// src/recursive/remove.cc
// tbd
//
// Created by inoahdev on 10/15/17.
// Copyright © 2017 inoahdev. All rights reserved.
//
#include <cstdio>
#include <unistd.h>
#include "../utils/path.h"
#include "remove.h"
namespace recursive::remove {
result perform(char *path) {
return perfo... |
<commit_before>/*=========================================================================
*
* Copyright Marius Staring, Stefan Klein, David Doria. 2011.
*
* 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 ... |
<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>// $Id: bond.C,v 1.21 2001/06/14 00:30:42 oliver Exp $
#include <BALL/KERNEL/bond.h>
#include <BALL/KERNEL/system.h>
#include <BALL/KERNEL/atomContainer.h>
using namespace std;
namespace BALL
{
Bond::TooManyBonds::TooManyBonds(const char* file, int line)
throw()
: Exception::GeneralException(fi... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
<commit_before>#include "../tesselator.hpp"
#include "../geometry_serialization.hpp"
#include "../mercator.hpp"
#include "../point_to_int64.hpp"
#include "../coding_params.hpp"
#include "../../coding/reader.hpp"
#include "../../coding/writer.hpp"
#include "../../testing/testing.hpp"
namespace
{
typedef m2::PointD... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/tuple.hpp>
#include <agency/detail/unit.hpp>
#include <agency/detail/type_traits.hpp>
#include <utility>
#include <type_traits>
namespace agency
{
namespace detail
{
template<class Factory>
using result_of_factory_t = result_of_... |
<commit_before><commit_msg>Update Question 11<commit_after><|endoftext|> |
<commit_before>#include <vector>
using re2jit::debug;
static inline void *_compile(re2::Prog *prog)
{
debug::write("re2jit::it: vm mode\n");
return prog;
}
static inline void _destroy(void *)
{
}
static inline rejit_entry_t _entry(void *prog)
{
// When in VM mode, entry points are
return (rejit_e... |
<commit_before>#include "ghost/crs_kacz.h"
#include "ghost/crs.h"
#include "ghost/complex.h"
#include "ghost/locality.h"
#include <complex>
template<typename m_t, typename v_t, bool forward>
static ghost_error_t crs_kacz(ghost_sparsemat_t *mat, ghost_densemat_t *x, ghost_densemat_t *b, v_t *omega)
{
if (!mat->colo... |
<commit_before>/*
===============================================================================
FILE: crscheck.hpp
CONTENTS:
Functions to validate whether the GEOTIFF tags specify a valid geo-coding
and (someday) whether they are in agreement to the OGC WKT string.
PROGRAMMERS:
martin.is... |
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "Benchmark.h"
#include "ContextSearchBm.h"
#include "DispatchQueueBm.h"
#include "PrintableDuration.h"
#include "PriorityBoost.h"
#include <map>
#include <iomanip>
#include <iostream>
#include <string>
Benchma... |
<commit_before>// Copyright 2017 The NXT Authors
//
// 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>// Copyright 2017 The NXT Authors
//
// 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>/* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include <max_clique/dbmcsa_max_clique.hh>
#include <max_clique/colourise.hh>
#include <max_clique/print_incumbent.hh>
#include <graph/degree_sort.hh>
#include <graph/min_width_sort.hh>
#include <threads/atomic_incumbent.hh>
#include <algorithm>
#include... |
<commit_before>#ifndef MJOLNIR_CORE_ENERGY_OBSERVER_HPP
#define MJOLNIR_CORE_ENERGY_OBSERVER_HPP
#include <mjolnir/util/is_finite.hpp>
#include <mjolnir/core/ObserverBase.hpp>
#include <mjolnir/core/Unit.hpp>
#include <iostream>
#include <fstream>
#include <iomanip>
namespace mjolnir
{
template<typename traitsT>
clas... |
<commit_before>//=======================================================================
// Copyright (c) 2013-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>/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.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
* permission notice appear ... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>#include "topic.h"
#include "consumer.h"
using namespace std;
Consumer::Consumer(const std::string& root, const std::string& topic, const std::string& name, TopicOpt* opt) : _topic(EnvManager::getEnv(root)->getTopic(topic)), _name(name), _current(-1), _lastOffset(0), _env(nullptr), _db(0), _rtxn(nullpt... |
<commit_before>/*
*/
#include "control.h"
#include "lineFollowing/lineFollowing.h"
#include "objectFollowing/objectFollowing.h"
#include "manual/manual.h"
/*
*/
Control::Control() {
//Initializing Message
printf("Connecting to the drone\n");
printf("If there is no version number response in the next 10 seconds,... |
<commit_before>// Copyright (c) 2009-2012 The Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <vector>
#include <string>
#include "crypter.h"
#in... |
<commit_before>#include "PDBHelper.h"
#include "../Misc/Trace.hpp"
#include <cstdint>
#include <sstream>
#define CHECK_SUCCESS(e)\
{ \
HRESULT hresult = (e); \
if(FAILED(hresult)) \
{ \
BLACKBONE_TRACE( "PDB: %s: (%s) failed with HRESULT 0x%08x", __FUNCTION__, #e , hresult ); \
return hres... |
<commit_before>#include "PDBHelper.h"
#include "../Misc/Trace.hpp"
#include <cstdint>
#include <sstream>
#define CHECK_SUCCESS(e)\
{ \
HRESULT hresult = (e); \
if(FAILED(hresult)) \
{ \
BLACKBONE_TRACE( "PDB: %s: (%s) failed with HRESULT 0x%08x", __FUNCTION__, #e , hresult ); \
return hres... |
<commit_before>#include "df_font.h"
#include "df_bitmap.h"
#include "df_common.h"
#if _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include "df_bmp.h"
#endif
#include <limits.h>
#include <memory.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
// *****************... |
<commit_before><commit_msg>gcc fix<commit_after><|endoftext|> |
<commit_before><commit_msg>Skip file check for long file names.<commit_after><|endoftext|> |
<commit_before>//
// SpriteComponent.cpp
// REngine3
//
// Created by reworks on 10/08/2016.
// Copyright (c) 2016 reworks. All rights reserved.
//
#include <SFML/Graphics/RenderStates.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include "re/debug/imgui/imgui.h"
#include "re/services/vfs/VFS.hpp"
#include "re/... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>/*
* Copyright (c) 2013 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include <iostream>
#include <string>
#include "document.h"
Document::Document()
{
firstNode = new RenderNode;
firstNode = NULL;
}
Document::~Document()
{
delete firstNode;
}
RenderNode* Document::getFirstNode()
{
return firstNode;
}
void Document::constructTree(RenderNode *childNode,... |
<commit_before>/***************************************************************************
* Copyright (c) 2013 Jürgen Riegel (FreeCAD@juergen-riegel.net) *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include <rai/qt/qt.hpp>
#include <rai/node/working.hpp>
#include <rai/icon.hpp>
#include <rai/node/rpc.hpp>
#include <boost/make_shared.hpp>
#include <boost/program_options.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
class qt_wallet_config
{
public:
... |
<commit_before>/*
* Copyright deipi.com LLC and contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the... |
<commit_before>#include <algorithm>
#include "cons.hh"
#include "cons_util.hh"
#include "equality.hh"
#include "rational.hh"
#include "zs_error.hh"
using namespace std;
bool eq_internal(Lisp_ptr a, Lisp_ptr b){
if(a.tag() != b.tag()) return false;
switch(a.tag()){
case Ptr_tag::undefined:
return true;
c... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "core/CompileConfig.h"
#if OUZEL_PLATFORM_ANDROID && OUZEL_SUPPORTS_OPENGL
#include "RenderDeviceOGLAndroid.hpp"
#include "graphics/opengl/ResourceOGL.hpp"
#include "core/android/WindowAndroid.hpp"
#include "core... |
<commit_before>#include "factory.hpp"
#include "Decerealiser.hpp"
#include <iostream>
namespace {
template<typename T, typename... A>
std::unique_ptr<T> make_unique(A... args) {
return std::unique_ptr<T>(new T(args...));
}
} //anonymous namespace
std::unique_ptr<MqttMessage> MqttFactory::create(std::vector<ubyt... |
<commit_before>/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... |
<commit_before>#include <ctime>
#include <cctype>
#include "core/RoleFactory.h"
#include "config/constraints.h"
#include "EventLogger.h"
#include "util/EventSender.h"
#include "msgpack_decode.h"
static RoleConfigGroup el_config("eventlogger");
static ConfigVariable<std::string> bind_addr("bind", "0.0.0.0:7197", el_c... |
<commit_before>#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/JointState.h>
#include <geometry_msgs/PoseArray.h>
#include <visualization_msgs/Marker.h>
#include <visualization_msgs/MarkerArray.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib/server/simple_action_server.h>... |
<commit_before>#include "exportcorrelationmatrix.h"
#include "datafactory.h"
EAbstractAnalytic::ArgumentType ExportCorrelationMatrix::getArgumentData(int argument)
{
// use type declaration
using Type = EAbstractAnalytic::ArgumentType;
// figure out which argument is being queried and return its type
sw... |
<commit_before>/*
* Copyright (C) 2015 deipi.com LLC and contributors. All rights reserved.
*
* 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 limit... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*
OpenDeck MIDI platform firmware
Copyright (C) 2015-2018 Igor Petrovic
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... |
<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>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include "global_timestamp_reader.h"
#include <chrono>
namespace librealsense
{
CLinearCoefficients::CLinearCoefficients(unsigned int buffer_size) :
_base_sample(0, 0),
... |
<commit_before>#/*##########################################################################
#
# The fisx library for X-Ray Fluorescence
#
# Copyright (c) 2014-2016 European Synchrotron Radiation Facility
#
# This file is part of the fisx X-ray developed by V.A. Sole
#
# Permission is hereby granted, free of charge, to... |
<commit_before>/*
gpe_scene_tilemap_class.cpp
This file is part of:
GAME PENCIL ENGINE
https://create.pawbyte.com
Copyright (c) 2014-2020 Nathan Hurde, Chase Lee.
Copyright (c) 2014-2020 PawByte LLC.
Copyright (c) 2014-2020 Game Pencil Engine contributors ( Contributors Page )
Permission is hereby granted, ... |
<commit_before>#include "./object_manager.h"
#include <QLoggingCategory>
#include <vector>
#include <map>
#include <algorithm>
#include "./gl.h"
#include "./buffer_manager.h"
#include "./texture_manager.h"
#include "./shader_manager.h"
namespace Graphics
{
QLoggingCategory omChan("Graphics.ObjectManager");
ObjectMan... |
<commit_before>#include "mapadapter.h"
#include "ui_mapadapter.h"
#include <QPainter>
#include <QMouseEvent>
#include <QWheelEvent>
#include <common/utils/AngleUtils.h>
using namespace pcl;
MapAdapter::MapAdapter(MapBuilder *mapper, BasicPositionTracker *posTracker, QWidget *parent) :
QWidget(parent),
ui(new ... |
<commit_before>#include "gameboy.hpp"
GameBoy::GameBoy () {}
GameBoy::~GameBoy () {}
void GameBoy::Initialize () {
cpu.Initialize(&mmu);
mmu.Initialize();
ppu.Initialize(&cpu, &mmu);
timerCounter = 1024;
}
void GameBoy::LoadBios (Rom bios) {
mmu.WriteBios(bios.GetData());
}
void GameBoy::LoadRom (Rom rom) {
... |
<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>/*
* Copyright (C) 2009 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>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of cha... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <array>
#include <memory>
#include <string>
#include <cereal/archives/json.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/array.hpp>
#include <cereal/types/memory.hpp>
#include "ceres/ceres.h"
#include "data_set.h"
#incl... |
<commit_before>// Copyright (C) 2015 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "CompileConfig.h"
#ifdef OUZEL_PLATFORM_OSX
#include <sys/time.h>
#endif
#if defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS)
#include <sys/syslog.h>
#endif
#ifdef OUZEL_PLATFORM_WINDOWS
#include <win... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <cstdarg>
#include <random>
#include "CompileConfig.h"
#if defined(OUZEL_PLATFORM_OSX) || defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS)
#include <sys/time.h>
#endif
#if defined(OUZEL_PLATFORM_IOS) |... |
<commit_before>#include <stdio.h>
#include <set>
#include <algorithm>
#ifdef USING_QT_UI
#include <QFileInfo>
#include <QDir>
#endif
#ifdef ANDROID
#include <zip.h>
#endif
#include "base/basictypes.h"
#include "base/logging.h"
#include "file/zip_read.h"
#ifdef ANDROID
uint8_t *ReadFromZip(zip *archive, const char* ... |
<commit_before>#include <thread>
#include <renderer.hpp>
#include <scene.hpp>
#include <fensterchen.hpp>
int main(int argc, char* argv[])
{
std::string const filename = "../scene.sdf";
SDFLoader loader{};
Scene scene = loader.loadScene(filename);
Renderer app{scene};
unsigned const width = std::get<0>(scene... |
<commit_before>// Geant4 Libraries
//
#include "G4Track.hh"
#include "G4Step.hh"
// Local Libraries
//
#include "histosRun.hh"
// Root Libraries
//
#include <TTree.h>
#include <TFile.h>
#include <TH1F.h>
#include <TH1I.h>
#include <TH2D.h>
histosRun::histosRun()
{
G4cout << "...histosRun..." << G4endl;
hist... |
<commit_before>/*======================================================================
This file is part of the elastix software.
Copyright (c) University Medical Center Utrecht. All rights reserved.
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
details.
This software is distri... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / __... |
<commit_before>/*!
\copyright (c) RDO-Team, 2009-2012
\file main.cpp
\author (rdo@rk9.bmstu.ru)
\date 01.05.2012
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
// -------------------------------------------------------------... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include "kernel/kernel_exception.h"
namespace lean {
format kernel_exception::pp(formatter const &, options const &) cons... |
<commit_before>#include "Loop.h"
Loop* Loop::loopInstance = nullptr;
int CallbackData::idCount = 0;
void Loop::process()
{
for(auto timeout : timeouts)
{
if( millis() - timeout->started() > timeout->delay() )
{
// call the timeout
timeout->callback()();
timeout->reset();
}
}
}
int Loop::addTimeout(... |
<commit_before>/* libwpd2
* Copyright (C) 2002 William Lachance (wlach@interlog.com)
* Copyright (C) 2002 Marc Maurer (j.m.maurer@student.utwente.nl)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free ... |
<commit_before><commit_msg>[imageIO] Formatting `transposeImage`<commit_after><|endoftext|> |
<commit_before>#include "primops.hh"
#include "eval-inline.hh"
#include "cpptoml/cpptoml.h"
namespace nix {
static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Value & v)
{
using namespace cpptoml;
auto toml = state.forceStringNoCtx(*args[0], pos);
std::istringstream tomlStrea... |
<commit_before>/*************************************************************************
*
* $RCSfile: query.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2001-11-01 16:17:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>// Copyright (c) 2007, 2008 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, m... |
<commit_before>#include "depthai/pipeline/node/StereoDepth.hpp"
// standard
#include <fstream>
#include "spdlog/spdlog.h"
namespace dai {
namespace node {
StereoDepth::StereoDepth(const std::shared_ptr<PipelineImpl>& par, int64_t nodeId) : StereoDepth(par, nodeId, std::make_unique<StereoDepth::Properties>()) {}
Ste... |
<commit_before>#include <assert.h>
#include <iostream>
#include <map>
#include <memory>
#include <vector>
#include "common/simhubdeviceplugin.h"
#include "main.h"
// -- public C FFI
extern "C" {
int simplug_init(SPHANDLE *plugin_instance, LoggingFunctionCB logger)
{
*plugin_instance = new PokeyDevicePluginState... |
<commit_before>//(c) 2016 by Authors
//This file is a part of ABruijn program.
//Released under the BSD license (see LICENSE file)
#include "read_aligner.h"
#include "../common/parallel.h"
#include <cmath>
#include <iomanip>
namespace
{
struct Chain
{
Chain(): score(0) {}
std::vector<const EdgeAlignment*> aln;
... |
<commit_before>/*
Copyright (c) 2012, William Magato
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of condi... |
<commit_before><commit_msg>Minor corrections<commit_after><|endoftext|> |
<commit_before><commit_msg>Modified tempNuptake to be consistent with tem-dvm<commit_after><|endoftext|> |
<commit_before>#ifdef _WIN32
#include "net_rubygrapefruit_platform_internal_jni_WindowsFileEventFunctions.h"
#include "generic.h"
#include "win.h"
#include <process.h>
#include <list>
#include <vector>
#include <string>
using namespace std;
// TODO Find the right size for this
#define EVENT_BUFFER_SIZE (16*1024)
#d... |
<commit_before>// -*- C++ -*-
/*
* Copyright Procedural Insight 2006
* Author Nicholas Yue
*/
#include <stdexcept>
template <typename T> TParameterList<T>::TParameterList(DeclarationManager& dm)
:_dm(dm)
// ,_tokens(0)
// ,_parms(0)
,_size... |
<commit_before>#ifndef EBITEN_GRAPHICS_DRAWING_REGION_HPP
#define EBITEN_GRAPHICS_DRAWING_REGION_HPP
#include "ebiten/util/noncopyable.hpp"
#include <algorithm>
namespace ebiten {
namespace graphics {
class drawing_region : private ebiten::util::noncopyable {
private:
// TODO: implements by std::unique_ptr<std::a... |
<commit_before>// Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone/wayland/inputs/cursor.h"
#include "ozone/wayland/surface.h"
namespace ozonewayland {
class WaylandCursorData {
public:
sta... |
<commit_before>/******************************************************************************
* @file prngcl_ranecu.cl
* @author Vadim Demchik <vadimdi@yahoo.com>
* @version 1.0
*
* @brief [PRNGCL library]
* contains implementation, description and initialization procedures of
* RA... |
<commit_before>/*
This file is part of the MinSG library.
Copyright (C) 2007-2012 Benjamin Eikel <benjamin@eikel.org>
Copyright (C) 2007-2012 Claudius Jähn <claudius@uni-paderborn.de>
Copyright (C) 2007-2012 Ralf Petring <ralf@petring.net>
This library is subject to the terms of the Mozilla Public License, v. 2.... |
<commit_before>#ifndef JARNGREIPR_CLEMENTI_GO
#define JARNGREIPR_CLEMENTI_GO
#include "Model.hpp"
#include "CarbonAlpha.hpp"
#include <vector>
namespace jarngreipr
{
template<typename traitsT>
class ClementiGo : public Model<traitsT>
{
public:
typedef Model<traitsT> base_type;
typedef typename base_type::r... |
<commit_before><commit_msg>CFishCloud: Initialize x230_whichModel on construction<commit_after><|endoftext|> |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>#include "mbed_events.h"
#include "mbed.h"
#include "rtos.h"
#include "greentea-client/test_env.h"
#include "unity.h"
#include "utest.h"
#include <cstdlib>
#include <cmath>
using namespace utest::v1;
// Test delay
#ifndef TEST_EVENTS_TIMING_TIME
#define TEST_EVENTS_TIMING_TIME 20000
#endif
#ifndef TE... |
<commit_before>/*************************************************************************
*
* $RCSfile: editsrc.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: sab $ $Date: 2002-03-21 06:32:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_dccal.H $ ... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.