text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: globdoc.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: hr $ $Date: 2007-09-27 11:53:09 $ * * The Contents of this file are made ...
<commit_before>/** * Copyright 2014, Planet Labs, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
<commit_before>// SciTE - Scintilla based Text Editor /** @file GTKMutex.cxx ** Define mutex **/ // SciTE & Scintilla copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> // Copyright 2007 by Neil Hodgson <neilh@scintilla.org>, from April White <april_white@sympatico.ca> // The License.txt file describes the con...
<commit_before>/* * Copyright 2015 BrewPi / Elco Jacobs * * This file is part of BrewPi. * * BrewPi 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...
<commit_before>/* * Copyright (c) Tianjin University * All rights reserved * * Author: Liang Kaiyuan */ /** * @file * * Iso-X component and data structure */ #ifndef __ARCH_ARM_ISOX_HH__ #define __ARCH_ARM_ISOX_HH__ #include "arch/types.hh" #include "arch/registers.hh" #include "base/types.hh" #include "ar...
<commit_before>/* * Copyright 2011 Christoph Bumiller * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modi...
<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 "app/app_switches.h" #include "app/gfx/gl/gl_implementation.h" #include "base/at_exit.h" #include "base/basictypes.h" #include...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 Gael Guennebaud <gael.guennebaud@inria.fr> // // 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 f...
<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 <assert.h> #include <string.h> #include <gcrypt.h> #include <unistd.h> GCRY_THREAD_OPTION_PTHREAD_IMPL; #include "CEncrypt.h" //https://gnupg.org/documentation/manuals/gcrypt/Working-with-cipher-handles.html#Working-with-cipher-handles //https://gnupg.org/documentation/manuals/gcrypt/Key-Deriv...
<commit_before>/* ########## Copyright (C) 2015 Vincenzo Pacella ## ## Distributed under MIT license, see file LICENSE ## ## or <http://opensource.org/licenses/MIT> ## ## ########## ############################################################# shaduzlabs.com ...
<commit_before>/* Custom Google Test assertions. Copyright (c) 2012-2014, Victor Zverovich 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. Redistributions of source code must retain the above ...
<commit_before><?hh namespace Hackdinium\Cli; use Aura\Cli\CliFactory; use Aura\Cli\Context; use Aura\Cli\Status; use Hackdinium\Kernel; use Hackdinium\Server; class Shell { const ARG_KEY = 1; const ARG_MODE = 2; private Stdio $io; private Context $context; private GameHelp $help; private ...
<commit_before>#include <osgGA/Version> const char* osgGAGetVersion() { return "1.2"; } const char* osgGAGetLibraryName() { return "OpenSceneGraph Gui Adapter Library"; } <commit_msg>Fixed version function names and comment strings<commit_after>#include <osgViewer/Version> const char* osgViewerGetVersion() ...
<commit_before>/** \brief Utility for augmenting MARC records with links to a local full-text database. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it ...
<commit_before>#include <iostream> #include "bh/bh.hpp" #include "util/timing.hpp" #include "util/argparse.hpp" using namespace std; using namespace bh; using namespace argparse; template <typename T> T solve(int w, int h, int i) { multi_array<T> grid(h,w), center, north, south, east, west; center = grid[_(...
<commit_before>/** \file * Implements a load recorder, useful for simulating loads to test * CPU clock daemons and settings. */ #include "Options.hpp" #include "types.hpp" #include "constants.hpp" #include "errors.hpp" #include "utility.hpp" #include "clas.hpp" #include "version.hpp" #include "sys/sysctl.hpp" #i...
<commit_before>#include "output_hds.h" #include <mist/defines.h> #include <mist/http_parser.h> #include <mist/stream.h> #include <unistd.h> #include <mist/amf.h> #include <mist/mp4_adobe.h> namespace Mist { void OutHDS::getTracks(){ /// \todo Why do we have only one audio track option? videoTracks.clear(...
<commit_before>/*---------------------------------------------------------------------\ | | | _ _ _ _ __ _ | | | | | | | \_/ | / \ | | | | ...
<commit_before>#include "WallFrictionModels.h" #include "Numerics.h" namespace WallFriction { Real Churchill(Real Re, Real roughness, Real Dh) { Real Re_limit = std::max(Re, 10.0); // Equation (4-167), page 171 Real a = std::pow(2.475 * std::log(1.0 / (std::pow(7.0 / Re_limit, 0.9) + 0.27 * roughness / D...
<commit_before>/** * @file ct2ctml.cpp * Driver for the system call to the python executable that converts * cti files to ctml files (see \ref inputfiles). */ // Copyright 2001-2005 California Institute of Technology #include "cantera/base/ctml.h" #include "cantera/base/stringUtils.h" #include "../../ext/libexecs...
<commit_before>#include <QCoreApplication> #include <iostream> #include <string> #include <map> #include <set> #include "Tests/Unit/Network/TestNetworkBalancer.hpp" #include <cppunit/extensions/HelperMacros.h> #include <cppunit/ui/text/TestRunner.h> using namespace std; using namespace CppUnit; //------------ Type a...
<commit_before>////////////// // Includes // #include <iostream> ////////// // Code // int main() { std::cout << "Hello world!\n"; return 0; } <commit_msg>Fleshed out the command-line front end.<commit_after>////////////// // Includes // #include <iostream> #include "processing.hpp" #include "graph.hpp" #inc...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio and Hazza Alkaabi * All rights reserved. */ #include <random> #include <cstdlib> #include <iostream> #include "common/log.h" #include "procedural/terrain.h" #include "procedural/radial_algorithm.h" #include "procedural/lake_radial.h" #include "luaint/common.h...
<commit_before>#include <iostream> #include <string> #include <algorithm> #include <chrono> #include <cxxopts.hpp> #include "mpihead.hpp" #include "logging.hpp" #include "epa.hpp" #include "Binary_Fasta.hpp" static void ensure_dir_has_slash(std::string& dir) { if (dir.length() > 0 && dir.back() != '/') { dir +...
<commit_before>/* * Copyright (c) 2002-2005 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 c...
<commit_before>#include <iostream> #include <sstream> #include <stdexcept> #include <string> #include <chrono> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <getopt.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <linux/i2c.h> #include <linux/i2c-dev.h> using name...
<commit_before>/* * lemonn_v * 07.05.12 */ #include <cstdlib> #include <iostream> #include <exception> #include "Sound.hpp" #include "JsManager.hpp" #include "Bomberman.hpp" #include "Error.hpp" int main() { Bomberman bomberman; time_t now; time(&now); srandom(now); Sound::getMe(); JsManager::getMe(...
<commit_before>#include "application.h" #include "mainwindow.h" #include <QApplication> #include <QMainWindow> int main(int argc, char *argv[]) { // QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); app.setOrganizationName("lpd8-editor"); app.setApplicationName(...
<commit_before>#include <graphics/types.h> #include <graphics/exceptions.h> #include <log/log.h> #include <lodepng.h> int main(int argc, char **argv) { try { graphics::Window window; window.activate(); // initialize resources GLuint vao; glGenVertexArrays(1, &vao); ...
<commit_before>#include <algorithm> #include <cassert> #include <cstdio> #include <cstring> #include <exception> #include <limits> #include <stdint.h> #include <stdlib.h> #include "resultfilename.h" #include "timer.h" #include "test.h" const unsigned kIterationPerDigit = 100000; const unsigned kIterationForRandom = 10...
<commit_before>/** Implementation of bytea (binary string) conversions. * * Copyright (c) 2003-2018, Jeroen T. Vermeulen. * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the distributor of this mistake, * or contact the author. */ #inclu...
<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 "net/http/http_proxy_client_socket_pool.h" #include "base/time.h" #include "googleurl/src/gurl.h" #include "net/base/net_erro...
<commit_before>/* bzflag * Copyright (c) 1993 - 2003 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before> #include <clocale> #include <cstdlib> #include <string.h> #include <malloc.h> #include "editor.h" #include "lua_primitives.h" /** * Get the character at the cursor position. */ int at_lua(lua_State *L) { /* * Get the buffer. */ Editor *e = Editor::instance(); Buffer *buff...
<commit_before># include <iostream> # include <cstdlib> # include <cstdio> # include <cstring> # include <unistd.h> # include <sys/types.h> # include <sys/select.h> # include <sys/socket.h> # include <arpa/inet.h> # include <netinet/in.h> # include <microhttpd.h> # include "webcli.hpp" void print_usage(const char ...
<commit_before>/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ #include "../lib.hh" #include "catch.hpp" using namespace vick; using vick::move::mvcol; TEST_CASE("mvcol", "[mvcol]") { contents contents({"asert"}); visual_setup _; mvcol(contents...
<commit_before>/* * Copyright (C) 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>/*! * Copyright 2014 by Contributors * \file cli_main.cc * \brief The command line interface program of xgboost. * This file is not included in dynamic library. */ // Copyright 2014 by Contributors #define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_DEPRECATE #define NOMINMAX #include <xgboost/...
<commit_before>#include "checksum.h" #include "filesystem.h" #include "ifile.h" #include <fstream> namespace platform { boost::uint32_t fileChecksum( std::string const& filename ) { boost::uint32_t checksum(0); std::string data; // case 1: is it in data.pkg? Filesys& fs( Filesys...
<commit_before>#include <string> #include <fstream> #include <lua.hpp> #include <luabind/luabind.hpp> #include "externals/json/json.h" #include "animatedimage.h" #include "button.h" #include "camera.h" #include "color.h" #include "entity.h" #include "input.h" #include "math.h" #include "motionstate.h" #include "physics...
<commit_before>/* * CliqueGTest.cpp * * Created on: 08.12.2014 * Author: henningm */ #include "CliqueGTest.h" #include "../MaxClique.h" #include "../../io/METISGraphReader.h" #include "../../io/SNAPGraphReader.h" #include "../../auxiliary/Log.h" #include "../../io/EdgeListReader.h" namespace NetworKit { ...
<commit_before>/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2007 Simon Peter, <dn.tlp@gmx.net>, et al. * * 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...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2008 Ulrich von Zadow // // 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 of the Li...
<commit_before>/** * LED Strip host. * * Turns LEDs red (for now) */ #include "Arduino.h" #include <FastLED.h> #ifndef LED_BUILTIN #define LED_BUILTIN 13 #endif #define NUM_LEDS 300 #define DATA_PIN 6 CRGB leds[NUM_LEDS]; int count = 0; void setup() { // Init fastled pinMode(LED_BUILTIN, OUTPUT); FastLE...
<commit_before>// The main application file #include "BaseTypes.hpp" #include "DVMBase.hpp" #include "XmlHandler.hpp" #include "pugiconfig.hpp" #include "pugixml.hpp" #include <fstream> #include <iostream> #include <string> #include <time.h> #include <boost/program_options.hpp> int main(int argc, char *argv[]) { try...
<commit_before>#include <iostream> #include <string> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <vector> #include <boost/tokenizer.hpp> using namespace std; using namespace boost; int main(int argc, char **argv) { bool finish = false; int semicolon= 0; int ampersand = 0; int pipe = 0; str...
<commit_before>// -*- mode:c++;coding:utf-8; -*- vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:enc=utf-8: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of ch...
<commit_before>// -*- mode:c++;coding:utf-8; -*- vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:enc=utf-8: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of ch...
<commit_before>#ifndef MY_MODEL_HH #define MY_MODEL_HH #include <QAbstractListModel> #include <QAbstractTableModel> #include <QFileInfo> #include <QFileSystemWatcher> #include <QList> #include <QModelIndex> #include <QPixmap> #include <QVariant> class MyData: public QObject { Q_OBJECT public: MyData(); M...
<commit_before><commit_msg>Make PyUNO objects hashable<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2015, Potion Design LLC 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 cond...
<commit_before>#include <unistd.h> #include "rpc/server.h" #include "rpc/client.h" #include "benchmark_service.h" using namespace base; using namespace rpc; using namespace benchmark; TEST(issue, 7) { const int rpc_id = 1987; PollMgr* poll = new PollMgr(1); ThreadPool* thrpool = new ThreadPool(4); Se...
<commit_before>// Scintilla source code edit control /** @file LexForth.cxx ** Lexer for FORTH **/ // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #include <ctype.h> #in...
<commit_before>#ifndef _options_hpp_INCLUDED #define _options_hpp_INCLUDED /*------------------------------------------------------------------------*/ // The 'check' option has by default '0' in optimized compilation, but for // debugging and testing we want to set it to '1', by default. Setting // 'check' to '1' f...
<commit_before>#include "gtest/gtest.h" #include "SharedInt.h" #include "Singleton.h" GTEST_TEST(BasicTest, DefaultConstructed) { SharedInt::AllowAllocations(false); EXPECT_EQ(0, SharedInt::ReferenceCount()); SharedInt a, b, c; EXPECT_EQ(0, a.value()); EXPECT_EQ(0, b.value()); EXPECT_EQ(0, c.v...
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2005/03/01 // // Copyright 2008 Quantcast Corp. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "Lice...
<commit_before>#include <cstdlib> #include <cstdio> #include <string> #if defined __WIN32__ # include <Windows.h> #endif #include <SDL/SDL.h> #include <SDL/SDL_mixer.h> #define CTRL_PRESSED SDL_GetModState() & KMOD_LCTRL #define bit bool #include "io.h" void msg(std::string message, std::string title) { #if defined...
<commit_before>#include "./test.h" #include "../src/camera.h" TEST(Test_Camera, ConstructorFromMatricesWithDefaultValues) { Camera expected; expected.resize(1, 1); Camera camera(expected.getViewMatrix(), expected.getProjectionMatrix(), expected.getOrigin()); EXPECT_Vector3f_NEAR(expected.getP...
<commit_before>// // Created by kanairen on 2016/06/15. // #include <map> #include <memory> #include "config.h" #include "Data.h" #include "MNIST.h" #include "ShapeMap.h" #include "layer/SoftMaxLayer.h" #include "layer/ConvLayer.h" #include "layer/MaxPoolLayer.h" #include "Model.h" #include "Optimizer.h" #include "u...
<commit_before>// // pfilter.cpp // EpiGenMCMC // // Created by Lucy Li on 05/05/2016. // Copyright (c) 2016 Lucy Li, Imperial College London. All rights reserved. // #include "pfilter.h" #include <iostream> namespace EpiGenPfilter { double pfilter(Model & sim_model, Parameter & model_params, MCMCoptions & ...
<commit_before>/* * File: main.cpp * Author: vlad * * Created on December 12, 2013, 10:38 PM */ #include <iostream> #include "qpp.h" #include "internal.h" //#include "matlab.h" // support for MATLAB // TODO: expandout function // TODO: dyad function // TODO: proj (dya) function // TODO: ip (inner product fun...
<commit_before>// // Copyright (c) 2014 Toshiaki Takada // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, m...
<commit_before>// // main.cpp // thermaleraser // // Created by Mark Larus on 9/8/12. // Copyright (c) 2012 Kenyon College. All rights reserved. // #include <iostream> #include <gsl/gsl_randist.h> #include <gsl/gsl_sf.h> #include <time.h> #include <semaphore.h> #include <algorithm> #include <math.h> #include <sq...
<commit_before>/* * Open Chinese Convert * * Copyright 2010-2014 BYVoid <byvoid@byvoid.com> * * 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/LI...
<commit_before>#include "consoletools.h" #include "client.h" #include "log/logger.h" #include "settings.h" #include "controller/logincontroller.h" #include "controller/taskcontroller.h" #include "controller/configcontroller.h" #include "types.h" #include "webrequester.h" #include "network/requests/registerdevicereques...
<commit_before>#include <gtkmm/application.h> #include <gtkmm/messagedialog.h> #include <iostream> #include <iterator> #include <fstream> #include <chrono> #include <cstdlib> #include <cassert> #include <exception> #include <stdexcept> #include "get_DPI_scale.hpp" #include "defs.hpp" #include "Program_mode.hpp" #inc...
<commit_before>/* Rapicorn * Copyright (C) 2006 Tim Janik * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later versio...
<commit_before>#include "pcl/filters/crop_box.h" #include "pcl/conversions.h" #include "pcl_conversions/pcl_conversions.h" #include "ros/ros.h" #include "rapid_perception/box3d_roi_server.h" #include "sensor_msgs/PointCloud2.h" #include "rapid_msgs/CaptureRoi3D.h" #include "rapid_msgs/Roi3D.h" #include "tf/transform_li...
<commit_before>#include <iostream> #include <gtest/gtest.h> using namespace std; void init_test(); TEST(async_rpc, test_dummy_future) { init_test(); }; #if 0 //A --> B --> C B --> D A <-- B //X --> A --> B #endif struct Req { int req_value; }; struct Rsp { int rsp_value; }; str...
<commit_before>#include "evaluate_circuit.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace qflex { namespace { class GetOutputStatesTest : public testing::Test { public: void TestOutputExpectations() { get_output_states(&input_, ordering_, &final_qubits_, &output_states_); EXPECT_EQ(final_qu...
<commit_before>/* * opencog/spatial/StructGraph.cc * * Copyright (C) 2002-2011 OpenCog Foundation * All Rights Reserved * Author(s): Shujing Ke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free So...
<commit_before>#include "braincloud/internal/RTTComms.h" #include "braincloud/BrainCloudClient.h" #include "braincloud/IRTTCallback.h" #include "braincloud/IRTTConnectCallback.h" #include "braincloud/internal/ITCPSocket.h" #if (TARGET_OS_WATCH != 1) #include "braincloud/internal/IWebSocket.h" #endif #include "brainclo...
<commit_before>/* Copyright (c) 2018 Anon authors, see AUTHORS file. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
<commit_before>#include <stdio.h> #include <iostream> #include <vector> // glm additional header to generate transformation matrices directly. #include <glm/gtc/matrix_transform.hpp> #include <cstring> // For memcopy depending on the platform. #include "helpers/ProgramUtilities.h" #include "Renderer.h" Renderer::Rend...
<commit_before>/** * Copyright (c) 2014 - 2015 Tolga Cakir <tolga@cevel.net> * * This source file is part of Game Capture HD Linux driver and is distributed * under the MIT License. For more information, see LICENSE file. */ #include <cstdlib> #include <iostream> #include <string> #include <unistd.h> #include <...
<commit_before>#include <cstdlib> #include <fstream> #include <memory> #include <boost/program_options.hpp> #include <boost/shared_ptr.hpp> #include <boost/make_shared.hpp> #include <boost/log/core.hpp> #include <boost/log/trivial.hpp> #include <boost/log/exceptions.hpp> #include <boost/log/sinks/sync_frontend.hpp>...
<commit_before>#include "Course.h" #include "CourseCont.h" #include "Options.h" #include "Scheduler.h" #include <iostream> CourseSched Scheduler::generateSchedule(CourseCont<Course>& courseList, Options &opts){ CourseSched schedule; courseList.sort(); courseList.begin(); bool reachEnd = false; for(int i = 0; i ...
<commit_before>/* * Copyright 2013 Matthew Harvey * * 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 applicabl...
<commit_before>/* Copyright 2009-2016 Francesco Biscani (bluescarni@gmail.com) This file is part of the mp++ library. The mp++ library is free software; you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; eith...
<commit_before>#include <windows.h> #include <regstr.h> #include "Error.h" #include "Settings.h" #define REGSTR_PATH_PLUSSCR (REGSTR_PATH_SETUP "\\Screen Savers") #define REGSTR_PATH_CONFIG ("Software\\" TEAMNAME "\\" APPNAME) HWND CSettings::hwnd; DWORD CSettings::PasswordDelay; DWORD CSetti...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // 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>#include <flutter_linux/flutter_linux.h> #include <gtk/gtk.h> #include "flutter/gtk_plugin_registrant.h" #include "window_configuration.h" int main(int argc, char** argv) { gtk_init(&argc, &argv); GtkWindow* window = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); gtk_widget_show(GTK_WIDGET(win...
<commit_before>#include <cstdlib> #include <sys/wait.h> #include <string> #include <vector> #include <cstring> #include <iostream> #include <unistd.h> #include <pwd.h> #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> using namespace std; void connectors(string userinput, vector<int> &...
<commit_before>#include <SFML/Graphics.hpp> #include "../include/Config.h" #include "../include/World.h" #include "../include/Camera.h" #include "../include/Player.h" #include "../include/Collision.h" #include "../include/AnimatedProps.h" #include "../include/SoundManager.h" #include "../include/Shader.h" #include <ios...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the Apache 2.0 license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tre...
<commit_before>/* * Copyright (C) 2004-2014 ZNC, see the NOTICE file for details. * * 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> #include "DebugHandler.h" #include "HelloWorld.h" #include "Manager.h" #include <QCoreApplication> #include <QDebug> int main(int argc, char** argv) { QCoreApplication application(argc, argv); application.setApplicationName("FastCgiQt"); FastCgiQt::DebugHandler handler; FastCgiQt::Manager manager...
<commit_before>#include "mempeek_ast.h" #include "mempeek_exceptions.h" #include "console.h" #if defined( YYDEBUG ) && YYDEBUG != 0 #include "mempeek_parser.h" #include "parser.h" #endif #include <iostream> #include <string.h> #include <signal.h> using namespace std; static void signal_handler( int ) { ASTNod...
<commit_before>#include "Base/Renderer.hpp" int main() { Renderer* renderer = Renderer::makeRenderer(Renderer::BACKEND::OpenGL); return 0; } <commit_msg>Fix memory leak<commit_after>#include "Base/Renderer.hpp" int main() { Renderer* renderer = Renderer::makeRenderer(Renderer::BACKEND::OpenGL); delete...
<commit_before>/* main.cpp */ //----------------------------------------------------------------------- //include files //----------------------------------------------------------------------- #include <iostream> #include <oauth.h> #include <thread> #include <mutex> #include <unistd.h> #include <opencv2/ope...
<commit_before> /* Author(s): Vincent Heins Description: This is the main file!? I mean, i know this file is a BIT shitty but who cares... */ #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> #include <string.h> #include <stdio.h> #include <curl/curl.h> #include <mutex> #include <thr...
<commit_before>#include <conio.h> #include <stdio.h> #include <stdlib.h> #include <string> #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include "net/net.h" #include "net/addr.h" char const *gHostPort = "5413"; char const *gClientPort = "5414"; //----------------------------------------------------------------...
<commit_before>#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtx/string_cast.hpp> #include <lua/lua.hpp> #include <vector> #include <fmt/format.h> #include "terrian_config.hpp" #include "matrixstacksingleton.h...
<commit_before>#include <iostream> int main() { std::cout << "AuralGlitch is a standalone audio sampler and effects program built in C++.\n"; } <commit_msg>Update main.cpp<commit_after>#include <iostream> int main() { std::cout << "AuralGlitch is a standalone audio sampler and effects program for OS X built in ...
<commit_before>/* * Copyright (c) 2017 alexi kulmametiev@mail.com * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use...
<commit_before>#include <iostream> #include <pulse/error.h> #include <pulse/simple.h> using namespace std; int main() { pa_simple *s; pa_sample_spec ss; ss.format = PA_SAMPLE_S16NE; ss.channels = 2; ss.rate = 44100; s = pa_simple_new(NULL, // Use the default server. "Fooapp", // Ou...
<commit_before>#include "visgoth.hpp" #include <iostream> #include <string> #include <unordered_map> #include <vector> #include "sys/socket.h" #include "collectd.hpp" #include "HappyHTTP/happyhttp.h" #include "../json11/json11.hpp" #include "../helpers.hpp" using namespace std; using namespace json11; static int BU...
<commit_before>#include <iostream> #include <string> #include <chrono> #include "args.h" #include "load_scene.h" #include "render/render_target.h" #include "driver.h" #ifdef BUILD_PREVIEWER #include "previewer.h" #endif const static std::string USAGE = "Usage for prj1:\n\ ----------------------------\n\ -f <file> -...
<commit_before>#include <string> #include <serial/serial.h> using namespace serial; using std::string; int main(){ Serial port1("/dev/ttyS0"); port1.close(); return 1; } <commit_msg>add cmake files and configurations and serial port library<commit_after>#include <string> #include <serial/serial...