text
stringlengths
54
60.6k
<commit_before>/* Copyright 2016 Mitchell Young 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>/* * RmatGenerator.cpp * * Created on: 18.03.2014 * Author: Henning */ #include "RmatGenerator.h" #include "../auxiliary/Random.h" namespace NetworKit { RmatGenerator::RmatGenerator(count scale, count edgeFactor, double a, double b, double c, double d): scale(scale), edgeFactor(edgeFactor)...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the...
<commit_before>#include <gtest/gtest.h> #include <gmock/gmock.h> #include <experiments/experiments.hpp> #include <tuple> #include <memory> using ::testing::DoubleEq; using ::testing::DoubleNear; typedef std::shared_ptr<crest::wave::Integrator<double>> IntegratorSharedPtr; /* * The order of convergence tests in th...
<commit_before>#include "../../source/thewizardplusplus/wizard_parser/parser/rule_parser.hpp" #include "../../source/thewizardplusplus/wizard_parser/parser/exception_parser.hpp" #include "../../source/thewizardplusplus/wizard_parser/lexer/token.hpp" #include "../../source/thewizardplusplus/wizard_parser/parser/ast_node...
<commit_before>#include "gtest/gtest.h" #include "mazeprinter.h" #include "mazesearcher.h" #include "mazedata.h" #include "maze.h" class SearcherTest : public ::testing::Test { /* This gets run before each test */ virtual void SetUp() { maze = new Maze(16); maze->copyMazeFromFileData(japan2007, 256); ...
<commit_before>#include <Core/Resources/Resources.hpp> #include <Core/Utils/StdFilesystem.hpp> #include <Gui/Utils/KeyMappingManager.hpp> #include <catch2/catch.hpp> #include <QtGlobal> using namespace Ra; using namespace Ra::Gui; using Idx = KeyMappingManager::KeyMappingAction; using Ctx = KeyMappingManager::Contex...
<commit_before>#include "ngraph.h" #include <PCU.h> #include <unordered_set> #include <vector> #include <engpar_support.h> namespace agi { typedef std::unordered_set<GraphVertex*> VertexVector; //TODO: Make a vector by using a "tag" on the edges to detect added or not typedef std::unordered_set<GraphEdge*> EdgeVe...
<commit_before>#ifndef AMGCL_MPI_UTIL_HPP #define AMGCL_MPI_UTIL_HPP /* The MIT License Copyright (c) 2012-2018 Denis Demidov <dennis.demidov@gmail.com> Copyright (c) 2014, Riccardo Rossi, CIMNE (International Center for Numerical Methods in Engineering) Permission is hereby granted, free of charge, to any person ob...
<commit_before>#ifndef BST_HPP #define BST_HPP #include "BSTNode.hpp" #include "BSTIterator.hpp" #include <utility> // for std::pair template<typename Data> class BST { protected: /** Pointer to the root of this BST, or nullptr if the BST is empty */ BSTNode<Data>* root; /** Number of Data items stored in thi...
<commit_before>/* * This file is part of Poedit (http://poedit.net) * * Copyright (C) 2013-2014 Vaclav Slavik * * 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...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>/** \file * Implements the loadplay a bootstrapping tool for libloadplay. */ #include "Options.hpp" #include "errors.hpp" #include "utility.hpp" #include "sys/env.hpp" #include <iostream> /* std::cerr */ #include <unistd.h> /* execvp() */ /** * File local scope. */ namespace { using nih::Par...
<commit_before>#include "metatype_p.h" #include "metatype.h" #include <ostream> #include <mutex> #include <vector> #include <array> #include <unordered_map> #include <memory> #include <cassert> namespace rtti { namespace { #define DEFINE_STATIC_TYPE_INFO(NAME, TYPEID) \ TypeInfo{#NAME, sizeof(NAME), \ Met...
<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> #include "include/Shapes.h" double sumOfArea(const std::vector<Shape *> & shapes) { double total =0; for (Shape *shapePoint: shapes) total += shapePoint->area(); return total; } double sumOfPerimeter(const std::vector<Shape *> & shapes){ double total = 0; for (Shape *...
<commit_before>/* * Copyright (C) 2004-2010 See the AUTHORS file for details. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ #include "Socket.h" #include "Modules.h" #inc...
<commit_before>#include "log.h" #include "SongDb.h" #include "sqlite3/sqlite3.h" #include "utils.h" #include <cstring> using namespace std; using namespace utils; void IncrementalQuery::addLetter(char c) { query.push_back(c); if(query.size() > 2) { search(); } } void IncrementalQuery::rem...
<commit_before>#pragma once #ifndef PI # define PI 3.14159265359f #endif #include "ISystem.hpp" #include "EntityManager.hpp" #pragma warning(disable : 4250) namespace kengine { template<typename CRTP, typename ...DataPackets> class System : public ISystem, public putils::Module<CRTP, DataPackets...> { p...
<commit_before>// SA:MP Profiler plugin // // Copyright (c) 2011 Zeex // // 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 req...
<commit_before>// SA:MP Profiler plugin // // Copyright (c) 2011 Zeex // // 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 req...
<commit_before>#include "code_it_pr2/robot_api.h" #include <string> #include <vector> #include "boost/shared_ptr.hpp" #include "code_it_msgs/ArmId.h" #include "code_it_msgs/AskMultipleChoice.h" #include "code_it_msgs/DisplayMessage.h" #include "code_it_msgs/GripperId.h" #include "code_it_msgs/LookAt.h" #include "code...
<commit_before>#include "selectors.hh" #include "string.hh" #include <algorithm> #include <boost/optional.hpp> namespace Kakoune { Selection select_line(const Buffer& buffer, const Selection& selection) { Utf8Iterator first = buffer.iterator_at(selection.cursor()); if (*first == '\n' and first + 1 != buffe...
<commit_before> #include "stdexcept.h" namespace std { exception::exception() throw() { } exception::exception(const exception&) throw() { } exception& exception::operator=(const exception&) throw() { return *this; } exception::~exception() { } const char* exception::what() const throw() { return 0; } ...
<commit_before>#include "HTTP.hpp" #include <iostream> #include <sstream> using namespace boost; using namespace boost::asio::ip; // to get 'tcp::' void testGet(asio::io_service& io_service, tcp::resolver& resolver, bool is_ssl, asio::yield_context yield) { RESTClient::HTTP server("httpbin.org", io_service, resolv...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * Razor - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2011 Razor team * Authors: * Christian Surlykke <christian@surlykke.dk> * * This program or library is free software; you can redistribute it * and/or modify...
<commit_before>#include "TrayMenu.h" #include <QAction> #include <QWidgetAction> #include "Light.h" #include <QDir> #include "ColorPickerController.h" #include <QWidget> #include <QSlider> #include <QLabel> #include <QHBoxLayout> #include <QPluginLoader> TrayMenu::TrayMenu(std::shared_ptr<ILight> light, QWidget* paren...
<commit_before>// Copyright (c) 2016, Joseph Mirabel // Authors: Joseph Mirabel (joseph.mirabel@laas.fr) // // This file is part of hpp-pinocchio. // hpp-pinocchio 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>#include "x_client.hpp" x_client::x_client(x_connection & c, const xcb_window_t & window) : m_c(c), m_window(window) { m_c.attach(0, XCB_MAP_NOTIFY, this); m_c.attach(0, XCB_UNMAP_NOTIFY, this); m_c.attach(0, XCB_CONFIGURE_NOTIFY, this); m_c.attach(0, XCB_PROPERTY_NOTIFY, this); m_c.update_i...
<commit_before> #include "opencv2/objdetect.hpp" #include "opencv2/videoio.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/tracking.hpp" // best available resolution / rate: ffplay -pixel_format mjpeg -video_size 1920x1080 /dev/video1 // best recording solution: ffmpeg -framerate 3...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include <stdlib.h...
<commit_before>// This file is part of the dune-stuff project: // https://users.dune-project.org/projects/dune-stuff // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Sven Kaulmann #ifndef DUNE_STUFF_DISCRETEFUNCTION_PR...
<commit_before>///////////////////////////////////////////////////////////////////////////// // PigShipEvent.cpp : Implementation of the CPigShipEvent class. #include "pch.h" #include <TCLib.h> #include <..\TCAtl\ObjectMap.h> #include "Pig.h" #include "PigBehaviorScript.h" #include "PigShip.h" #include "PigShipEvent.h...
<commit_before>#include "ProfileGuidedPartitioner.hpp" #include <cstddef> #include <iostream> #include <sstream> #include <fstream> #include <stdexcept> #include <string> #include <unordered_map> #include <vector> #include <cassert> #include "metis/include/metis.h" #include "Partitioner.hpp" #include "SimulationObje...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: loadlisteneradapter.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:19:22 $ * * The Contents of this fil...
<commit_before>// Copyright (c) 2016-2018 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/test_syscoin_services.h> #include <util/time.h> #include <rpc/server.h> #include <services/asse...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2017 Roman Lebedev 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 License, or (at...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: namedvaluecollection.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 14:55:20 $ * * The Contents of this fi...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file u...
<commit_before>#include <iostream> #include <set> #include "gtest/gtest.h" #include "onnx/checker.h" #include "onnx/common/constants.h" #include "onnx/defs/schema.h" #include "onnx/onnx-operators_pb.h" #include "onnx/onnx_pb.h" namespace ONNX_NAMESPACE { namespace Test { using namespace checker; using TENSOR_TYPES_MAP...
<commit_before>#include <iostream> #include <vector> #include <set> #include <cstdlib> namespace { typedef std::vector<uint16_t> MEM; MEM mem_; typedef std::set<uint16_t> SET; SET set_; } int main(int argc, char* argv[]); int main(int argc, char* argv[]) { uint32_t size = 10000; ...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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, mod...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: loaddispatchlistener.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2006-06-19 11:24:15 $ * * The Contents of this fi...
<commit_before>//game loop #include "game.h" #include <Windows.h> Game::Game() { } void Game::run() { while (running) { //throttle the game //throttling code inputManager.handle(); grahicsManager.render(this); } } <commit_msg>Update game.cpp<commit_after>//game loop #include "game....
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "UiConsoleManager.h" #include "ui_ConsoleWidget.h" #include "ConsoleProxyWidget.h" #include "ConsoleAPI.h" #include "UiAPI.h" #include "UiProxyWidget.h" #inc...
<commit_before>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<commit_before>#include "log.hpp" #include "boost_root.hpp" #include "temporary.hpp" #include "cdm_boost.hpp" #include "cdm/cmake_generator.hpp" #include <boost/test/unit_test.hpp> #include <boost/range/adaptor/filtered.hpp> #include <silicium/sink/ostream_sink.hpp> #include <cdm/locate_cache.hpp> #include <ventura/cma...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>/* FUSE: Filesystem in Userspace Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu> This program can be distributed under the terms of the GNU GPL. See the file COPYING. gcc -Wall hello_ll.c `pkg-config fuse --cflags --libs` -o hello_ll */ #define FUSE_USE_VERSION 30 #include <map>...
<commit_before>#include <iostream> #include <fstream> #include <ctime> #include "Util/Random.h" #include "Util/Config.h" #include "Util/Singleton.h" #include "World/Generators/Noise.h" #include "Application.h" #include "Display.h" #include "Util/Native.h" #ifdef __WIN32 extern "C" { //Enable dedic...
<commit_before>/* * File: DrawShip.cpp * Author: maxence * * Created on 29 novembre 2014, 10:43 */ #include <iostream> #include "shared/ship/Ship.h" #include "client/view/VectorView.h" #include "client/view/ShipView.h" #include "shared/Utils.h" sf::Texture ShipView::g_texture; ShipView::ShipView(const Shi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: textToPronounce_zh.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: kz $ $Date: 2006-01-31 18:49:00 $ * * The Contents of this file...
<commit_before>#include "include/imgui/imgui.h" #include "include/imgui/imgui-SFML.h" #include <SFML/Graphics.hpp> #include <cmath> #include <ctime> //****** //temporary workaround namespace sf{ class KeyboardHacked: public sf::Keyboard{ public: static bool isKeyPressed (Key key){ if(ImGui::GetIO().WantC...
<commit_before>#include "queryview.h" QueryView::QueryView(QWidget *parent, QSqlQueryModel* model, QString const name, int const time, int const rows, int const cols, Qt::WidgetAttribute f) { tview = new QTableView(this); tview->resizeColumnsToContents(); setCentralWidget(tview)...
<commit_before>/// Device memory manager /// /// (c) Koheron #ifndef __DRIVERS_CORE_DEV_MEM_HPP__ #define __DRIVERS_CORE_DEV_MEM_HPP__ #include <map> #include <vector> #include <array> #include <cstdint> #include <string> #include <assert.h> extern "C" { #include <fcntl.h> } #include "memory_map.hpp" /// @nam...
<commit_before>/* * Copyright (c) 2001 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of the L...
<commit_before>#include <iomanip> #include "hack.hpp" void Radar(remote::Handle* csgo, remote::MapModuleMemoryRegion* client, void* ent) { unsigned char spotted = 1; csgo->Write((void*)((unsigned long) ent + 0x929), &spotted, sizeof(unsigned char)); } void hack::Glow(remote::Handle* csgo, remote::MapModuleMe...
<commit_before>#include "Limiter.h" #include "Testing.h" #include <iostream> static auto CurrentTime() { return std::chrono::high_resolution_clock::now(); } static constexpr auto oneSecond = std::chrono::seconds(1); std::ostream& operator<<(std::ostream& os, HttpResult::Code code) { const auto str = code == HttpR...
<commit_before>#include "TestScene.h" CTestScene::CTestScene(void) { m_LogoLabelEnglish = NNLabel::Create( L"JuGums", L"Something Strange", 75.f ); m_LogoLabelEnglish->SetColor( 255, 0, 0 ); m_LogoLabelEnglish->SetPosition( 90.f, 30.f ); AddChild( m_LogoLabelEnglish ); m_LogoLabelKorean = NNLabel::C...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // FILE: Rapp.cpp // PROJECT: Micro-Manager // SUBSYSTEM: DeviceAdapters //----------------------------------------------------------------------------- // DESCRIPTION: Rapp UGA40 adapter // COPYRIG...
<commit_before>#define UNICODE #include <windows.h> #include <ole2.h> #include <oaidl.h> #include <objbase.h> #include <AtlBase.h> #include <AtlConv.h> #include <iostream> #include <sstream> #include <string> #include <vector> #include <stdlib.h> #include "FSAPI.h" #include "dictationbridge-core/master/master.h" #prag...
<commit_before>/* || || @file zilch.cpp || @version 0.2 || @author Colin Duffy || @contact cmduffy@engr.psu.edu || @author Warren Gay || @contact ve3wwg@gmail.com || || @description || Light weight task scheduler library, based off the awesome fibers || library by Warren Gay. https://github.com/ve3wwg...
<commit_before>#include "Game.h" float Game::BLOCK_SIDE_LENGTH = 0.09f; Vec2f Game::BLOCK_SIZE = { BLOCK_SIDE_LENGTH, BLOCK_SIDE_LENGTH }; Vec2f Game::FIELD_BOT_LEFT = { -0.55f, -0.45f }; Vec2i Game::FIELD_SIZE = { 10 + SENTINELS_COUNT, 20 + SENTINELS_COUNT }; Game::Game() //:mExists{} { for (size_t i = 0; i < FIE...
<commit_before>#include <iostream> #include <string.h> #include <math.h> #include "Problem.h" int puzzle[TILE_CNT] = {8, 7, 6, 5, 4, 3, 2, 1, 0}; int puzzle_dimension = (int)sqrt((int)TILE_CNT); bool isInteger(char *num) { if(num[0] == '-') { if(num[1] == '\0') { return false; } for(int i = 1; num[i] != ...
<commit_before>#include "Buffer.h" namespace gui { Buffer::Buffer(GLsizei width, GLsizei height, GLint format, GLenum type) : _format(format), _type(type), _width(width), _height(height), _buf(0), _mapped(0) { // create a pixel buffer object for the buffer glCheck(glGenBuffersARB(1, &_buf)); // resize buff...
<commit_before>/* Copyright (C) 2003-2006 MySQL AB 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 2 of the License. This program is distributed in the hope that it will be usefu...
<commit_before>//===- TopDownClosure.cpp - Compute the top-down interprocedure closure ---===// // // This file implements the TDDataStructures class, which represents the // Top-down Interprocedural closure of the data structure graph over the // program. This is useful (but not strictly necessary?) for applications ...
<commit_before>//===- DbiStreamBuilder.cpp - PDB Dbi Stream Creation -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Stream.cpp - adds parsing methods to Stream class Copyright (c) 2008 David A. Mellis. All right reserved. 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>#include <stdexcept> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/gpu/gpu.hpp> #include "performance.h" using namespace std; using namespace cv; INIT(matchTemplate) { Mat src; gen(src, 500, 500, CV_32F, 0, 1); Mat templ; gen(templ, ...
<commit_before>#pragma once #include "depthai-shared/common/ProcessorType.hpp" #include "depthai-shared/common/optional.hpp" #include "depthai-shared/properties/Properties.hpp" namespace dai { /** * Specify ScriptProperties options such as script uri, script name, ... */ struct ScriptProperties : PropertiesSeriali...
<commit_before>#ifndef OSRM_ENGINE_ROUTING_BASE_MLD_HPP #define OSRM_ENGINE_ROUTING_BASE_MLD_HPP #include "engine/algorithm.hpp" #include "engine/datafacade/contiguous_internalmem_datafacade.hpp" #include "engine/routing_algorithms/routing_base.hpp" #include "engine/search_engine_data.hpp" #include "util/typedefs.hpp...
<commit_before> #include "expressiongraph_wbf/solver/constraints.hpp" #include "expressiongraph_wbf/solver/controller_base.hpp" #include <qpOASES/SQProblem.hpp> //#include <map> using namespace wbf; using namespace std; using namespace KDL; namespace wbf { class velocity_solver{ private: std::vector<int> joint_ind...
<commit_before>/******************************************************************************\ * ___ __ * * /\_ \ __/\ \ * * \//\ \ /\_\ \ \____ ___ _____ _____ __ ...
<commit_before>/************************************************************************* * * $RCSfile: binarywritehandler.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-05-20 15:42:59 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>//------------------------------------------------------------------------------ // imgui-metal.c // Since this will only need to compile with clang we can use // mix designated initializers and C++ code. //------------------------------------------------------------------------------ #include "osxent...
<commit_before>/************************************************************************* * * $RCSfile: cachemulticaster.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: jb $ $Date: 2002-03-15 11:48:53 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before>/************************************************************************* * * $RCSfile: conncleanup.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2003-03-19 16:38:14 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * $RCSfile: dbexception.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: oj $ $Date: 2000-10-24 15:00:32 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>#include <iostream> #include "Utils.h" int main( int argc, char **argv ) { Utils* pUtil = new Utils; Utils Util; std::cout << pUtil->sumUp( -50 ) << std::endl; delete pUtil; } <commit_msg>indicated an intentional failure<commit_after>#include <iostream> #include "Utils.h" int main( int argc, cha...
<commit_before>#include "FakeSerial.h" #include "wiring.h" #include <conio.h> #define RX_BUFFER_SIZE 512 struct ring_buffer { unsigned char buffer[RX_BUFFER_SIZE]; int head; int tail; }; ring_buffer rx_buffer = { { 0 }, 0, 0 }; inline void store_char(unsigned char c, ring_buffer *rx_buffer) { int i = (rx_buff...
<commit_before><commit_msg>really do not write empty externalReferences element, fdo#45286 follow-up<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: xmlsorti.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: sab $ $Date: 2001-07-26 06:51:20 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/************************************************************************* * * $RCSfile: xmlsubti.hxx,v $ * * $Revision: 1.27 $ * * last change: $Author: vg $ $Date: 2005-03-23 13:03:40 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>//===--- ModuleAssistant.cpp - Module map generation manager -*- C++ -*---===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------...
<commit_before>/* MicroFlo - Flow-Based Programming for microcontrollers * Copyright (c) 2013 Jon Nordby <jononor@gmail.com> * MicroFlo may be freely distributed under the MIT license * * Note: Arduino is under the LGPL license. */ #include "microflo.h" #include <Arduino.h> static const int MAX_EXTERNAL_INTERRU...
<commit_before>#include "Session.h" #include <string> #include <SmurffCpp/Version.h> #include <SmurffCpp/Utils/omp_util.h> #include <SmurffCpp/Utils/Distribution.h> #include <SmurffCpp/Utils/MatrixUtils.h> #include <SmurffCpp/Utils/counters.h> #include <SmurffCpp/Utils/Error.h> #include <SmurffCpp/DataMatrices/Data...
<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 "base/at_exit.h" #include "base/message_loop.h" #include "base/scoped_nsautorelease_pool.h" #include "gpu/command_buffer/commo...
<commit_before>// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/app/atom_main.h" #include <stdlib.h> #include <string.h> #if defined(OS_WIN) #include <stdio.h> #include <io.h> #include <fcntl.h> #include <windows.h>...
<commit_before>#pragma once #include <Geometry2d/Point.hpp> #include <Geometry2d/CompositeShape.hpp> #include <SystemState.hpp> #include <QColor> #include <QString> namespace Planning { /** * @brief Abstract class representing a motion path */ class Path { public: /** * A path describes the positi...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even t...
<commit_before> #include <string> #include <sstream> #include <fstream> #include <iterator> #include <vector> #include <map> #include <utility> #include <functional> #include <algorithm> #include <limits> #include <time.h> #include <omp.h> #include <boost/program_options.hpp> #include "tools.hpp" namespace b_po =...
<commit_before>/****************************************************************************** This source file is part of the Avogadro project. Copyright 2012-2014 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writin...
<commit_before>/* COPYRIGHT (c) 2014 Umut Acar, Arthur Chargueraud, and Michael * Rainey * All rights reserved. * * \file graph.hpp * \brief Graph algorithms * */ #include <atomic> #include <vector> #include <algorithm> #include <fstream> #include <iostream> #include <istream> #include <ostream> #include <sstr...
<commit_before>// Copyright 2014 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 "sky/engine/bindings/builtin_natives.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "base/bind.h" #inclu...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * BP3Writer.cpp * * Created on: Dec 19, 2016 * Author: William F Godoy godoywf@ornl.gov */ #include "BP3Writer.h" #include "BP3Writer.tcc" #include "adios2/ADIOSMPI.h...
<commit_before>#include "timeline.h" #include <iostream> #include <cassert> #include <sstream> #include <QPainter> #include <QMouseEvent> using std::cout; using std::endl; Timeline::Timeline(QWidget* parent) : QWidget(parent), m_range(0, 100), m_value(0), m_tickDistance(8), m_labelDistance(80) { setMinimumHeight(4...
<commit_before>/* * Vulkan device class * * Encapsulates a physical Vulkan device and it's logical representation * * Copyright (C) 2016 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #pragma once #include <exception> #include "vu...