text stringlengths 54 60.6k |
|---|
<commit_before>//
// async_client.cpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
... |
<commit_before>#include "GUI.hpp"
#include "Level.hpp"
#include "FROG/Component/AudioSource.hpp"
#include "FROG/Collision/BoxCollider.hpp"
#include "FROG/Control.hpp"
#include "FROG/Control/ControlComponent.hpp"
#include "FROG/Debug.hpp"
#include "FROG/Translator.hpp"
#include "FROG/App.hpp"
#include "FROG/AppInfo.hp... |
<commit_before>#include <iostream>
#include <set>
#include "TFile.h"
#include "TTree.h"
#include "TObject.h"
#include "TTreeFormula.h"
#include "FlatSkimmer.h"
ClassImp(FlatSkimmer)
//--------------------------------------------------------------------
FlatSkimmer::FlatSkimmer() :
fGoodLumiFilter(NULL),
fInDire... |
<commit_before>#include "AudioMonitorServer.hpp"
/*Constructor of AudioMonitorServer, create the server socket and initialize the data
* structure*/
AudioMonitorServer::AudioMonitorServer(int prt,int dbg):
debug(1),port(prt){
/* socket factory*/
if((servSockfd = socket(AF_INET,SOCK_STREAM,IPPROTO... |
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
aboutdata.cpp
This file is part of KMail, the KDE mail client.
Copyright (c) 2003 Marc Mutz <mutz@kde.org>
KMail is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
... |
<commit_before>// KMail Account
#include <stdlib.h>
#include <unistd.h>
#include <qdir.h>
#include <qstrlist.h>
#include <qtextstream.h>
#include <qfile.h>
#include <assert.h>
#include <kconfig.h>
#include <kapp.h>
#include <qregexp.h>
#include <klocale.h>
#include <kprocess.h>
#include <kmessagebox.h>
#include <kde... |
<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 "base/bind.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/string_number_conversions.h"
#include ... |
<commit_before>#include <iostream>
#include <string>
#include "gaol/gaol.h"
#include "gaol_wrap.hh"
#include <cstring>
#include <cassert>
#include <cfenv>
#define TO_INTERVAL(x) (*(reinterpret_cast<interval*>(x)))
#define TO_INTERVAL_C(x) (*(reinterpret_cast<const interval*>(x)))
#define TO_STACK(x) (*(reinterpret_cast... |
<commit_before>/*
This file is part of KMail, the KDE mail client.
Copyright (c) 2000 Don Sanders <sanders@kde.org>
KMail is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
KMail... |
<commit_before>#include <iostream>
#include "WiFi_Controller.h"
using namespace flyhero;
extern "C" void app_main(void)
{
WiFi_Controller& wifi = WiFi_Controller::Instance();
LEDs::Init();
wifi.Init();
uint8_t buffer[200];
uint8_t read;
while (true) {
if (wifi.Receive(buffer, 200, read)) {
... |
<commit_before>#include "settingslist.h"
std::vector<std::wstring> getSettingsList(void)
{
std::vector<std::wstring> ret;
ret.push_back(L"update_freq_incr");
ret.push_back(L"update_freq_full");
ret.push_back(L"update_freq_image_full");
ret.push_back(L"update_freq_image_incr");
ret.push_back(L"max_file_i... |
<commit_before>
#include <vector>
#include <string>
using namespace std;
namespace L10ns {
enum class ActionKind {
None,
Init,
Update,
Log,
Set,
};
enum class FlagKind {
None,
Help,
Version,
Language,
Key,
Value,
};
struct Argument {
string * name;
string * descr... |
<commit_before>// Copyright (c) 2017 ASMlover. 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 o... |
<commit_before>#include "Texture.h"
#include "DebugLog.h"
#include "volume.hpp"
#include <chrono>
#include <iostream>
#include <windows.h>
#include <direct.h>
#include <Commdlg.h>
using namespace std;
const int SCREEN_WIDTH = 1280;
const int SCREEN_HEIGHT = 1024;
char fileName[MAX_PATH];
Texture* texture;
void r... |
<commit_before>/*
This file is part of KMail, the KDE mail client.
Copyright (c) 2000 Don Sanders <sanders@kde.org>
KMail is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
KMail... |
<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>/*
* 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>/*************************************************************************
> File Name: TaskSerializer.cpp
> Project Name: Hearthstonepp
> Author: Young-Joong Kim
> Purpose: Serializer for TaskMeta and MetaData
> Created Time: 2018/05/20
> Copyright (c) 2018, Young-Joong Kim
*****************************... |
<commit_before><commit_msg>Added unit tests for node methods<commit_after>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "Graph.hpp"
SCENARIO ( "Graph nodes work correctly" ) {
GIVEN ( "A graph node with initial values" ) {
GraphNode gnode(1, 10);
WHEN ( "I get the values" ) {
THEN ( "Values sho... |
<commit_before>
#include <orne_rviz_plugins/state_trigger_panel.h>
#include <QHBoxLayout>
namespace orne_navigation
{
StateTriggerPanel::StateTriggerPanel(QWidget *parent) :
rviz::Panel(parent)
{
QHBoxLayout *layout = new QHBoxLayout;
start_nav_button_ = new QPushButton("StartWaypointsNav");
layout-... |
<commit_before>#include <string>
#include <fstream>
#include <streambuf>
#include <sstream>
#include <map>
#include <boost/lexical_cast.hpp>
#include <libudev.h>
#include <blkid/blkid.h>
#include "osquery/core.h"
#include "osquery/database.h"
#include "osquery/filesystem.h"
namespace osquery {
namespace tables {
s... |
<commit_before>#ifndef K3_RUNTIME_CONTEXT_H
#define K3_RUNTIME_CONTEXT_H
#include <map>
#include <string>
#include "Dispatch.hpp"
namespace K3 {
class Engine;
class __k3_context {
public:
__k3_context(Engine& e): __engine(e) {}
virtual void __dispatch(std::shared_ptr<Dispatcher>) {}
virtual std... |
<commit_before>/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TaskPaneFocusManager.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 06:33:01 $
*
* The Contents of this fi... |
<commit_before>/*************************************************************************
*
* $RCSfile: javachild.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-01-31 09:48:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* pilot.cc KPilot
**
** Copyright (C) 1998-2001 by Dan Pilone <dan@kpilot.org>
** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
** Copyright (C) 2003-2006 Adriaan de Groot <groot@kde.org>
**
** These are the base class structures that reside on the
** handheld device -- databases... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkBioGene.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.... |
<commit_before>#include "Main.h"
using namespace std;
using namespace experimental::filesystem;
int main() {
string PATH;
cout << "AudioFile Wizard Started" << endl;
cout << "Input file path" << endl;
cout << "Example: C:\\Program Files\\Java\\" << endl;
cout << "Enter Path: ", cin >> PATH;
return 0;
};<c... |
<commit_before>/*
Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... |
<commit_before>/*
* Copyright (C) 2008-2010 The QXmpp developers
*
* Author:
* Manjeet Dahiya
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gen... |
<commit_before>/*
*
* This file is part of the open-source SeetaFace engine, which includes three modules:
* SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification.
*
* This file is an example of how to use SeetaFace engine for face alignment, the
* face alignment method described in the following... |
<commit_before>// HexEditor.cpp : implementation file
//
#include "stdafx.h"
#include "HexEditor.h"
#include "SmartView\SmartView.h"
#include "FileDialogEx.h"
#include "ImportProcs.h"
static wstring CLASS = L"CHexEditor";
enum __HexEditorFields
{
HEXED_ANSI,
HEXED_UNICODE,
HEXED_BASE64,
HEXED_HEX... |
<commit_before>//
// Name: sdlSimple/app.cpp
// Purpose: Example SDL/vtlib application.
//
// Copyright (c) 2001-2004 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "SDL.h"
#ifdef __FreeBSD__
# include <ieeefp.h>
#endif
#include "vtlib/vtlib.h"
#include "vtlib/core/Terrain.h... |
<commit_before>#include "hornet/java.hh"
#include "hornet/opcode.hh"
#include <hornet/vm.hh>
#include <classfile_constants.h>
#include <cassert>
#include <stack>
namespace hornet {
bool verbose_verifier;
unsigned char unsupported_opcode[JVM_OPC_MAX+1];
unsigned char opcode_length[JVM_OPC_MAX+1] = JVM_OPCODE_LENGTH_... |
<commit_before><commit_msg>disable adding histograms to directory also for root merging<commit_after><|endoftext|> |
<commit_before>#include "chunkstream.cpp" //chunkstream decoding
#include "amf.cpp" //simple AMF0 parsing
std::string streamname = "/tmp/shared_socket";
//gets and parses one chunk
void parseChunk(){
static chunkpack next;
static AMFType amfdata("empty", (unsigned char)0xFF);
static AMFType amfelem("empty", (uns... |
<commit_before>/*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
// NOTE: It is possible to simply includ... |
<commit_before>// Copyright (c) 2011-2013 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 "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstra... |
<commit_before>#include "xbeepacket.h"
#include <QDebug>
namespace QtXBee {
/**
* @brief XBeePacket's constructor
* @param parent
*/
XBeePacket::XBeePacket(QObject *parent) :
QObject(parent),
m_startDelimiter(0x7E),
m_length(0),
m_frameType(UndefinedId),
m_frameId(0),
m_checksum(0)
{
}
/**... |
<commit_before>// @(#)root/mathcore:$Id$
// Author: David Gonzalez Maline Wed Aug 28 15:33:03 2009
/**********************************************************************
* *
* Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
* ... |
<commit_before>/*
This file is part of the clazy static checker.
Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
Author: Sérgio Martins <sergio.martins@kdab.com>
Copyright (C) 2015 Sergio Martins <smartins@kde.org>
This library is free software; you can redistribute it... |
<commit_before>#include "OgreFramework.h"
#include "macUtils.h"
using namespace Ogre;
namespace Ogre
{
template<> OgreFramework* Ogre::Singleton<OgreFramework>::msSingleton = 0;
};
OgreFramework::OgreFramework()
{
m_MoveSpeed = 6.0f;
m_RotateSpeed = 0.3f;
m_bShutDownOgre = false;
m_iNumScre... |
<commit_before>/**
* @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "linear.h"
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
#define INF HUGE_VAL
struct feature_node *x;
typedef struct svmlines {
int* da... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//===-Caching.cpp - LLVM Link Time Optimizer Cache Handling ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>
#include "GuiObject.hpp"
#include "PythonHelpers.h"
int GuiObject::init(PyObject* args, PyObject* kwds) {
// If the GuiObject type has no base set,
// grab _GuiObject from the gui module and set it as the base.
PyTypeObject* const selfType = &GuiObject_Type;
if(selfType->tp_base == NULL || selfTyp... |
<commit_before>/*
Copyright (c) 2007, 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) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#include "SkinManager.h"
#include "Shlwapi.h"
#include "../Error.h"
#include "../Settings.h"
#include "ErrorSkin.h"
#include "MeterComponent.h"
#include "OSDComponent.h"
#include "Skin... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file UiService.cpp
* @brief Light-weight UI service. Implements UiServiceInterface and provides
* means of embedding Qt widgets to the same scene/canvas as the 3D in-world
* view. Uses on... |
<commit_before>/*
Copyright (c) 2003, 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) 2003, 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) 2003, 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>#include "qtmonkey.hpp"
#include <cstdio>
#include <cassert>
#include <atomic>
#ifdef _WIN32 // windows both 32 bit and 64 bit
# include <windows.h>
#else
# include <unistd.h>
#endif
#include <QtCore/QCoreApplication>
#include <QtCore/QTextCodec>
#include <QtCore/QThread>
#include "common.hpp"
#in... |
<commit_before>/*
Copyright (c) 2003, 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><commit_msg>use the center of the chart as camera direction<commit_after><|endoftext|> |
<commit_before><commit_msg>add scroll animation for benchmark<commit_after><|endoftext|> |
<commit_before><commit_msg>remove global variable<commit_after><|endoftext|> |
<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 "chrome/browser/chromeos/frame/bubble_window.h"
#include <gtk/gtk.h>
#include "chrome/browser/chromeos/frame/bubble_frame_vi... |
<commit_before>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#ifndef __BSE_BCORE_HH__
#define __BSE_BCORE_HH__
#ifdef BSE_CONVENIENCE
#define RAPICORN_CONVENIENCE BSE_CONVENIENCE
#endif
#include <rapicorn-core.hh>
#ifdef RAPICORN_CONVENIENCE
#undef fatal // a... |
<commit_before>#include "messages.h"
Messages::Messages(peer *peerToConnect, QObject *parent) : QObject(parent), mPeer(peerToConnect)
{
//here we create peerconnection session
}
Messages::~Messages()
{
}
Messages::ArmaMessage Messages::createRegularMessage(Session & session, const QString & message) {
ArmaMess... |
<commit_before>#include "inference_result.h"
#include "factor_graph.h"
#include <iostream>
#include <memory>
namespace dd {
InferenceResult::InferenceResult(const CompactFactorGraph &fg,
const CmdParser &opts)
: fg(fg),
opts(opts),
weight_values_normalizer(1),
nv... |
<commit_before>/*
* (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others.
*
* 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/... |
<commit_before>/*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "istream_deflate.hxx"
#include "istream_internal.hxx"
#include "pool.hxx"
#include "util/Cast.hxx"
#include "util/ConstBuffer.hxx"
#include "util/WritableBuffer.hxx"
#include "util/StaticFifoBuffer.hxx"
#include <daemon/log.h>
#include <zlib.h>... |
<commit_before>#ifndef __CLITL_HPP__
#define __CLITL_HPP__
#include <cstdio>
#include <iosfwd>
#include <locale>
#include <utility>
#ifdef UNIX
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#elif WIN32
#include <conio.h>
#include <Windows.h>
#endif
namespace clitl {
/* Color class */
enum c... |
<commit_before>/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include <fstream>
#include <iostream>
using namespace std;
#ifndef _WIN32
#include <unistd.h>
#endif
#includ... |
<commit_before>// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <... |
<commit_before>/*=========================================================================
Program: Visomics
Copyright (c) Kitware, 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
... |
<commit_before>#include "OurCornerKick_pass.hpp"
#include <framework/RobotConfig.hpp>
#include <boost/foreach.hpp>
#include <iostream>
#include "../ReceivePointEvaluator.hpp"
using namespace std;
using namespace Geometry2d;
static const int requiredBotCount = 2;
REGISTER_PLAY_CATEGORY(Gameplay::Plays::OurCornerKic... |
<commit_before>#include "../../include/cutehmi/Notifier.hpp"
namespace cutehmi {
Notifier::Notifier(QObject * parent):
QObject(parent),
m(new Members)
{
}
NotificationListModel * Notifier::model() const
{
return m->model.get();
}
int Notifier::maxNotifications() const
{
return m->maxNotifications;
}
void Notif... |
<commit_before>/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licenc... |
<commit_before>#include <iostream>
#include <ostream>
#include <fstream>
#include <sstream>
#include "parse.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
using namespace std;
//Base Executable
Executable::Executable(string info)
{
this->info = info;
}
... |
<commit_before>#include "text_editor.h"
#include "string_constants.h"
#include "printutils.h"
#include "utils.h"
using namespace std;
void TextEditor::clearWindows()
{
x = 0;
y = 0;
done = 0;
delwin(headerWindow);
delwin(mainWindow);
clear();
}
vector<string> TextEditor::edit(string header,vector<string> start... |
<commit_before>#include <exception>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "../algorithm.h"
#include "testbench.h"
using namespace std;
using namespace xp;
struct instrumented {
int val;
int& c... |
<commit_before>#include "stdafx.h"
#include "Sling.h"
#include "GameManager.h"
#include "FileStuff.h"
#include <SimpleAudioEngine.h>
Sling::Sling() : m_shotAngle(Vec2::ZERO), m_shotPower(0),
m_arm(nullptr), m_character(nullptr),
m_status(STATUS::EMPTY)
{
m_expectLine.reserve(DOTNUM_OF_LINE);
m_beforeLin... |
<commit_before>/*Copyright 2014 George Karagoulis
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 w... |
<commit_before>/*
* Copyright (C) 2011, 2012 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
*
* 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... |
<commit_before>/*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
<commit_before>/*
* File: ZooKeeperRouter.cpp
* Author: Paolo D'Apice
*
* Created on February 17, 2012, 2:32 PM
*/
#include "net/sf1r/distributed/ZooKeeperRouter.hpp"
#include "net/sf1r/distributed/Sf1Topology.hpp"
#include "../PoolFactory.hpp"
#include "../RawClient.hpp"
#include "RoundRobinPolicy.hpp"
#incl... |
<commit_before>/*************************************************************************
*
* $RCSfile: ColumnControlWindow.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2004-05-19 13:53:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>#pragma once
#ifndef WTL_PRANDOM_HPP_
#define WTL_PRANDOM_HPP_
#include <vector>
#include <random>
#include <unordered_set>
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////
namespace wtl {
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////
te... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2014, 2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
<commit_before>#ifndef __CLITL_HPP__
#define __CLITL_HPP__
#include <cstdio>
#include <iosfwd>
#include <locale>
#include <string>
#include <utility>
#ifdef UNIX
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#elif WIN32
#include <conio.h>
#include <Windows.h>
#endif
namespace clitl {
/* Color c... |
<commit_before>// Object stacks, used in lieu of dynamically-sized frames.
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <new>
#include <stdint.h>
#include "rust_internal.h"
#include "rust_obstack.h"
#include "rust_task.h"
// ISAAC, let go of max()!
#ifdef max
#undef max
#endif
//#define DPRIN... |
<commit_before>#include "profile.hpp"
#include "../../utils/utils.hpp"
#include <limits>
AnytimeProfile::AnytimeProfile(unsigned int cb, unsigned int tb,
const std::vector<SolutionStream> &stream) {
initbins(cb, tb);
seesolutions(stream);
}
AnytimeProfile::AnytimeProfile(const std::string &path) {
FILE *f = fope... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: commoncontrol.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2006-12-13 11:57:02 $
*
* The Contents of this file are ... |
<commit_before>/*
* Assignment Title
* Full Name - ID Numbers
*
* Short problem description
*
*/
#include <iostream>
#include <cassert>
using namespace std;
// Function Declarations
void test();
// Calculates the positive square root using the quadratic formula
// Assumes the answer is real, that is: b^2 >=... |
<commit_before>#ifndef HMLIB_ALIGNEDMEMORY_INC
#define HMLIB_ALIGNEDMEMORY_INC 100
#include<memory>
namespace hmLib{
template<typename T, std::size_t StackSize>
struct aligned_stack final{
using this_type = aligned_stack<T,StackSize>;
using pointer = T*;
using const_pointer = const T*;
public:
aligned_stack(... |
<commit_before>/*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE... |
<commit_before>#ifndef __CLITL_HPP__
#define __CLITL_HPP__
#include <cstdio>
#include <locale>
#include <ostream>
#include <string>
#include <tuple>
#include <utility>
#ifdef UNIX
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#elif WIN32
#include <conio.h>
#include <Windows.h>
#endif
namespace clit... |
<commit_before>/*
* Strategy pattern
* Author: reimen
* Data: Oct.13.2014
*
*/
#include <iostream>
#include <cstdlib>
using std::cout;
using std::endl;
class Strategy
{
public:
virtual ~Strategy() {}
virtual void algorithm() = 0;
};
class ConcreteStrategy : public Strategy
{
public:
virtual ~Concrete... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: commoncontrol.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2007-05-10 10:47:04 $
*
* The Contents of this file are ... |
<commit_before>#include "exon.h"
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <cassert>
#include <cstdio>
exon::exon(const string &s)
{
parse(s);
}
int exon::parse(const string &s)
{
char buf[10240];
stringstream sstr(s);
sstr>>buf;
seqname.assign(buf);
sstr>>buf;
source.assign(buf);
ss... |
<commit_before>/// Tests for tuple tranfers
/// (c) Koheron
#ifndef __TUPLE_TESTS_HPP__
#define __TUPLE_TESTS_HPP__
#include <tuple>
#include "../drivers/core/dev_mem.hpp" // Unused but needed for now
//> \description Tests for tuple tranfers
class TupleTests
{
public:
TupleTests(Klib::DevMem& dvm_unused_) {}... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2006 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
This... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
<commit_before>/*************************************************************************
*
* $RCSfile: treechangefactory.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2003-03-19 16:19:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved.
#include <algorithm>
#include "libj/js_array_buffer.h"
#include "libj/string.h"
namespace libj {
class JsArrayBufferImpl : public JsArrayBuffer {
private:
static const union endian_u {
UShort one;
UByte isLittle;
} endian;
... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef FUTURE_HH_
#define FUTURE_HH_
#include "apply.hh"
#include <stdexcept>
#include <memory>
template <class... T>
class promise;
template <class... T>
class future;
template <typename... T, typename... A>
future<T...> make_ready_future(A&&... ... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.