text
stringlengths
54
60.6k
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<commit_before>/* * Copyright (c) 2009 Roy Wellington IV * * 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, * cop...
<commit_before>#include <stack> #include <memory> #define PARSER_H #ifndef SCANNER_H #include "scanner.hpp" #endif #include "util.hpp" namespace CS { using std::pair; using std::string; using std::vector; using std::shared_ptr; class TokenNode; typedef TokenNode Syn...
<commit_before>//Author: Julian Yi //Date Created: 18 July 2017 //File Description: .cpp file for Pieces #include <iostream> #include <string> #include "pieces.h" #include "board.h" #include "pawn.h" #include "defs.h" using namespace std; Pieces::Pieces() : team(TeamColor::None), type(PieceType::None), position({0, 0...
<commit_before>/* Copyright Eli Dupree and Isaac Dupree, 2011, 2012 This file is part of Lasercake. Lasercake 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 Lice...
<commit_before>// This file is part of playd. // playd is licensed under the MIT licence: see LICENSE.txt. /** * @file * Declaration of the Player class, and associated types. * @see player.cpp */ #ifndef PLAYD_PLAYER_HPP #define PLAYD_PLAYER_HPP #include <cstdint> #include <map> #include <memory> #include <stri...
<commit_before>#include "core.hpp" #include "output.hpp" #include <cmath> #include "input-manager.hpp" bool wayfire_grab_interface_t::grab() { if (grabbed) return true; if (!output->is_plugin_active(name)) return false; grabbed = true; /* unset modifiers, otherwise clients may not re...
<commit_before>#include <cstring> #include <boost/filesystem.hpp> #include "about_window.h" #include "viewer_window.h" #include "find_datarefs_in_files.h" #include "datarefs.h" #include "prefs.h" #include "XPWidgets.h" #include "XPLMMenus.h" #include "XPLMDisplay.h" #include "XPLMUtilities.h" #include "XPLMPlugin....
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include <stdlib.h> #include <new> #include "log.h" #include "replay.h" #include "common.h" #include "error.h" #include "osd.h" //////////////////////////////////////////////////////////////// // コンストラクタ //////////////////////////////////////////////////////////////// REPLAY::REPLAY( void ) : Ini(NULL)...
<commit_before>#ifndef __sitksimpletransformix_hxx_ #define __sitksimpletransformix_hxx_ #include "sitkSimpleTransformix.h" namespace itk { namespace simple { template< typename TInputImage > Image SimpleTransformix::ExecuteInternal( void ) { typedef elastix::TransformixFilter< TInputImage > TransformixFilterTy...
<commit_before>/** * Identify Majority Element in an Array * An element which apprears atmost n/2 times in an array * is known as Majority Element * * I/P: 3 2 2 3 2 2 2 2 * O/P: 2 * * I/P: 3 3 2 2 4 4 * O/P: None */ #include <iostream> #include <string.h> using namespace std; void findMajorityElement(int A[...
<commit_before>#include "MetaFile.h" #include "../../graphics/GraphicsRenderer.h" #include "../../raster/BgraFrame.h" #include "Emf/RendererOutput.h" #ifndef NEW_WMF #include "Wmf/RendererOutput.h" #endif namespace MetaFile { CMetaFile::CMetaFile(CApplicationFonts *pAppFonts) { m_pAppFonts = pAppFo...
<commit_before>/** Copyright (c) 2013, Philip Deegan. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>// Copyright 2012 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<commit_before>#pragma once #include <algorithm> #include <cmath> #include <cstdint> #include <tuple> #include <vector> namespace kdbush { template <std::uint8_t I, typename T> struct nth { inline static typename std::tuple_element<I, T>::type get(const T &t) { return std::get<I>(t); } }; template <...
<commit_before>#include <iostream> #include <string> #include <fstream> #include <cstdint> using namespace std; template <typename T> struct Node { Node *left; Node *right; T data; }; template <typename T> class BinaryTree; template <typename T> std::ostream& operator<<(std::ostream&, const BinaryTree<T>&); ...
<commit_before>#ifdef _MSC_VER #pragma warning(disable:4244) #pragma warning(disable:4267) #pragma warning(disable:4996) #endif #ifdef NDEBUG #undef NDEBUG #endif #include <stdlib.h> #include <boost/program_options.hpp> namespace po = boost::program_options; #include <vw/FileIO.h> #include <vw/Image.h> #include <vw...
<commit_before>/* * problem1.cpp * 作成者:Kenshiro.H * 第8回 問題1改 */ #include <iostream> #include <iomanip> //std::setw用 #include <fstream> //ファイル入出力用 #include <vector> //動的配列用 #include <algorithm> //std::max_element用 int main(){ using std::cout; // std::cout -> cout using s...
<commit_before>// Module: Log4CPLUS // File: property.cxx // Created: 2/2002 // Author: Tad E. Smith // // // Copyright 2002-2015 Tad E. Smith // // 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 Li...
<commit_before> #include "requests.h" #include "macros.h" #include <iostream> #ifdef __linux__ Requests::Requests() { startWorkers(); }; #endif //Requests::getPopRequest returns the first request of a queue void Requests::getPopRequest(Requests::Request *req) { req = requestsQueue.front(); requestsQueue.p...
<commit_before>#include "debug_log.hpp" #include "connection_pool.hpp" #include <boost/asio/io_service.hpp> #include <boost/asio/signal_set.hpp> #include <boost/program_options.hpp> namespace { void wait_on_signal() { boost::asio::io_service signal_io_service; boost::asio::io_service::work work{signal_io_service}...
<commit_before>// sdl_main.cpp #ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #include <GL/glew.h> #include <SDL.h> #include <SDL_syswm.h> #undef main #include "ShaderFunctions.h" #include "Timer.h" Timer g_timer; int winw = 800; int winh = 600; struct Shadertoy { ...
<commit_before>/* * Copyright (C) 2011 The Android Open Source Project * * 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 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SchemaSimpleTypeContext.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 16:01:26 $ * * The Contents of this...
<commit_before>// // Created by Dennis Goldfarb on 9/28/16. // #include <iostream> #include <fstream> #include <random> #include <string> #include <algorithm> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <OpenMS/CHEMISTRY/Element.h> #include <OpenMS/CHEMISTRY/AASequence.h> #include ...
<commit_before>// Copyright (c) 2014-2017 Michael J. Sullivan // Use of this source code is governed by an MIT-style license that can be // found in the LICENSE file. // This is a version of of rculist_user_rmc that open codes all the // list manipulation crap in instead of abstracting it away, in order // to simplify...
<commit_before>/***************************************************************************** * VLC backend for the Phonon library * * Copyright (C) 2007-2008 Tanguy Krotoff <tkrotoff@gmail.com> * * Copyright (C) 2008 Lukas Durfina <lukas.durfina@gmail.com> ...
<commit_before>#include <stdio.h> main() { std::cout << "Hello World"; } <commit_msg>edit hello world<commit_after>#include <stdio.h> #include <iostream> int main() { std::cout << "Hello World"; } <|endoftext|>
<commit_before>//===--- Stubs.cpp - Swift Language ABI Runtime Stubs ---------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>// // gunzip.cpp // RhoLib // // Created by Alex Epifanoff on 23.09.14. // // #include "gunzip.h" #include "zlib.h" #include <stdio.h> namespace gunzip { using namespace zlib; int UnzipGzip(const char* inputFilename, const char* outputFilename) { static const int LENGTH = 0x1000; ...
<commit_before>#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <getopt.h> #include <unistd.h> #define OSMIUM_MAIN #include <osmium.hpp> #include <geos/geom/MultiPolygon.h> #include <geos/algorithm/locate/IndexedPointInAreaLocator.h> #include "softcut.hpp" #include "hardcut.hpp" template <class T...
<commit_before>#include <iostream> #include <string> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <string.h> #include <cstring> #include <vector> #include <boost/algorithm/string/trim.hpp> using namespace std; using namespace boost; bool done = false; void orfinder(str...
<commit_before>//@ {"targets":[{"name":"serializer.hpp","type":"include"}]} #ifndef TEMPLE_SERIALIZER_HPP #define TEMPLE_SERIALIZER_HPP #include "item.hpp" #include "treenode.hpp" #include <stack> namespace Temple { namespace { template<class Sink,class Callback> class VisitorBase { public: virtual...
<commit_before>// null_inst_tests.cc #include <gtest/gtest.h> #include "null_inst.h" #include "context.h" #include "inst_model_tests.h" #include "model_tests.h" // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - class NullInstTest : public ::testing::Test { protected: virtual void SetUp() ...
<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 no...
<commit_before>//===- WebAssemblyTargetMachine.cpp - Define TargetMachine for WebAssembly -==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Dynamics/Kinematics modeling and simulation library. Copyright (C) 1999 by Michael Alexander Ewert 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 Software Foundation; either...
<commit_before>/* Copyright 2002-2013 CEA LIST This file is part of LIMA. LIMA is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) ...
<commit_before>#include <SDL2/SDL.h> #include <engine/input/InputController.h> #include <engine/core/Utils.hpp> #include <externals/box2d/Box2D/Box2D/Dynamics/b2World.h> #include "game/Game.h" #include "engine/input/Keyboard.h" #include "globals.h" #include "engine/2d_map/Map.h" Game::Game() { SDL_Init(SDL_INIT_EV...
<commit_before>// Copyright (c) 2006-2008 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/app_modal_dialog_queue.h" #include "chrome/browser/browser_list.h" // static std::queue<views::AppModal...
<commit_before>// Copyright (c) 2006-2008 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/external_tab_container.h" #include "base/logging.h" #include "base/win_util.h" #include "chrome/browser/...
<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 "chrome/browser/gtk/bookmark_utils_gtk.h" #include "app/resource_bundle.h" #include "base/gfx/gtk_util.h" #include "base/pick...
<commit_before>/*========================================================================= Library: CTK Copyright (c) 2010 Kitware Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a...
<commit_before>// Copyright 2013 The Chromium Authors. All rights reserved. // Copyright 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ozone/wayland/window.h" #include "ozone/wayland/display.h" #include "o...
<commit_before>/*========================================================================= Program: OSCAR Module: Actor.cc Language: C++ Date: $Date$ Version: $Revision$ Description: --------------------------------------------------------------------------- This file is part of the vis librar...
<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>// 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, software // ...
<commit_before>/************************************************************************* * * $RCSfile: UCBDeadPropertyValue.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2005-01-27 12:14:28 $ * * The Contents of this file are made available subject to the terms of * either of the fo...
<commit_before>/************************************************************************* * * $RCSfile: UCBDeadPropertyValue.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kso $ $Date: 2002-08-22 11:37:32 $ * * The Contents of this file are made available subject to the terms of * either of the fo...
<commit_before>// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- // -- END LICENSE BLOCK ------------------------------------------------ //---------------------------------------------------------------------- /*!\file...
<commit_before>#ifndef VIENNAGRID_ALGORITHM_DISTANCE_HPP #define VIENNAGRID_ALGORITHM_DISTANCE_HPP /* ======================================================================= Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, ...
<commit_before>// Copyright (C) 2014 Oliver Schulz <oschulz@mpp.mpg.de> // This is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License as published by // the Free Software Foundation; either version 2.1 of the License, or // (at your option) any later ver...
<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 "chrome/renderer/devtools_agent_filter.h" #include "base/message_loop.h" #include "chrome/common/devtools_messages.h" #includ...
<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 "chrome/renderer/notification_provider.h" #include "base/string_util.h" #include "base/task.h" #include "chrome/common/render...
<commit_before>// Copyright (c) 2011-2014, Cornell University // 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,...
<commit_before>// RUN: %clang -c -g %s -o /dev/null // Radar 8730409 class foo { public: #define x(a) virtual void v ## a (void) x(1); x(2); x(3); x(4); x(5); x(6); x(7); x(8); x(9); x(10); x(11); x(12); x(13); x(14); x(15); x(16); x(17); x(18); x(19); x(20); x(21); x(22); x(23); x(24); x(25); x(26); x(27); x(28); x(2...
<commit_before>#include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/gl/gl.h" #include "cinder/Log.h" #include "ui/Suite.h" #include "mason/Hud.h" #include "mason/Common.h" #include "mason/Config.h" #include "mason/Assets.h" #include "mason/Profiling.h" #include "HudTest.h" #include "MiscTes...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public License. See // LICENSE.TX...
<commit_before>//===--- UseDefaultCheck.cpp - clang-tidy----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/proxy/ppb_url_loader_proxy.h" #include <vector> #include "base/logging.h" #include "build/build_config.h" #include "p...
<commit_before>#pragma once #include "defaults.hpp" #include <fstream> #include <iomanip> namespace gftools { /** num_io is a wrapper around another object (of type T). num_io does input/output operations. such as streaming, saving to/loading from plaintext files. Internally it stores references to an i...
<commit_before>#include "render/shader.h" #include "core/assert.h" #include <iostream> #include <vector> #include <fstream> #include <algorithm> #include <sstream> #include "render/gl.h" #include "render/texture.h" #include "core/filesystem.h" ShaderId::ShaderId() : id_(glCreateProgram()) {} ShaderId::~ShaderId() ...
<commit_before>#if (defined _WIN32) || (defined _WIN64) #include <sys/types.h> #include <sys/stat.h> #include <windows.h> #else // (defined _WIN32) || (defined _WIN64) #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #endif // (defined _WIN32) || (defin...
<commit_before>#include "openmc/source.h" #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) #define HAS_DYNAMIC_LINKING #endif #include <algorithm> // for move #ifdef HAS_DYNAMIC_LINKING #include <dlfcn.h> // for dlopen, dlsym, dlclose, dlerror #endif #include <fmt/core.h> #include "xtensor/xada...
<commit_before>#include "envoy/api/v2/rds.pb.validate.h" #include "common/router/config_impl.h" #include "test/common/router/route_fuzz.pb.h" #include "test/fuzz/fuzz_runner.h" #include "test/fuzz/utility.h" #include "test/mocks/server/mocks.h" namespace Envoy { namespace Router { namespace { // A templated method ...
<commit_before>#include <chrono> #include <vector> #include "caffe2/core/operator.h" #include "caffe2/core/stats.h" #include "caffe2/core/tensor.h" namespace caffe2 { namespace { class StatRegistryCreateOp : public Operator<CPUContext> { public: StatRegistryCreateOp(const OperatorDef& operator_def, Workspace* ws) ...
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON) // Copyright 2017 Netherlands eScience Center // // 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) 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 "crypto/hmac.h" #include <nss.h> #include <pk11pub.h> #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include...
<commit_before>/* Siconos-Kernel, Copyright INRIA 2005-2012. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Softw...
<commit_before>/* Realm of Aesir client Copyright (C) 2016 Michael de Lang This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
<commit_before><commit_msg>INTEGRATION: CWS canvas05 (1.13.2); FILE MERGED 2008/04/21 07:31:09 thb 1.13.2.3: RESYNC: (1.13-1.14); FILE MERGED 2007/12/20 22:18:58 thb 1.13.2.2: #i81092# #i78888# #i78925# #i79258# #i79437# #i84784# Large canvas rework, completing various areas such as color spaces, bitmap data access, tr...
<commit_before>template<typename T> T* newCopiedArray(const T* source, size_t source_count, size_t destination_size) /*strong*/ { T* new_array = nullptr; try { new_array = new T[destination_size]; std::copy(source, source + source_count, new_array); //Throws if an element assignment throws } catch (...) { del...
<commit_before>#include <stdio.h> #include "Halide.h" using namespace Halide; int main(int argc, char **argv) { Func f, g, h; Var x, y; h(x) = x; g(x) = h(x-1) + h(x+1); f(x, y) = (g(x-1) + g(x+1)) + y; h.compute_root(); g.compute_root(); Target target = get_jit_target_from_environment(...
<commit_before>#ifndef DICT_HPP #define DICT_HPP #include <string> #include <vector> #include <stdexcept> #include <tuple> #include <cmath> #include <functional> #include <boost/iterator/iterator_facade.hpp> #include "detail/prime.hpp" #include "detail/key_value.hpp" #include "detail/iterator.hpp" namespace boost {...
<commit_before>// @(#)root/core/meta:$Id$ // Author: Vassil Vassilev 7/10/2012 /************************************************************************* * Copyright (C) 1995-2012, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/* * Copyright (c) 2011, Willow Garage, 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 * ...
<commit_before>#include <string> #include <iostream> #include "pneu/graphics/Color.hpp" #include "pneu/graphics/Window.hpp" #include "pneu/graphics/Renderer.hpp" #include "pneu/core/MethodResult.hpp" #define GLM_FORCE_CXX11 #define GLM_FORCE_RADIANS #include <glm/glm.hpp> auto main(int argc, const char** argv) -> in...
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved. #include <assert.h> #include <stdio.h> #include <iv/lv5/third_party/v8_dtoa/conversions.h> #include <string> #include "libj/string.h" #include "./glue/cvtutf.h" namespace libj { class StringImpl : public String { public: Size length() const { ...
<commit_before>/* * Copyright 2020 Axel Waggershauser * * 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...
<commit_before>/** * @file Special Purpose Strings Library: hash * @author Daniel Evers * @brief Hashing implementation to enable std::hash specialization * @license MIT * * The hashing function is MurmurHash3, taken thankfully from https://github.com/aappleby/smhasher. * It provides a 32 bit hash and a 12...
<commit_before><commit_msg>Revert "remove unused SvRefBase constructor"<commit_after><|endoftext|>
<commit_before>//---------------------------------------------------------------------------- /// \file meta.hpp /// \author Serge Aleynikov //---------------------------------------------------------------------------- /// \brief This file contains some generic metaprogramming functions. //--------------------------...
<commit_before>/*********************************************************************** filename: CEGUITooltip.cpp created: 21/2/2005 author: Paul D Turner *************************************************************************/ /*******************************************************************...
<commit_before>#include <cassert> #include "Mesh.h" using namespace eyesore; using std::vector; eyesore::Mesh::Mesh(vector<Vertex> vertices, vector<GLuint> indices): vertices(vertices), indices(indices) { glGenVertexArrays(1, &vao); glGenBuffers(1, &vbo); glGenBuffers(1, &ebo); glBindVertexArray(vao); glBin...
<commit_before>#include <algorithm> #include <cassert> #include "system.h" #include "errors.h" #include "utils.h" int System::installMemory(MemoryModule &mod, SizeType offset, SizeType size) { int status = ERR_SUCCESS; // NB: if(size <= 0 || /* overflow */offset + size < offset) { if(offset + size <= offs...
<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 "webkit/plugins/ppapi/webkit_forwarding_impl.h" #include <string> #include "base/debug/trace_event.h" #include "base/memory/...
<commit_before>/************************************************************************************* * Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> * * * * This program is free software; you can r...
<commit_before>/// Project specific // This class #include <Manager/EntitySpawnManager.hpp> // Handlers #include <EntityComponent/EntityHandler.hpp> #include <EntityComponent/EntityHandlerServer.hpp> #include <EventHandler/EventHandler.hpp> // Components #include <EntityComponent/Components/EntitySpawnerComponent.hpp> ...
<commit_before>// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/chrome_paths.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #inc...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: DeformableRegistration1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ...
<commit_before>//===--- DexIndex.cpp - Dex Symbol Index Implementation ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/** @file * * @ingroup modularLibrary * * @brief A Scheduler interface * * @details * * @authors Théo de la Hogue * * @copyright © 2013, Théo de la Hogue @n * This code is licensed under the terms of the "New BSD License" @n * http://creativecommons.org/licenses/BSD/ */ #include "Scheduler...
<commit_before><commit_msg>Fix Vulkan memory leak<commit_after><|endoftext|>
<commit_before><commit_msg>Require semicolons after declarations<commit_after><|endoftext|>
<commit_before>// rm -f galice.root ; aliroot -l -q -b $ALICE_SOURCE/HLT/global/physics/macros/testConfigOnlineCalib.C $ALICE_ROOT/HLT/exa/recraw-local.C'("raw.root","local:///opt/HLT-DEV/HCDB", 23, 23, "HLT", "chains=RootWriter ignore-hltout")' void testConfigOnlineCalib() { AliHLTSystem* pHLT = AliHLTPluginBase::G...
<commit_before>#include <cstdint> #include <iostream> #include <string> #include <vector> #include <memory> #include <functional> #include "board/full_board.h" #include "game/game_info.h" #include "game/sgf_game.h" #include "def.h" #include "util/cxxopts.hpp" #include "util/SGFParser.h" #include "deep_learning/sample....
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This...
<commit_before>/***************************************************************************** * * GARGOYLE_PSCAND: Gargoyle Port Scan Detector * * main cleanup daemon * * Copyright (c) 2017, Bayshore Networks, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without ...