text stringlengths 54 60.6k |
|---|
<commit_before>// arduino2/sketch.cpp
// servo subsystem
#include <Servo.h>
#include "../gbot.h"
Servo servo_x, servo_y;
int servo_x_direction = SERVO_CENTER;
int servo_y_direction = SERVO_CENTER;
int status = STATUS_OK;
void receive_data(int);
void send_data();
void servo_left();
void servo_right();
void servo_up(... |
<commit_before>/*
icqeditaccountwidget.cpp - ICQ Account Widget
Copyright (c) 2003 by Chris TenHarmsel <tenharmsel@staticmethod.net>
Kopete (c) 2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>#include"variables.hpp"
#include"executors.hpp"
#include"atoms.hpp"
#include"processes.hpp"
#include"bytecodes.hpp"
#include<iostream>
#include<boost/shared_ptr.hpp>
#include<map>
static boost::shared_ptr<Atom> QUOTEATOM;
static std::map<Atom*,_bytecode_label> bytetb;
template<class T>
static inline T*... |
<commit_before>/**
* \file
* \brief CallOnceOperationsTestCase class implementation
*
* \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL wa... |
<commit_before>/**
* \file
* \brief ThreadPriorityChangeTestCase class implementation
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the... |
<commit_before>
#include "value.h"
#include "boxed.h"
#include "gobject.h"
#include "debug.cc"
using namespace v8;
namespace GNodeJS {
Handle<Value> GIArgumentToV8(Isolate *isolate, GITypeInfo *type_info, GIArgument *arg) {
GITypeTag type_tag = g_type_info_get_tag (type_info);
switch (type_tag) {
case ... |
<commit_before>#include "gamescene.h"
void GameScene::append_gameItem(QDeclarativeListProperty<GameItem> *list, GameItem *gameItem)
{
GameScene *scene = qobject_cast<GameScene *>(list->object);
if (scene) {
gameItem->setParentItem(scene);
scene->m_gameItems.append(gameItem);
}
}
GameScene:... |
<commit_before>/* wave.c: Generate a C chord in various wave forms
*
* Copyright 2016 Vincent Damewood
*
* 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/li... |
<commit_before>/*******************************************************************************
* alcazar-gen
*
* Copyright (c) 2015 Florian Pigorsch
*
* 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... |
<commit_before>// Copyright (c) 2018 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 "quic/core/http/quic_spdy_stream_body_manager.h"
#include <algorithm>
#include "absl/strings/string_view.h"
#include "quic/p... |
<commit_before>#include "Config.h"
#include "ecru.h"
#include <iostream>
#include <fstream>
#include <libgen.h>
#include <sys/stat.h>
#include <libconfig.h++>
using namespace std;
Config::Config()
{
this->configDirectory = std::string(getenv("HOME")) + "/.ecru/";
//string filename = std::string(getenv("HOME")) ... |
<commit_before>/*
Copyright (c) 2018 - present 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 t... |
<commit_before>/*
* HMDCamera.cpp
*
* Created on: Jun 30, 2013
* Author: Jan Ciger
*/
#include <osg/io_utils>
#include <osg/Texture2D>
#include <osg/PolygonMode>
#include <osg/Program>
#include <osg/Shader>
#include <osgDB/ReadFile>
#include <osgViewer/View>
#include "hmdcamera.h"
#include "oculusdevice.h... |
<commit_before>#include "Homie.hpp"
using namespace HomieInternals;
HomieClass::HomieClass()
: _setupCalled(false)
, _firmwareSet(false)
, __HOMIE_SIGNATURE("\x25\x48\x4f\x4d\x49\x45\x5f\x45\x53\x50\x38\x32\x36\x36\x5f\x46\x57\x25") {
strlcpy(Interface::get().brand, DEFAULT_BRAND, MAX_BRAND_LENGTH);
Interface::ge... |
<commit_before>// Scintilla source code edit control
/** @file LexPS.cxx
** Lexer for PostScript
**
** Written by Nigel Hathaway.
**/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <fcntl.h>
#include "Platform.h"
#include "PropSet.h"
#include "Accessor.... |
<commit_before>#include <iostream>
#include <set>
#include <sstream>
#include <algorithm>
#include "Lower.h"
#include "AddImageChecks.h"
#include "AddParameterChecks.h"
#include "AllocationBoundsInference.h"
#include "Bounds.h"
#include "BoundsInference.h"
#include "CSE.h"
#include "Debug.h"
#include "DebugToFile.h"
... |
<commit_before>#include <info/info.hpp>
#include <op/op.hpp>
#include <singleton.hpp>
#include <utility>
#include <algorithm>
using namespace MCPP;
namespace MCPP {
static const String name("Information Provider");
static const String identifier("info");
static const String summary("Provides information about ... |
<commit_before>//
// (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#include "charls.h"
#include "util.h"
#include "jpegstreamreader.h"
#include "jpegstreamwriter.h"
#include "jpegmarkersegment.h"
using namespace std;
using namespace charls;
s... |
<commit_before>/*
* fileio.hpp
*
* Created on: Oct 21, 2009
* Author: rasmussn
*/
#ifndef FILEIO_HPP_
#define FILEIO_HPP_
#include "io.h"
#include "../include/PVLayerLoc.h"
#include "../columns/Communicator.hpp"
namespace PV {
FILE * pvp_open_write_file(const char * filename, Communicator * comm, bool ap... |
<commit_before>#include <microscopes/irm/model.hpp>
#include <microscopes/common/util.hpp>
#include <distributions/special.hpp>
#include <algorithm>
using namespace std;
using namespace distributions;
using namespace microscopes::common;
using namespace microscopes::common::sparse_ndarray;
using namespace microscopes... |
<commit_before>// =============================================================================
// File Name: Robot.cpp
// Description: Implements the main robot class
// Author: FRC Team 3512, Spartatroniks
// =============================================================================
#include "Robot.hpp"
#include ... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: SbrLgt.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, reproduc... |
<commit_before>/*
* Scene.cpp
*
* Created on: 24.01.2015
* Author: sartz
*/
#include "Scene.hpp"
#include "Tile.hpp"
Scene::Scene() {
// TODO Auto-generated constructor stub
for (int x=0;x<sizeX * largeTileSizeX;x++)
{
for (int y=0;y<sizeY * largeTileSizeY;y++)
{
gameBoard.push_back(new Tile());... |
<commit_before>
#include "keyboard.h"
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "../deps/chromium/macros.h"
#include "../deps/chromium/x/keysym_to_unicode.h"
#include "../deps/chromium/x/keycode_and_xkeycode.h"
typedef struct _XDisplay XDisplay;
namespace {
class KeyModifierMask... |
<commit_before>/*
* V1.h
*
* Created on: Jul 30, 2008
*
*/
#ifndef V1_HPP_
#define V1_HPP_
#include "HyPerLayer.hpp"
#include "../arch/opencl/CLKernel.hpp"
#include "LIF2.h"
namespace PV
{
// by default uses LIF2 parameters
typedef LIF2_params LIFParams;
class V1: public PV::HyPerLayer
{
public:
V1(const ... |
<commit_before>#include <microscopes/lda/model.hpp>
microscopes::lda::model_definition::model_definition(size_t n, size_t v)
: n_(n), v_(v)
{
MICROSCOPES_DCHECK(n > 0, "no docs");
MICROSCOPES_DCHECK(v > 0, "no terms");
}
microscopes::lda::state::state(const model_definition &defn,
float alpha,
... |
<commit_before>// config.cc
// 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 writi... |
<commit_before>#include <nan.h>
#include <boost/coroutine/all.hpp>
#include <sstream>
using v8::FunctionTemplate;
using v8::Handle;
using v8::Object;
using v8::String;
NAN_METHOD(Fibo) {
NanScope();
boost::coroutines::asymmetric_coroutine<int>::pull_type source(
[&](boost::coroutines::asymmetric_coro... |
<commit_before>#include "config.h"
#include "main.h"
#include <string.h>
#include <errno.h>
#include <time.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <vector>
const ALchar *last_error = "No error";
#define MAKE_FUNC(x) typeof(x) * p##x
#ifdef HAS_SNDFILE
void *sndfile_handle;
MAKE_FUNC(sf_open);... |
<commit_before>#include <nanosoft/mysql.h>
#include <mysql/mysql.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
namespace nanosoft
{
MYSQL *mysql_init_struct = MySQL::init();
MYSQL * MySQL::init()
{
MYSQL *m = mysql_init(0);
if ( m ) return m;
fprintf(stderr, "MySQL initia... |
<commit_before>
#ifdef _DEBUG
//#include <vld.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <string.h>
#include "StrStr.h"
#include "Kmp.h"
#include "BoyerMoore.h"
#include "support/StopWatch.h"
using namespace StringMatch;
#ifnd... |
<commit_before>#include "flatgltf/2.0/glTF_generated.h"
#include "flatgltf/2.0/glTFapi.hpp"
#include "flatgltf/common/glTFutils.hpp"
#include "glTFinternal.hpp"
#define KHUTILS_ASSERTION_INLINE
#include "khutils/assertion.hpp"
#include "khutils/runtime_exceptions.hpp"
namespace glTF_2_0
{
using namespace glTF_comm... |
<commit_before>#include "Action/AAction.hh"
AAction::AAction()
: _data(*Action::data), _state(Action::NOT_STARTED)
{
addListener("onInit", &AAction::_init);
addListener("onUpdate", &AAction::_update);
}
Action::State AAction::update()
{
if (_state == Action::NOT_STARTED)
{
while (_actions.size())
{... |
<commit_before>// Copyright (c) 2014-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAOCPP_PEGTL_INCLUDE_INTERNAL_FILE_OPENER_HPP
#define TAOCPP_PEGTL_INCLUDE_INTERNAL_FILE_OPENER_HPP
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/type... |
<commit_before>#include "smssendprovider.h"
#include "smsglobal.h"
#include "smscontact.h"
#include <kdeversion.h>
#if KDE_VERSION > 305
#include <kprocio.h>
#else
#include <kprocess.h>
#endif
#include <qregexp.h>
#include <qlabel.h>
#include <qfile.h>
#include <klineedit.h>
#include <kmessagebox.h>
#include <klocale.... |
<commit_before>/**********************************************************************************
* Project: ROOT - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA *
* Web : http://tmva.sourceforge.net ... |
<commit_before>// ----------------------------------------------------------------------------
// ------------- AI Battleground, Copyright(C) Maciej Pryc, 2016 --------------
// ----------------------------------------------------------------------------
#include "CapturePoint.h"
#include "TextureManager.h"
#inc... |
<commit_before>/*********************************************************************
*
* Copyright (C) 2008, Simon Kagstrom
*
* Filename: jfmt.cc
* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
* Description: Jfmt instructions (jumps and calls)
*
* $Id:$
*
*********************************... |
<commit_before>///
/// @file S2_hard.cpp
/// @brief Calculate the contribution of the hard special leaves which
/// require use of a sieve (Deleglise-Rivat algorithm).
/// This is a parallel implementation which uses compression
/// (PiTable & FactorTable) to reduce the memory usage by
/// ... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>#include"../header/CTsaiAlgorithm.h"
#include<algorithm> //min_element, rotate, sort
#include<chrono> //for random
#include<cstddef> //size_t
#include<functional> //equal_to, hash
#include<iterator> //make_move_iterator
#include<random> //mt19937, uniform_int_distribution
#include<stdexcept> //logic_erro... |
<commit_before><commit_msg>Planning: code cleaning<commit_after><|endoftext|> |
<commit_before>/**
* @file ClusterRefiner.cpp
* @brief cluster refiner interface implementation
*/
//external headers
// uncomment if the prints are needed #include <iostream>
//local headers
#include "../include/ClusterRefiner.hpp"
namespace clusterer
{
namespace backend
{
void ClusterRefiner::printSol(const Clust... |
<commit_before>/***********************************************************************
filename: SamplesBrowserManager.cpp
created: 11/6/2012
author: Lukas E Meindl
*************************************************************************/
/*********************************************************************... |
<commit_before>#include "shaderlab/WxPreviewCanvas.h"
#include "shaderlab/MessageID.h"
#include "shaderlab/WxGraphPage.h"
#include "shaderlab/ImageViewer.h"
#include "shaderlab/HeightViewer.h"
#include "shaderlab/ModelViewer.h"
#include "shaderlab/Node.h"
#include <ee0/WxStagePage.h>
#include <ee0/SubjectMgr.h>
#inclu... |
<commit_before><commit_msg>Fix double (post)initialization of scenes on startup<commit_after><|endoftext|> |
<commit_before><commit_msg>Format frame time plot line in ms<commit_after><|endoftext|> |
<commit_before>#include <stan/math/prim/scal.hpp>
#include <gtest/gtest.h>
#include <limits>
TEST(MathFunctions, is_nan) {
using stan::math::is_nan;
double infinity = std::numeric_limits<double>::infinity();
double nan = std::numeric_limits<double>::quiet_NaN();
double min = std::numeric_limits<double>::min();... |
<commit_before>/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2010 Hieu Hoang
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 ... |
<commit_before>//
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace GpioOneWire;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namesp... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>#include "gl_core_4_4.h"
#include "Font.h"
#include <stdio.h>
#define STB_TRUETYPE_IMPLEMENTATION
#include <stb_truetype.h>
namespace aie {
Font::Font(const char* trueTypeFontFile, unsigned short fontHeight)
: m_glyphData(nullptr),
m_glHandle(0),
m_pixelBufferHandle(0),
m_textureWidth(0),
m_text... |
<commit_before>#include "qt/editor_dialog.hpp"
#include "map/framework.hpp"
#include "search/result.hpp"
#include "indexer/classificator.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_algo.hpp"
#include "indexer/osm_editor.hpp"
#include "base/collection_cast.hpp"
#include "std/set.hpp"
#include "std... |
<commit_before>#include "QCodeEditor.h"
#include "xo/system/system_tools.h"
#include "xo/system/assert.h"
#include "xo/string/string_tools.h"
#include <QTextStream>
#include <QMessageBox>
#include <QFileDialog>
QCodeEditor::QCodeEditor( QWidget* parent ) :
QWidget( parent ),
textChangedFlag( false )
{
QVBoxLayout* ve... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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 <memory>
#include <SFCGAL/all.h>
#include <SFCGAL/algorithm/triangulate.h>
#include <SFCGAL/io/wkt.h>
#include <SFCGAL/io/WaveFrontObj.h>
using namespace SFCGAL ;
int main() {
std::string wkt( "MULTIPOLYGON(((17.6999999999534 21.2000000001863,0 5.70000000018626,4.19999999995343 0... |
<commit_before>//
// main.cpp
// GLEngineExample1
//
// Created by Asger Nyman Christiansen on 18/12/2016.
// Copyright © 2016 Asger Nyman Christiansen. All rights reserved.
//
#include "GLCamera.h"
#include "MeshCreator.h"
#include "materials/GLColorMaterial.h"
#include "gtx/rotate_vector.hpp"
#include "GLAmbient... |
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open public ... |
<commit_before>/*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contribut... |
<commit_before>#include "Fl_Tree_PrefsC.h"
#ifdef __cplusplus
EXPORT {
#endif
FL_EXPORT_C(fl_Tree_Prefs, Fl_Tree_Prefs_New)(){
//
}
FL_EXPORT_C(Fl_Font,Fl_Tree_Prefs_item_labelfont)(fl_Tree_Prefs tree_prefs){
return (static_cast<Fl_Tree_Prefs*>(tree_prefs))->item_labelfont();
}
FL_EXPORT_C(void,Fl_Tree_Prefs... |
<commit_before>#include "gru.h"
#include <sstream>
#include <gflags/gflags.h>
#include <boost/algorithm/string.hpp>
#include <vector>
#include <cmath>
#include "logging.h"
#include "util.h"
DECLARE_int32(galaxy_deploy_step);
DECLARE_string(minion_path);
DECLARE_string(nexus_server_list);
DECLARE_string(nexus_root_pat... |
<commit_before>#include "gru.h"
#include <sstream>
#include <gflags/gflags.h>
#include <boost/algorithm/string.hpp>
#include <vector>
#include "logging.h"
#include "util.h"
DECLARE_int32(galaxy_deploy_step);
DECLARE_string(minion_path);
DECLARE_string(nexus_server_list);
DECLARE_string(nexus_root_path);
DECLARE_strin... |
<commit_before>// Implementation of a linear time algorithm that find the longest palindromic
// substring of a given string.
//
// Author: Mikhail Andrenkov
// Date: October 22, 2017
//
// Credit: This code is a modification of a Manacher's Algorithm implementation
// from https://algs4.cs.princeton.edu/53subs... |
<commit_before>/* *** This file is part of bbox ***
*
* Copyright (C) 2010 Andrea Marchesini <baku@ippolita.net>.
*
* This program is free software. It is released under the terms of
* the BSD License. See license.txt for more details.
*/
#include "bbsvn.h"
#include "bbsvnmanager.h"
#include "bbsvnstatus.h"
#in... |
<commit_before>// This code is licensed under the New BSD license.
// See LICENSE.txt for more details.
#include <iostream>
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Host.h"
#include "clang/Frontend/DiagnosticOptions.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Basic/LangOp... |
<commit_before>/*
* Copyright (C) 2009 Toni Gundogdu.
*
* This file is part of cclive.
*
* cclive 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) an... |
<commit_before>#include <v8.h>
#include <node.h>
#include <string>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include "sass_context_wrapper.h"
using namespace v8;
using namespace std;
void WorkOnContext(uv_work_t* req) {
sass_context_wrapper* ctx_w = static_cast<sass_context_wrapper*>(req->data);... |
<commit_before>#include "buffer.hh"
#include "buffer_manager.hh"
#include "window.hh"
#include "assert.hh"
#include "utils.hh"
#include "context.hh"
#include "utf8.hh"
#include <algorithm>
namespace Kakoune
{
Buffer::Buffer(String name, Flags flags, std::vector<String> lines)
: m_name(std::move(name)), m_flags(... |
<commit_before>#include "ext-common.h"
#include "log.h"
#include "applet-connection.h"
#include "ext-utils.h"
#include "commands.h"
namespace seafile {
uint64_t reposInfoTimestamp = 0;
std::string toString(RepoInfo::Status st) {
switch (st) {
case RepoInfo::NoStatus:
return "nostatus";
case Rep... |
<commit_before>
/*
* Copyright (c) 2006 The Regents of The University of Michigan
* 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 copyr... |
<commit_before>/*
* Copyright (c) 2006 The Regents of The University of Michigan
* 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 copyri... |
<commit_before>// Copyright (c) 2009 The Chromium OS 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 <cmath>
#include <cstdlib>
extern "C" {
#include <clutter/clutter.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
}
#include... |
<commit_before>#include <stdio.h>
#include <memory>
#include <string>
#include <vector>
#include <curl/curl.h>
typedef struct {
std::string in_source_url;
std::string in_href_url;
std::string out_source_page;
} LinkTestData;
size_t WriteData(void *buffer, size_t size, size_t nmemb, void *userp) {
LinkTestDa... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <cstring>
#include <iostream>
#include <utility>
using namespace std;
#include "scx/Dir.h"
#include "scx/FileInfo.h"
using namespace scx;
#include "Utils.h"
#include "TransUnit.h"
#include "Compiler.h"
namespace Error... |
<commit_before>#include "mode_help.hpp"
#include <src/mode_dcd_help.hpp>
#include <src/mode_pdb_help.hpp>
#include <src/mode_ninfo_help.hpp>
#include <src/mode_calc_help.hpp>
namespace mill
{
const char* main_usage() noexcept
{
return "Usage: mill [--debug|--quiet] [mode] [parameters...]\n"
"# Log opt... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 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>#include "MailConnection.h"
#include "parser.h"
MailConnection::MailConnection(std::string address, std::string login, std::string password, int type, int port/* = 465*/)
: _address(address), _type(type), _port(port), valid(true), _sock(0), conn(nullptr), originalLogin(login), originalPass(password)... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
<commit_before>/*
addaccountwizard.cpp - Kopete Add Account Wizard
Copyright (c) 2003 by Olivier Goffart <ogoffart@tiscalinet.be>
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>#include "stdafx.h"
#include "common/RhoPort.h"
#include "common/StringConverter.h"
#include "ruby/ext/rho/rhoruby.h"
#include "MainWindow.h"
#include "tapi.h"
#include "tsp.h"
using namespace rho;
using namespace rho::common;
extern "C"
{
static int PHONE_NUMBER_BUFFER_SIZE = 512;
// szNumber - Out... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2012.
// 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)
//=================================... |
<commit_before>/*
* Copyright (C) 2015 deipi.com LLC and contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limit... |
<commit_before>/**
* @copyright Copyright (c) 2014, J-PET collaboration
* @file JPetManager.cp
* @author Wojciech Krzemien, wojciech.krzemien@if.uj.edu.pl
*/
#include "./JPetManager.h"
#include <cassert>
#include <ctime>
#include <string>
#include "../../JPetLoggerInclude.h"
#include "../JPetScopeModule/J... |
<commit_before>/*******************************************************************************
* Copyright (c) 2009-2014, MAV'RIC Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... |
<commit_before>#include "command.hh"
#include "serve-protocol.hh"
#include "shared.hh"
#include "store-api.hh"
#include "worker-protocol.hh"
using namespace nix;
std::string formatProtocol(unsigned int proto)
{
if (proto) {
auto major = GET_PROTOCOL_MAJOR(proto) >> 8;
auto minor = GET_PROTOCOL_MIN... |
<commit_before>/**
* 24-hour NTP clock
* For use with a 4-digit 7-segment display and an ESP8266
* @copyright 2016 Christopher Hiller <boneskull@boneskull.com>
* @license MIT
*/
#include <ESP8266WiFi.h>
#include <NTPClient.h>
#include <Adafruit_LEDBackpack.h>
#include <Task.h>
#pragma clang diagnostic push
#prag... |
<commit_before>#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "ByteBuffer.h"
#include "wav.h"
#include "oamlAudio.h"
oamlAudio::oamlAudio(const char *audioFilename, int audioType, int audioBars, float audioBpm, int audioFadeIn, int audioFadeOut) {
buffer = ... |
<commit_before>/**
** \file object/fwd.hh
** \brief Forward declarations of all node-classes of OBJECT
** (needed by the visitors)
*/
#ifndef OBJECT_FWD_HH
# define OBJECT_FWD_HH
# include <libport/fwd.hh>
# include <libport/intrusive-ptr.hh>
# include <libport/reserved-vector.hh>
# include <urbi/export.hh>
name... |
<commit_before>#include "ofxKinect.h"
#include "ofMain.h"
// pointer to this class for static callback member functions
ofxKinect* thisKinect = NULL;
//--------------------------------------------------------------------
ofxKinect::ofxKinect()
{
ofLog(OF_LOG_VERBOSE, "ofxKinect: Creating ofxKinect");
bVerbose ... |
<commit_before>#include "operators.hpp"
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <sstream>
#include <string>
/* explicit instantiation declaration */
template float operators::sum<float> (std::vector<float> values);
template double operators::sum<double> (std::vector<double> valu... |
<commit_before>/*************************************************************************
*
* $RCSfile: plugin.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:29:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>#include "nixsection.h"
#include "mex.h"
#include <nix.hpp>
#include "nixgen.h"
#include "handle.h"
#include "arguments.h"
#include "struct.h"
#include "nix2mx.h"
namespace nixsection {
static mxArray* array_from_value(nix::Value v)
{
mxArray *res;
nix::DataType dtype = v.type();
switch... |
<commit_before>#include "compiler.h"
#include "mswin.h"
#include <windowsx.h>
#include "polymorph.h"
#include "resources.h"
#include "glinit.h"
#include "model.h"
#include "aligned-arrays.h"
#include "qpc.h"
#include "print.h"
#define WC_MAIN TEXT ("M")
ALIGN_STACK LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, W... |
<commit_before>/*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>#include <RGBLed.h>
#include <Backlight.h>
#include <AdapterBoard.h>
#include <Arduino.h>
#include "usb_commands.h"
AdapterBoard::AdapterBoard()
{
}
void AdapterBoard::init()
{
//Initialize the led, set to 'standby'
led.init(LED_R, LED_G, LED_B);
led.set(STANDBY_COLOUR);
//Setup backlight, res... |
<commit_before>#include "helix/order_book.hh"
#include <boost/version.hpp>
#include <stdexcept>
#include <limits>
using namespace std;
namespace helix {
execution::execution(uint64_t price, side_type side, uint64_t remaining)
: price{price}
, side{side}
, remaining{remaining}
{
}
order_book::order_book... |
<commit_before>/*
Copyright (c) 2008, 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 "propimage.h"
#include "proploader.h"
PropImage::PropImage()
: m_imageData(NULL)
{
}
PropImage::PropImage(uint8_t *imageData, int imageSize)
: m_imageData(NULL)
{
setImage(imageData, imageSize);
}
PropImage::~PropImage()
{
}
void PropImage::setImage(uint8_t *imageData, int imageS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.