text
stringlengths
54
60.6k
<commit_before>/** * Project * # # # ###### ###### * # # # # # # # # * # # # # # # # # * ### # # ###### ###### * # # ####### # # # # * # # # # # # # # * # # # # # # # # * * Copyright (...
<commit_before>/* Luwra * Minimal-overhead Lua wrapper for C++ * * Copyright (C) 2016, Ole Krüger <ole@vprsm.de> */ #ifndef LUWRA_TYPES_REFERENCE_H_ #define LUWRA_TYPES_REFERENCE_H_ #include "../common.hpp" #include "../values.hpp" #include <memory> LUWRA_NS_BEGIN namespace internal { // Create reference to t...
<commit_before>/* * boostMPI template, boost+boostMPI, include boost include/lib MS-MPI include, and MS-MPI library, which is msmpi.lib * Author: Shirong Bai * Email: bunnysirah@hotmail.com or shirong.bai@colorado.edu * Date: 10/08/2015 */ #include <cstdlib> #include "../include/drivers/drivers.h" #include "../in...
<commit_before>// Includes #include <Arduino.h> #include <Wire.h> #include <SD.h> #include <RTClib.h> // Compile-Time Settings #define SERIAL_LOGGING 1 #define FILE_LOGGING 1 // Compile-Time Constants #define SD_CARD_PIN 10 #define RTC_PIN_1 4 #define RTC_PIN_2 5 #define MAX_LOG_FILES 1000 #de...
<commit_before>#include <allegro.h> #ifdef ALLEGRO_WINDOWS #include <winalleg.h> #endif #ifndef ALLEGRO_WINDOWS #include <signal.h> #include <string.h> #endif #include "globals.h" #include "init.h" #include <pthread.h> #include "network/network.h" #include <ostream> #include "dumb/include/dumb.h" #include "dumb/incl...
<commit_before>#include <string> #include <vector> #include <map> #include "util/Sysout.h" #include "util/Sysin.h" #include "language/Lexicographer.h" #include "command/CmdLexicographer.h" #include "Game.h" // Initialization put in a handy auxiliary function! void init() { // Legend Sysout::println("Fuzzy C...
<commit_before>//this is our main file // testing #include <iostream> #include <boost/tokenizer.hpp> #include <string> using namespace std; int main() { vector<string> parse; string str; cout << "$"; getline(cin, str); cout << endl; while(str != "exit") { typedef boost::toknizer<boost::char_separator<char> > T...
<commit_before>#include <memory> #include <iostream> #include <sstream> #include "file_manager/FileManager.h" #include "p2p_network/p2p_manager/p2pnode.h" #include "app/app.h" using namespace std; int main(int argc, char * argv[]) { if (argc != 6) { std::cerr << "App port, File mgr port, Server port, Ma...
<commit_before>// MAIN SOURCE #include <iostream> #include <fstream> #include "checker.h" #include "include/configuration.h" #include "gflags/gflags.h" namespace sqlcheck { Configuration state; } // namespace sqlcheck DEFINE_bool(c, false, "Display warnings in color mode"); DEFINE_bool(color_mode, false, "Displ...
<commit_before>#include <cstring> #include <iostream> using namespace std; int main(int argc, const char* argv[]) { // Print help if (argc == 1 || strcmp(argv[0], "--help") == 0) { cout << "GLSLPreprocessor is a simple preprocessor for GLSL files." << endl << "Usage:" << endl ...
<commit_before>#include <SFML/Graphics.hpp> #include <iostream> #include <stdexcept> using namespace sf; Texture texture; Sprite sprite; void Load() { if (!texture.loadFromFile("res/img/spaceship1.png")) { throw std::invalid_argument("Loading error!"); } } void Update() { Vector2f move; if (Keyboard::isK...
<commit_before>#include "ExecutionEngine.h" #include <chrono> #include <cstdlib> // env options #include <llvm/IR/Module.h> #include <llvm/ADT/Triple.h> #pragma warning(push) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llv...
<commit_before>/*! \file main.cpp * \brief Program to run the grid code. */ #ifdef MPI_CHOLLA #include <mpi.h> #include "mpi_routines.h" #endif #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "global.h" #include "grid3D.h" #include "io.h" #include "error_handling.h" #define OUT...
<commit_before>#include "ExecutionEngine.h" #include <chrono> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <llvm/IR/LLVMContext.h> #include <llvm/IR/Module.h> #include <llvm/ADT/Triple.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llvm/ExecutionEngine/Sect...
<commit_before>#include <iostream> #include <stdlib.h> #include <pwd.h> #include <vector> #include <string> #include <cstring> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> using namespace std; //function to convert a vector of char * to a //char * [] for use as an execvp argumen...
<commit_before>/* ** buffer.cpp ** Login : <hcuche@hcuche-de> ** ** Author(s): ** - hcuche <hcuche@aldebaran-robotics.com> */ #include <qimessaging/buffer.hpp> #include <cstdio> #include <cstring> #include <ctype.h> #include "src/buffer_p.hpp" #include <iostream> namespace qi { BufferPrivate::BufferPrivate() ...
<commit_before>// // Created by Mark van der Broek on 27/02/2017. // #include "main.h" int main() { // LOAD DATA std::string fileName = "/Users/markvanderbroek/CLionProjects/ORACS/src/data/instanceA_10_input.txt"; Init init{fileName}; init.show(); // Create empty solution Solution solution{in...
<commit_before>#include <QtQuick/QQuickView> #include <QtGui/QGuiApplication> #include <QtQml> #if QT_VERSION > QT_VERSION_CHECK(5, 1, 0) #include <QQmlApplicationEngine> #endif #include "qhttpserver/src/qhttpserver.h" #include "qhttpserver/src/qhttprequest.h" #include "qhttpserver/src/qhttpresponse.h" #include "qhttps...
<commit_before>// Copyright 2020 Google LLC // // 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 o...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <windows.h> #include <shlwapi.h> #include "base/command_line.h" #include "base/debug/trace_event.h" #include "base/environmen...
<commit_before>#include <irrlicht.h> #include "events.h" #include "gui_game.h" using namespace irr; namespace ic = irr::core; namespace is = irr::scene; namespace iv = irr::video; namespace ig = irr::gui; int main() { // Le gestionnaire d'événements EventReceiver receiver; std::vector<iv::ITexture*> tex...
<commit_before><commit_msg>Change PipelineImplTest in media_unittests to workaround gmock bug<commit_after><|endoftext|>
<commit_before>#include "mainwindow.h" #include <QApplication> #include <QFile> #include <QStyle> #include <QDebug> #include "sprite.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; QFile styleSheet(":/style.qss"); styleSheet.open(QFile::ReadOnly); QString _styleShe...
<commit_before>#include <StdAfx.h> #include <UI/Dialogs/Editors/HexEditor.h> #include <UI/FileDialogEx.h> #include <UI/ViewPane/CountedTextPane.h> #include <UI/ViewPane/SmartViewPane.h> #include <UI/ViewPane/SplitterPane.h> #include <UI/ViewPane/TreePane.h> #include <MAPI/Cache/GlobalCache.h> #include <MAPI/MAPIFunctio...
<commit_before>#include <iostream> #include <cmath> #include <algorithm> using namespace std; #define MAX_PAIR_NUM 1000 typedef struct Record { int pos; int pixel; } Record; int pixel_pair[MAX_PAIR_NUM][2]; int img_width; Record result[MAX_PAIR_NUM * 9]; bool cmp(const Record& a, const Record& b); int get_pix...
<commit_before>// remove duplicates from sorted array // 10.29.2016 #include <iostream> #include <cassert> using namespace std; class Solution { public: int removeDuplicates(int A[], int n) { if (n == 0 || n == 1) return n; int index = 0; for (int i = 1; i < n; i++) { if ...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "CertificateUtils.h" #include <fcntl.h> #include <folly/portability/Fcntl.h> #include <folly/portability/S...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief dispatcher thread for JavaScript actions /// /// @file /// /// DISCLAIMER /// /// Copyright 2004-2012 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you...
<commit_before>/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2017 Baldur Karlsson * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
<commit_before>// Copyright 2013 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 "chromeos/ime/xkeyboard.h" #include <cstdlib> #include <cstring> #include <queue> #include <set> #include <utility> #include "ba...
<commit_before>#include "net/http/HttpContext.h" #include "net/NetBuffer.h" #include "base/Timestamp.h" using zl::base::Timestamp; NAMESPACE_ZL_NET_START /// parse: /// request line \r\n /// request header \r\n /// \r\n /// request body // 使用chorme浏览器请求127.0.0.1:8888/index.html时,server收到的http消息...
<commit_before>#include "AppInfo.h" #include "FileUtils.h" #include "Log.h" #include "Platform.h" #include "ProcessUtils.h" #include "StringUtils.h" #include "UpdateScript.h" #include "UpdaterOptions.h" #include "tinythread.h" #if defined(PLATFORM_LINUX) #include "UpdateDialogGtkWrapper.h" #include "UpdateDialogA...
<commit_before>#include <iostream> #include <stdlib.h> #include <pwd.h> #include <vector> #include <string> #include <cstring> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> using namespace std; //function to convert a vector of char * to a //char * [] for use as an execvp argumen...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // CoinVault // // main.cpp // // Copyright (c) 2013 Eric Lombrozo // // All Rights Reserved. #include "settings.h" #include <QApplication> #include <QDateTime> #include "splashscreen.h" #include "mainwindow.h" #include...
<commit_before>#include "GarrysMod\Lua\Interface.h" #include "Leap.h" using namespace GarrysMod; using namespace Leap; Controller *controller = nullptr; void *fake_heap[sizeof(Controller)]; int leap_IsConnected(lua_State *state) { LUA->PushBool(controller->isConnected()); return 1; } int leap_Frame(lua_State *s...
<commit_before>#include <node.h> #include <node_buffer.h> #include "gn_encoder.h" #include "gn_playlist.h" #include "gn_playlist_item.h" using namespace v8; GNEncoder::GNEncoder() {}; GNEncoder::~GNEncoder() { groove_encoder_destroy(encoder); }; Persistent<Function> GNEncoder::constructor; template <typename ta...
<commit_before>////////////// // Includes // #include <SDL_image.h> #include <SDL.h> #include "rectangle.hpp" #include "sprite.hpp" #include "window.hpp" #include "game.hpp" ////////// // Code // // Entry point! int main() { Window w("Hello World!", 640, 480, false); Sprite s(w.getRenderer(), "res/test.png"...
<commit_before>#include <QFont> #include <QSettings> #include <QVariant> #include <cstdlib> #include <iostream> #include <stdexcept> extern "C" { #include <libxslt/xslt.h> #include <libxml/parser.h> #include <libxml/xpath.h> #include <libexslt/exslt.h> } #include "DactApplication.hh" namespace { void usage(char...
<commit_before> // // SlicerSnake // main.cpp // https://github.com/adisib // #include <cstdlib> // srand #include <ctime> // srand(time(NULL)) #include "display.h" #include "game.h" // Allows the player to select a game mode ssnake::Game_t gameSelectMenu(ssnake::Display* display, ssnake::Player...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/object.h" #include "gfx/scene_node.h" #include "gfx...
<commit_before>#pragma once namespace gsl { template<typename T> using owner = T; } // namespace gsl <commit_msg>dead code<commit_after><|endoftext|>
<commit_before>#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <getopt.h> #include <string> #include <vector> #include "sequence.hpp" #include "polisher.hpp" #ifdef CUDA_ENABLED #include "cuda/cudapolisher.hpp" #endif static const char* version = "v1.4.0"; static const int32_t CUDAALIGNER_INPUT_C...
<commit_before>// Copyright (c) 2009 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/autofill/form_structure.h" #include "base/basictypes.h" #include "base/logging.h" #include "base/sha1.h" #inc...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistr...
<commit_before>/** * Name: Rebecca Hom * This is the main file that will be used to run the rshell. * Tests the system calls * * */ #include "rshell.h" #include <iostream> #include <string> using namespace std; int main(int arc, char* argv[]) { Rshell rshell = Rshell(); // Initial variables for taking i...
<commit_before>#include "stdsneezy.h" #include "obj_vehicle.h" #include "pathfinder.h" #include "obj_casino_chip.h" #include "games.h" int trolleyBoatCaptain(TBeing *, cmdTypeT cmd, const char *, TMonster *myself, TObj *) { const int trolleynum=15344; static int timer; TObj *trolley=NULL; int *job=NULL; int...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/default_apps.h" #include "base/command_line.h" #include "chrome/browser/prefs/pref_service.h" #inc...
<commit_before> #include "input.h" #include <QDebug> namespace NeovimQt { InputConv Input; InputConv::InputConv() { // see :h key-notation // special keys i.e. no textual representation specialKeys.insert(Qt::Key_Up, "Up"); specialKeys.insert(Qt::Key_Down, "Down"); specialKeys.insert(Qt::Key_Left, "Left"); sp...
<commit_before>#ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_LDLT_FACTOR_HPP #define STAN_MATH_PRIM_MAT_ERR_CHECK_LDLT_FACTOR_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/scal/err/throw_domain_error.hpp> #include <stan/math/prim/mat/fun/LDLT_factor.hpp> #include <s...
<commit_before>/* * File: main.cpp * Author: vlad * * Created on December 12, 2013, 10:38 PM */ #include <iostream> #include "qpp.h" //#include "matlab.h" // support for MATLAB // TODO: expandout function // TODO: dyad function // TODO: proj (dya) function // TODO: ip (inner product function) function, make ...
<commit_before>#include <iostream> #include <SDL.h> #include <SDL_net.h> #include <SDL_image.h> #include <string> #include <vector> #include <MsgStruct.h> #include "Player.h" #include "GameObject.h" #include "Enemy.h" #include "Cursor.h" #include "Tower.h" #include <unordered_map> using namespace std; int send(string...
<commit_before><commit_msg>dynamically created labels in the breadcrumb<commit_after><|endoftext|>
<commit_before>#include <fstream> #include <iostream> #include <sstream> #include "analyzer.h" #include "ast.h" #include "cell.h" #include "compiler.h" #include "debuginfo.h" #include "disassembler.h" #include "exec.h" #include "lexer.h" #include "parser.h" #include "pt_dump.h" #include "support.h" bool dump_tokens =...
<commit_before>#include <cstdio> #include <cstdlib> #include <iostream> #include <vector> #include <map> #include <algorithm> #include <queue> #include "utils.h" #include "implicit_graph.h" #include "bit_vector.h" #include <limits.h> #include <unistd.h> std::string get_path(){ char result[ PATH_MAX ]; ssize_t cou...
<commit_before>// Copyright (c) 2009 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 <Carbon/Carbon.h> #include "build/build_config.h" #include <vector> #include "base/logging.h" #include "base/mac_util.h" #i...
<commit_before>#include <QApplication> #include <QFileInfo> #include <QCommandLineParser> #include "mainwindow.h" int main(int argc, char **argv) { QApplication app(argc, argv); QApplication::setApplicationName("ViewDown"); QApplication::setApplicationVersion("1.0"); app.setWindowIcon(QIcon("qrc:///viewdown.ico"))...
<commit_before><commit_msg>WaE: unused variable 's_pAccessibleFactoryFunc'<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/ui/touch/tabs/touch_tab.h" #include "app/resource_bundle.h" #include "chrome/browser/themes/browser_theme_pro...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ipolypolygoneditorcontroller.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-07-06 13:16:59 $ * * The Contents of...
<commit_before>/* * File: main.cpp * Author: ben * * Created on September 19, 2012, 3:01 PM */ #include <cstdlib> #include <iostream> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ini_parser.hpp> #include "Config.h" #include "Simulation.h" #include "observables/SizeObservable.h" #incl...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SpellDialogChildWindow.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2006-06-19 14:58:40 $ * * The Contents of this ...
<commit_before>#include "eigensolver/block_dense_matrix.h" using namespace fm; size_t long_dim = 60 * 1024 * 1024; size_t repeats = 1; void test_gemm(eigen::block_multi_vector::ptr mv) { bool in_mem = mv->get_block(0)->is_in_mem(); dense_matrix::ptr mat = dense_matrix::create_randu<double>(0, 1, mv->get_num_col...
<commit_before>#include <iostream> #include <stdexcept> #include <string> #include <array> #include <fstream> #include "tty_state.hpp" #include "pseudo_term.hpp" int main(int const, char ** const) try { sts::tty_state tty; sts::pseudo_term pt{ tty }; pt([] { char const *shell{ getenv("SHELL") }; if(!s...
<commit_before><commit_msg>fdo#79691: Fix ppt files embedded in .docx documents<commit_after><|endoftext|>
<commit_before>// ***************************************************************************** // // Copyright (c) 2015, Southwest Research Institute® (SwRI®) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following cond...
<commit_before><commit_msg>LocationBarView::PageActionImageView::LoadImageTask::Run() may pass a NULL image pointer through to OnImageLoaded; make sure that the pointer is not dereferenced in these cases.<commit_after><|endoftext|>
<commit_before>//Includes all the headers necessary to use the most common public pieces of the ROS system. #include <ros/ros.h> //Use image_transport for publishing and subscribing to images in ROS #include <image_transport/image_transport.h> //Use cv_bridge to convert between ROS and OpenCV Image formats #include <cv...
<commit_before>#include <iostream> #include <string> #include "Game.h" #include "MazeGeneratorType.h" #include "RenderType.h" extern "C" { #include <argp.h> const char* version = "mazegame 1.0"; static char doc[] = "Mazegame -- an interactive terminal-based maze written with ncurses"; static c...
<commit_before>#include <chrono> #include <iostream> #include <vector> #include <armadillo> using std::chrono::high_resolution_clock; using std::chrono::duration; namespace { uint32_t num = 1; uint32_t fft_size = 48000; uint32_t conv_ir_size = 72000; //uint32_t conv_ir_size = 10; uint32_t conv_sig_size = 576000...
<commit_before>#include "stdafx.h" #include "TwitchBot.h" #include <pencode.h> struct botData { std::string name; std::string channel; std::string pass; }; botData readSettings(const std::string &appDir); int main() { botData bd; try { bd = readSettings(utils::getApplicationDirectory()); if (bd.name.empty...
<commit_before>#include <iostream> #include <algorithm> #include <sstream> #include <cctype> #include <clocale> #include <string> #include <vector> #include <list> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <stack> #include <str...
<commit_before>#include <mount.hpp> #include <algorithm> #include <iostream> #include <iterator> #include <fstream> #include <vector> #include <string> #include <kdbinternal.h> using namespace std; using namespace kdb; std::string MountCommand::root = "system/elektra/mountpoints"; MountCommand::MountCommand() {} ...
<commit_before>#include "other.hpp" int main() { Test::hello(); return 0; } <commit_msg>A little fix<commit_after>int main() { return 0; } <|endoftext|>
<commit_before>// This program is free software licenced under MIT Licence. You can // find a copy of this licence in LICENCE.txt in the top directory of // source code. // // C++ #include <iostream> #include <exception> // Project #include "Bot.h" int main() { std::cout.sync_with_stdio(false); #ifndef STARTE...
<commit_before>#include <iostream> #include <fstream> #include <list> #include <time.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> #include <errno.h> #include "util.hpp" #include "table.hpp" #include "naive.hpp" //#include "dxr.hpp" #...
<commit_before>#include <common.h> #include <Parser.h> #include <Tokenizer.h> #include <TextLoader.h> #include <PatternMatch.h> #include <Configuration.h> #include <ErrorProcessor.h> #include <PatternsFileProcessor.h> using namespace Lspl; using namespace Lspl::Text; using namespace Lspl::Parser; using namespace Lspl:...
<commit_before>#include <stdexcept> #include <limits> #include <algorithm> #include <array> #include <memory> #include <iomanip> #include <string> #include <sstream> #include <iostream> #include <fstream> #include <vector> //#include <sys/stat.h> #include <cerrno> #include <cstring> #include <system_error> #include <o...
<commit_before>/* 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/. */ #include "serial.h" #include "bled112client.h" #include "gattclient.h" #include "bleapi.h" #includ...
<commit_before>// // TMGas.cpp // jdemon // // Created by Mark Larus on 3/22/13. // Copyright (c) 2013 Kenyon College. All rights reserved. // #include "TMGas.h" #include <boost/typeof/typeof.hpp> #include <boost/foreach.hpp> #include <boost/iterator/transform_iterator.hpp> #include <boost/iterator/indirect_iterat...
<commit_before>#include <stdexcept> #include <iostream> #include <cmath> #include <boost/lexical_cast.hpp> #include <boost/timer/timer.hpp> #include "HorizontalDiffusionSA.h" #include "Definitions.h" #include "Options.h" #include <mpi.h> #include "IJKSize.h" #ifdef __CUDA_BACKEND__ #include "cuda_profiler_api.h" #end...
<commit_before>/* Copyright (c) 2014, Richard Martin 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 condit...
<commit_before>#include <memory> #include <SDL2/SDL.h> #include <GL/glew.h> #include <SDL2/SDL_opengl.h> #include <GL/glu.h> #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <glm/gtc/matrix_transform.hpp> #include <Box2D/Dynamics/b2World.h> #include <Box2D/Dynamics/b2Body.h> #include <Box2D/Dynamics/b2Fixtur...
<commit_before>/* * PartsBasedDetectorOnVideo * * * Huge chunks of code shamelessly taken from Hilton Bristow's demo for * PartsBasedDetector. * * Software License Agreement (BSD License) * * Copyright (c) 2013, Chili lab, EPFL. * All rights reserved. * * Redistribution and use in source and binar...
<commit_before>#include <iostream> #include <fstream> using namespace std; int N = 256; //const char *FName="/home/semen/monkey/Cut.txt"; const char *FName="/etc/passwd"; void ReadFile() { cout<<endl<<"ReadFile: "; char S[N]={""}; ifstream in1(FName); while (!in1.eof()) { in1.getline(S,N); ...
<commit_before>#include "image.h" #include "body.h" #include "font.h" #include "units.h" #include "linkedlist.h" #include <fstream> #include <pngwriter.h> using namespace std; //pngwriter png; Image::Image(string filename, int w, int h, double _scale) { fileName = filename; width = w; height = h; scale = _scale...
<commit_before>#include "Base.h" #include "BiosRom.h" #include "Cartridge.h" #include "Cpu.h" #include "Debugger.h" #include "EngineClient.h" #include "MemoryBus.h" #include "MemoryMap.h" #include "Platform.h" #include "Ram.h" #include "SDLEngine.h" #include "UnmappedMemoryDevice.h" #include "Via.h" #include <memory> #...
<commit_before>#include <unistd.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <string> #include <iostream> #include <cstdlib> using namespace std; #define DELIMS " \r\t\n\"" #define MAX 1024 void piping(char in[],int count,int cmdnum) { unsigned pos...
<commit_before>#include "serialutil.h" #include "usbutil.h" #include "ethernetutil.h" #include "listener.h" #include "signals.h" #include "log.h" #include <stdlib.h> #define VERSION_CONTROL_COMMAND 0x80 #define RESET_CONTROL_COMMAND 0x81 // USB #define DATA_IN_ENDPOINT 1 #define DATA_OUT_ENDPOINT 2 extern void reset...
<commit_before>/* * Copyright (c) 2016 Andreas Pohl * Licensed under MIT (see COPYING) * * Author: Andreas Pohl */ #include "log.h" #include "options.h" #include "server.h" #include "server_impl.h" void sig_handler(petrel::server& s, const petrel::bs::error_code& ec, int signal_number) { if (!ec) { s...
<commit_before> #ifndef __LIBPYTHON_HPP__ #define __LIBPYTHON_HPP__ #include <string> #define _PYTHON_API_VERSION 1013 #if _WIN32 || _WIN64 #if _WIN64 typedef __int64 Py_ssize_t; #else typedef int Py_ssize_t; #endif #else typedef long Py_ssize_t; #endif typedef struct _object PyObject; #define METH_VARARGS 0x0001...
<commit_before>#include <sys/errno.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <netdb.h> #include <common/buffer.h> #include <common/endian.h> #include <event/action.h> #include <event/callback.h> #...
<commit_before>/* * PartsBasedDetectorOnVideo * * * Huge chunks of code shamelessly taken from Hilton Bristow's demo for * PartsBasedDetector. * * Software License Agreement (BSD License) * * Copyright (c) 2013, Chili lab, EPFL. * All rights reserved. * * Redistribution and use in source and binar...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include <future> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/mesh_chunk.h" #include "gfx/idriv...
<commit_before>#include <cstdio> #include <cstdlib> #include <cctype> #include <cstring> #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <vector> #include <string> #include <iostream> #include "functions.h" int main(int argc, char** argv) { std::string prompt; getPrompt(prompt); boo...
<commit_before>#include "camera/perspective.h" #include "engine/cosine_debugger.h" #include "geom/rect.h" #include "geom/vector.h" #include "geom/point.h" #include "image/image.h" #include "node/group/simple.h" #include "node/solid/sphere.h" #include "node/solid/infinite_plane.h" #include "renderer/settings.h" #include...
<commit_before>#include <iostream> #include <iomanip> #include "simplefluid.h" #include "tinycl.h" int main(int argc, char **argv){ tcl::Context context(tcl::DEVICE::GPU, false, false); cl::Program program = context.loadProgram("../res/simple_fluid.cl"); //Test computation of the negative divergence of the velocity...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <sstream> #include "Tokenizer.h" #include "Parser.h" #include "Writer.h" #include "Stylesheet.h" #include "IOException.h" using namespace std; /** * /main Interpreter * */ void usage () { cout << " cat infile.txt | Interpreter >...
<commit_before>/* * flex_shoebox.cc * * Copyright (C) 2013 Diamond Light Source * * Author: James Parkhurst * * This code is distributed under the BSD license, a copy of which is * included in the root directory of this package. */ #include <boost/python.hpp> #include <boost/python/def.hpp> #include <boost...
<commit_before>#include "filehandler.h" /** * @brief FileHandler::FileHandler * Initilize filehandler and set * default value for workspace */ FileHandler::FileHandler() { this->project_id = 0; // zero out counter ids this->file_id = 0; this->dir_id = 0; this->last_error = false; #ifdef _WIN32 ...