text stringlengths 54 60.6k |
|---|
<commit_before>/* Copyright (c) 2017, CNRS-LAAS
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 conditions and t... |
<commit_before>//===--- XPCService.cpp ---------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>// Copyright (c) 2011 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 "courgette/base_test_unittest.h"
#include "courgette/courgette.h"
#include "courgette/streams.h"
class EnsembleTest : public ... |
<commit_before>//https://code.google.com/p/nya-engine/
#include "fbo.h"
#include "platform_specific_gl.h"
namespace nya_render
{
#ifdef NO_EXTENSIONS_INIT
#define fbo_glGenFramebuffers glGenFramebuffers
#define fbo_glBindFramebuffer glBindFramebuffer
#define fbo_glDeleteFramebuffers glDeleteFrame... |
<commit_before>/* This file is part of Ingen.
* Copyright (C) 2008-2009 Dave Robillard <http://drobilla.net>
*
* Ingen 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>#pragma once
#include <cstdint>
#include <cassert>
#include <vector>
#include <unordered_map>
#include <string>
#include <stdexcept>
#include <functional>
#include "utils/uncopyable.hpp"
#include "utils/tout.hpp"
namespace fr {
struct Config;
struct Camera;
class Image;
class LightList;
struct Shader... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLChangeInfoContext.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dvo $ $Date: 2001-01-24 16:49:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the fo... |
<commit_before><commit_msg>Protect X11 with ifdef USE_X11 in global commands test<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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 the License at
*
* http://www.apache.org/lice... |
<commit_before>//===-- UnixSignals.cpp -----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<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>#ifndef slic3r_MeshUtils_hpp_
#define slic3r_MeshUtils_hpp_
#include "libslic3r/Point.hpp"
#include "libslic3r/Geometry.hpp"
#include <cfloat>
namespace Slic3r {
class TriangleMesh;
class TriangleMeshSlicer;
namespace GUI {
class Camera;
class ClippingPlane
{
double m_data[4];
public:
... |
<commit_before>#include "BluPrivatePCH.h"
UBluEye::UBluEye(const class FObjectInitializer& PCIP)
: Super(PCIP)
{
Width = 800;
Height = 600;
bIsTransparent = false;
}
void UBluEye::init()
{
/**
* We don't want this running in editor unless it's PIE
* If we don't check this, CEF will spawn infinit process... |
<commit_before>#include "fontContext.h"
#include "platform.h"
#define SDF_IMPLEMENTATION
#include "sdf.h"
#include <memory>
#define DEFAULT "fonts/NotoSans-Regular.ttf"
#define FONT_AR "fonts/NotoNaskh-Regular.ttf"
#define FONT_HE "fonts/NotoSansHebrew-Regular.ttf"
#define FONT_JA "fonts/DroidSansJapanese.ttf"
#def... |
<commit_before><commit_msg>Verbose view now shows track-level data<commit_after><|endoftext|> |
<commit_before><commit_msg>added missing function implementation<commit_after><|endoftext|> |
<commit_before>// secondary.C --- Secondary domain for solute transport.
//
// Copyright 2008 Per Abrahamsen, Mikkel Mollerup and KU.
//
// This file is part of Daisy.
//
// Daisy is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free... |
<commit_before>#include "eigen_solver.hpp"
#include <iomanip>
#include "error.hpp"
#include "files.hpp"
using std::endl;
using std::cout;
using std::cin;
const static int out_w = 14;
namespace mocc{
EigenSolver::EigenSolver( const pugi::xml_node &input,
const CoreMesh &mesh ):
fss_( input, ... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015-2016 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, t... |
<commit_before>// $Id: RDFSection.C,v 1.5 2000/10/18 12:53:17 oliver Exp $
#include <BALL/STRUCTURE/RDFSection.h>
#include <BALL/FORMAT/parameters.h>
using namespace std;
namespace BALL
{
RDFSection::RDFSection()
: ParameterSection(),
rdf_()
{
}
RDFSection::RDFSection(const RDFSection& rdf_section)
: ... |
<commit_before>/**
* @file ProcedualTerrain.cpp
*/
#include "ProcedualTerrain.h"
#include "Texture.h"
#include "d3dx12.h"
#include "PSO.h"
#include "Texture.h"
#include "Graphics.h"
#include "GamePad.h"
#include <DirectXMath.h>
using Microsoft::WRL::ComPtr;
using namespace DirectX;
/**
* n``p_f[^^.
*... |
<commit_before>#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/bias_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void BiasLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
if (bottom.size() =... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: textsearch.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: obo $ $Date: 2006-09-17 01:26:10 $
*
* The Contents of this file are m... |
<commit_before>//===--- StatisticsRequired.cpp - "Statistics To Gather" Related Typing ---===//
//
// This file is part of the Election Method Mathematics
// Application (EMMA) project.
//
// Copyright (c) 2015 - 2016 Frank D. Martinez and the EMMA project authors
// Licensed under the GNU Affero General Public License... |
<commit_before>// Copyright (c) 2017-2018 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "cbtx.h"
#include "deterministicmns.h"
#include "llmq/quorums.h"
#include "llmq/quorums_blockprocessor.h... |
<commit_before>#pragma once
#include "../IState.hpp"
#include <SFML/Graphics/Font.hpp>
#include <list>
class LoadingScreen : public IState
{
public:
LoadingScreen();
~LoadingScreen();
bool load();
void unload();
inline std::string getLoadState() const { return ""; }
inline bool event(const s... |
<commit_before>// 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 writing, software
// ... |
<commit_before>#include "../../../include/cutehmi/internal/singleton.hpp"
#include <QList>
namespace {
class SingletonDestroyWrapper
{
public:
SingletonDestroyWrapper(cutehmi::internal::singletonDestroyCallback callback):
m_callback(callback)
{
}
[[gnu::unused]]
bool operator ==(const Singlet... |
<commit_before>/*
* Copyright 2011 Esrille Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>// Filename: luiBaseElement_ext.cxx
// Created by: tobspr (18Sep14)
//
#include "luiBaseElement_ext.h"
#include "extension.h"
#ifdef HAVE_PYTHON
int Extension<LUIBaseElement>::__setattr__(PyObject *self, PyObject *name, PyObject *value) {
cout << "__setattr__ (LUIBaseElement) called for '" << name ... |
<commit_before>/*
* TTBlue Audio Signal Class
* Copyright © 2008, Timothy Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "TTAudioSignal.h"
#define thisTTClass TTAudioSignal
/********************************************************... |
<commit_before>/*
* Jamoma Dataspace Library
* Copyright © 2007
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "TTDataspaceConverter.h"
#define thisTTClass TTDataspaceConverter
#define thisTTClassName "dataspace"
#define this... |
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<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>/**
** \file object/object-class.cc
** \brief Creation of the URBI object object.
*/
//#define ENABLE_DEBUG_TRACES
#include <boost/bind.hpp>
#include <libport/compiler.hh>
#include <libport/containers.hh>
#include <libport/escape.hh>
#include <libport/foreach.hh>
#include <libport/tokenizer.hh>
#i... |
<commit_before>// MathLib.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <unittest.h>
#include <neuralnet.h>
int _tmain(int /*argc*/, _TCHAR* /*argv[]*/)
{
//test change
run_tests();
return 0;
}
<commit_msg>Small cleanup<commit_after>// MathLib.cpp : Defines the entry p... |
<commit_before>#include "Engine.h"
#include "Game.h"
#include "ObjectDummy.h"
#include "BodyRigid.h"
#include "BodyDummy.h"
#include "Physics.h"
#include "ShapeCapsule.h"
#include "ActorBase.h"
#include "Visualizer.h"
#include "sys/SysControl.h"
using namespace MathLib;
#ifdef MEMORY_INFO
#define new new(__FILE__, _... |
<commit_before>// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>//
// Created by michael on 16.02.16.
//
#include <Story/SimpleStoryTemplate.h>
using namespace weave;
using namespace std;
StoryTemplateResult SimpleStoryTemplate::CreateStory(const EntityMap &requiredEntities, const WeaverGraph &,
const WorldModel... |
<commit_before>#ifndef GUARD_session_hpp
#define GUARD_session_hpp
#include <sqlite3.h>
#include <iostream>
namespace phatbooks
{
class Session
{
public:
/**
* Starts a Phatbooks user session.
* Initializes SQLite3 (but does not create database
* connection).
*/
Session();
/**
* Ends a Phatbooks user s... |
<commit_before>#include "raptor_api.h"
#include "type/pb_converter.h"
#include "boost/date_time/posix_time/posix_time.hpp"
//#include "street_network/street_network_api.h"
namespace navitia { namespace routing { namespace raptor {
std::string iso_string(const nt::Data & d, int date, int hour){
boost::posix_time::... |
<commit_before>//------------------------------------------------------------------------------
// SourceManager.cpp
// Source file management.
//
// File is under the MIT license; see LICENSE for details.
//------------------------------------------------------------------------------
#include "SourceManager.h"
#incl... |
<commit_before>//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.... |
<commit_before>#include <Internal/CharacterControlManagerImpl.hpp>
#include <Internal/PhysicsModuleImplementation.hpp>
#include <cstdint>
namespace DoremiEngine
{
namespace Physics
{
CharacterControlManagerImpl::CharacterControlManagerImpl(InternalPhysicsUtils& p_utils) : m_utils(p_utils)
{
... |
<commit_before>/*
* coords_view.cpp
* PHD Guiding
*
* Created by Oleg Kutkov
* Copyright (c) 2017 Crimean Astrophysical observatory
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modifi... |
<commit_before>#ifdef WIN32
#include <windows.h>
#define CURL_STATICLIB // this has to match the way the curl library was built.
#else
#include <stdlib.h>
#endif
#include <curl/curl.h>
#include <string.h>
#include "safe_fopen.h"
struct Downloaded_Data
{
char* text;
int size;
};
static size_t WriteCallback(c... |
<commit_before>// This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2012, 2017 Pierre MOULON.
// 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://moz... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../../Foundation/Characters/String_Constant.h"
#include "../../Foundation/Characters/ToString.h"
#include "../../Foundation/Execution/Exceptions.h"
#include "../../Foundation/IO/Networ... |
<commit_before>#include "gum/Statistics.h"
#include "gum/StatFPS.h"
#include "gum/StatTag.h"
#include "gum/GUM_GTxt.h"
#include "gum/SymbolPool.h"
#include "gum/Image.h"
#include <logger.h>
#include <glp_loop.h>
#include <ps_3d.h>
#include <sprite2/pre_defined.h>
#include S2_MAT_HEADER
#include <sprite2/StatDrawCall.h... |
<commit_before>#include <sstream>
#include <sys/time.h>
#include "marshal.h"
using namespace std;
namespace rpc {
#ifdef PKT_SAMPLING
int _pkt_sample_in[PKT_SAMPLE_SIZE];
int _pkt_sample_out[PKT_SAMPLE_SIZE];
void _pkt_sampling_report() {
static size_t ratelimit_counter = 0;
static int last_report_tm = 0;... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JPetParamBankTest
#include <boost/test/unit_test.hpp>
#define private public
#include "../../JPetParamBank/JPetParamBank.h"
#include <TFile.h>
BOOST_AUTO_TEST_SUITE(ParamBankTS)
BOOST_AUTO_TEST_CASE(DefaultConstructorTest)
{
JPetParamBank bank;
... |
<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 <ncurses.h>
#include <csignal>
#include <cstdlib>
#include "signals.hh"
extern "C" {
sta... |
<commit_before>//=====================================================================//
/*! @file
@brief RX65N ダイレクト・デジタル・シンセサイザ @n
マイコン内臓12ビットD/A変換を使って、波形を生成するガジェット
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2019 Kunihito Hiramatsu @n
Released under the MIT license @n
https://githu... |
<commit_before>#include "RenderCameraSystem.hpp"
#include <Components/CameraComponent.hpp>
#include <Components/SpotLight.hh>
#include <Components/DirectionalLightComponent.hh>
#include <Components/Light.hh>
#include <Core/Engine.hh>
#include <Core/AScene.hh>
#include <glm/gtc/matrix_transform.hpp>
#include <BFC/BF... |
<commit_before>/*
* Copyright 2012 BrewPi/Elco Jacobs.
*
* This file is part of BrewPi.
*
* BrewPi 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 your option... |
<commit_before>#include "openmc/source.h"
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
#define HAS_DYNAMIC_LINKING
#endif
#include <algorithm> // for move
#ifdef HAS_DYNAMIC_LINKING
#include <dlfcn.h> // for dlopen, dlsym, dlclose, dlerror
#endif
#include <fmt/core.h>
#include "xtensor/xada... |
<commit_before><commit_msg>update uoj10680<commit_after><|endoftext|> |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_cme.... |
<commit_before>// Copyright (c) 2013, Maria Teresa Lazaro Grañon
// 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, ... |
<commit_before>/* rsspp - Copyright (C) 2008-2012 Andreas Krennmair <ak@newsbeuter.org>
* Licensed under the MIT/X Consortium License. See file LICENSE
* for more information.
*/
#include <config.h>
#include <rsspp.h>
#include <rsspp_internal.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <curl/cur... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "linenoise/linenoise.h"
#include "raptor.h"
#include "routing/raptor_api.h"
#include "type/data.h"
#include "utils/timer.h"
#include "type/response.pb.h"
#include "routing_cli_utils.h"
#include "ptreferential/ptreferential_api.h"
#includ... |
<commit_before><commit_msg>coverity#1130457 Uncaught exception<commit_after><|endoftext|> |
<commit_before>// [WriteFile Name=ExportTiles, Category=Layers]
// [Legal]
// Copyright 2016 Esri.
// 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-... |
<commit_before>#ifndef DUNE_STUFF_FUNCTION_INTERFACE_HH
#define DUNE_STUFF_FUNCTION_INTERFACE_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
#include <config.h>
#endif // ifdef HAVE_CMAKE_CONFIG
#include <vector>
#include <dune/common/shared_ptr.hh>
#include <dune/common/fve... |
<commit_before>/* Copyright 2017 Christian */
#include <sstream>
#include "ros/ros.h"
#include "std_msgs/String.h"
/**
* This tutorial demonstrates simple sending of messages over the ROS system.
*/
int main(int argc, char **argv) {
/**
* The ros::init() function needs to see argc and argv so that it can perfo... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Kirsten Weber
#ifndef DUNE_STUFF_FUNCTIONS_CONSTANT_HH
#defin... |
<commit_before>#ifndef DUNE_STUFF_LA_CONTAINER_EIGEN_HH
#define DUNE_STUFF_LA_CONTAINER_EIGEN_HH
#ifdef HAVE_EIGEN
#include <Eigen/Core>
#include <Eigen/Sparse>
#include "pattern.hh"
namespace Dune {
namespace Stuff {
namespace LA {
namespace Container {
namespace Eigen {
template< class ElementImp = double >
clas... |
<commit_before>/*
* VapourSynth D2V Plugin
*
* Copyright (c) 2012 Derek Buitenhuis
*
* This file is part of d2vsource.
*
* d2vsource is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ve... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "test_common.hh"
#include <dune/stuff/common/string.hh>
#inclu... |
<commit_before>// AddTaskChargedJetsHadronCF.C
AliAnalysisTaskChargedJetsHadronCF* AddTaskChargedJetsHadronCF(
UInt_t physSel = 0,
const char *trackArray = "tracks",
const char *jetArray = "jets",
const char *rhoObject = "Rho",
Double_t jetRadius = 0.2,
... |
<commit_before>#include <iomanip>
#include <cassert>
#include "SDShared.hpp"
#include "exception/exception.hpp"
SDShared::SDShared(const std::vector< std::pair<int, int> >& coords,
const CoordConverter& coordConverter,
unsigned int index):
std::vector< std::pair<int ,int> >(coords),
_coordConve... |
<commit_before>#if !defined(__CINT__) || defined(__MAKECINT__)
#include <Rtypes.h>
#include <TString.h>
#include "AliAnalysisTaskHypertriton3.h"
#include "AliAnalysisManager.h"
#include "AliAnalysisDataContainer.h"
#include "AliMCEventHandler.h"
#include "AliPID.h"
#endif
AliAnalysisTaskHypertriton3 *AddTaskHypertrito... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: hldoctp.cxx,v $
* $Revision: 1.2... |
<commit_before>#include <algorithm>
#include "ParamRenderArea.h"
#include <QPainter>
#include <QKeyEvent>
#include <iostream>
ParamRenderArea::ParamRenderArea(const QPainterPath &path, QWidget *parent)
: QWidget(parent), path(path) {
penWidth = 0.1f;
rotationAngle = 0;
offset.setX(50);
offset... |
<commit_before>/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* 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/.
*/
#pragma once
#ifdef OX_USE_STDLIB
#include <cst... |
<commit_before>#include "ghost/timing.h"
#include "ghost/util.h"
#include <map>
#include <vector>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <numeric>
#include <algorithm>
using namespace std;
/**
* @brief Region timing accumulator
*/
typedef struct
{
/**
* @brief The runtimes of t... |
<commit_before>#include "musicvideotablewidget.h"
#include "musicdatadownloadthread.h"
#include "musicmessagebox.h"
#include <time.h>
MusicVideoTableWidget::MusicVideoTableWidget(QWidget *parent)
: MusicQueryTableWidget(parent)
{
setColumnCount(8);
QHeaderView *headerview = horizontalHeader();
headerv... |
<commit_before>// BotRobot, ATaco
// PPCG: http://codegolf.stackexchange.com/a/104910/11933
// BotRobot
// ONE HUNDRED THOUSAND GENERATIONS TO MAKE THE ULTIMATE LIFEFORM!
#ifndef __BOT_ROBOT_PLAYER_HPP__
#define __BOT_ROBOT_PLAYER_HPP__
#include "Player.hpp"
class BotRobotPlayer final : public Player
{
public:
Bot... |
<commit_before>#ifndef ALEPH_PERSISTENCE_DIAGRAM_HH__
#define ALEPH_PERSISTENCE_DIAGRAM_HH__
#include <algorithm>
#include <iosfwd>
#include <limits>
#include <utility>
#include <vector>
namespace aleph
{
template <class T> class PersistenceDiagram
{
public:
// Exporting the data type of the underlying persistenc... |
<commit_before>#include "visualization.h"
#include <opencv2/highgui.hpp>
using namespace std;
namespace mo {
//-----------------------------------------------------------------
std::ostream& operator<<(std::ostream& os, const Color& col){
return os << "{r,g,b}={" << static_cast<unsigned>(col.red) << ',' <<
... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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>/*
* reactor.cc
*
* Created on: Aug 1, 2014
* Author: avi
*/
#include "reactor.hh"
#include <cassert>
#include <unistd.h>
#include <fcntl.h>
#include <sys/eventfd.h>
timespec to_timespec(clock_type::time_point t) {
using ns = std::chrono::nanoseconds;
auto n = std::chrono::duration_c... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://open... |
<commit_before>#include "vtkVuzixARScene.h"
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkVuzixARScene);
vtkVuzixARScene::vtkVuzixARScene(){
//allocates the piece of the compilation
leftEyeRenderer = vtkRenderer::New();
rightEyeRenderer = vtkRenderer::New();
leftEyeCamera = vtkVuzixARCamera::New();
leftE... |
<commit_before>/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageDataStreamer.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>#include "boost/python.hpp"
#include "boost/python/extract.hpp"
#include "boost/python/numeric.hpp"
// See http://docs.scipy.org/doc/numpy-dev/reference/c-api.deprecations.html
//#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
// See http://docs.scipy.org/doc/numpy/reference/c-api.array.html#miscella... |
<commit_before>#include <sstream>
#include "PyNumber.hh"
using namespace py;
using std::unique_ptr;
//------------------------------------------------------------------------------
namespace {
ref<Unicode> tp_repr(PyNumber* self)
{
auto const& args = self->fmt_->get_args();
std::stringstream ss;
ss << "Strin... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: python/pybind11_Image.hpp
*
* Copyright 2017 Patrik Huber
*
* 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 ... |
<commit_before>#ifndef _EIGEN3_HDF5_HPP
#define _EIGEN3_HDF5_HPP
#include <array>
#include <cassert>
#include <complex>
#include <cstddef>
#include <stdexcept>
#include <string>
#include <vector>
//#include <hdf5.h>
#include <H5Cpp.h>
#include <Eigen/Dense>
namespace EigenHDF5
{
template <typename T>
struct Datatyp... |
<commit_before>#include "rapid_display/display.h"
#include "actionlib/client/simple_action_client.h"
#include "blinky/FaceAction.h"
#include "ros/ros.h"
#include "rapid_ros/action_client.h"
using ros::Duration;
namespace rapid {
namespace display {
Blinky::Blinky(rapid_ros::ActionClientInterface<blinky::FaceAction>... |
<commit_before>/****************************/
/* readschematicnetlist.cpp */
/****************************/
/* Read a nelist type Eeschema or OrcadPCB2 and build the component list
* Manages the lines like :
* ( XXXXXX VALEUR|(pin1,pin2,...=newalim) ID VALEUR
*/
#include "fctsys.h"
#include "wxstruct.h"
#include "... |
<commit_before>/*
* @Copyright: Copyright[2015]<Alejandro Bordallo>
* @Date: 2015-05-17
* @Email: alex.bordallo@ed.ac.uk
* @Desc: Joystick remote control node
*/
#include "joy_remote.h"
JoyRemote::JoyRemote(ros::NodeHandle* nh) {
nh_ = nh;
joy_sub_ = nh_->subscribe("joy", 1000, &JoyRemote::joyCallba... |
<commit_before>/**
* @file CommonAPIService.hpp
* @author Denis Kotov
* @date 3 Apr 2017
* @brief Contains CommonAPIService wrapper class for creating service
* @copyright MIT License. Open source: https://github.com/redradist/Inter-Component-Communication.git
*/
#ifndef ICC_COMMONAPISERVICE_HPP
#define ICC_COMM... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/******************************************************************************
* Copyright (c) 2015 Jamis Hoo
* Distributed under the MIT license
* (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
*
* Project:
* Filename: user_fs.cc
* Version: 1.0
* Autho... |
<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 distribu... |
<commit_before>#ifndef EBITEN_GRAPHICS_TEXTURE_HPP
#define EBITEN_GRAPHICS_TEXTURE_HPP
#include "ebiten/platform.hpp"
#ifdef EBITEN_MACOSX
#include "ebiten/graphics/detail/opengl/texture_id.hpp"
#endif
namespace ebiten {
namespace graphics {
typedef detail::texture_id texture_id;
class texture {
private:
texture... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.