text
stringlengths
54
60.6k
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * 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 ...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2018 whitequark <whitequark@whitequark.org> * * 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 ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // taskd - Task Server // // Copyright 2010 - 2012, Göteborg Bit Factory. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Softwa...
<commit_before>#include "proc.h" #include "serv.h" struct BytesEqual{ bool operator()(const Bytes &s1, const Bytes &s2) const { return (bool)(s1.compare(s2) == 0); } }; struct BytesHash{ size_t operator()(const Bytes &s1) const { unsigned long __h = 0; const char *p = s1.data(); for (int i=0 ; i<s1.size(); ...
<commit_before>/* This file is part of the KDE project Copyright (C) 2005-2006 Matthias Kretz <kretz@kde.org> 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 versio...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: deferredview.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 04:28:45 $ * * The Contents of this file are m...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/defaults.h> #include <iostream> #include <lib/modelinspect.h> #include <vespa/vespalib/text/stringtokenizer.h> #include <vespa/fastos/app.h> #include <vespa/log/log.h> ...
<commit_before><commit_msg>wrong logic in comment<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: Clob.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2006-06-20 01:33:35 $ * * The Contents of this file are made avai...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ECatalog.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 07:11:11 $ * * The Contents of this file are made ...
<commit_before>#include <string> #include <vector> #include "roaring.hh" #ifndef JILL_QUERY_HEADER_INCLUDED #define JILL_QUERY_HEADER_INCLUDED using namespace std; namespace jill { namespace query { enum FilterType { EQUAL, NOT_EQUAL }; class Filter { private: string rval; string lval; FilterType op; p...
<commit_before>#include "storage.hh" #include "mp4file.hh" #include "utility/reactor.hh" #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <sstream> #include <fstream> #include <netinet/in.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> using namespace utility; namespace fs ...
<commit_before>#include <iostream> #include <memory> #include "regex.h" #include "shl_exception.h" using std::shared_ptr; namespace shl { inline string onig_error_string(int code, OnigErrorInfo* error_info) { UChar buffer[1024]; int length = onig_error_code_to_str(buffer, code, error_info); return strin...
<commit_before>#include "qhomebrewupdaterbackend.h" #include <QtCore/QStandardPaths> #include <QtCore/QFileInfo> #include <QtCore/QDir> #include <QtCore/QJsonDocument> #include <QtCore/QJsonObject> #include <QtCore/QJsonArray> using namespace QtAutoUpdater; Q_LOGGING_CATEGORY(logBrewBackend, "qt.autoupdater.core.plugi...
<commit_before>#include <hadouken/scripting/modules/bittorrent/torrent_info_wrapper.hpp> #include <libtorrent/torrent_info.hpp> #include "../common.hpp" #include "../../duktape.h" using namespace hadouken::scripting::modules; using namespace hadouken::scripting::modules::bittorrent; duk_ret_t torrent_info...
<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 "structures.h" #includ...
<commit_before>/** \brief Utility for dumping metadata out of the delivered_marc_records MySQL table in ub_tools. * \author Mario Trojan (mario.trojan@uni-tuebingen.de) * * \copyright 2021 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or mo...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>#include "dispatch_queue.h" #include <thread> #include <queue> struct dispatch_queue_t::impl { impl(); static void dispatch_thread_proc(impl *self); std::queue< std::function< void() > > queue; std::mutex queue_mtx; std::condition_variable queue_cond; std::atomic< bool > quit; ...
<commit_before><commit_msg>Changed license and added #ifdef.<commit_after><|endoftext|>
<commit_before>#ifdef _WIN32 #define NOMINMAX #include <windows.h> #endif #include "SE_Screen.h" int main() { sf::ContextSettings settings; settings.DepthBits = 24; // set 24 bits Z-buffer settings.StencilBits = 8; // set 8 bits stencil-buffer // settings.AntialiasingLevel = 2; // set ...
<commit_before>#include <cstdio> #include <cstdlib> #include <cctype> #include <cstring> #include <map> #include <utility> #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 pr...
<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 #ifndef RACON_VERSION #error "Undefined version for Racon. Please pass version ...
<commit_before>#include <iostream> #include "systems/OpenGLSystem.h" #include "systems/SimplePhysics.h" #include "systems/FactorySystem.h" #include "controllers/GLSixDOFViewController.h" #include "components/ViewMover.h" #include "SCParser.h" #if defined OS_Win32 #include "os/win32/win32.h" #elif defined OS_SDL #incl...
<commit_before>/** * @file main.cpp * * User interface to the face recognition system. */ #include <cstdlib> #include <exception> #include <getopt.h> #include <iomanip> #include <iostream> #include <map> #include <mlearn.h> #include <unistd.h> using namespace ML; enum class InputDataType { None, Genome, Image ...
<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 "base/message_pump_x.h" #include <X11/extensions/XInput2.h> #include "base/basictypes.h" #include "base/message_loop.h" nam...
<commit_before>/************************************************************************* * * $RCSfile: dbexchange.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: fs $ $Date: 2001-04-11 12:58:38 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>#pragma once #include "main.h" #include "natives.h" #include "CTeamspeak.h" void **ppPluginData; extern void *pAMXFunctions; logprintf_t logprintf; PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() { return SUPPORTS_VERSION | SUPPORTS_AMX_NATIVES; } PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppD...
<commit_before>#include <iostream> #include <GLES3/gl3.h> #include <SDL/SDL.h> #ifdef EMSCRIPTEN #include <emscripten.h> #endif #include "shaders.h" GLuint programObject; SDL_Surface* screen; GLfloat vVertices[] = { -1.0f, 1.0f, 0.0f, // Top-left 1.0f, 1.0f, 0.0f, // Top-right 1.0f, -1.0f, 0.0f, //...
<commit_before>// Lesson 13.cpp : Defines the entry point for the console application. #include <render_framework\render_framework.h> #pragma comment (lib , "Render Framework" ) using namespace std; using namespace glm; using namespace render_framework; int main() { // Initialize the renderer if (!renderer::get_...
<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<in...
<commit_before>/* * test.cpp * * Created on: Nov 19, 2014 * Author: matheus */ #include <cstdlib> #include <ctime> #include "ConcreteGraph.hpp" #include "Helpers.hpp" #include "Time.hpp" #include "GraphAlgorithms.hpp" #include "ThreadManager.hpp" using namespace std; using namespace graph; static int n_t...
<commit_before>/************************************************************************* * Copyright (C) 2011-2012 by Paul-Louis Ageneau * * paul-louis (at) ageneau (dot) org * * * * ...
<commit_before>// Project specific #include <Manager/AI/AIPathManager.hpp> #include <EntityComponent/EntityHandler.hpp> #include <PlayerHandler.hpp> #include <Helper/ProximityChecker.hpp> #include <EntityComponent/Components/HealthComponent.hpp> #include <EntityComponent/Components/RigidBodyComponent.hpp> #include <Ent...
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2020 Intel Corporation. All Rights Reserved. //#cmake:add-file ../../../src/algo/depth-to-rgb-calibration/*.cpp #include "d2rgb-common.h" #include "compare-to-bin-file.h" #include "compare-scene.h" TEST_CASE("Scene 2", "[d2rg...
<commit_before>#include <string> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmat...
<commit_before>/************************************************************************* * * $RCSfile: ComponentDefinition.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-08-02 15:05:39 $ * * The Contents of this file are made available subject to the terms of * either of the foll...
<commit_before>/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef BITOPS_HH_ #define BITOPS_HH_ inline unsigned count_leading_zeros(unsigned x) { return __builtin_clz(x); } inline unsigned count_leading_zeros(unsigned long x) { return __builtin_clzl(x); } inline unsigned count_leading_zeros(unsigne...
<commit_before>/* <src/capi.cpp> * * This file is part of the x0 web server project and is released under GPL-3. * http://www.xzero.io/ * * (c) 2009-2013 Christian Parpart <trapni@gmail.com> */ #include <x0/capi.h> #include <x0/http/HttpServer.h> #include <x0/http/HttpWorker.h> #include <x0/http/HttpRequest.h> #...
<commit_before>/* * Copyright 2016 Christian Lockley * * 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>/* Copyright 2014 Andrew Schwartzmeyer * * Source file for derived genetic algorithm class */ #include <algorithm> #include <iostream> #include <iterator> #include "genetic_algorithm.hpp" #include "random_generator.hpp" const Individual Genetic::mutate(const Individual & subject) const { // unit ...
<commit_before>//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 wit...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "chainparams.h" #include "hash.h" #inc...
<commit_before>/* Copyright (c) 2015, Eric Arnebäck(arnebackeric@gmail.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, co...
<commit_before>/* * * TP 1 Técnicas de programación concurrentes I * Integrantes: * Bogado, Sebastián * Martty, Juan * Pereira, Fernando * */ int main(int argc, char* argv[]) { // Init Logger (static) // Parse command line (--cant-surtidores --cant-empleados ¿fifo name?) // create jefeEstacion child process ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "main.h" #include "auxpow.h" #include "h...
<commit_before>#include <fstream> #include <regex> #include <string> #include <sstream> #include <boost/program_options/cmdline.hpp> #include <boost/program_options/options_description.hpp> #include <boost/program_options/parsers.hpp> #include <boost/program_options/variables_map.hpp> #include <boost/variant/get.hpp> ...
<commit_before>#include "shell-readline.hpp" #include "shell_bison.hh" #include "command.hpp" extern FILE * yyin; extern FILE * yyout; extern int yylex(); extern int yyparse(); extern void yyrestart (FILE * in); extern void yyerror(const char * s); extern read_line reader; int main() { bool is_interactive = fals...
<commit_before>#include "../ui/mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { #ifdef Q_OS_LINUX QCoreApplication::addLibraryPath("/usr/lib/viqo"); #endif QApplication a(argc, argv); QCoreApplication::setApplicationName("Viqo"); QCoreApplication::setApplicationVersion("2.0"); QCo...
<commit_before>#include <tr1/memory> #include <vector> #include <cstdlib> #include <cstdio> #include <signal.h> #include <getopt.h> #include "barrier.h" #include "stream.h" #include "socket.h" #include <unistd.h> using std::vector; using std::tr1::shared_ptr; static bool run = true; static void terminate(void) { ...
<commit_before>#include <time.h> #include "../include/PSATsolver.hpp" #include "../include/TestGenerator.hpp" using namespace std; using namespace arma; void test(int N, int k, int n, double step, int begin, int end, string prefix); int main(int argc, char** argv) { bool v; if(argc < 20) v = true; ...
<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>#ifndef units_hh_INCLUDED #define units_hh_INCLUDED #include "hash.hh" #include <type_traits> namespace Kakoune { template<typename RealType, typename ValueType = int> class StronglyTypedNumber { public: [[gnu::always_inline]] explicit constexpr StronglyTypedNumber(ValueType value) : ...
<commit_before>/* Copyright (c) 2013, Project OSRM, Dennis Luxen, others 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...
<commit_before>/* Copyright 2021 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 or agreed to in writing,...
<commit_before>#define VERSION "0.3" #define MAX_COUNT 255 #define TAG_DENSITY 90 #define CONNECTED_THRESHOLD 0 namespace khmer { // largest number we can count up to, exactly. (8 bytes) typedef unsigned long long int ExactCounterType; // largest number we're going to hash into. (8 bytes/64 bits/32 nt) typed...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // task - a command line task list manager. // // Copyright 2006 - 2009, Paul Beckingham. // All rights reserved. // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU Ge...
<commit_before>#include <avr/io.h> #include <util/delay.h> #include "Led.h" /** * \brief main loop */ int main(void) { Led led(&PORTB, &DDRB, PINB0); while (1) { led.toggle(); _delay_ms(500); } }<commit_msg>first pwm test<commit_after>//#include <avr/io.h> //#include <util/delay.h> //#in...
<commit_before>// Simple binary search tree class for integers #include "bst.h" Bst::Bst() { root_ = nullptr; } Bst::~Bst() { // Recursively delete starting at root DeleteRecursive(root_); } void Bst::Insert(int val) { // Check if empty if (root_ == nullptr) { // Empty tree; insert at ro...
<commit_before>#include <QApplication> #include <QDebug> #include <QDir> #include <QDateTime> #include <buildtime.h> #include "data/models.h" #include "data/loader.h" #include "data/vptr.h" #include "gui/mainwindow.h" QTextStream *out = 0; bool logToFile = false; bool verbose = false; bool makeScreenshot = false; v...
<commit_before>/************************************************* * Utility Functions Source File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #include <botan/util.h> #include <botan/bit_ops.h> #include <algorithm> #include <cmath> namespace ...
<commit_before>#include <string> /* public class TennisGame4 implements TennisGame { int serverScore; int receiverScore; String server; String receiver; public TennisGame4(String player1, String player2) { this.server = player1; this.receiver = player2; } @java.lang.Overr...
<commit_before>/** * @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required b...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: gsub.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2006-06-19 10:24:27 $ * * The Contents of this file are made ava...
<commit_before> #include "CatGameLib.h" #include "ExternalLib.h" #include "LibSound.h" using namespace std; using namespace CatGameLib; int LibSound::loadCount = 0; unsigned int LibSound::sourceIDs[LoadSoundMax] = { 0 }; unsigned int LibSound::bufferIDs[LoadSoundMax] = { 0 }; LibSound* LibSound::create( const char*...
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_ASSEMLBER_LOCAL_CODIM0_HH #define DUNE_DETAILED_DISCRETIZATIONS_ASSEMLBER_LOCAL_CODIM0_HH #include <vector> #include <dune/common/dynmatrix.hh> #include <dune/common/dynvector.hh> #include <dune/stuff/common/matrix.hh> #include <dune/stuff/la/container/interface.h...
<commit_before>// Copyright (c) 2010 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 "update_engine/dbus_service.h" #include <string> #include <base/logging.h> #include "update_engine/marshal.glibmarshal.h...
<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 "direct_interpreter.hpp" // convert double to percent string std::s...
<commit_before>#include <avr/io.h> #include <util/delay.h> #include "output/PWMOut.h" PWMOut pwm0(&TCCR0A, &TCCR0B, &OCR0A, &DDRB, PB0, COM0A0, COM0A1); PWMOut pwm1(&TCCR0A, &TCCR0B, &OCR0B, &DDRB, PB1, COM0B0, COM0B1); int main(void) { uint8_t x; while (1) { for (x = 0; x < 255; x++) { ...
<commit_before>/* * Copyright (c) 2004 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>#include <GL/glew.h> // to load OpenGL extensions at runtime #include <GLFW/glfw3.h> // to set up the OpenGL context and manage window lifecycle and inputs #include <stdio.h> #include <iostream> /// The main function int main () { std::cout << "Hello !" << std::endl; return 0; }<commit_msg>Added G...
<commit_before>// Convert DMD CodeView debug information to PDB files // Copyright (c) 2009-2010 by Rainer Schuetze, All Rights Reserved // // License for redistribution is given by the Artistic License 2.0 // see file LICENSE for further details #include "PEImage.h" #include "cv2pdb.h" #include "symutil.h" ...
<commit_before>#include <iostream> #include "lib/bios_opencv/frame_grabber/video_file.h" #include "lib/bios_opencv/filter_chain/filter_chain.h" #include "lib/bios_opencv/filter/all_filters.h" using namespace std; using namespace BiosOpenCV; int main(int argc, const char * argv[]) { bool paused = false; // Set s...
<commit_before>/****************************************************************************** * Fake Frog * * An Arduino-based project to build a frog-shaped temperature logger. * * Author: David Lougheed. Copyright 2017. ...
<commit_before>#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; struct tree { tree *leftSon; tree *rightSon; int value; }; void addNumber(tree *binaryTree, int value) { if (value == binaryTree->value) { cout << " " << endl; return; } else { if (value < binaryTree->value...
<commit_before>// Copyright (c) 2010 - 2013 Leap Motion. All rights reserved. Proprietary and confidential. #include "stdafx.h" #include "CoreThreadTest.h" #include "Autowired.h" #include "TestFixtures/SimpleThreaded.h" #include <boost/thread/thread.hpp> #include <boost/thread.hpp> class SpamguardTest: public CoreTh...
<commit_before>#include "cnn/nodes.h" #include "cnn/cnn.h" #include "cnn/training.h" #include "cnn/gpu-ops.h" #include "cnn/expr.h" #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/algorithm/string.hpp> #include <sys/types.h> #include <sys/wait.h> #include <iostream...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WIT...
<commit_before>// $Id$ AliEmcalPhysicsSelectionTask* AddTaskEmcalPhysicsSelection( Bool_t exFOnly, Bool_t wHistos = kTRUE, UInt_t triggers = 0, Double_t minE = -1, Double_t minPt = -1, Double_t vz = -1, Bool_t vzdiff = kFALSE, Double_t cmin = -1, Double_t cmax = -1, Double_t...
<commit_before>#define DEBUG 1 /** * File : E.cpp * Author : Kazune Takahashi * Created : 6/14/2020, 3:06:06 AM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdi...
<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 "net/proxy/proxy_resolver_mac.h" #include <CoreFoundation/CoreFoundation.h> #include "base/logging.h" #include "base/mac/fou...
<commit_before>#include <iostream> #include <math.h> using namespace std; class Mortgage { public: void setLoanAmount(float amount) { this->loanAmount = amount; } void setInterestRate(float rate) { this->interestRate = rate * Mortgage::HUNDRED; } void setYears(float years) { ...
<commit_before>/*========================================================================= * * Copyright Leiden University Medical Center, Erasmus University Medical * Center and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
<commit_before><commit_msg>nspluginwrapper compat fixes, part 1: Set the correct size in NP_GetEntryPoints. The old code was assigning the size of the _pointer_ (i.e., 4). Apparently most browsers ignore this or else O3D wouldn't have worked anywhere, but nspluginwrapper started to care about this very much somewhere b...
<commit_before>//------------------------------------------------------------------------------ // // Arion // // Extract metadata and create beautiful thumbnails of your images. // // ------------ // main.cpp // ------------ // // Copyright (c) 2015 Paul Filitchkin, Snapwire // // Redistribution and use in source an...
<commit_before>#include <allegro5\allegro.h> #include "objects.h" //Global variables const int WIDTH = 800; const int HEIGHT = 600; int main() { //primitve variables bool done = false; //event loop fundamental variable //Allegro variables ALLEGRO_DISPLAY *display = NULL; ALLEGRO_EVENT_QUEUE *event_queue = NULL;...
<commit_before>#include <cstdlib> #include <iostream> /* * Add command line arguments * ideas: * difficulty (speed), color, graphics * debugging, etc. */ int main( void ) { //load board //set up screen while( true ) //game loop { //take user input //action from input //check for col...
<commit_before>/** * Copyright (C) 2014 Jonathan Gillett, Joseph Heron, Khalil Fazal, Daniel Smullen * * 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, either version 3 of the License, or *...
<commit_before>#include "mraa.h" #include <chrono> #include <thread> #include <stdio.h> #include <string.h> #include <curl/curl.h> enum COMMAND { IDLE = 0, FORWARD = 1, REVERSE = 2, LEFT = 4, RIGHT = 8 }; const char* COMMAND_NAMES[] = {"IDLE","FORWARD","REVERSE","INVALID","LEFT","INVALID","INVALID"...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLSectionFootnoteConfigImport.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2007-06-27 16:05:03 $ * * The Contents ...
<commit_before>/** * \file TubeFilter.cpp */ #include "TubeFilter.h" #include <cassert> #include <ATK/Utility/SimplifiedVectorizedNewtonRaphson.h> #include <ATK/Utility/VectorizedNewtonRaphson.h> namespace ATK { template <typename DataType_> class TubeFunction { protected: const DataType_ mu; cons...
<commit_before>#include <iostream> #include <pcap.h> #include <string> #include <cstring> #include <cstdlib> #include <stack> #include "util.h" #include "packetheader.h" #include "handlepacket.h" using namespace std; #define max_number_of_operands 7007 namespace { u_int16_t number_of_operands; int32_t operands[max...
<commit_before>// // Created by sancar koyunlu on 6/17/13. // Copyright (c) 2013 hazelcast. All rights reserved. #include "hazelcast/client/spi/LifecycleService.h" #include "hazelcast/client/spi/PartitionService.h" #include "hazelcast/client/spi/ClientContext.h" #include "hazelcast/client/spi/InvocationService.h" #in...
<commit_before>/** @file camera.hpp @brief Implements a basic free-fly camera to help testing. Uses SFML. */ #ifndef CAMERA_HPP #define CAMERA_HPP #include <cmath> #include <SFML/Window.hpp> namespace oglwrap { /// Purely virtual interface class for cameras. class Camera { public: /// Returns the camera mat...
<commit_before>#include "carta.h" #include <iostream> #include <C:\SDL2-2.0.5\x86_64-w64-mingw32\include\SDL2\SDL.h> #include <C:\SDL2-2.0.5\x86_64-w64-mingw32\include\SDL2\SDL_image.h> #include "textura.h" #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 using namespace std; int main(){ // Janela principal SDL_...
<commit_before>#pragma once #ifndef SCOPEEXIT_HPP # define SCOPEEXIT_HPP #include <utility> /* This counts the number of args */ #define NARGS_SEQ(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...) N #define NARGS(...) NARGS_SEQ(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) /* This will let macros expand before concatin...
<commit_before>#include "stdafx.h" #include "csgo_net_chan.h" #include "WrpConsole.h" #include "addresses.h" #include <SourceInterfaces.h> #include <csgo/bitbuf/demofilebitbuf.h> #include <build/protobuf/csgo/netmessages.pb.h> #include <shared/AfxDetours.h> #include <Windows.h> #include <deps/release...
<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 ...