text stringlengths 54 60.6k |
|---|
<commit_before>/*
* zk_agg_selector.cpp
*
*
*
* Created on: Jun 23, 2010
* Author: Dmitriy V. Ryaboy
*/
#include "zk_agg_selector.h"
#include "zk_client.h"
#include "zk_status.h"
using namespace std;
// TODO(wanli): share this with zk_status.cpp
const string QUEUE_SIZE_KEY = "queue size";
const string M... |
<commit_before>#include "ROOT/RTaskArena.hxx"
#include "TError.h"
#include "TROOT.h"
#include "TThread.h"
#include <fstream>
#include <sys/stat.h>
#include <thread>
#include "tbb/task_arena.h"
//////////////////////////////////////////////////////////////////////////
///
/// \class ROOT::Internal::RTaskArenaWrapper
/... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2013 PX4 Development Team. All rights reserved.
* Author: @author Thomas Gubler <thomasgubler@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are pe... |
<commit_before>#include <vector>
#include <thread>
#include <set>
#include <mutex>
#include <chrono>
#include <condition_variable>
#include <gtest/gtest.h>
#include "cppkafka/consumer.h"
#include "cppkafka/producer.h"
#include "cppkafka/utils/consumer_dispatcher.h"
#include "cppkafka/utils/buffered_producer.h"
#include... |
<commit_before>// This file is part of the dune-pymor project:
// https://github.com/pyMor/dune-pymor
// Copyright Holders: Felix Albrecht, Stephan Rave
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
... |
<commit_before>#include "../include/zonotope_volume.hpp"
#include "../include/zonotope_halfspaces.hpp"
/**
* Convert the column-major m-by-n matrix `arr` from a flat array to
* an m-by-n matrix. If `transpose == true`, then instead output the
* transpose of `arr`. The contents of `mat` are entirely overwritten
* ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>#include <iostream> // for standard I/O
#include <string> // for strings
#include <iomanip> // for controlling float print precision
#include <sstream> // string to number conversion
#include <opencv2/core/core.hpp> // Basic OpenCV structures (cv::Mat, Scalar)
#include <opencv2/imgproc/imgpro... |
<commit_before>/*
* NicoW
* 27.05.12
*/
#include "MenuMap.hpp"
MenuMap::MenuMap(GameManager& game)
: AMenu("menu/Background.png", "menu/Background.png", 0.0f, -1.0f, 3600.0f, game)
{
this->_tags.push_back(new Tag("menu/RandomNormal.png", "menu/RandomHighlit.png", true, false, /**/TokenMenu::MAP, 800.0f, 0.0f, ... |
<commit_before>/***************************************************************************//**
* \file delta.cpp
* \author Anush Krishnan (anus@bu.edu)
* \author Olivier Mesnard (mesnardo@gwu.edu)
* \author Pi-Yueh Chuang (pychuang@gwu.edu)
* \brief implementations of descritized delta functions.
*/
// PetIBM... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 27/11/09.
This file is part of MRtrix.
MRtrix 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 Sof... |
<commit_before>#ifndef CLOVER_UTIL_DYN_ARRAY_HPP
#define CLOVER_UTIL_DYN_ARRAY_HPP
#include "build.hpp"
#include "util/ensure.hpp"
#include "util/hash.hpp"
namespace clover {
namespace util {
/// Substituting std::vector with `DynArray` was a good choice, because
/// - std::vector<bool> is broken, needed a workaroun... |
<commit_before>/* =====
* Fetch
* =====
*
*/
// Glew must be included before OpenGL
#ifdef _WIN32
//#include <GL/glew.h>
#define INIT_EXTENSIONS \
assert(glewInit()==GLEW_OK)
#else
#define INIT_EXTENSIONS
#endif
#include <QtWidgets>
#include <QtOpenGL>
#include <assert.h>
#include "util/util-gl.h"
#include "uti... |
<commit_before>// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bantablemodel.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include ... |
<commit_before>/******************************************************************************
* Copyright (c) 2000-2016 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distributio... |
<commit_before>/*
Copyright libCellML Contributors
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 ... |
<commit_before>
#ifndef __FRAMEWORK_RECORDING_DISPATCHRECORDER_HXX_
#define __FRAMEWORK_RECORDING_DISPATCHRECORDER_HXX_
/** Attention: stl headers must(!) be included at first. Otherwhise it can make trouble
with solaris headers ...
*/
#include <vector>
// own includes
#ifndef __FRAMEWORK_THREADHELP_TH... |
<commit_before>/*
* DBUSTL - DBus Template Library
*
* Copyright (C) 2008 Fabien Chevalier <fabchevalier@free.fr>
*
*
* This file is part of the DBus Template Library.
*
* The DBus Template Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Pu... |
<commit_before>// Copyright (c) 2011-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/bantablemodel.h>
#include <interfaces/node.h>
#include <net_types.h> // For banmap_t
#include <... |
<commit_before>#pragma once
#include <type_traits>
namespace stx {
namespace detail {
template<typename T>
struct pointer_to_struct {
using type = T*;
};
template<typename T>
struct pointer_to_struct<T[]> {
using type = T*;
};
} // namespace detail
template<typename T>
using pointer_to = typename detail::point... |
<commit_before>#include "File.h"
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h> // REMOVE
#define DATAPAGE_OFFSET(idx) (INDEXPAGE_OFFSET+indexPageSize+idx*dataPageSize)
File::File()
{
uint32_t i;
prev = this;
next = this;
indexPageSize = DEFAULT_INDEXPAGE_SIZE;
dataPageSize =... |
<commit_before>// Copyright Paul Dardeau, SwampBits LLC 2014
// BSD License
#include "GUIDisplayEngineWindow.h"
using namespace tataille;
//******************************************************************************
bool GUIDisplayEngineWindow::registerControl(ControlInfo* ci,
... |
<commit_before>// Copyright (c) 2011-2014 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 "utilitydialog.h"
#include "ui_aboutdialog.h"
#include "ui_helpmessagedialog.h"
#include "bitcoingui... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wizardmachine.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2007-05-22 19:32:34 $
*
* The Contents of this file are ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: itemholder2.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 14:40:47 $
*
* The Contents of this file are ma... |
<commit_before>/*************************************************************************
*
* $RCSfile: hyperlabel.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2004-11-26 20:40:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before> /*************************************************************************
*
* $RCSfile: accfootnote.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2003-03-27 15:39:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*************************************************************************
*
* $RCSfile: writerhelper.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2003-09-01 12:39:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*************************************************************************
*
* $RCSfile: mmdocselectpage.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-09-29 09:31:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>//
// Logger-Android.cpp
// ee-core
//
// Created by Zinge on 7/6/16.
//
//
#include <android/log.h>
#include "Logger.hpp"
#include "LogLevel.hpp"
namespace ee {
namespace core {
void Logger::log(const LogLevel& level, const std::string& tag,
const std::string& message) {
__and... |
<commit_before>#ifndef Metric_arith
#define Metric_arith
#include <array>
#include <limits>
#include <string>
#include <utility>
#include <algorithm>
#include <stdexcept>
#include <cinttypes>
#include <cstdint>
#include "algorithm.hpp"
namespace arithmetic
{
template <typename number> inline
number operator+(numbe... |
<commit_before>#include "mod_stream.h"
#include "modipulate_common.h"
#include "libmodplug-hacked/modplug.h"
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <malloc.h>
#include <sstream>
#include <math.h>
#include <errno.h>
#include <AL/al.h>
#include <ogg/ogg.h>
using namespace... |
<commit_before>#include <libport/finally.hh>
#include <ast/cloner.hxx>
#include <ast/new-clone.hh>
#include <ast/parametric-ast.hh>
#include <object/symbols.hh>
#include <parser/ast-factory.hh>
#include <parser/parse.hh>
#include <rewrite/desugarer.hh>
#include <rewrite/pattern-binder.hh>
namespace rewrite
{
usi... |
<commit_before>/// \file
/// \ingroup tutorial_tmva
/// \notebook -nodraw
/// This macro provides an example of how to use TMVA for k-folds cross
/// evaluation in application.
///
/// This requires that CrossValidation was run with a deterministic split, such
/// as `"...:splitExpr=int([eventID])%int([numFolds]):..."`... |
<commit_before>// Copyright (c) 2015 Vijos Dev Team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/logon.h"
#include <Windows.h>
#include <malloc.h>
#include <vector>
#include "core/sid.h"
using namespace std;
namespace w... |
<commit_before>/***************************************
** Tsunagari Tile Engine **
** music.cpp **
** Copyright 2011-2014 PariahSoft LLC **
***************************************/
// **********
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of... |
<commit_before>/*********************************
** Tsunagari Tile Engine **
** music.cpp **
** Copyright 2011-2012 OmegaSDG **
*********************************/
#include "music.h"
#include "python.h"
Music::Music()
: volume(1.0),
paused(false),
state(NOT_PLAYING)
{
pythonSetGlobal... |
<commit_before>/* Copyright (c) 2010, Antonie Jovanoski
*
* All rights reserved.
*
* 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 Software Foundation; either
* version 2.1 of the License, or (at your ... |
<commit_before>#include "ofApp.h"
#include <boost/python.hpp>
#if PY_VERSION_HEX >= 0x03000000
# define MODULE_INIT_FN(name) BOOST_PP_CAT(PyInit_, name)
# define PYTHON_BUILTINS "builtins"
#else
# define MODULE_INIT_FN(name) BOOST_PP_CAT(init, name)
# define PYTHON_BUILTINS "__builtin__"
#endif
using namespace bo... |
<commit_before>#include "troengame.h"
#include <osgDB/ReadFile>
#include <osgGA/TrackballManipulator>
#include <osgViewer/ViewerEventHandlers>
#include <chrono>
#include "sampleosgviewer.h"
#include "input/bikeinputstate.h"
#include "input/keyboardeventhandler.h"
#include "physics/physicsworld.h"
#include "physics/... |
<commit_before>#include <test_helpers.hxx>
using namespace PGSTD;
using namespace pqxx;
namespace pqxx
{
template<> struct PQXX_PRIVATE string_traits<result::const_fielditerator>
{
static const char *name() { return "result::const_fielditerator"; }
static bool has_null() { return false; }
static bool is_null(re... |
<commit_before>#include "notepad.h"
#include "ui_notepad.h"
#include <QFileDialog>
#include <QFile>
#include <QMessageBox>
#include <QTextStream>
#include <QtPrintSupport>
#include <iostream>
Notepad::Notepad(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Notepad)
{
// TODO, not sure where to organize ... |
<commit_before>/** \copyright
* Copyright (c) 2013, Balazs Racz
* 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>//
// nthRoot.cpp
// Calculator
//
// Created by Gavin Scheele on 3/27/14.
// Copyright (c) 2014 Gavin Scheele. All rights reserved.
//
#include "nthRoot.h"
nthRoot::nthRoot(int root, int operand, int coefficient){
this->type = "nthRoot";
this->operand = operand;
this->root = root;
... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>/*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
/*
* 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
... |
<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) 2011 - 2012, The University of Texas at Austin. */
/* All rights reserved. */
/* */
/* Redistribution... |
<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 <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include "gpu/command_buffer/tests/gl_manager.h"
#include "gpu/command_buffer/tests/g... |
<commit_before>/***************************************************************************
* Copyright (C) 2005-2007 by the FIFE Team *
* fife-public@lists.sourceforge.net *
* This file is part of FIFE. ... |
<commit_before>/*
* Copyright (c) 2015, Intel Corporation
*
* 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 c... |
<commit_before>// Program.cpp
#include "stdafx.h"
#include "Program.h"
#include "PythonStuff.h"
#include "tinyxml/tinyxml.h"
#include "ProgramCanvas.h"
#include "NCCode.h"
#include "interface/MarkedObject.h"
#include "interface/PropertyString.h"
#include "interface/Tool.h"
#include "Profile.h"
#include "Pock... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: PtS2PtSF.cc
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reprod... |
<commit_before>#include <vector>
#include "player.h"
#include "pieces.h"
#include "coord.h"
#include <locale>
using namespace std;
Player::Player(GameBoard* gb, int colour): gb(gb), colour(colour) {}
bool Player::wouldPutInCheck(Coord stc, Coord endc, bool opponent, bool isKing) {
#ifdef DEBUG
cout << "WPIC::Run... |
<commit_before>/*
* StringImage.cpp
*
* Created on: January 27, 2011
* Author: Craig Rasmussen
*/
#include "StringImage.hpp"
#include <src/include/pv_common.h> // for PI
#include <src/utils/pv_random.h>
namespace PV {
StringImage::StringImage(const char * name, HyPerCol * hc) :
Image(name, hc)
{
th... |
<commit_before>#include "RThread.h"
#include "REventLoop.h"
#include "RForwardList.h"
class RThreadPrivate
{
public:
static void
run(void *arg);
};
// FIXME: Thread list not guarded by mutex now !
static RForwardList<RThread *> sThreads;
void
RThreadPrivate::run(void *arg)
{
RThread *thread = static_cast<RThrea... |
<commit_before>/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#include <cmath>
#include "D... |
<commit_before>//
// OpenFlight loader for OpenSceneGraph
//
// Copyright (C) 2005-2006 Brede Johansen
//
#include <stdexcept>
#include <osg/Notify>
#include <osg/ProxyNode>
#include <osgDB/FileNameUtils>
#include <osgDB/FileUtils>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgDB/ReentrantMutex>
#... |
<commit_before>/* The MIT License (MIT)
Copyright (c) 2016 Sumwunn @ github.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 wi... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2022 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* This p... |
<commit_before>/*
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>// This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009-2011, Jonathan Turner (jonathan@emptycrate.com)
// and Jason Turner (jason@emptycrate.com)
// http://www.chaiscript.com
#include <boost/preprocessor.hpp>
#ifndef BOOST_PP_IS_ITERATING
#ifndef CHAISCR... |
<commit_before>#include "itkCommandLineArgumentParser.h"
#include "CommandLineArgumentHelper.h"
#include "itkImageFileReader.h"
#include "itkSmoothingRecursiveGaussianImageFilter2.h"
#include "itkImageFileWriter.h"
//-------------------------------------------------------------------------------------
/** run: A mac... |
<commit_before>// SETUP
// GET, SET, ADD, REPLACE, DELETE, CAS, FLUSH_ALL, INCR, DECR, APPEND, PREPEND, STATS
// TODO find way to interact with postgres / peloton?
SET
insert into test (k, d) values ('$key', '$value') on conflict (k) do update set d = excluded.d;
GET
select d from test where k = '$key';<commit_msg>W... |
<commit_before>#include <iostream>
#include "prefs.h"
#include "XPLMUtilities.h"
#include "viewer_window.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
bool loadPrefs(const boost::filesystem::path & path) {
//open file, and deserialize
std:... |
<commit_before>/*
* =====================================================================================
*
* Filename: 3.cpp
*
* Description: Solution to the third problem of the `evens' section.
*
* Version: 1.0
* Created: 28.01.2015 6,00,07
* Revision: none
* Compil... |
<commit_before>#include <string>
#include <sstream>
#include "benchmark.h"
#ifdef HAVE_HACL
extern "C" {
#include <Hacl_Ed25519.h>
}
#endif
#ifdef HAVE_OPENSSL
#include <openssl/evp.h>
#endif
#define SIGNATURE_LENGTH 64
class DSABenchmark: public Benchmark
{
protected:
typedef __attribu... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
<commit_before>#include "Utility.h"
#include <vector>
#include <random>
#include <chrono>
#include <fstream>
#include <algorithm>
std::vector<std::string> String::split(const std::string& s, const std::string& delim, size_t count)
{
std::vector<std::string> result;
size_t start_index = 0;
size_t end_index... |
<commit_before>/*
@ Kingsley Chen
*/
#include "kbase\strings\string_format.h"
#include <cctype>
#include "kbase\scope_guard.h"
namespace {
using kbase::StringFormatSpecifierError;
using kbase::internal::FmtStr;
using kbase::internal::Placeholder;
using kbase::internal::PlaceholderList;
using kbase::internal::IsDi... |
<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/service/net/service_url_request_context.h"
#include "chrome/service/service_process.h"
#include "net/base/cookie_mons... |
<commit_before>/*
* Copyright (c) 2016, 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>// 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 "ui/aura_shell/activation_controller.h"
#include "base/auto_reset.h"
#include "ui/aura/client/activation_delegate.h"
#include... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/MetaProcessor/MetaProce... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/UserInterface/UserInter... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/UserInterface/UserInter... |
<commit_before>#include <iostream>
#include <iomanip>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <ShlObj.h>
#include "Osiris.hpp"
#include "Modules/OsirisModule.hpp"
#include "Modules/OsirisModules.hpp"
#include <Utils/Utils.hpp>
#include <Ausar/Ausar.hpp>
#include <vector>
#include <iterator>
Osi... |
<commit_before>
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Authenticator.h"
#include "OSSupport/BlockingTCPLink.h"
#include "Root.h"
#include "Server.h"
#include "inifile/iniFile.h"
#include "json/json.h"
#include "polarssl/config.h"
#include "polarssl/ne... |
<commit_before>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
#include "RdYarpRobotManager.hpp"
namespace rd{
bool RdYarpRobotManager::moveForward(int velocity) {
double velocities[] = {2000,1000};
vel->velocityMove(velocities);
return true;
}
bool RdYarpRobotManager::moveBackw... |
<commit_before>// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium 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 limi... |
<commit_before>/*************************************************************************
*
* $RCSfile: DataSeriesHelper.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: bm $ $Date: 2004-01-26 09:01:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>#include "math-lib.h"
double ml_add(double n1, double n2) {return n1/2+n2;}<commit_msg>Corrected a small bug in ml_add. Fixes #2<commit_after>#include "math-lib.h"
double ml_add(double n1, double n2) {return n1+n2;}
<|endoftext|> |
<commit_before>#ifndef __CPREL_CPREL_GRELATION_HH__
#define __CPREL_CPREL_GRELATION_HH__
#include <boost/shared_ptr.hpp>
#include <cprel/tuple.hh>
namespace MPG { namespace CPRel {
/**
* \defgroup GRelation Ground relations
*
* Ground relations are the basic construct of the relation domain. The term
* ground is... |
<commit_before>
#include "scene.h"
Scene::Scene(const ros::NodeHandle& node)
: Ped::Tscene(), nh_(node)
{
// useful for keeping track of agents in the cleaning process
tree = new Ped::Ttree(this, 0, 0, 0, 1000, 1000);
}
Scene::Scene( double left, double up, double width, double height, const ros::NodeHa... |
<commit_before>/** \file DbConnection.cc
* \brief Implementation of the DbConnection class.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2015 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: PSimTool.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#ifndef __STAN__META__TRAITS_HPP__
#define __STAN__META__TRAITS_HPP__
#include <vector>
#include <boost/type_traits.hpp>
#include <boost/math/tools/promotion.hpp>
#include <stan/math/matrix.hpp>
namespace stan {
/**
* Metaprogramming struct to detect whether a given type is constant
* in the m... |
<commit_before>/*************************************************************************
*
* $RCSfile: res.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2004-02-04 14:32:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
... |
<commit_before>//example skeleton code
//modified from http://learnopengl.com/
#include "GL/glew.h" // include GL Extension Wrangler
#include "GLFW/glfw3.h" // include GLFW helper library
#include <stdio.h>
#include <iostream>
#include <string>
#include <fstream>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_... |
<commit_before>#ifndef __STAN__META__TRAITS_HPP__
#define __STAN__META__TRAITS_HPP__
#include <vector>
#include <boost/type_traits.hpp>
namespace stan {
/**
* Metaprogramming struct to detect whether a given type is constant
* in the mathematical sense (not the C++ <code>const</code>
* sense). If the para... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inetdef.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 09:42:32 $
*
* The Contents of this file are made a... |
<commit_before>/*-------------------------------------------------
参考プログラム
read_csv.cpp : https://gist.github.com/yoneken/5765597#file-read_csv-cpp
-------------------------------------------------- */
#include <ros/ros.h>
#include <ros/package.h>
#include <tf/transform_listener.h>
#include <move_base_msgs/MoveBaseA... |
<commit_before>/*
* FishersExact.cc
* Apto
*
* Created by David on 2/15/11.
* Copyright 2011 David Michael Bryson. All rights reserved.
* http://programerror.com/software/apto
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following... |
<commit_before>/*
* Actuator.cc
*
* Author: Lunatic
*/
#include <cstring>
#include <cstdlib>
#include "actuator.h"
#include "lexer.h"
#include "alarm.h"
namespace Script {
bool Env::contains(const std::string& name) {
return vars.find(name) != vars.end();
}
std::string Env::get(const std::string& name) {
... |
<commit_before>#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
void twoSum(int *arr, unsigned int len, int sum){
sort(arr, arr+len);
int begin = 0, end = len-1;
while(begin < end){
long currSum = arr[begin] + arr[end];
if(currSum==sum){
cout << "beg... |
<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.
// Note that the single accessor, Module::Get(), is not actually implemented
// in this file. This is an intentional hook that allows ... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007 Stanislav Shwartsman
// Written by Stanislav Shwartsman [sshwarts at sourceforge net]
//
// This library is free... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id: mult64.cc,v 1.34 2009/01/16 18:18:58 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.