text
stringlengths
54
60.6k
<commit_before>// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer: find interesting value of array index. #include <assert.h> #include <cstdint> #include <cstring> #include <cstddef> #include <iostream> static volatile int Sink...
<commit_before>#include "DeferredRenderer.hpp" #include "scene/lights/Light.hpp" #include "scene/Sky.hpp" #include "system/System.hpp" #include "graphics/GLUtilities.hpp" DeferredRenderer::DeferredRenderer(const glm::vec2 & resolution, ShadowMode mode, bool ssao) : _applySSAO(ssao), _shadowMode(mode) { const uint r...
<commit_before>//===--- MemoryBuffer.cpp - Memory Buffer implementation ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "../bart_builder.h" #include "../problem_definition.h" #include "gtest/gtest.h" #include "../../test_helpers/bart_test_helper.h" class BARTBuilderTest : public ::testing::Test { protected: void SetUp (); // FE builder test template <int dim> void FEBuilderTest (); // AQ builder te...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>#ifndef WEAKPOINTER_HPP #define WEAKPOINTER_HPP #include "List.hpp" namespace org_pqrs_Karabiner { #define DECLARE_WEAKPOINTER(TYPENAME) \ class TYPENAME; \ cla...
<commit_before>/* * FilePath.cpp * * Copyright (C) 2020 by RStudio, PBC * * Unless you have received this program directly from RStudio pursuant to the terms of a commercial license agreement * with RStudio, then this program is licensed to you under the following terms: * * Permission is hereby granted, free o...
<commit_before>// This file is part of Poseidon. // Copyleft 2020, LH_Mouse. All wrongs reserved. #include "precompiled.hpp" #include "static/main_config.hpp" #include "static/async_logger.hpp" #include "static/timer_driver.hpp" #include "static/network_driver.hpp" #include "utilities.hpp" #include <locale.h> #include...
<commit_before>#include "python_plugin.hh" #include "inifile.hh" #include <stdio.h> #include <stdlib.h> #define MAX_ERRMSG_SIZE 256 #define ERRMSG(fmt, args...) \ do { \ char msgbuf[MAX_ERRMSG_SIZE]; \ snprintf(msgbuf, sizeof(msgbuf) -1, fmt, ##args); \ error_msg = std::stri...
<commit_before>/** \copyright * Copyright (c) 2015, Balazs Racz * 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>#include <gflags/gflags.h> #include <stddef.h> #include <algorithm> #include <chrono> #include <iostream> #include <map> #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "ncode_common/src/common.h" #include "ncode_common/src/map_util.h" #include "ncode_c...
<commit_before>// $Id$ // -*- C++ -*- //*************************************************************************** // // File: // loadmodule.cc // // Purpose: // LoadModule class for reading and gathering symbolic information // from a load module. (based on GNU Binutils). // // Description: // [The set ...
<commit_before>#include <cmath> #include <allegro5/allegro_primitives.h> // DEBUGTOOL #include "ingameelements/weapons/hammer.h" #include "renderer.h" #include "ingameelements/heroes/reinhardt.h" #include "ingameelements/projectiles/firestrike.h" #include "engine.h" void Hammer::init(uint64_t id_, Gamestate &state, ...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>#include "Database.h" #include "Exception.h" #include "is_identifier.h" ///////////////////////////////////////////////////////////////////////////// const std::map<Field_Id, std::string> &joedb::Database::get_fields ///////////////////////////////////////////////////////////////////////////// ( Table_...
<commit_before>/* bzflag * Copyright (c) 1993 - 2007 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>/* 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>/* libs/graphics/ports/SkFontHost_fontconfig.cpp ** ** Copyright 2008, Google 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 at ** ** http://www.apache.org/licenses/...
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <fs.h> #include <qt/intro.h> #i...
<commit_before>// Copyright (c) 2011-2014 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 "intro.h" #include "ui_intro.h" #include "guiutil.h" #include "util.h" #include <boost/filesystem.h...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: documentdefinition.hxx,v $ * * $Revision: 1.26 $ * * last change: $Author: rt $ $Date: 2008-01-30 08:34:51 $ * * The Contents of this fil...
<commit_before>/*! * Copyright (c) 2017 by Contributors * \file opencl_module.cc */ #include <dmlc/memory_io.h> #include <tvm/runtime/registry.h> #include <vector> #include <string> #include <unordered_map> #include "./opencl_common.h" #include "./opencl_module.h" namespace tvm { namespace runtime { class OpenCLW...
<commit_before>#include "renderer.hpp" #include <algorithm> #include <fstream> #include <iostream> #include <string> #include <vector> #include "addr_space.hpp" #include "address.hpp" #include "const.hpp" #include "cpu.hpp" #include "cursor.hpp" #include "instruction.hpp" #include "printer.hpp" #includ...
<commit_before>#include <map> #include <string> #include <iostream> #include <docopt/docopt.h> #include "serve.hpp" #include "simple_commands.hpp" int main(int argc, char * argv[]) { static const char usage[] = R"(Remote SimGrid command-line tool. Usage: rsg serve <platform-file> [--port=<port>] [-- <sg-optio...
<commit_before>// // src/main_utils/parse_list_argument.h // tbd // // Created by inoahdev on 1/26/18. // Copyright © 2018 inoahdev. All rights reserved. // #include <cerrno> #include "../mach-o/utils/tbd.h" #include "../misc/current_directory.h" #include "../misc/recurse.h" #include "parse_list_argument.h" #i...
<commit_before>#include "yuyvtoyuv420.h" YUYVtoYUV420::YUYVtoYUV420(QString id, StatisticsInterface *stats, std::shared_ptr<HWResourceManager> hwResources) : Filter(id, "YUYVtoYUV420", stats, hwResources, YUYVVIDEO, YUV420VIDEO) {} void YUYVtoYUV420::process() { std::unique_ptr<Dat...
<commit_before>#include <string> #include <nanogui/theme.h> #include <nanogui/widget.h> #include "dialogwindow.h" #include "editorgui.h" #include "helper.h" #include "editorwidget.h" #include "namedobject.h" #include "widgetfactory.h" DialogWindow::DialogWindow(EditorGUI *screen, nanogui::Theme *theme) : nanogui::Wi...
<commit_before>/** * @file lars_main.cpp * @author Nishant Mehta * * Executable for LARS. */ #include <mlpack/core.hpp> #include "lars.hpp" PROGRAM_INFO("LARS", "An implementation of LARS: Least Angle Regression " "(Stagewise/laSso). This is a stage-wise homotopy-based algorithm for " "L1-regularized li...
<commit_before>// sdl_main.cpp #ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #include <sstream> #include <GL/glew.h> #include <SDL.h> #include <SDL_syswm.h> #undef main #include <glm/gtc/type_ptr.hpp> #ifdef USE_ANTTWEAKBAR # include <AntTweakBar.h> #endif #includ...
<commit_before>/************************************************* * Startup Self Tests Source File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #include <botan/selftest.h> #include <botan/lookup.h> namespace Botan { namespace { /************...
<commit_before><commit_msg>Fixed a crashbug in shutdown command<commit_after><|endoftext|>
<commit_before>/* * * Copyright (c) 2020 Project CHIP Authors * * 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>/* Copyright (c) 2016 Bastien Durix 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, modify, merge, publish...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/diag/attn/runtime/attn_rt.C $ ...
<commit_before>/* * httpfileupload.cpp - HTTP File upload * Copyright (C) 2017-2019 Aleksey Andreev, Sergey Ilinykh * * 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 * vers...
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_PROMOTER_HPP #define STAN_MATH_PRIM_MAT_FUN_PROMOTER_HPP #include <stan/math/prim/arr/fun/promoter.hpp> #include <stan/math/prim/mat/fun/Eigen.hpp> namespace stan { namespace math { /** * Struct which holds static function for element-wise type promotion. ...
<commit_before>#ifndef STAN_MATH_PRIM_PROB_NORMAL_LPDF_HPP #define STAN_MATH_PRIM_PROB_NORMAL_LPDF_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/as_column_vector_or_scalar.hpp> #include <stan/math/prim/fun/as_array_or_scalar.hpp> #include <stan/math/prim/fun/as_v...
<commit_before>/*----------------------------------------------------------------------------- This source file is part of Hopsan NG Copyright (c) 2011 Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson, Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack This file is provided "as is", w...
<commit_before>// // datarecovery.cpp // codeval1 // // Created by Malcolm Crum on 5/13/14. // // #include <iostream> #include <fstream> #include <vector> #include <string> using namespace std; int main(int argc, char** argv) { ifstream fileInput; fileInput.open(argv[1]); //while (fileInput.peek() != ...
<commit_before>/* * Copyright 2002-2013 Jose Fonseca * * 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. * * This library is distributed in the ...
<commit_before>/********************************************************************* * node-dvbtee for Node.js * * Copyright (c) 2017 Michael Ira Krufky <https://github.com/mkrufky> * * MIT License <https://github.com/mkrufky/node-dvbtee/blob/master/LICENSE> * * See https://github.com/mkrufky/node-dvbtee for mo...
<commit_before>#include "terminal.h" /// Sets a newline operator to Terminal output. Terminal& Terminal::newline(Terminal& term) { term.set_ops(Ops::newline); return *this; } /// Sets a newline operator then a flush operator to Terminal output. Terminal& Terminal::endl(Terminal& term) { term.set_ops(Ops:...
<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>/** * Derived from this blog post: * http://simmesimme.github.io/tutorials/2015/09/20/signal-slot */ #ifndef SIGNAL_HPP #define SIGNAL_HPP #include <functional> #include <map> // A signal object may call multiple slots with the // same signature. You can connect functions to the signal // which wil...
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved. #ifndef EXTPROC_POOL_HPP_ #define EXTPROC_POOL_HPP_ #include <sys/types.h> // pid_t #include "errors.hpp" #include "concurrency/one_per_thread.hpp" #include "concurrency/semaphore.hpp" #include "concurrency/signal.hpp" #include "container...
<commit_before>// Copyright 2013 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...
<commit_before>// // fdf2nii_main.cpp // // Created by Tobias Wood on 29/08/2013. // // #include <string> #include <iostream> #include <iterator> #include <getopt.h> #include "fdf.h" #include "Nifti.h" using namespace std; static bool zip = false, procpar = false; static double scale = 1.; static string outPrefix...
<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>/* * 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>/*========================================================================= Program: Visualization Toolkit Module: vtkImageAccumulate.cxx Language: C++ Date: $Date$ Version: $Revision$ Thanks: Thanks to C. Charles Law who developed this class. Copyright (c) 1993-2001 Ken Mar...
<commit_before>/* * Copyright (c) 2014-2016 Kartik Kumar, Dinamica Srl (me@kartikkumar.com) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #ifndef D2D_LAMBERT_SCANNER_HPP #define D2D_LAMBERT_SCANNER_HPP #include <string> #include <kepleria...
<commit_before>#include <iostream> #include <cstdio> #include <algorithm> #include <queue> #include <map> #include <set> #include <stack> #include <cstring> #include <string> #include <vector> #include <iomanip> #include <cmath> #include <list> #include <bitset> using namespace std; #define ll long long #define lson...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2012 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 */ #pragma once #include "bases.hpp" #include "type_name.hpp" #include <string> #include <type_traits> #include <typeindex> #include <unordered_set> #include <utility> namespace module_loader { /** * A convenience base class for implementing * \ref object or \ref offer. * * \tparam ...
<commit_before>#ifndef _NEVIL_ARENA_SWITCH_HPP_ #define _NEVIL_ARENA_SWITCH_HPP_ #include "nevil/arena/object.hpp" namespace nevil { class switch_object : public object { public: switch_object(); switch_object(int x, int y, double size_x, double size_y, double height, const Enki::Color &off_color=...
<commit_before>#ifndef __SGE_ASSET_MANAGER_HPP #define __SGE_ASSET_MANAGER_HPP #include <sge/assets/locator.hpp> #include <sge/assets/loader.hpp> #include <sge/assets/asset.hpp> #include <sge/assets/cache.hpp> #include <unordered_map> #include <iostream> #include <memory> #include <string> #include <vector> namespac...
<commit_before>//============================================================================ // include/vsmc/utility/rdtsc.hpp //---------------------------------------------------------------------------- // // vSMC: Scalable Monte Carlo // // This file is distributed under the 2-clauses BSD L...
<commit_before>#pragma once #include <gcl/mp/meta/functional.hpp> namespace gcl::mp { template <std::size_t index> struct type_index {}; template <typename... types> struct tuple { constexpr static auto size = sizeof...(types); constexpr static auto empty = size == 0; conste...
<commit_before>#pragma once #include <new> #include <memory> #include <utility> #include <uv.h> #include <type_traits> #include "error.hpp" namespace uvw { class Loop; template<typename R> class Handle { friend class Loop; template<typename... Args> explicit constexpr Handle(uv_loop_t *loop, Args&&...
<commit_before>#include <iostream> #include <boost/lexical_cast.hpp> #include <bitcoin/bitcoin.hpp> #include "util.hpp" using namespace bc; bool validsig(transaction_type& tx, size_t input_index, elliptic_curve_key& key, const script_type& script_code, data_chunk signature) { uint32_t hash_type = 0; h...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <sync.h> #include <clientversion.h> #include <util.h> #in...
<commit_before>/************************************************* * ANSI X9.31 RNG Source File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #include <botan/x931_rng.h> #include <botan/lookup.h> #include <botan/randpool.h> #include <botan/bi...
<commit_before>#ifndef IMAGE_MANAGER_HPP_INCLUDED #define IMAGE_MANAGER_HPP_INCLUDED #include <boost/shared_ptr.hpp> struct ImageType { int shmid; unsigned char *shmaddr; double time; }; struct ConvertedImage; class ImageManager { public: static boost::shared_ptr<ImageManager> create(int width, int ...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated nodeation files (the "Software"), to deal in the Software without restriction, in...
<commit_before>#include "arena.h" #include "image_util.h" #include "image_writer.h" #include "logger.h" #include <fstream> using namespace wotreplay; const int element_size = 48; image_writer_t::image_writer_t() : filter([](const packet_t &){ return true; }), image_width(512), image_height(512) {} void i...
<commit_before><commit_msg>Added a new optional command-line flag to allow filtering of open-access records.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2014 Wenbin He. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. #include "io/raw_reader.h" #include "core/basic_types.h" #include "core/cartesian_grid.h" #include "core/field.h" #include "core/float_array.h" #...
<commit_before>#include "itemrenderer.h" #include <sstream> #include "configcontainer.h" #include "htmlrenderer.h" #include "rssfeed.h" #include "textformatter.h" namespace newsboat { std::string item_renderer::get_feedtitle(std::shared_ptr<RssItem> item) { const std::shared_ptr<RssFeed> feedptr = item->get_feedpt...
<commit_before>// @(#)root/dcache:$Name: v3-03-05 $:$Id: TDCacheFile.cxx,v 1.2 2002/03/25 16:43:16 rdm Exp $ // Author: Grzegorz Mazur 20/01/2002 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserve...
<commit_before> #include "microsoftpush.hh" #include "log/logmanager.hh" #include "sofia-sip/base64.h" #include <string.h> #include <iostream> #include <vector> using namespace std; WindowsPhonePushNotificationRequest::WindowsPhonePushNotificationRequest(const PushInfo &pinfo) : PushNotificationRequest(pinfo.mAppId, ...
<commit_before>/* * PrimeSieveGUI_menu.cpp -- This file is part of primesieve * * Copyright (C) 2012 Kim Walisch, <kim.walisch@gmail.com> * * 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,...
<commit_before>#include "offerwhitelisttablemodel.h" #include "guiutil.h" #include "walletmodel.h" #include "wallet/wallet.h" #include "base58.h" #include <QFont> using namespace std; struct MyOfferWhitelistTableEntry { QString offer; QString alias; QString expires; QString discount; MyOfferWhitelistTa...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jollamobile.com> ** ****************************************************************************/ /* This Source Code Form is subject to the te...
<commit_before>/************************************************************************* * * Copyright 2016 Realm 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 at * * http://www....
<commit_before>#include <gtest/gtest.h> #include "utList.h" int main( int argc , char **argv ) { testing :: InitGoogleTest( &argc , argv ) ; return RUN_ALL_TESTS( ) ; } <commit_msg>Delete mainStructure.cpp<commit_after><|endoftext|>
<commit_before>/** Copyright (C) 2017 Ultimaker - Released under terms of the AGPLv3 License */ #include <iterator> #include <algorithm> #include <math.h> #include "AdaptiveLayerHeights.h" namespace cura { AdaptiveLayer::AdaptiveLayer(int layer_height) { this->layer_height = layer_height; } Adapt...
<commit_before>#include <systems/OpenGLTextureRenderer.h> OpenGLTextureRenderer::OpenGLTextureRenderer() : Base(anax::ComponentFilter().requires<Texcoords, PhysicsComponent>()) { } OpenGLTextureRenderer::~OpenGLTextureRenderer() { } void OpenGLTextureRenderer::render() { auto entities = getEntities(); const float...
<commit_before>#include <blackhole/sink/elasticsearch.hpp> #include <blackhole/utils/atomic.hpp> #include "../global.hpp" using namespace blackhole; TEST(elasticsearch_t, Class) { using blackhole::sink::elasticsearch_t; elasticsearch_t sink; UNUSED(sink); } TEST(elasticsearch_t, Manual) { using blac...
<commit_before>/* QWebSockets implements the WebSocket protocol as defined in RFC 6455. Copyright (C) 2013 Kurt Pattyn (pattyn.kurt@gmail.com) 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; e...
<commit_before>/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2015 Ben Vanik. All rights reserved. ...
<commit_before><commit_msg>coverity#1255389 Dereference null return value<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: swstylemanager.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2006-12-05 16:38:21 $ * * The Contents of this file are...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: staticassert.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-09 06:05:02 $ * * The Contents of this file are m...
<commit_before>// RUN: %clang_cc1 -triple %itanium_abi_triple -verify -fsyntax-only -Wsign-conversion %s // NOTE: When a 'enumeral mismatch' warning is implemented then expect several // of the following cases to be impacted. // namespace for anonymous enums tests namespace test1 { enum { A }; enum { B = -1 }; ...
<commit_before>#include <utility> #include <type_traits> #if __cpp_deduction_guides #else #error "Class Template Argument Deduction is not supported by the compiler" #endif template<typename A, typename B> struct MyPair { MyPair(const A &, const B &) { } }; template<int Size> struct StaticString { ...
<commit_before>#pragma once #include <cfloat> #include <cstdint> #include <string> #include "gmock/gmock.h" #include "quantities/quantities.hpp" namespace principia { namespace testing_utilities { template<typename T> class VanishesBeforeMatcher; // The matchers below are useful when a computation gives a result ...
<commit_before>#include "../../src/common/problem_definition.h" #include "../test_utilities.h" void setup_parameters (dealii::ParameterHandler &prm) { // set entry values for those without default input prm.set ("reflective boundary names", "xmin"); prm.set ("x, y, z max values of boundary locations", "1.0, 2.0"...
<commit_before>/* This file is part of the kolab resource - the implementation of the Kolab storage format. See www.kolab.org for documentation on this. Copyright (c) 2004 Bo Thorsen <bo@klaralvdalens-datakonsult.se> This library is free software; you can redistribute it and/or modify it under the...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>/** * Touhou Community Reliant Automatic Patcher * Tasogare Frontier support plugin * * ---- * * Plugin entry point. */ #include <thcrap.h> #include "thcrap_tasofro.h" #include "th135.h" tasofro_game_t game_id; // Translate strings to IDs. static tasofro_game_t game_id_from_string(const...
<commit_before>/* * Copyright 2014 Facebook, 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>/* Copyright 2007-2015 QReal Research Group * * 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 ap...
<commit_before>// @(#)root/tmva $Id$ // Author: Simon Pfreundschuh /************************************************************************* * Copyright (C) 2016, Simon Pfreundschuh * * All rights reserved. * * ...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2011,2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public /...
<commit_before>//----------------------------------------------------------------------------- // Copyright (c) 2016, Jeff Hutchinson // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Re...
<commit_before>#include <QDir> #include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QSettings> #include "functions.h" #include "language-loader.h" #include "main-screen.h" #include "models/image.h" #include "models/profile.h" #include "models/qml-auth.h" #include "models/qml-auth...
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Written (W) 2014 pl8787 */ #include <shogu...
<commit_before>// Copyright 2011 Gregory Szorc // // 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 applicab...
<commit_before>/*------------------------------------------------------- Spruce Filesystem Wrapper Library for C++11 Copyright (c) 2014, Joseph Davis (@josephdavisco) All rights reserved. See LICENSE for license info. -------------------------------------------------------...