text
stringlengths
54
60.6k
<commit_before>/* Copyright 2015 Adam Grandquist 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 wr...
<commit_before>/* * Copyright (C) 2017-2018 Red Hat, Inc. * * Licensed under the GNU Lesser General Public License Version 2.1 * * 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; eit...
<commit_before>// Copyright (c) 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 "main.h" #include "bitcoinrpc.h" using namespace json_spirit; ...
<commit_before>#include <FL/Fl_Window.H> #include <FL/Fl_Text_Editor.H> #include <FL/Fl_Text_Buffer.H> #include <FL/Fl_Menu_Bar.H> #include <FL/Fl_Menu_Item.H> #include <FL/Fl.H> #include <FL/Enumerations.H> #include <FL/fl_ask.H> #include <string> #include <cstdio> #include <cassert> /* An example of a text edito...
<commit_before><commit_msg>third_party: fix tf2 invalid printf arg type<commit_after><|endoftext|>
<commit_before>/* * Copyright 2021 The Imaging Source Europe GmbH * * 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 b...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com> ** ****************************************************************************/ /* This Source Code Form is subje...
<commit_before>/* ** * BEGIN_COPYRIGHT * * This file is part of SciDB. Copyright (C) 2008-2014 SciDB, Inc. * * Superfunpack 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. * * SciDB is distributed "...
<commit_before>// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com> // 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 copyr...
<commit_before>/******************************************************************************* * libproxy - A library for proxy configuration * Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
<commit_before>/* * Copyright (c) 2013-2014 ADTECH GmbH * Licensed under MIT (https://github.com/adtechlabs/libtasks/blob/master/COPYING) * * Author: Andreas Pohl */ #include <tasks/serial/term.h> #include <cstring> #include <fcntl.h> #include <unistd.h> namespace tasks { namespace serial { struct termios term:...
<commit_before>/* Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com> Copyright (C) 2009-2011, Stefan Hacker <dd0t@users.sourceforge.net> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ...
<commit_before>// @(#)root/net:$Name: $:$Id: TSocket.cxx,v 1.2 2000/06/28 15:27:32 rdm Exp $ // Author: Fons Rademakers 18/12/96 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>// Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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 l...
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 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 <iostream> #include <cstdio> #include <stdlib.h> using namespace std; enum direction{ UP, DOWN, LEFT, RIGHT, UP_LEFT, UP_RIGHT, DOWN_LEFT, DOWN_RIGHT }; typedef int point[2]; //Declare a point type that represents a point on the grid class Generator{ char grid[10][10]; //Create a 10x...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>class Solution { public: int minPartitions(string n) { char cur = '0'; for (auto& c : n) { if (c > cur) { cur = c; } if (cur == '9') break; } return int(cur-'0'); } }; <commit_msg>Partitioning Into...
<commit_before>#include "dynet/init.h" #include "dynet/aligned-mem-pool.h" #include "dynet/dynet.h" #include "dynet/weight-decay.h" #include "dynet/globals.h" #include <iostream> #include <random> #include <cmath> #if HAVE_CUDA #include "dynet/cuda.h" #include <device_launch_parameters.h> #endif using namespace std;...
<commit_before>/* * Copyright 2015 Milian Wolff <mail@milianw.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved */ #include "Stroika/Frameworks/StroikaPreComp.h" #include <iostream> #include "Stroika/Foundation/Characters/ToString.h" #include "Stroika/Foundation/DataExchange/Archive/Reader.h" #include "Stroika/Foundation/Debug/Trace.h" #...
<commit_before>#ifndef _BINARY_SEARCH_TREE_HPP_ #define _BINARY_SEARCH_TREE_HPP_ template<class T> class BST : private BinaryTree<T> { }; #endif<commit_msg>Binary Search Tree added<commit_after>#ifndef _BINARY_SEARCH_TREE_HPP_ #define _BINARY_SEARCH_TREE_HPP_ template<class T> class BST : public BinaryTree<T> {...
<commit_before>#include <chrono> #include <cstdio> #include <vector> #include <memory> #include <algorithm> #include <poll.h> #include <xf86drm.h> #include <xf86drmMode.h> #include <gbm.h> #include <kms++.h> #include "test.h" #include "cube-egl.h" #include "cube-gles2.h" using namespace kms; using namespace std; st...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved */ #include "Stroika/Frameworks/StroikaPreComp.h" #include <iostream> #include "Stroika/Foundation/Characters/ToString.h" #include "Stroika/Foundation/DataExchange/Archive/Reader.h" #include "Stroika/Foundation/Debug/Trace.h" #...
<commit_before>#include "mswin.h" #include "model.h" #include "random.h" #include "cmdline.h" #include "graphics.h" #include "config.h" #include "memory.h" #include "vector.h" #include "glprocs.h" #include "compiler.h" #include "tinyscheme-config.h" #include <scheme-private.h> #include <scheme.h> #include <cstdint> #d...
<commit_before>/* libvisio * Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch> * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free S...
<commit_before>#include <iostream> #include <algorithm> #include <sstream> #include <cctype> #include <clocale> #include <string> #include <vector> #include <list> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <stack> #include <str...
<commit_before><commit_msg>Modify search engine dialog to only appear if the user does not have an existing preferences file.<commit_after><|endoftext|>
<commit_before><commit_msg>scanner cleanup for consistency<commit_after><|endoftext|>
<commit_before><commit_msg>janitorial: c++-style cast<commit_after><|endoftext|>
<commit_before>/* This source file is part of the Tomviz project, https://tomviz.org/. It is released under the 3-Clause BSD License, see "LICENSE". */ #include "AnimationHelperDialog.h" #include "ui_AnimationHelperDialog.h" #include "ActiveObjects.h" #include "ContourAnimation.h" #include "ModuleManager.h" #inclu...
<commit_before>// // Created by ariel on 10/30/16. // #include <iostream> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "Tower/Tower.h" #include "Tower/TowerMan.h" using std::cout; using std::endl; using Towers::Tower; using Towers::TowerType; using Towers::TowerMan; using Monsters::MonsterMan; ...
<commit_before><commit_msg>Add GMT restriction to buildtime calculation<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <signal.h> #include <sys/resource.h> #include <cstdio> #include <cstring> #include <unistd.h> #include <string.h> #include "bpforc.h" #include "bpftrace.h" #include "clang_parser.h" #include "codegen_llvm.h" #include "driver.h" #include "list.h" #include "printer.h" #include...
<commit_before>/* * Copyright (C) 2009 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this l...
<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>/* * Copyright (C) 2006, 2007 Apple Computer, Inc. * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistr...
<commit_before>/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * 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 requi...
<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>#ifndef RDB_PROTOCOL_FUNC_HPP_ #define RDB_PROTOCOL_FUNC_HPP_ #include <map> #include <utility> #include <vector> #include "utils.hpp" #include "containers/ptr_bag.hpp" #include "containers/scoped.hpp" #include "protob/protob.hpp" #include "rdb_protocol/js.hpp" #include "rdb_protocol/term.hpp" #includ...
<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>/*========================================================================= Program: Visualization Toolkit Module: vtkPriorityQueue.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#include "stdafx.h" #include "Stage.h" #include "SceneMgr.h" #include "RenderMgr.h" #include "Terrain.h" #include "TimeMgr.h" #include "ObjMgr.h" #include "Flower.h" #include "Player.h" #include "StaticObject.h" #include "Camera.h" #include "Info.h" #include "ResourcesMgr.h" #include "Frustum.h" #include...
<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 Library General Public License version 2 as published by the Free Software Foundation. T...
<commit_before>/* * Copyright (c) 2000-2008 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 ...
<commit_before>// This file is part of the dune-grid-multiscale project: // http://users.dune-project.org/projects/dune-grid-multiscale // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GRID_PART_ITERATOR_CODIM0_HH #define DUNE_GRID_PART_...
<commit_before>/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkPath.h" // Reproduces bug found here: http://jsfiddle.net/R8Cu5/1/ // #include "SkGradientShader.h" static vo...
<commit_before>/* The MIT License Copyright (c) 2014 Adrian Tan <atks@umich.edu> 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 ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 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 <util/validation.h> #include <consensus/validation.h> #i...
<commit_before>/** * @file ObstacleLocator.h * * @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a> * @author <a href="mailto:borisov@informatik.hu-berlin.de">Alexander Borisov</a> * @author <a href="mailto:krienelk@informatik.hu-berlin.de">Dominik Krienelke</a> * Implementation of cl...
<commit_before><commit_msg>fix #2661 v2<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkMapRankImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. ...
<commit_before> #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <errno.h> #include <fcntl.h> using namespace std; #include <string> typedef uint32_t linecount_t; bool is_file(const char * const path) { struc...
<commit_before>#include "RegularRectMerge.h" #include "PixelUncoveredLUT.h" #include "RegularRectCondense.h" namespace eimage { RegularRectMerge::RegularRectMerge(const std::vector<Rect>& rects, int width, int height, bool* ori_pixels) : m_width(width) , m_height(height) { m_uncovered_lut = new PixelUn...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: typeconverter.hxx,v $ * $Revisio...
<commit_before>#include "Halide.h" #include <stdio.h> using namespace Halide; #include "halide_image_io.h" using namespace Halide::Tools; #include "clock.h" Func rgb_to_grey(Image<uint8_t> input) { Var x("x"), y("y"), c("c"), d("d"); Func clamped("clamped"); clamped = BoundaryConditions::repeat_edge(input); Fu...
<commit_before>// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include <cstdlib> #include <unistd.h> #include <pthread.h> #include <GL/gl.h> #include <GL/glext.h> #include <X11/XKBlib.h> #include <X11/extensions/scrnsaver.h> #include "EngineLinux.hpp" #include "WindowResourceLinux.hpp...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/object.h" #include "gfx/scene_node.h" #include "gfx...
<commit_before>// $Author: afinit $ // $Date$ // $Log$ // Contains the Process class for afin #include "process.hpp" #include <thread> int max_search_loops; int contig_sub_len; int extend_len; int max_sort_char; int min_cov; int min_overlap; int max_threads; int initial_trim; int max_missed; double stop_ext; bool tes...
<commit_before>#include "main.h" #include "cvar.h" #include "sound.h" #include "event.h" vgui::ISystem* g_pSystem; IVEngineClient* g_pEngineClient; IGameEventManager2* g_pEventManager; IFileSystem* g_pFileSystem; ICvar* g_pCVar; Class g_localPlayerClass = Class::Null; DemoInfo::Demo...
<commit_before>#pragma once #include <cstdlib> #include <cassert> #include <cstring> #include <type_traits> #include <stdexcept> #include <limits> #include <memory> #include <tuple> //for cuda #ifdef __CUDACC__ #if __CUDACC_VER_MAJOR__ < 8 #error CUDA minimum version is 8.0 #endif #define MATAZURE_CUDA #endif ...
<commit_before> #include <string> #include <fstream> #include <iostream> #include "thermalPrinter.h" static inline bool loadFromPath(const std::string& path, std::string* into) { std::ifstream file; std::string buffer; file.open(path.c_str()); if(!file.is_open()) return false; while(!file.eof()) ...
<commit_before>#include "Image.h" #include "../raster/BgraFrame.h" namespace Aggplus { //////////////////////////////////////////////////////////////////////////////////////// CImage::CImage() : m_dwWidth(0), m_dwHeight(0), m_nStride(0), m_pImgData(NULL), m_bExternalBuffer(false), m_Status(WrongSta...
<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>#include "PDL.h" #include "SDL.h" #include "SDL_image.h" #include "chipmunk/chipmunk.h" #include <iostream> #include <vector> using namespace std; const float FRAMES_PER_SECOND = 60.0; const int SCREEN_WIDTH = 320; const int SCREEN_HEIGHT = 480; const int PADDING = 20; const int GRAVITY = 600; // gra...
<commit_before>#include <stdio.h> #include <getopt.h> #include <string.h> #include <unistd.h> #include "ftdi.hpp" #include "dionysus.hpp" #include "gpio.hpp" #include "arduino.hpp" #define PROGRAM_NAME "dionysus-ftdi" #define MEMORY_TEST false //5 seconds #define GPIO_TEST_WAIT 10 using namespace Ftdi; #define DEF...
<commit_before>/* * noise≈ * Noiselator object for Jamoma Multicore * Copyright © 2008 by Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "maxMulticore.h" // Data Structure for this object typedef struct Noise { t_obje...
<commit_before>/* Copyright 2019 Benjamin Worpitz, René Widera * * This file is part of alpaka. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once...
<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 "chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.h" #include <string> #include "base/base_paths....
<commit_before>// (C) Copyright Gennadiy Rozental 2005. // 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // ...
<commit_before> /** * \file * \brief StaticRawMessageQueue class header * * \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 * dis...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.o...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/* Copyright © 2012 Jesse 'Jeaye' Wilkerson See licensing at: http://opensource.org/licenses/BSD-3-Clause File: main.cpp Author: Jesse 'Jeaye' Wilkerson */ #include <iostream> #include <stdint.h> #include <string> #include "value.h" int32_t main(int32_t argc, char **argv) { /* To start ...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <array> #include <limits> #include "stack.h" #include "traverse.h" namespace visionaray { template <typename T, typename B> VSNRAY_FUNC inline hit_record<basic_ray<T>, primitive<unsigned>> intersect ( ...
<commit_before>#include <iostream> #include <multi_value.h> #include "logger/log.h" #include "command.h" INITIALIZE_EASYLOGGINGPP class FuckDemo { public: void help() { LOG(INFO) << "fuck helper -- "; }; void version() { LOG(INFO) << "fuck version -- "; } void classPath(std::stri...
<commit_before>/*************************************************************************** * Copyright (C) 1998-2010 by authors (see AUTHORS.txt ) * * * * This file is part of LuxRays. ...
<commit_before>/* This file is part of the PhantomJS project from Ofi Labs. Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.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> #include "common/Formatter.h" #include "rgw_swift.h" #include "rgw_rest_swift.h" #include <sstream> void RGWListBuckets_REST_SWIFT::send_response() { set_req_state_err(s, ret); dump_errno(s); dump_start(s); if (ret < 0) { end_header(s); return; } s->formatter->open_array_section...
<commit_before>/* qgvdial is a cross platform Google Voice Dialer Copyright (C) 2010 Yuvraaj Kelkar 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 y...
<commit_before>#include <tclap/CmdLine.h> #include <llvm/IR/Module.h> #include <fstream> #include <sstream> #include <chrono> #include "utils/util.hpp" #include "utils/error.hpp" #include "lexer.hpp" #include "parser/tokenParser.hpp" #include "parser/xmlParser.hpp" #include "llvm/compiler.hpp" #include "llvm/runner.hp...
<commit_before>/* * Copyright 2014-2020 Real Logic Limited. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
<commit_before>/**************************************************************************** * * Copyright (c) 2013-2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are me...
<commit_before>#include <iostream> #include <fstream> #include <regex> #include <memory> #include <iomanip> #include "channel.hpp" #include "config.hpp" #include <signal.h> #include <signal.h> static std::atomic_bool running = ATOMIC_FLAG_INIT; static void sighandler(int signum) { if (signum == SIGINT) { runni...
<commit_before>/******************************************************************************* * Copyright 2017-2018 Intel Corporation * * 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 * * ...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include "common/log.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/mesh_chunk.h" #include "gfx/idriver_ui_adapter.h" #...
<commit_before>#include <stdexcept> #include <limits> #include <algorithm> #include <array> #include <memory> #include <iomanip> #include <string> #include <sstream> #include <iostream> #include <fstream> #include <vector> //#include <sys/stat.h> #include <cerrno> #include <cstring> #include <system_error> #include <o...
<commit_before>#include <iostream> // last include (requires previous includes) #include "globals.hpp" #define DEBUG int main() { // window settings //window.setVerticalSyncEnabled(true); //window.setFramerateLimit(30); // avoid noise ;) // define a clock to measure time sf::Clock clock; sf::Time deltaT = c...
<commit_before>#include <QApplication> #include "mainwindow.h" #include "daemon_client.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); //MainWindow mainWindow; //mainWindow.show(); DaemonClient client; client.processTransaction("1234", 0); app.exec(); } <commit_msg>Revert main.cpp.<commit_...
<commit_before>#include "cmdline.hpp" #include <boost/lexical_cast.hpp> #include <boost/filesystem/operations.hpp> #include "State.hpp" #include "svc/LuaVm.hpp" #include "svc/FileSystem.hpp" #include "svc/ServiceLocator.hpp" #include "svc/Mainloop.hpp" #include "svc/DrawService.hpp" #include "svc/EventDispatcher.hpp" #...
<commit_before>/* * Copyright (C) 2012-2016. TomTom International BV (http://tomtom.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/LICENSE-...
<commit_before>#include "Arduino.h" #include "LiquidCrystal.h" LiquidCrystal lcd(12, 11, 5, 4, 3, 2); const unsigned int NUM_READS = 8; const unsigned int TEMP_SENSOR_PIN = A0; const unsigned int VOLTAGE_SENSOR_PIN = A1; const float baseline_temp = 20.0; void setup() { analogReference(EXTERNAL); Serial.begin(960...
<commit_before>#include <iostream> #include <vector> #include <chrono> #include "nnlib.h" using namespace std; using namespace nnlib; int main() { cout << "========== Sanity Test ==========" << endl; size_t inps = 3; size_t outs = 2; size_t batch = 5; Linear<double> layer1(inps, outs, batch); Vector<double...
<commit_before>#include <iostream> #include <vector> #include "World.h" #include "Renderer.h" #include "ForwardRasterizer.h" #include "DeferredRasterizer.h" #include "Camera.h" #include "Light.h" #include "DirectionalLight.h" #include "PointLight.h" #include "OrthographicCamera.h" #include "PerspectiveCamera.h" #inclu...
<commit_before>#include <boost/filesystem.hpp> #include <paxos/replicaset.hpp> #include "main.hpp" #include "partition.hpp" dafs::Partition SetupPartition(std::string directory, std::string hostport) { if (!boost::filesystem::exists(directory)) { boost::filesystem::create_directory(directory); ...
<commit_before>/* * Copyright (C) 2008-2011 The QXmpp developers * * Authors: * Ian Reinhart Geiser * Jeremy Lainé * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DataFmtTransl.cxx,v $ * * $Revision: 1.21 $ * * last change: $Author: obo $ $Date: 2006-09-17 17:00:27 $ * * The Contents of this file ar...
<commit_before>// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_HDD_LINEARELLIPTIC_TESTCASES_OS2015_HH #define DUNE_HDD_LINEARELLIPTIC_TEST...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #include "config.h" #include <boost/numeric/conversion/cast.hpp> #include "thre...
<commit_before>/************************************************************************* * * $RCSfile: contentidentifier.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: vg $ $Date: 2005-02-16 15:44:27 $ * * The Contents of this file are made available subject to the terms of * either of the follow...