text
stringlengths
54
60.6k
<commit_before>809e91c5-2d15-11e5-af21-0401358ea401<commit_msg>809e91c6-2d15-11e5-af21-0401358ea401<commit_after>809e91c6-2d15-11e5-af21-0401358ea401<|endoftext|>
<commit_before>8e47b008-35ca-11e5-8eae-6c40088e03e4<commit_msg>8e4e6ba6-35ca-11e5-9d53-6c40088e03e4<commit_after>8e4e6ba6-35ca-11e5-9d53-6c40088e03e4<|endoftext|>
<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>65b826d0-2e3a-11e5-b1bb-c03896053bdd<commit_msg>65c65a34-2e3a-11e5-8808-c03896053bdd<commit_after>65c65a34-2e3a-11e5-8808-c03896053bdd<|endoftext|>
<commit_before>693c0a46-2fa5-11e5-b1d2-00012e3d3f12<commit_msg>693d90e4-2fa5-11e5-95d3-00012e3d3f12<commit_after>693d90e4-2fa5-11e5-95d3-00012e3d3f12<|endoftext|>
<commit_before>dd3882cc-313a-11e5-bc13-3c15c2e10482<commit_msg>dd3e6c8f-313a-11e5-9ae6-3c15c2e10482<commit_after>dd3e6c8f-313a-11e5-9ae6-3c15c2e10482<|endoftext|>
<commit_before>/* MIT License Copyright (c) 2018 namreeb http://github.com/namreeb legal@namreeb.org 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, inclu...
<commit_before> #include <QtCore> #include <QtQml> #include <QApplication> #include <QQmlApplicationEngine> #include <QQuickImageProvider> #include <QScreen> #ifdef Q_OS_ANDROID #include <QAndroidJniObject> #endif #include "src/website_backend/gumboparserimpl.h" #include "src/qml_backend/useravatarimageprovider.h" #...
<commit_before>a45836e3-2747-11e6-a0db-e0f84713e7b8<commit_msg>lets try again<commit_after>a46a9ae6-2747-11e6-8714-e0f84713e7b8<|endoftext|>
<commit_before>5bf6735d-2d16-11e5-af21-0401358ea401<commit_msg>5bf6735e-2d16-11e5-af21-0401358ea401<commit_after>5bf6735e-2d16-11e5-af21-0401358ea401<|endoftext|>
<commit_before>809e9231-2d15-11e5-af21-0401358ea401<commit_msg>809e9232-2d15-11e5-af21-0401358ea401<commit_after>809e9232-2d15-11e5-af21-0401358ea401<|endoftext|>
<commit_before>8ab45938-4b02-11e5-b9a5-28cfe9171a43<commit_msg>Put the thingie in the thingie<commit_after>8ac1f87d-4b02-11e5-9923-28cfe9171a43<|endoftext|>
<commit_before>77e57aca-2d53-11e5-baeb-247703a38240<commit_msg>77e5fc3e-2d53-11e5-baeb-247703a38240<commit_after>77e5fc3e-2d53-11e5-baeb-247703a38240<|endoftext|>
<commit_before>4d857f5c-2e3a-11e5-a745-c03896053bdd<commit_msg>4d9895a8-2e3a-11e5-a058-c03896053bdd<commit_after>4d9895a8-2e3a-11e5-a058-c03896053bdd<|endoftext|>
<commit_before>12bbaba4-2f67-11e5-835e-6c40088e03e4<commit_msg>12c2367e-2f67-11e5-ac48-6c40088e03e4<commit_after>12c2367e-2f67-11e5-ac48-6c40088e03e4<|endoftext|>
<commit_before>7e5deb21-4b02-11e5-909c-28cfe9171a43<commit_msg>bug fix<commit_after>7e69b9c0-4b02-11e5-a4c9-28cfe9171a43<|endoftext|>
<commit_before>691bd814-2fa5-11e5-9b16-00012e3d3f12<commit_msg>691dacd2-2fa5-11e5-9a07-00012e3d3f12<commit_after>691dacd2-2fa5-11e5-9a07-00012e3d3f12<|endoftext|>
<commit_before>#include <iostream> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #define O_BINARY 0 const int RECORD_SIZE = 8 * 1024; size_t get_file_size(const char *); int main(int argc, char **argv) { // required for argument parsing int fflag = 0; int c; const char * def...
<commit_before>e6d7b7bd-327f-11e5-b9a4-9cf387a8033e<commit_msg>e6dde7eb-327f-11e5-9a2c-9cf387a8033e<commit_after>e6dde7eb-327f-11e5-9a2c-9cf387a8033e<|endoftext|>
<commit_before>72ef62e4-5216-11e5-a6e3-6c40088e03e4<commit_msg>72f61dca-5216-11e5-8d06-6c40088e03e4<commit_after>72f61dca-5216-11e5-8d06-6c40088e03e4<|endoftext|>
<commit_before>#include <iostream> #include <string> #include <sstream> #include <vector> #include <iterator> #include <memory> #include <algorithm> #include <cstring> #include <unordered_map> #include <functional> using namespace std; vector<string> split(const string& str) { string buf; // Have a buffer string ...
<commit_before>d61667e2-35ca-11e5-9e64-6c40088e03e4<commit_msg>d61d0b88-35ca-11e5-8c1c-6c40088e03e4<commit_after>d61d0b88-35ca-11e5-8c1c-6c40088e03e4<|endoftext|>
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * Flacon - audio File Encoder * https://github.com/flacon/flacon * * Copyright: 2012-2013 * Alexander Sokoloff <sokoloff.a@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser ...
<commit_before>/* * Copyright 2010, * François Bleibel, * Olivier Stasse, * * CNRS/AIST * * This file is part of sot-core. * sot-core 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 ver...
<commit_before>/*========================================================================= Programme : OTB (ORFEO ToolBox) Auteurs : CS - C.Ruffel Language : C++ Date : 09 mars 2006 Version : Role : Test la classe du filtre de detection de contours $Id$ =====================...
<commit_before>#ifndef LAYER_HPP_ #define LAYER_HPP_ #include "tensor.cu" #include <vector> // TODO: discuss and finalize interfaces: forward() & backward() template <class Dtype> class Layer { public: virtual void Forward(const std::vector<Tensor<Dtype>*> &bottoms, const std::vector<Tensor<Dtype>*> &tops) = 0; ...
<commit_before>#ifndef _DATA_TYPES #define _DATA_TYPES #include <iostream> struct dimension { dimension(void); dimension(unsigned int w, unsigned int h); unsigned int width, height; }; struct position { position(void); position(int x, int y); int x, y; }; struct rectangle { rectangle(void); rectangl...
<commit_before>/* OFX FrameHold plugin. Copyright (C) 2015 INRIA Author: Frederic Devernay <frederic.devernay@inria.fr> 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 a...
<commit_before>/* Copyright (c) 2011 Aaron Drew 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 copyright notice, this list of conditions...
<commit_before>#include <Main.h> #include <Wheel.h> #include <Core.h> #include <Utility.h> #include <UnitQuad.h> #include <ImGuiExtensions.h> #include <imgui.h> #include <utility> #include <Input.h> #include "../imgui/imgui_internal.h" namespace GW2Addons { Wheel::Wheel(uint resourceId, std::string nickname, std::str...
<commit_before>// Copyright (c) 2010 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 "TilePartitionerGradient.h" #include "tilegen/alpha/AlphaCalculatorLinear.h" #include <utility> namespace tilegen { namespace partition { int TilePartitionerGradient::gradientWeight(int x, int y, int x_corner, int y_corner, int margin) { return std::max(0, ((int)mOptions.tileFormat.resolut...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.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 ob...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SlideSorterViewShell.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2005-09-23 11:27:42 $ * * The Contents of this fi...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT 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 * ...
<commit_before>#include "db-sqlite3.h" #include <stdexcept> DBSQLite3::DBSQLite3(const std::string &mapdir) { std::string db_name = mapdir + "map.sqlite"; if (sqlite3_open_v2(db_name.c_str(), &m_db, SQLITE_OPEN_READONLY | SQLITE_OPEN_PRIVATECACHE, 0) != SQLITE_OK) { throw std::runtime_error(std::string(sqlite3_e...
<commit_before>//===-- TarWriter.cpp - Tar archive file creator --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_LA_BACKEND_EIGEN_HH #define DUNE_DETAILED_DISCRETIZATIONS_LA_BACKEND_EIGEN_HH #ifdef HAVE_EIGEN // eigen #include <Eigen/Core> #include <Eigen/Sparse> // dune-common #include <dune/common/shared_ptr.hh> namespace Dune { namespace Detailed { namespace Discretiza...
<commit_before>/* * Copyright (C) 2002-2007 Novamente LLC * Copyright (C) 2008 by Singularity Institute for Artificial Intelligence * All Rights Reserved * * 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...
<commit_before>/* RTQL8, Copyright (c) 2011 Georgia Tech Graphics Lab All rights reserved. Author Sehoon Ha Date 06/12/2011 */ #ifndef DART_KINEMATICS_FILEINFO_SKEL_H #define DART_KINEMATICS_FILEINFO_SKEL_H #include <fstream> #include <iomanip> #include <string> #include <iostream> #include <sstream> #inc...
<commit_before>#include "../checkpoint/checkpoint.h" #include "myrandom/myrand.h" #include <algorithm> // for std::shuffle #include <cstdint> // for std::int32_t #include <iostream> // for std::cout #include <random> ...
<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 "SampleCode.h" #include "SkView.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkPath.h" #include "SkRegion.h" #include "SkShader.h" #include ...
<commit_before>/* * Copyright (c) 2015-2017 Advanced Micro Devices, Inc. * All rights reserved. * * For use for simulation and test purposes only * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistrib...
<commit_before>/************************************************************************* > File Name: connection.cpp > Author: sudoku.huang > Mail: sudoku.huang@gmail.com > Created Time: Monday, December 26, 2016 PM03:06:43 CST ************************************************************************/...
<commit_before>// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be /...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2009-05-13 14:52:01 +0200 (Mi, 13. Mai 2009) $ Version: $Revision: 17230 $ Copyright (c) German Cancer Research Center, Division of Medi...
<commit_before>/* farrtl.cpp : new/delete/malloc/realloc/free */ /* Revision: 1.20 09.08.2004 $ */ /* Modify: 09.08.2004 SKV - ftell64, fseek64 fix. 06.08.2004 SKV ! see 01825.MSVCRT.txt 01.06.2003 SVS ! FAR_CreateFile farrtl.cpp farwinapi.cpp 25.02.2003 SVS ! CallNewDelete/CallMallo...
<commit_before>// // Recursive Descent Parser // /** * Example Grammar: * * tree ::= '(' ( | INT <tree> <tree> ) ')' */ enum TokenT { NONE, PAREN_OPEN, PAREN_CLOSE, INT }; struct Token { TokenT t; int n; Token() {} Token(TokenT T): t(T) {} Token(TokenT T, int N): t(T), n(N) {} }; struct Lexer { Reade...
<commit_before>// Natron /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "AnimationButton.h" #include <QMouseEvent> #include <QApplication> #include <...
<commit_before>/* * Copyright (c) 2007 The Hewlett-Packard Development Company * All rights reserved. * * Redistribution and use of this software in source and binary forms, * with or without modification, are permitted provided that the * following conditions are met: * * The software must be used only for Non...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2008 Henry de Valence <hdevalence@gmail.com> // Copyright 2010 Dennis Nie...
<commit_before>#include <iostream> using namespace std; int main(int argc, char *argv[]) { return -1; } <commit_msg>read edges into memory, assign node ids<commit_after>#include <cstdio> #include <sys/mman.h> #include <fcntl.h> #include <iostream> #include <string> #include <sys/stat.h> #include <unistd.h> #include...
<commit_before><commit_msg>dowang fix init error<commit_after><|endoftext|>
<commit_before>#include <string.h> #include <iostream> #include <sstream> #include <map> #include <unistd.h> #include <openssl/sha.h> #include <openssl/hmac.h> #include "base64.h" #include <jansson.h> #include "kraken.h" #include "curl_fun.h" // FIXME workaround for std::to_string when not using c++11 namespace patch...
<commit_before>// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and de...
<commit_before>#pragma once #include "../traits.hpp" #include "fft2d.pb.h" #include <thrust/device_vector.h> namespace cujak { namespace fft2d { inline int calc_stride(int Ny) { return (Ny % 2 ? Ny / 2 + 1 : Ny / 2); } template <typename Container> class wrapper_base { protected: const int Nx, Ny, stride, N; Co...
<commit_before>#include <pcl/visualization/cloud_viewer.h> #include <iostream> #include <pcl/io/io.h> #include <pcl/io/pcd_io.h> int user_data; void viewerOneOff (pcl::visualization::PCLVisualizer& viewer) { viewer.setBackgroundColor (1.0, 0.5, 1.0); pcl::PointXYZ o; o.x = 1.0; o.y = 0; o...
<commit_before>/** * Copyright (C) 2015 Virgil Security Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.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: * ...
<commit_before>/* Boost Python wrapper for the core WSGI/HTTP servers Copyright (c) 2016 Roman Miroshnychenko <romanvm@yandex.ua> License: MIT, see License.txt */ #include "server.h" namespace py = boost::python; using namespace wsgi_boost; BOOST_PYTHON_MODULE(wsgi_boost) { PyEval_InitThreads(); // Initialize GIL...
<commit_before>#include "MeshFactory.h" #include "TriMeshBW9.h" #include "TriMeshBW12.h" #include "TriMeshMT.h" #include "TriMeshPI.h" #include "TriMeshPIMem.h" #include "TriMeshPIOff.h" #include "TriMeshWT.h" #include "config/TriangleOptions.h" namespace PR { std::shared_ptr<Mesh> MeshFactory::create(const std::strin...
<commit_before>/* * Copyright (c) 2011, Ben Noordhuis <info@bnoordhuis.nl> * * 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 notice appear in all copies. * * THE SOFTWARE IS ...
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*- Copyright 2017 Raffaello D. Di Napoli This file is part of Lofty. Lofty 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 Founda...
<commit_before>#ifdef PIXELBOOST_PLATFORM_IOS #include <arpa/inet.h> #include <netinet/in.h> #include <sys/types.h> #include <sys/socket.h> #include <ifaddrs.h> #include "pixelboost/network/networkHelpers.h" namespace pb { namespace NetworkHelpers { std::string GetWifiAddress() { #if TARGET_IPHONE_SIMULATOR ...
<commit_before>/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2015 Liviu Ionescu. * * µOS++ 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 Foundatio...
<commit_before> /* * jabbercontact.cpp - Base class for the Kopete Jabber protocol contact * * Copyright (c) 2002-2004 by Till Gerken <till@tantalo.net> * Copyright (c) 2006 by Olivier Goffart <ogoffart at kde.org> * * Kopete (c) by the Kopete developers <kopete-devel@kde.org> * * ***********...
<commit_before>// 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 // "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) 2010 - 2014 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, Universi...
<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>// // Created by Sam on 9/25/2017. // #include "../../../include/Game/Python/Factory.h" #include <iostream> Card *Factory::createCard(std::string name) { return nullptr; } Factory::Factory() : version(""), interpreter() { std::cout << "Factory Started" << std::endl; std::cout << "U...
<commit_before>/* * File: RbmLayer.cpp * Author: janvojt * * Created on November 11, 2015, 8:43 PM */ #include "RbmLayer.h" #include "../../common.h" #include "../LayerFactory.h" #include "../../util/cudaHelpers.h" #include "../../log/LoggerFactory.h" #include "log4cpp/Category.hh" RbmLayer::RbmLayer() { } ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
<commit_before>//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* * Author: Csaszar, Peter <csjpeter@gmail.com> * Copyright (C) 2011-2016 Csaszar, Peter */ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "csjp_daemon.h" //for more tricks: http://www.enderunix.org/docs/eng/daemon.php namespace csjp { String default...
<commit_before># pragma once #include <Siv3D.hpp> namespace asc { using namespace s3d; class TCPStringClient : public TCPClient { private: std::string m_buffer; public: bool readChar(wchar& to) { String buffer = FromUTF8(m_buffer); if (buffer.length > 0) { to = buffer[0]; m_buffer = To...
<commit_before>// Copyright (c) 2008-2010 Kent State University // Copyright (c) 2011 Texas A&M University // // This file is distributed under the MIT License. See the accompanying file // LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms // and conditions. #ifndef ORIGIN_CONCEPTS_HPP #defin...
<commit_before>#include "primops.hh" #include "eval-inline.hh" #include "../../toml11/toml.hpp" namespace nix { static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Value & val) { auto toml = state.forceStringNoCtx(*args[0], pos); std::istringstream tomlStream(toml); std::funct...
<commit_before>#include "primops.hh" #include "eval-inline.hh" #include "../../toml11/toml.hpp" namespace nix { static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Value & val) { auto toml = state.forceStringNoCtx(*args[0], pos); std::istringstream tomlStream(toml); std::funct...
<commit_before>#include "McMaker/TpcEffMaker.h" void TpcEffMaker::initialize(){ InclusiveSpectra::initialize(); string trackType = config.getString( nodePath + ".input:type" ); if ( "mc" == trackType ){ cut_nHitsDedx->min = 0; } } TpcEffMaker::~TpcEffMaker(){ } void TpcEffMaker::analyzeTrack( Int_t iTrack ){...
<commit_before>/* board_serial.h - Arduino-XC HAL API implementation of serial comm Copyright (c) 2016 Ravendyne Inc. 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 Foundat...
<commit_before>/*! * @file window.cpp * * @brief Window class source file */ #include <algorithm> #include "window.hpp" #include "spoa/spoa.hpp" namespace racon { std::unique_ptr<Window> createWindow(uint64_t id, uint32_t rank, WindowType type, const char* backbone, uint32_t backbone_length, const char* qu...
<commit_before>// Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: yanshiguang02@baidu.com #include "logging.h" #include <assert.h> #include <boost/bind.hpp> #include <queue> #include <set> #in...
<commit_before>// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. // // Copyright 2015 Heiko Fink, All Rights Reserved. // // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // // Perception Neuron (TM) is a trademark of Beijing N...
<commit_before> #include "forms/list.h" #include "forms/scrollbar.h" #include "framework/event.h" #include "framework/framework.h" namespace OpenApoc { ListBox::ListBox(Control *Owner) : ListBox(Owner, nullptr) {} ListBox::ListBox(Control *Owner, ScrollBar *ExternalScrollBar) : Control(Owner), scroller_is_intern...
<commit_before>/* Copyright (c) 2010-2012, Delft University of Technology * 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 a...
<commit_before>// Initial version copied from Initial version copied from https://github.com/JetBrains/intellij-community/blob/master/native/WinFsNotifier/fileWatcher3.c // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. #ifdef _...
<commit_before>#include <brickred/timer_heap.h> #include <cstddef> #include <algorithm> #include <vector> #include <ext/hash_map> #include <brickred/base_logger.h> #include <brickred/timestamp.h> namespace brickred { namespace timer_heap_impl { class TimerIdAllocator { public: TimerIdAllocator() : value_(0) {}...
<commit_before>/* Copyright (C) 2013 BMW Group * Author: Manfred Bathelt (manfred.bathelt@bmw.de) * Author: Juergen Gehring (juergen.gehring@bmw.de) * 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...
<commit_before>#include <TfTest/TfTest> #include <QtCore> #include <QDebug> #include "tcachestore.h" #include "tcachefactory.h" #include "tcachesqlitestore.h" static qint64 FirstKey; const int NUM = 500; class TestCache : public QObject { Q_OBJECT private slots: void initTestCase(); void cleanupTestCase(...
<commit_before>#include "chip8.hpp" #include <cassert> #include <iostream> #include <iomanip> #include <algorithm> static constexpr std::array<uint8_t, 80> CHIP8_FONTSET = {{ 0xF0, 0x90, 0x90, 0x90, 0xF0, // 0 0x20, 0x60, 0x20, 0x20, 0x70, // 1 0xF0, 0x10, 0xF0, 0x80, 0xF0, // 2 0xF0, 0x10, 0xF0, 0x1...
<commit_before>#include "config.h" #include "upath.h" #include "ykey.h" #include "yconfig.h" #include "ypaint.h" #include "yprefs.h" #include "ypaths.h" #include "sysdep.h" #include "binascii.h" #include "yapp.h" #include "intl.h" upath findPath(ustring path, int mode, upath name, bool /*path_relative*/) { #ifdef __E...
<commit_before>/* * $Id$ * * Copyright(C) 1998-2003 Satoshi Nakamura * All rights reserved. * */ #include <qmapplication.h> #include <qmdocument.h> #include <qmfolder.h> #include <qmmessage.h> #include <qmmessageholder.h> #include <qmtemplate.h> #include <qsconv.h> #include <qsnew.h> #include <...
<commit_before>#include <dlfcn.h> #include <cstdio> #include <cstring> #include <unistd.h> #include <cstdlib> #include <iostream> #include <fstream> #include <vector> #include <array> #include <string> #include <map> #include <functional> #include "Defs.hpp" #include "History.hpp" #include "TerminalInfo.hpp" #include...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p10/procedures/hwp/lib/pstates_pgpe.H $ ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 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>/* * Copyright (c) 2014 Zubax, zubax.com * Distributed under the MIT License, available in the file LICENSE. * Author: Pavel Kirienko <pavel.kirienko@zubax.com> */ #include "sys.hpp" #include <ch.hpp> #include <unistd.h> #include <cstdio> #include <cassert> #include <cstring> #include <cstdarg> #if...
<commit_before>#ifndef _C4_MEMORY_RESOURCE_HPP_ #define _C4_MEMORY_RESOURCE_HPP_ /** @file memory_resource.hpp Provides facilities to allocate memory, via * the memory resource model consecrated with C++17. */ /** @defgroup raw_memory_alloc Raw memory allocation * */ /** @defgroup memory_resources Memory resourc...
<commit_before>#include "polylineStyle.h" #include "tangram.h" #include "platform.h" #include "material.h" #include "gl/shaderProgram.h" #include "gl/typedMesh.h" #include "scene/stops.h" #include "scene/drawRule.h" #include "tile/tile.h" #include "util/mapProjection.h" #include "glm/vec3.hpp" namespace Tangram { st...
<commit_before>#include "async_game.h" #include "../event/event.h" #include "../action/simple_card.h" #include <string> #include <stdexcept> #include <iostream> namespace Casino { namespace Uno { namespace Game { namespace Event = ::Casino::Uno::Event; using ::Casino::Uno::Action::SimpleCard; AsyncGame::AsyncGame...
<commit_before>#include <fstream> #include <iostream> #include <omp.h> #include <stdio.h> #include <time.h> #include "../Neural_Networks.h" void Read_MNIST(string training_set_images, string training_set_labels, string test_set_images, string test_set_labels, int number_training, int number_test, float **input, float...