text
stringlengths
54
60.6k
<commit_before>// // main.cpp // thermaleraser // // Created by Mark Larus on 9/8/12. // Copyright (c) 2012 Kenyon College. All rights reserved. // #include <iostream> #include <algorithm> #include <math.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_sf.h> #include <boost/program_options.hpp> #ifdef HAS_BOOST_...
<commit_before>/*! * @file FgAircraft.cpp * * @brief Aircraft abstraction of FlightGear's aircrafts * * @author Andrey Shelest * @author Oleksii Aliakin (alex@nls.la) * @date Created Jan 04, 2015 * @date Modified Jul 30, 2015 */ #include "FgAircraftsModel.h" #include "log.h" #include <QtQml> #include <QTextC...
<commit_before>/* Copyright (c) 2014, Patricio Gonzalez Vivo 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...
<commit_before>/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * ver...
<commit_before>//=====================================================================// /*! @file @brief ソケット、データ受け取りサンプル @n Copyright 2017 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <iostream> #include <string>...
<commit_before>/* Original code from tekkies/CVdrone (get actual address from github) Modified by Elliot Greenlee, Caleb Mennen, Jacob Pollack COSC 402 Senior Design Min Kao Drone Tour See readme at (get actual address from github) */ #include "ardrone/ardrone.h" #include "control.h" #include "...
<commit_before>#include <iostream> #include <cstdlib> #include <vector> #include <string> #include <queue> #include <sys/stat.h> //getlogin() and gethostname(). #include <unistd.h> //perror. #include <stdio.h> //fork,wait and execvp. #include <sys/types.h> #include <sys/wait.h> //boost! #include "boost/algorithm/st...
<commit_before>#include <iostream> #include <stdio.h> #include <string> #include <string.h> #include <unistd.h> #include "cmdAnd.h" #include "cmdOr.h" #include "cmdBase.h" #include "cmdSemi.h" #include "cmdExecutable.h" #include <vector> #include <stack> #include <list> #include <iterator> using namespace std; void p...
<commit_before>#include <Game.hpp> #include <Menu.hpp> #include <string> int main(int argc, char* argv[]); int main(int argc, char* argv[]){ Menu menu; if (argc <= 1) { menu.mainMenu(); } else{ if (std::string(argv[1]) == "--version") { std::cout << "PapraGame v0.4 -- Crepitum Anatum" << std::endl << "...
<commit_before>/* * This file is part of SKATRAK Playground. * * SKATRAK Playground 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 option) an...
<commit_before>#include <QtQuick> #include <sailfishapp.h> #include <QScopedPointer> #include <QQuickView> #include <QQmlEngine> #include <QGuiApplication> #include "factor.h" void loadTranslations() { QString langCode = QLocale::system().name().mid(0, 2); const QString Prefix("sailfactor_"); if (QFile:...
<commit_before>#include <iostream> #include <SDL2/SDL.h> #include <mosquitto.h> #include <math.h> // Sensor Patterns const char* SENSOR_STATE_PATT = "recruitment/ciot/state"; const char* SENSOR_VALUE_PATT = "recruitment/ciot/sensor1"; const char* SENSOR_WAKEUP_PATT = "recruitment/ciot/wake"; void message_callback(...
<commit_before> #include <v8.h> #include <node.h> #include <node_buffer.h> #include <node_object_wrap.h> #include "../deps/celt-0.7.1/libcelt/celt.h" #include "common.h" #include <nan.h> #include <string.h> using namespace node; using namespace v8; class CeltEncoder : public ObjectWrap { private: CELTMode* mode; ...
<commit_before>/* * Copyright (c) 2011, Nathan Rajlich <nathan@tootallnate.net> * * Permission to use, copy, modify, and/or 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 SOFTWAR...
<commit_before>#include "timer.h" #include <cassert> #include <chrono> #include <condition_variable> #include <mutex> #include <queue> #include <thread> #include <unordered_set> namespace ivm { /** * Contains data on a timer. This is shared between the timer_t handle and the thread responsible * for the timer. */ ...
<commit_before>#include "Game.hpp" Game::Game(std::string nickname, std::string address, std::string port): mOgreRoot(0), mOgreResourcesCfg(Ogre::StringUtil::BLANK), mOgrePluginsCfg(Ogre::StringUtil::BLANK), mSceneMgr(0), mCameraManager(0), mGameWindow(0), mInput(0), mNickname(nickname), mLocalPlayer(0), mPl...
<commit_before>/************************************************* * Library Internal/Global State Source File * * (C) 1999-2006 The Botan Project * *************************************************/ #include <botan/libstate.h> #include <botan/config.h> #include <botan/modules.h> #include <botan/eng...
<commit_before>/* kopetemessagemanager.cpp - Manages all chats Copyright (c) 2002 by Duncan Mac-Vicar Prett <duncan@kde.org> Copyright (c) 2002 by Daniel Stone <dstone@kde.org> Copyright (c) 2002 by Martijn Klingens <klingens@kde.org> Copyright (c) 2002-2003 by Olivier Goffart <ogoff...
<commit_before>#include "Game.h" #include "util/Sysout.h" #include "util/Sysin.h" #include "util/SentenceStateBuilder.h" #include "command/CmdDictionary.h" #include "language/Grammar.h" #include "world/World.h" #include "world/Player.h" Game::Game() : running(false) { } void Game::run() { // We are running no...
<commit_before>#include "Game.h" #include "InputHandler.h" #include "MenuState.h" #include "NoJoystickState.h" #include "PlayState.h" #include <iostream> #include <errno.h> static Game* s_pInstance; Game::Game() { m_pWindow = 0; m_pRenderer = 0; } Game::~Game() { InputHandler::Instance()->clean(); InputHandler::...
<commit_before>#include <iostream> #include "Emulator.h" #include "Debugger.h" enum MainFlags : uint8_t { F_DEFAULT = 1, F_ROMINFO = 1 << 1, F_DEBUG = 1 << 2, F_NOSTART = 1 << 3 }; int main(int argc, char **argv) { std::cout << "mfemu v." << VERSION << " rev." << COMMIT << std::endl << std:...
<commit_before>#include <cstdio> #include <SDL2/SDL.h> #include "draw.hpp" const char * game_name = "Game Of Life On Surface"; int screen_width = 640; int screen_height = 640; int R = 200; bool quit_flag = false; SDL_Window * window = NULL; SDL_Renderer * render = NULL; SDL_Event event; void game_send_error( int code...
<commit_before>// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
<commit_before>// Copyright (C) 2016 xaizek <xaizek@openmailbox.org> // // This file is part of uncov. // // uncov 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>/* * main.cpp * * Created on: Jul 13, 2014 * Author: Pimenta */ #include <cstdio> #include "metallicar.hpp" using namespace std; using namespace metallicar; class Space2D : public GameObjectComponent { private: string family() const { return "spatial"; } ...
<commit_before>#include "RTIMULib.h" #include <fstream> std::ostream &operator<<(std::ostream &stream, const RTVector3 &vector) { stream<<vector.x()<<" "<<vector.y()<<" "<<vector.z(); return stream; } int main(int argc, char **argv) { RTIMUSettings *settings = new RTIMUSettings("RTIMULib"); RTIMU *imu = RTIMU::c...
<commit_before>#include <iostream> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "Path.h" using namespace std; int main(int argc, char *argv[]) { sf::RenderWindow window( sf::VideoMode(800, 600), "SuperTeacher" ); cout << "SRC:" << _SRC_DIR << endl; sf::Font font; ...
<commit_before> /* * bltCoreInit.c -- * * This module initials the non-Tk command of the BLT toolkit, registering the * commands with the TCL interpreter. * * Copyright 1991-2004 George A Howlett. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated...
<commit_before>//requirements: x64 and C++14 #define USE_THREAD 1 #include<fstream> #include<memory> //make_unique #if USE_THREAD #include<mutex> #include<thread> //thread::hardware_concurrency() #endif #include<utility> //declval #include<type_traits> //remove_reference #include<vector> #include"../../lib/header/tool/...
<commit_before>// Copyright (c) Sandeep Mistry. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <LoRa.h> // registers #define REG_FIFO 0x00 #define REG_OP_MODE 0x01 #define REG_FRF_MSB 0x06 #d...
<commit_before>#include <iostream> #include <vector> #include <set> #include <algorithm> #include <queue> #include <boost/asio.hpp> #include <boost/thread.hpp> #include <google/protobuf/io/coded_stream.h> #include "message.pb.h" using namespace boost::asio; using ru::spbau::chat::commons::protocol::Message;...
<commit_before>#include "config.h" #include "object/Cube.hpp" #include <Corrade/PluginManager/Manager.h> #include <Corrade/Utility/Resource.h> #include <Magnum/Buffer.h> #include <Magnum/Context.h> #include <Magnum/DefaultFramebuffer.h> #include <Magnum/Math/Angle.h> #include <Magnum/Math/Complex.h> #include <Magnum/...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commer...
<commit_before>#include "render/buffer2d.h" #include "core/assert.h" #include "core/bufferbuilder2d.h" #include "core/cint.h" #include "render/shaderattribute2d.h" namespace euphoria::render { Buffer2d::Buffer2d(const core::BufferBuilder2d& bb) : index_count(core::Csizet_to_int(bb.tris.size())) { ...
<commit_before>#include "types.h" #include "query.h" #include "util.h" #include "version.h" #include "globals.h" #include "snmp.h" using namespace std; void help(); // Setup and initialization. // Display usage. void help() { cerr << "clpoll version " << CLPOLL_VERSION << endl; cerr << " -c <file> Specify confi...
<commit_before>#include "optimize.hpp" std::vector<std::vector<cv::vec2r> > image_all_pts; std::vector<std::vector<cv::vec2r> > image_all_norm_pts; std::vector<cv::matrixr> K_mats; cv::vec2r *image_pts; cv::vec3r *model_pts; real_t *A_mat; real_t *K_mat; real_t *k_vec; bool g_no_skew; bool g_fixed_aspect; unsigned a_...
<commit_before>#include <algorithm> #include <string> #include <iostream> #include <opencv2/opencv.hpp> #include <tesseract/baseapi.h> #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> using namespace cv; using namespace std; namespace fs = boost::filesystem; bool compareContours(vector<Point> a, ...
<commit_before>#include <iostream> #include <sstream> #include <stdexcept> #include <string> #include <chrono> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <linux/i2c-dev.h> using namespace ::std; class I2CBus { public: I2CBus(unsigned _b...
<commit_before>#ifndef OPTIMIZE_HPP_OBWEIHS0 #define OPTIMIZE_HPP_OBWEIHS0 #include <optimization.hpp> #include "calib.hpp" /*! * @brief Optimize extrinsic matrix K (3x4) by minimizing reprojection error while ignoring distortion. * * @param image_points Image 2D points from calibration pattern used to extract ex...
<commit_before>#include "Version.h" #include "SourceControl.h" #include "System/Config.h" #include "System/Events/EventLoop.h" #include "System/IO/IOProcessor.h" #include "System/Service.h" #include "System/FileSystem.h" #include "System/CrashReporter.h" #include "Framework/Storage/BloomFilter.h" #include "Application/...
<commit_before>// main.cpp // Main function for testing Maggie code // // Oliver W. Laslett 2015 // O.Laslett@soton.ac.uk // #include<iostream> using std::cout; using std::endl; #include<cmath> using std::abs; #include<LangevinEquation.hpp> #include<StocLLG.hpp> #include<gtest/gtest.h> #include<boost/multi_array.hpp>...
<commit_before>#include <ctrcommon/input.hpp> #include <ctrcommon/platform.hpp> #include <ctrcommon/ui.hpp> #include <sstream> #include <iomanip> #include <stdio.h> typedef enum { INSTALL, DELETE } Mode; int main(int argc, char **argv) { if(!platformInit()) { return 0; } ...
<commit_before>#include <iostream> #include <chrono> #include <tuple> #include "network/dimse/dimse_pm.hpp" #include "network/upperlayer/upperlayer.hpp" #include "data/attribute/attribute.hpp" #include "data/dataset/dataset_iterator.hpp" #include "data/dictionary/dictionary_dyn.hpp" #include "data/dictionary/datadict...
<commit_before>#include <iostream> #include <functional> #include <memory> #include <vector> #include <boost/asio.hpp> #include <boost/shared_array.hpp> #include <boost/thread.hpp> /* #include <boost/archive/xml_iarchive.hpp> #include <boost/archive/xml_oarchive.hpp> #include "mif/remote/ps.h" #include "mif/remote/p...
<commit_before>#include <string> #include <iostream> #include <fstream> #include <iomanip> using namespace std; #include "options.hpp" #include "version.h" #include "latticePair.hpp" int main(int argc, char * argv[]) { ifstream theFile; CmdLineOptions parsedOptions(argc, argv); if ( !parsedOptions.getQuiet() ) co...
<commit_before>#include <cassert> #include <algorithm> #include <cmath> #include "scene.h" #include "monte_carlo/util.h" #include "monte_carlo/distribution1d.h" #include "integrator/surface_integrator.h" void SurfaceIntegrator::preprocess(const Scene&){} Colorf SurfaceIntegrator::spec_reflect(const RayDifferential &ra...
<commit_before>/****************************************************************************** * Fake Frog * * An Arduino-based project to build a frog-shaped temperature logger. * * Author: David Lougheed. Copyright 2017. ...
<commit_before>#ifndef __TEST_CPP__ #define __TEST_CPP__ #include <unistd.h> #include <stdio.h> #include <sys/wait.h> #include <sys/types.h> #include <sys/stat.h> #include <cstdlib> #include <string> #include <cstring> #include <vector> #include <queue> #include <sstream> #include <dirent.h> #include <iostream> using...
<commit_before>#include "Tree.hpp" #include <stdexcept> #include <tuple> #include <cassert> #include "pll_util.hpp" #include "epa_pll_util.hpp" #include "file_io.hpp" #include "Sequence.hpp" using namespace std; Tree::Tree(const string& tree_file, const string& msa_file, const Model& model) : model_(model) { // T...
<commit_before>/* * DSA Parameter Generation * (C) 1999-2007 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/numthry.h> #include <botan/hash.h> #include <botan/parsing.h> #include <algorithm> namespace Botan { namespace { /* * Check if this size is allowed by F...
<commit_before>/* * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; version 3 of the License. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; ...
<commit_before>/* * Elliptic curves over GF(p) Montgomery Representation * (C) 2014,2015 Jack Lloyd * 2016 Matthias Gierlings * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/curve_gfp.h> #include <botan/curve_nistp.h> #include <botan/numthry.h> #include <botan/reducer.h>...
<commit_before>#include <iostream> #include "main.hpp" #include "util.hpp" #include "system/printer.hpp" #ifndef OBJ_PATH #define OBJ_PATH "share/sphere.obj" #endif /*#ifndef MTL_PATH #define MTL_PATH "share/cube.mtl" #endif*/ #ifndef VERT_PATH #define VERT_PATH "share/fallback.vert" #endif #ifndef FRAG_PATH #define ...
<commit_before> #include "./aux.hpp" #include "./String.hpp" #include "./Log.hpp" #include "./Word.hpp" #include <duct/char.hpp> #include <duct/debug.hpp> #include <duct/CharacterSet.hpp> #include <duct/IO.hpp> #include <cstdlib> #include <algorithm> #include <string> #include <iostream> namespace { static duct::Cha...
<commit_before>#include "PostProcessor.hpp" #if 1 //#ifdef WIN32 namespace Slic3r { //FIXME Ignore until we include boost::process void run_post_process_scripts(const std::string &path, const PrintConfig &config) { } } // namespace Slic3r #else #include <boost/process/system.hpp> namespace Slic3r { void run_pos...
<commit_before>// This file is distributed under the BSD License. // See "license.txt" for details. // Copyright 2009-2010, Jonathan Turner (jonathan@emptycrate.com) // and Jason Turner (jason@emptycrate.com) // http://www.chaiscript.com #include <iostream> #include <list> #include <boost/algorithm/string/trim.hpp> #...
<commit_before>/* Copyright 2013-2014 Dietrich Epp. This file is part of Oubliette. Oubliette is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include <SDL.h> #include <SDL_image.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <unistd.h> #in...
<commit_before>#include <iostream> #include <cstdlib> #include <vector> #include <string> //getlogin() and gethostname(). #include <unistd.h> //perror. #include <stdio.h> //fork,wait and execvp. #include <sys/types.h> #include <sys/wait.h> //boost! #include "boost/algorithm/string.hpp" #include "boost/tokenizer.hpp...
<commit_before>#include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <unistd.h> #include <fstream> #include <iostream> #include <time.h> #include "bcm_host.h" #include "GLES2/gl2.h" #include "EGL/egl.h" #include "EGL/eglext.h" #include "shader.h"...
<commit_before>/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** main.cpp ** ** V4L2 RTSP streamer ...
<commit_before>#include <iostream> #include <sstream> #include <pugixml.hpp> using namespace std; namespace xml = pugi; const string str_xml = "<html>" "<body>" "</body>" "</html>" ; int main(void) { xml::xml_document doc; doc.load(str_xml.c_str()); cout << doc.child("body") << '\n'; return 0; } <commit_m...
<commit_before>// Copyright (c) Burator 2014-2015 #include <QDir> #include <QFile> #include <QImage> #include <QDebug> #include <QString> #include <QFileInfo> #include <QByteArray> #include <QStringList> #include <QCoreApplication> #include <QCommandLineParser> #include "Util.h" #include "Types.h" #include "Global.h" ...
<commit_before>#include "myapplication.h" #include "eventdispatcher_libevent.h" int main(int argc, char** argv) { #if QT_VERSION >= 0x050000 QCoreApplication::setEventDispatcher(new EventDispatcherLibEvent()); #elif QT_VERSION >= 0x040600 EventDispatcherLibEvent e; #endif QCoreApplication::setApplicationName(QLati...
<commit_before>//============================================================================ // Name : ParticleApp.cpp // Author : Viktor Gomeniuk // Version : // Copyright : // Description : Hello World in C++, Ansi-style //===========================================================================...
<commit_before>#include "SDL.h" #include "SDL_opengl.h" #include <cmath> const float kPi = 4.0f * std::atan(1.0f); const float kPlayerForwardSpeed = 0.4f; const float kPlayerTurnSpeed = 10.0f; float playerX = 0.0f, playerY = 0.0f, playerFace = 0.0f; float playerMove(float d) { playerX += d * cos(playerFace * (kPi...
<commit_before>#include "model.h" #include "helper.h" #include "interface.h" #include "shapes.h" #include "raycast.h" #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/euler_angles.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/ext.hpp> #include <imgui.h> #inc...
<commit_before>#include<limits> #include<string> #include<geGL/geGL.h> #include<geDE/geDE.h> #include<geDE/Kernel.h> #include<geUtil/CopyArgumentManager2VariableRegister.h> #include<geUtil/ArgumentManager/ArgumentManager.h> #include<geAd/SDLWindow/SDLWindow.h> #include<geCore/Text.h> #include<AntTweakBar.h> ...
<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 <Game.hpp> int main(int argc, char* argv[]); int main(int argc, char* argv[]){ if (argc <= 1) { Game game; game.launch(); } else{ Game game("res/", std::string(argv[1]) + '/', "ducks/"); game.launch(); } return 0; } <commit_msg>adding --version argument<commit_after>#include <Game...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>// builds all boost.asio source as a separate compilation unit #include <boost/version.hpp> #ifndef BOOST_ASIO_SOURCE #define BOOST_ASIO_SOURCE #endif #if BOOST_VERSION >= 104500 #include <boost/asio/detail/config.hpp> #if defined(BOOST_ASIO_HEADER_ONLY) # error Do not compile Asio library source wit...
<commit_before>#ifdef __APPLE__ #include <SDL2/SDL.h> #elif _WIN32 #define SDL_MAIN_HANDLED #include <SDL.h> #include <stdio.h> #endif #define SCREEN_WIDTH 400 #define SCREEN_HEIGHT 225 #define GAME_WIDTH 256 #define GAME_HEIGHT 144 int main(int argc, char* argv[]) { SDL_version compiled; S...
<commit_before>#include <AppConfig.h> // #include <modules/juce_audio_basics/juce_audio_basics.h> // #include <modules/juce_audio_devices/juce_audio_devices.h> // #include <modules/juce_audio_formats/juce_audio_formats.h> // #include <modules/juce_audio_processors/juce_audio_processors.h> #include <modules/juce_core/ju...
<commit_before>#include "app-cmdline.h" #ifdef QT_GUI_LIB #include "app-gui.h" #endif extern "C" { #include "optparse.h" WARNINGS_DISABLE #include "warnp.h" WARNINGS_ENABLE } #include <ConsoleLog.h> #include <TSettings.h> #include <stdlib.h> #include <persistentmodel/persistentstore.h> #include <translator.h> int...
<commit_before>/* * MRustC - Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * main.cpp * - Compiler Entrypoint */ #include <iostream> #include <iomanip> #include <string> #include <set> #include "parse/lex.hpp" #include "parse/parseerror.hpp" #include "ast/ast.hpp" #include "ast/crate.hpp...
<commit_before>#include "sdk.h" #include "CScripting.h" #include "CCallback.h" #include "CDispatcher.h" #ifdef WIN32 #include <WinSock2.h> #include <mysql.h> #else #include <mysql/mysql.h> #endif extern void *pAMXFunctions; logprintf_t logprintf; PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() { return SUPP...
<commit_before>#include <utility> #include "Xml/XmlParser.hpp" #include "Xsd/XsdChecker.hpp" static int const SUCCESS = 0x0000; static int const INVALID_COMMAND = 0x0001; static int const PARSE_ERROR = 0x0002; static inline void displayMan() { std::cerr << "Available commands are:\n" << "xmltool -p...
<commit_before>#define DISTANCECMCRITICAL 20 #define DISTANCECMWARNING 30 #define PUBLSIHINTERVAL 2000 #define TRYFOLLOWLINEINTERVAL 3000 #define WAITINTERVAL 5000 #define MOVESPEED 100 #define ID "11:11:11:11:11:13" #define JSON #include <Arduino.h> #include <Streaming.h> #include <ArduinoJson.h> #include <MeMCore.h...
<commit_before><commit_msg>Changes Live Search to Bing for en_US only. A full worldwide review is in progress and we'll pick up the other countries eventually.<commit_after><|endoftext|>
<commit_before>//============================================================================ // Name : UnscentedKalmanFilter.cpp // Author : Ramiz Raja // Version : // Copyright : MIT Licensed // Description : Hello World in C++, Ansi-style //==========================================================...
<commit_before>#include <iostream> #include <sstream> #include <fstream> #include <algorithm> #include <vector> #include <iomanip> #include <cassert> #include "logger.hpp" #include "lexer.hpp" #include "parser.hpp" #include "environment.hpp" #include "interpreter.hpp" // conver a double value to percent std::string f...
<commit_before>#include <iostream> #include <cstdlib> #include <vector> #include <string> //getlogin() and gethostname(). #include <unistd.h> //perror. #include <stdio.h> //fork,wait and execvp. #include <sys/types.h> #include <sys/wait.h> //boost! #include "boost/algorithm/string.hpp" #include "boost/tokenizer.hpp...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed in accordance with the terms specified in * the LICENSE file found in the root directory of this source tree. */ #include <gtest/gtest.h> #include <osquery/database.h> #include <osquery/fl...
<commit_before><commit_msg>Drop PLDM response while handling a new PLDM request<commit_after><|endoftext|>
<commit_before>/********************************************************************** //File WanderCPP //Author Judicael Abecassis //Last modified 08/04/2017 15:58:03 //Definition http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed un...
<commit_before>#include <QString> #include <QSharedPointer> #include <QVector> #include <QUrl> #include <QFileInfo> #include <qtconcurrentmap.h> #include <QCoreApplication> #include "kernel.h" #include "ilwisdata.h" #include "abstractfactory.h" #include "connectorinterface.h" #include "connectorfactory.h" #include "mas...
<commit_before>/** * v8cgi - apache module. * Extends v8cgi_App by adding customized initialization and (std)IO routines */ #include <stdlib.h> #include <string.h> #include "httpd.h" #include "http_config.h" #include "http_log.h" #include "http_protocol.h" #include "util_script.h" #include "apr_pools.h" #include ...
<commit_before>/* Copyright (C) 2006 by Kapoulkine Arseny 2007 by Marten Svanfeldt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, o...
<commit_before>// // EigenJS.cpp // ~~~~~~~~~~~ // // Copyright (c) 2014 Rick Yang (rick68 at gmail dot com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // #if...
<commit_before>/* * optionsbutton.cpp * PHD Guiding * * Created by Andy Galasso * Copyright (c) 2013 Andy Galasso * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modification, ...
<commit_before>/************************************************************************* * * $RCSfile: jobexecutor.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: vg $ $Date: 2003-05-22 08:38:04 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>// // base.hpp // ~~~~~~~~ // // Copyright (c) 2014 Rick Yang (rick68 at gmail dot com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // #ifndef E...
<commit_before>/*===========================================================================*\ * * * OpenMesh * * Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aa...
<commit_before>/** Copyright (c) 2017, Philip Deegan. 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...
<commit_before>#ifndef PROCESS_H #define PROCESS_H #include"heaps.hpp" #include"errors.hpp" #include<vector> #include<stack> #include<boost/shared_ptr.hpp> class Process; /*Use our own stack in order to support restack()*/ class ProcessStack{ private: std::vector<Generic*> stack; public: Generic*& top(size_t off=1)...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics....
<commit_before>#include "command.hh" #include "common-args.hh" #include "shared.hh" #include "progress-bar.hh" #include "eval.hh" #include "eval-inline.hh" #include "primops/flake.hh" #include "get-drvs.hh" #include "store-api.hh" #include <nlohmann/json.hpp> #include <queue> #include <iomanip> using namespace nix; u...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: svdoimp.hxx,v $ * $Revision: 1.1...
<commit_before>#include <stdlib.h> #include <stdio.h> #include <omp.h> #include <tbb/parallel_sort.h> #include "body.h" #include "util.h" using namespace tbb; struct comparator_t { comparator_t(midlvl_t const* const mids, const size_t n) : mids(mids), n(n) {} private: midlvl_t const* const mids; const s...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008, Image Engine Design 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:...