text stringlengths 54 60.6k |
|---|
<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>////////////////////////////////////////////////////////////////////////////////
// Name: process.cpp
// Purpose: Implementation of class wxExProcess
// Author: Anton van Wezenbeek
// Copyright: (c) 2016 Anton van Wezenbeek
///////////////////////////////////////////////////////////////////////... |
<commit_before>#include "time.hpp"
#include <inttypes.h>
#ifndef _MSC_VER
#include <sys/time.h>
#endif
#ifdef __MACH__
#include <mach/mach_time.h>
#include "thread_local.hpp"
#include "utils.hpp"
#endif
#include "config/args.hpp"
#include "errors.hpp"
#ifdef _MSC_VER
microtime_t current_microtime() {
FILETIME... |
<commit_before>#include "catch_ext.hpp"
#include <mapnik/expression.hpp>
#include <mapnik/expression_evaluator.hpp>
#include <mapnik/expression_string.hpp>
#include <mapnik/wkt/wkt_factory.hpp>
#include <mapnik/feature.hpp>
#include <mapnik/feature_factory.hpp>
#include <mapnik/unicode.hpp>
#include <functional>
#inc... |
<commit_before>#include <gtest/gtest.h>
#include <cstdlib>
#include <vector>
#include <iostream> // TODO: remove me
#include "../../cvmfs/upload_file_processing/chunk_detector.h"
#include "../../cvmfs/upload_file_processing/char_buffer.h"
class T_ChunkDetectors : public ::testing::Test {
protected:
void CreateBuf... |
<commit_before>/*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... |
<commit_before>#include <iostream>
#include <string>
using namespace std;
void userin(string &);
void print(const string);
void userin(string &s)
{
getline(cin,s);
return;
}
void print(const string s)
{
cout << "Your message is as follows:" << endl;
cout << s << endl;
}
int main()
{
string uin;
userin(uin);... |
<commit_before>#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <list>
#include <map>
#include <typeinfo>
#include <stdexcept>
#include <cstdlib>
#include <ctype.h>
#define PRINT_LINE (std::cout << "line: " << __LINE__ << std::endl)
enum TokenType{
TOKEN_BRACKET_OPEN,
TOKEN_BRAC... |
<commit_before>/*************************************************************************
*
* $RCSfile: sfxurl.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dv $ $Date: 2001-07-12 07:43:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>#include "matrix_pseudoinverse_test.hpp"
#include <vmmlib/matrix_pseudoinverse.hpp>
#include <sstream>
#include <stdint.h>
namespace vmml
{
bool
matrix_pseudoinverse_test::run()
{
bool ok = false;
compute_pseudoinverse< matrix< 6, 4, float > > compute_pinv;
matrix< 6, 4, float > input;... |
<commit_before>#include <chrono>
#include "depthai/depthai.hpp"
/////////////////////////
// TEST
// ImageManipNode test
////////////////////////
int main(){
using namespace std;
using namespace std::chrono;
using namespace std::chrono_literals;
// Create pipeline
dai::Pipeline p;
auto x... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// simple_optimizer.cpp
//
// Identification: /peloton/src/optimizer/simple_optimizer.cpp
//
// Copyright (c) 2016, Carnegie Mellon University Database Group
//
//===---------------... |
<commit_before>/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applic... |
<commit_before>#include "../../../SDP.hxx"
#include "../../../../Timers.hxx"
El::BigFloat dot(const Block_Vector &a, const Block_Vector &b);
void compute_objectives(const SDP &sdp, const Block_Vector &x,
const Block_Vector &y, El::BigFloat &primal_objective,
El::BigFloa... |
<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: dynamicregister.cxx,v $
* $Revis... |
<commit_before>/*
* This file is part ServerManager of package
*
* (c) Ondřej Záruba <zarubaondra@gmail.com>
*
* For the full copyright and license information, please view the license.md
* file that was distributed with this source code.
*/
#include <string>
#include <fstream>
#include <cstdlib>
#include <sstr... |
<commit_before>/************************************************
* 该例程讲解用C++11来实现一个ScopeGuard类
************************************************/
#include "ScopeGuard.hpp"
#include <iostream>
#include <functional>
int main()
{
std::function<void()> func = []
{
std::cout << "Cleanup from unnormal exit" ... |
<commit_before>/** @file main.cc
*
* Driver file for testing LCC
*
* @author Nishant Mehta (niche)
*/
// example for running program via fx-run on no.cc.gatech.edu:
// fx-run mnist_lcc /scratch/niche/fastlib-stl/build/bin/mnist_lcc --lambda=0.05, --data_dir=/scratch/niche/fastlib-stl/contrib/niche/discriminati... |
<commit_before>#include "Buffer.h"
#include "System/Common.h"
#include <stdarg.h>
#include <stdlib.h>
Buffer::Buffer()
{
Init();
}
Buffer::~Buffer()
{
if (buffer != array && !preallocated)
free(buffer);
}
void Buffer::SetPreallocated(char* buffer_, unsigned size_)
{
preallocated = true;
buffe... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2009 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*
* Request.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 Publi... |
<commit_before>
#include "lcio.h"
#include "IO/LCWriter.h"
#include "EVENT/LCIO.h"
#include "DATA/LCFloatVec.h"
#include "DATA/LCIntVec.h"
#include "IMPL/LCEventImpl.h"
#include "IMPL/LCRunHeaderImpl.h"
#include "IMPL/LCCollectionVec.h"
#include "IMPL/SimCalorimeterHitImpl.h"
#include "IMPL/SimTrackerHitImpl.h"
#in... |
<commit_before>#include <cppunit/XmlOutputterHook.h>
#if !defined(CPPUNIT_NO_TESTPLUGIN)
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/plugin/PlugInManager.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <cppunit/plugin/DynamicLibraryManager.h>
CPPUNIT_NS_BEGIN
PlugInManager::PlugInManag... |
<commit_before>//-----------------------------------------------------------------------------
//@file
// WeaveArray.cpp
//
//@author
// ab5tract
//
//@brief
// Implementation of the WeaveArray class.
//
//-----------------------------------------------------------------------------
//------------------... |
<commit_before>/*
* Mlock Allocator
* (C) 2012 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/locking_allocator.h>
#include <botan/internal/assert.h>
#include <algorithm>
#include <cstring>
#include <sys/mman.h>
#include <sys/resource.h>
namespace Botan {
namespace {
size_t mlock... |
<commit_before>#include "SysConfig.h"
#if(HAS_PCA9539)
#include <CI2C.h>
#include "CPCA9539.h"
#include "CTimer.h"
#include "NDataManager.h"
namespace
{
CTimer pca9539_sample_timer;
}
CPCA9539::CPCA9539( CI2C *i2cInterfaceIn )
: m_pca( i2cInterfaceIn )
{
}
void CPCA9539::Initialize()
{
Serial.println( ... |
<commit_before>/******************************************************************************\
* EventHandler.hpp *
* An event handler providing GUI-like events *
* ... |
<commit_before>///
/// anax
/// Copyright (C) 2013 Miguel Martin (miguel.martin7.5@hotmail.com)
///
///
/// This software is provided 'as-is', without any express or implied warranty.
/// In no event will the authors be held liable for any damages arising from the
/// use of this software.
///
/// Permission is hereby ... |
<commit_before>#pragma once
#include <utility>
#include <type_traits>
#include <archie/meta/static_constexpr_storage.hpp>
#include <archie/fused/if_t.hpp>
namespace archie {
namespace detail {
template <typename...>
struct to_function_pointer_;
template <typename R, typename... Args>
struct to_function_pointe... |
<commit_before>#include <vector>
#include <string>
#include "blib/bun/CppTypeToSQLString.hpp"
namespace blib{
namespace bun{
namespace __private{
template<typename T>
struct OneToNCreation{
std::string parent_table(){
return "";
}
... |
<commit_before>#pragma once
#include "clam/ClamAnalysisParams.hh"
#include "clam/Clam.hh"
#include <map>
namespace clam {
class DomainRegistry {
public:
typedef std::map<CrabDomain::Type, clam_abstract_domain> FactoryMap;
template<typename AbsDom>
static bool add(CrabDomain::Type dom_ty) {
auto &map = g... |
<commit_before>#pragma once
/**
@file
@brief bit operation
*/
#include <assert.h>
#include <cybozu/inttype.hpp>
#if (CYBOZU_HOST == CYBOZU_HOST_INTEL)
#if defined(_WIN32)
#include <intrin.h>
#elif defined(__linux__) || defined(__CYGWIN__) || defined(__clang__)
#include <x86intrin.h>
#elif defined(__GNUC__)
... |
<commit_before>//
// Copyright (c) 2016 CNRS
// Authors: Joseph Mirabel from Florent Lamiraux
//
//
// This file is part of hpp-pinocchio.
// hpp-pinocchio 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 Foundati... |
<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) 2009, 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) 2009, 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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>#ifndef VSMC_SMP_BACKEND_STD_HPP
#define VSMC_SMP_BACKEND_STD_HPP
#include <vsmc/smp/base.hpp>
#include <vsmc/utility/stdtbb.hpp>
#include <vsmc/utility/tbb_op.hpp>
namespace vsmc {
/// \brief Particle::weight_set_type subtype using C++11 concurrency
/// \ingroup SMP
template <typename BaseState>
clas... |
<commit_before>#ifndef VSMC_SMP_STATE_TUPLE_HPP
#define VSMC_SMP_STATE_TUPLE_HPP
#include <vsmc/smp/base.hpp>
#include <vsmc/core/single_particle.hpp>
#include <vsmc/utility/tuple_manip.hpp>
namespace vsmc {
/// \brief Base type of StateTuple
/// \ingroup SMP
template <MatrixOrder Order, typename T, typename... Type... |
<commit_before>#pragma once
#include "zmsg_cmm.hpp"
namespace zmsg {
template<>
struct zmsg<mid_t::motor_test_start> {
public:
UINT32 FSPattern;
UINT32 FibreType;
UINT32 FibreAlignment;
BOOL XImageFocus;
BOOL YImageFocus;
UINT32 FibreShift;
BOOL DischargeStrengthAdjustment;
BOOL TensionSet;
FLOAT CutAngleLi... |
<commit_before>#pragma once
#include "../std/string.hpp"
namespace classificator
{
void ReadVisibility(string const & fPath);
void Load();
}
<commit_msg>Remove obsolete declaration.<commit_after>#pragma once
#include "../std/string.hpp"
namespace classificator
{
void Load();
}
<|endoftext|> |
<commit_before>
// Note - python_bindings_common.h must be included before condor_common to avoid
// re-definition warnings.
#include "python_bindings_common.h"
#include "condor_adtypes.h"
#include "dc_collector.h"
#include "condor_version.h"
#include <memory>
#include "old_boost.h"
#include "classad_wrapper.h"
#inc... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "rdb_protocol/terms/terms.hpp"
#include <string>
#include "rdb_protocol/op.hpp"
#include "rdb_protocol/error.hpp"
#include "rdb_protocol/pb_utils.hpp"
#include "rdb_protocol/minidriver.hpp"
namespace ql {
// This file implements terms th... |
<commit_before>/*
* ccookies.hpp
*
* Created on: 19.11.2014
* Author: andreas
*/
#ifndef CCOOKIES_HPP_
#define CCOOKIES_HPP_
#include <inttypes.h>
#include <rofl/common/crofdpt.h>
#include <rofl/common/cauxid.h>
#include <rofl/common/crandom.h>
#include <rofl/common/openflow/messages/cofmsg_packet_in.h>
#... |
<commit_before>// Copyright 2016 Tom Barthel-Steer
// http://www.tomsteer.net
//
// 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>/*
*
* TransactionParser
* ledger-core
*
* Created by Pierre Pollastri on 27/03/2017.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
<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>// ヘッダのインクルード
#include <iostream> // C++標準入出力
#include <cstring> // C文字列処理
// クラスclass_profileの定義
class class_profile{ // 簡易名簿
// privateメンバ
private: // このクラス内部からのみアクセス可.
// privateメンバ変数
char name[32]; // 名前
int age; // 年齢
char address[128]; // 住所
// publicメンバ
public: // このクラス... |
<commit_before>/*
Copyright 2014 Sarah Wong
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 t... |
<commit_before>/*
* 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 your option) any later version.
*
* Written (W) 1999-2009 Soeren Sonnenburg
* W... |
<commit_before>/*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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 Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as publis... |
<commit_before>#pragma once
#include "console_user_server_client.hpp"
#include "constants.hpp"
#include "input_source_manager.hpp"
#include "local_datagram/server_manager.hpp"
#include "shell_utility.hpp"
#include "types.hpp"
#include <vector>
namespace krbn {
class receiver final {
public:
// Signals
boost::sig... |
<commit_before>/*
*
* Copyright 2015 gRPC 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 applicab... |
<commit_before>/*
*The MIT License (MIT)
*
* Copyright (c) <2016> <Stephan Gatzka>
*
* 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 limitatio... |
<commit_before>#include <vector>
#include <map>
#include <cstring>
#include <algorithm>
#include <iostream>
#include "alloc.hpp"
#include "safemacros.h"
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
namespace aL4nin
{
template <>
struct meta<int>
... |
<commit_before>#include <iostream>
#include <iomanip>
#include <tightdb/column_string_enum.hpp>
#include <tightdb/index_string.hpp>
using namespace std;
using namespace tightdb;
namespace {
// Getter function for string index
StringData get_string(void* column, size_t ndx)
{
return static_cast<ColumnStringEnum... |
<commit_before>/*
* spatial_displacement_leafless.cpp
*
* Created on: Aug 12, 2010
* Author: Mark Christensen
*/
#include "spatial_displacement_leafless.h"
#include "../system/discursive_system.h"
using namespace std;
SpatialDisplacementLeafless::SpatialDisplacementLeafless(int width, int height):width(w... |
<commit_before>// Helper classes for writing unittests testing the entire asynchronous
// stack. Allows to send incoming messages (in gridconnect format) and set
// expectations on messages produced.
//
// Only include this file in unittests.
#ifndef _UTILS_ASYNC_IF_TEST_HELPER_HXX_
#define _UTILS_ASYNC_IF_TEST_HELPER... |
<commit_before>
/*!
* \file cuda_utilities_tests.cpp
* \author Robert 'Bob' Caddy (rvc@pitt.edu), Helena Richie (helenarichie@pitt.edu)
* \brief Tests for the contents of cuda_utilities.h and cuda_utilities.cpp
*
*/
// STL Includes
#include <vector>
#include <string>
#include <iostream>
// External Includes
#inc... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "homography.h"
#include "plane_ref.h"
#include "timestamp.h"
#includ... |
<commit_before>#include "halley/core/graphics/sprite/animation.h"
#include "halley/core/graphics/sprite/sprite_sheet.h"
#include "halley/core/graphics/material/material.h"
#include "halley/core/graphics/material/material_definition.h"
#include "halley/core/graphics/material/material_parameter.h"
#include "halley/core/a... |
<commit_before>/************************************************************************
This file is part of Freekick.
Freekick 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 ... |
<commit_before>#ifndef STAN_MATH_FWD_SCAL_FUN_GAMMA_P_HPP
#define STAN_MATH_FWD_SCAL_FUN_GAMMA_P_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/fwd/scal/fun/value_of_rec.hpp>
#include <stan/math/prim/scal/err/domain_error.hpp>
#include <stan/math/prim/scal/fun/gamma_p.hpp>
#include <stan/math/prim/scal/fun/... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestStringToNumeric.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>// GrowthRegion.cpp
// Implements the GrowthRegion class
#include "GrowthRegion.h"
#include "InputXML.h"
#include "Model.h"
#include "InstModel.h"
#include "SupplyDemand.h"
#include "BuildingManager.h"
#include "SymbolicFunctionFactories.h"
#include "CycException.h"
#include <stdlib.h>
#include <map>
... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "OgreMaterialResource.h"
#include "OgreParticleResource.h"
#include "OgreTextureResource.h"
#include "OgreRenderingModule.h"
#include "OgreMaterialUtils.h"
#include "ResourceHandler... |
<commit_before>/* Copyright (c) 2010, Antonie Jovanoski
*
* All rights reserved.
*
* 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 2 of the License, or
* (at your option) a... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of meegotouch-controlpanelapplets.
**
** If you have que... |
<commit_before>/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use th... |
<commit_before>// $Id$
//
// Task to skim ESD files.
//
//
#include "AliEsdSkimTask.h"
#include <TClonesArray.h>
#include <TFile.h>
#include <TTree.h>
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
#include "AliESDtrackCuts.h"
#include "AliMultiplicity.h"
//__________________________________________________... |
<commit_before>#ifndef MRR_POSIX_LIB_SHARED_MEM_HXX_
#define MRR_POSIX_LIB_SHARED_MEM_HXX_
#include <sys/shm.h>
#include <sys/stat.h>
//m=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// TODO:
//
// Break this into 3 partial specializations:
//
// Single Value:
//
// template<typename T>
//... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
<commit_before>//===- CodeGeneratorBug.cpp - Debug code generation bugs ------------------===//
//
// This file implements program code generation debugging support.
//
//===----------------------------------------------------------------------===//
#include "BugDriver.h"
#include "SystemUtils.h"
#include "ListReducer... |
<commit_before>#include "vtkMultiProcessController.h"
#include "vtkDoubleArray.h"
#include "vtkCharArray.h"
#include "vtkIntArray.h"
#include "vtkUnsignedLongArray.h"
#include "vtkFloatArray.h"
#include "vtkIdTypeArray.h"
#include "vtkOutputPort.h"
#include "vtkDebugLeaks.h"
#include "vtkActor.h"
#include "vtkRenderWin... |
<commit_before>#include <cstring>
#include <deque>
#include <vector>
#include <iostream>
#include <string>
#include <node.h>
#include <node_buffer.h>
#include <node_object_wrap.h>
#include <v8.h>
#include "MemoryPool.h"
using namespace v8;
/**
* A string whose characters are stored elsewhere.
*
* The argument-f... |
<commit_before>// Filename: mayaSavePview.cxx
// Created by: drose (27Oct03)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Sof... |
<commit_before>#include "easyjobserver.h"
#include <votca/csg/nblist.h>
#include <qmnblist.h>
#include <votca/tools/histogramnew.h>
EasyJObserver::EasyJObserver()
{}
EasyJObserver::~EasyJObserver()
{}
void EasyJObserver::Initialize(QMTopology &qmtop, Property &opts)
{
_qmtop = &qmtop;
_kT = opts.get("calc_ra... |
<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 <iostream>
#include <vector>
#include <sstream>
#include <algorithm>
#include <chrono>
#include <thread>
#include <cfloat>
#include <GLFW/glfw3.h>
#include "compiler.h"
#include "TCPServer.hpp"
#include "data.hpp"
float lastDeviceUpdateTime = 0;
float UpdateIntervalSeconds = 1;
#pragma GC... |
<commit_before>/*
* SimpleTimer.cpp
*
* SimpleTimer - A timer library for Arduino.
* Author: mromani@ottotecnica.com
* Copyright (c) 2010 OTTOTECNICA Italy
*
* Callback function parameters added & compiler warnings
* removed by Bill Knight <billk@rosw.com> 20March2017
*
* This library is free software; you ca... |
<commit_before>//Copyright (c) 2020 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <optional>
#include <stack>
#include "VoronoiUtils.h"
#include "linearAlg2D.h"
#include "SVG.h"
namespace arachne
{
Point VoronoiUtils::p(const vd_t::vertex_type* node)
{
return Point... |
<commit_before>#pragma once
/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QITYPE_FUTURE_HPP_
#define _QITYPE_FUTURE_HPP_
#include <vector>
#include <qi/config.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/signals2.hpp>
#include <qi/eventloop.hpp>
#ifdef _MSC_VER
# p... |
<commit_before>/*
This file is part of VROOM.
Copyright (c) 2015-2017, Julien Coupey.
All rights reserved (see LICENSE).
*/
#include "./input_parser.h"
// Helper to get optional array of coordinates.
inline optional_coords_t parse_coordinates(const rapidjson::Value& object,
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestAreaSelections.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#define HEIGHT 50
#define WIDTH 50
#define UPDATELENGTH 150000
int board[HEIGHT][WIDTH];
int weightedarray[10] = {0,0,0,0,0,0,0,0,1};
void genBoard(int (board)[HEIGHT][WIDTH]) {
for (int x = 0; x < HEIGHT; ++x) {
for (int y = 0; y < WID... |
<commit_before>// @(#)root/ged:$Name: $:$Id: TStylePreview.cxx,v 1.0 2005/09/08
// Author: Denis Favre-Miville 08/09/05
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <visionaray/gl/util.h>
#include <visionaray/math/math.h>
#include "../util.h"
namespace gl = visionaray::gl;
namespace visionaray
{
std::string gl::last_error()
{
GLenum err = glGetError();
if ... |
<commit_before>/* -------------------------------------------------------------------------- *
* Simbody(tm) *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating fr... |
<commit_before>/*
* test1.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include <LLGL/LLGL.h>
#include <memory>
#include <iostream>
#include <string>
#include <sstream>
int main()
{
try
{
// Create window
... |
<commit_before>#include "commands.h"
using namespace aBuild;
namespace commands {
void build(bool verbose) {
Workspace ws(".");
checkingMissingPackages(ws);
checkingNotNeededPackages(ws);
checkingInvalidPackages(ws);
checkingRequiredPackages(ws);
Graph graph;
auto allToolchains = getAllToolchains(ws);
... |
<commit_before>#include <ros/ros.h>
#include <cstdlib>
#include <lcm/lcm-cpp.hpp>
#include <lcmtypes/drc_lcmtypes.hpp>
#include <std_msgs/Float64.h>
#include <sensor_msgs/JointState.h>
#include <geometry_msgs/Pose.h>
#include <std_srvs/Empty.h>
#include <map>
#include <string>
/**
A simple translator that listens for... |
<commit_before>#include "list.h"
#include "gtest/gtest.h"
#include <string>
class listTest : public testing::Test {
protected:
virtual void SetUp() {
list_1.insert(list_1.begin(), 10);
int_iter = list_1.insert(list_1.end(), 30);
int_iter = list_1.insert(int_iter, 20);
str = "a string";
}
virtua... |
<commit_before><commit_msg>latest<commit_after><|endoftext|> |
<commit_before>#include "AliMCAuxHandler.h"
#include "AliAnalysisManager.h"
#include <TError.h>
#include <AliLog.h>
#include <TFile.h>
#include <TClonesArray.h>
#include <TROOT.h>
#include <AliStack.h>
#include <AliMCEvent.h>
ClassImp(AliMCAuxHandler)
#if 0 // For Emacs - do not remove
;
#endif
//____________________... |
<commit_before>/*
* Copyright (C) 2013 Google Inc. 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 l... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2012-2013, SimQuest Solutions 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.apac... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMultiThreaderTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See... |
<commit_before>/*
* SnowPlow Arduino Tracker
*
* @description Arduino tracker for SnowPlow
* @version 0.0.1
* @author Alex Dean
* @copyright SnowPlow Analytics Ltd
* @license Apache License Version 2.0
*
* Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
*
* This program is lic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.