text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2008-2009 J-P Nurmi jpnurmi@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; either version 2 of the License, or (at your * option) any ...
<commit_before>#define MAIN #include <iostream.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include <sys/time.h> #include <globals.h> #include "RTcmix.h" double irand(double low, double high) { double frac = random() / (double) RAND_MAX; return low + frac ...
<commit_before>#include "backends.hpp" #include<string> #include<armadillo> using namespace std; using namespace arma; #define DIM_NAME "__hide" #define ATTR_NAME "sample" #define ROW_NAME "samples" #define COL_NAME "channels" #define RANGE_SIZE 4 #define TILEDB_READ_MODE "r" #define TILEDB_WRITE_MODE "w" #define TI...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr> * * This program is f...
<commit_before>#include <vector> #include <iostream> #include <utility> // std::pair<T,U> #include <pthread.h> #include "utils.hpp" int shortest_path_dist(std::vector< std::vector<int> > dist, std::vector< std::vector<double> > pheromones); void* does_work(void *ptr); //////global int problemSize =0; //int threadCo...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2013-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the foll...
<commit_before>/* * Copyright (C) 2008-2012 J-P Nurmi <jpnurmi@gmail.com> * Copyright (C) 2010-2011 SmokeX <smokexjc@gmail.com> * Copyright (C) 2012 Mark Johnson <marknotgeorge@googlemail.com> * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public ...
<commit_before>// The MIT License (MIT) // Copyright (c) 2016, Microsoft // 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 // t...
<commit_before>#include <sstream> #include <stdexcept> #include <typeinfo> #include <json/istring.hpp> #include <json/util.hpp> namespace JSON { IValue::Type IString::type() const { return JSON_STRING; } IString* IString::clone() const { return new IString(value); } const std::string& IString::getString() const ...
<commit_before>#include <boost/format.hpp> #include <boost/lexical_cast.hpp> #include <kernel/uvalue-cast.hh> #include <object/cxx-conversions.hh> #include <object/float.hh> #include <object/global.hh> #include <object/list.hh> #include <object/string.hh> #include <object/symbols.hh> #include <object/uvar.hh> #include...
<commit_before>#include <iostream> #include <windows.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); int main(int argc, char** argv) { return 0; } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX windowClass; // Register...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * Razor - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2012 Razor team * Authors: * Johannes Zellner <webmaster@nebulon.de> * * This program or library is free software; you can redistribute it * and/or modify it...
<commit_before>#include <boost/python.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> #include <cal3d/buffersource.h> #include <cal3d/coreanimation.h> #include <cal3d/coreanimatedmorph.h> #include <cal3d/corebone.h> #include <cal3d/corematerial.h> #include <cal3d/coremesh.h> #include <cal3d/cores...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 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>/*************************************************************************/ /* navigation_obstacle_2d.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>#include "../app/ShaderApp.cpp" class Swirl : public ShaderApp { protected: void mainImage(Color& color, int x, int y) { float angle = atan2(x - 8.0, y - 8.0); float radius = sqrt(pow(x - 8, 2) + pow(y - 8, 2)); float stretch = 2.0 + sin(time * 0.0001); radius += angle * stretch; ...
<commit_before>// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) 2006-2015, ARM Limited, All Rights Reserved // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include <ssl.h> #include "mbedtls.h"...
<commit_before>#include "ProfileStore.hpp" namespace BitProfile{ ProfileStore::ProfileStore() : _path(getDefaultPath(Main_Net)) { createIfNotExists(); } ProfileStore::ProfileStore(const char *path) : _path(fs::absolute(path)) { createIfNotExists(); } ProfileStore::ProfileStore(Network net) : ...
<commit_before>/************************************************************************************ This source file is part of the Awesome Portable Rendering Interface Library For latest info, see http://libatres.sourceforge.net/ *************************************************************************************...
<commit_before>// Copyright (c) 2010 Sean Middleditch <sean@middleditch.us> // Copyright (c) 2010 Petri Lehtinen <petri@digip.org> // // Jansson is free software; you can redistribute it and/or modify // it under the terms of the MIT license. See LICENSE for details. #ifndef JANSSON_HPP #define JANSSON_HPP #include <...
<commit_before>// v8 #include <v8.h> // node #include <node.h> #include <node_version.h> #include <node_object_wrap.h> // stl #include <iostream> #include <fstream> #include <algorithm> // boost #include <boost/spirit/include/qi.hpp> #include <boost/timer/timer.hpp> #include <boost/tokenizer.hpp> #include <boost/loca...
<commit_before>/* * Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin * * Permission to use, copy, modify, and 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...
<commit_before>// Copyright 2016 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>/** * @copyright Copyright 2016 The J-PET Framework Authors. 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 find a copy of the License in the LICENCE file. * * Unless required by...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkNetCDFPOPReader.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softwa...
<commit_before>// // Copyright Renga Software LLC, 2016. All rights reserved. // // Renga Software LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // Renga Software LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #include "stdafx.h" #include "ObjectPropertyVie...
<commit_before>/* * Copyright (C) 2005-2019 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>#include "ScrollingMsg.hpp" #include <pango/pangocairo.h> ScrollingMsg::ScrollingMsg() :m_current_w(0) ,m_current_h(0) ,m_friendly_name("None") ,m_msg("None") ,m_loops(0) ,m_current_loop(0) ,m_fontfamily("Sans Bold 12") ,m_ypos(300) ,m_xpos(0) ,m_scroll_time(12.0f) { }; ScrollingMsg...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2018 Nathan Osman * * 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-2015 Stanford University * * Permission to use, copy, modify, and 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 PROVIDED "AS IS" ...
<commit_before>#include "GL.h" #include "TextureAtlas.h" #include <Context.h> #include <OpenGLTexture.h> #include <Image.h> #include <cmath> #include <iostream> #include <cassert> using namespace std; TextureAtlas::TextureAtlas(AtlasType _type, unsigned int _block_size, unsigned int _texture_width, unsigned int _te...
<commit_before>#ifndef NATIVE_CHAT_TIMELINE_VIEW_HPP_ #define NATIVE_CHAT_TIMELINE_VIEW_HPP_ #include <deque> #include <chrono> #include <vector> #include <unordered_map> #include <unordered_set> #include <experimental/optional> #include <QAbstractScrollArea> #include <QTextLayout> #include <QIcon> #include "matrix/...
<commit_before><commit_msg>rename all TransposeMatMul nodes to FusedMatMul (#5373)<commit_after><|endoftext|>
<commit_before>/* * HyPerLayer.hpp * * Created on: Aug 3, 2008 * Author: dcoates */ #ifndef HYPERLAYER_HPP_ #define HYPERLAYER_HPP_ #include "../layers/PVLayer.h" #include "../layers/LayerDataInterface.hpp" #include "../layers/LIF2.h" #include "../columns/DataStore.hpp" #include "../columns/HyPerCol.hpp" #...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the foll...
<commit_before>/* Copyright 2017 The TensorFlow Authors. 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 appl...
<commit_before>// Copyright (C) 2010, 2011 and 2012 Marcin Arkadiusz Skrobiranda. // 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 ...
<commit_before>// Copyright 2016 The Bazel Authors. 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 r...
<commit_before>#pragma once #include "type_check.hpp" #include "model_adapter.hpp" #include "matrix_adapter.hpp" #include "vector_adapter.hpp" #include "densitas_error.hpp" #include <vector> #include <algorithm> #include <string> namespace densitas { namespace math { template<typename ModelType, typename ElementTyp...
<commit_before>/* * Copyright (c) 2017 OFFIS Institute for Information Technology * Oldenburg, Germany * * 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 2019 Intel Corporation. #include "pmlc/dialect/tile/gradient.h" // TODO: Clean includes #include "llvm/ADT/SetVector.h" #include "llvm/Support/FormatVariadic.h" #include "mlir/Support/DebugStringHelper.h" #include "base/util/logging.h" #include "pmlc/dialect/tile/builder.h" #include "pml...
<commit_before>/* @file Animation.hpp @brief Class that manages animated game behavior, such as game behavior and picture frames. @copyright LGPL. MIT License. */ #ifndef __ANIMATION__ #define __ANIMATION__ #include "Engine/Component.hpp" #include "Engine/Frame.hpp" #include "Engine/Image.hpp" #includ...
<commit_before>#include <bts/blockchain/chain_interface.hpp> #include <bts/blockchain/fork_blocks.hpp> #include <bts/blockchain/operation_factory.hpp> #include <bts/blockchain/transaction_evaluation_state.hpp> namespace bts { namespace blockchain { transaction_evaluation_state::transaction_evaluation_state( const ...
<commit_before>/* * LibIPACA.hpp * * Copyright (c) 2011,2012 Mathias Wilhelm * Copyright (c) 2011,2012 Marc Kirchner * */ #ifndef __LIBAAS_INCLUDE_AAS_LIBIPACA_HPP__ #define __LIBAAS_INCLUDE_AAS_LIBIPACA_HPP__ #include "aas/Stoichiometry.hpp" #include "aas/Element.hpp" #include <ipaca/Spectrum.hpp> #include <i...
<commit_before>/** * @file main.cpp * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Mar 2015 * @brief */ //#define BLYNK_DEBUG #define BLYNK_PRINT stdout #ifdef RASPBERRY #include <B...
<commit_before>/* * Copyright (c) 2011-2013 libczmq++ developers (see AUTHORS) * * This file is part of libczmq++. * * libczmq++ is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Sof...
<commit_before>/** * \file * \brief IntegerSequence template class header * * \author Copyright (C) 2015 Kamil Szczygiel https://distortec.com https://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 * distrib...
<commit_before>/* * File: OHMComm.cpp * Author: daniel, jonas * * Created on March 29, 2015, 1:49 PM */ #include <cstdlib> #include <string> #include <sstream> #include <iostream> #include <stdio.h> #include "UserInput.h" //dependencies for rtaudio #include "RtAudio.h" #include "AudioHandlerFactory.h" #incl...
<commit_before>/* Copyright (c) 2009, Arvid Norberg 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 condi...
<commit_before>/* Copyright (c) 2007, Arvid Norberg 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 condi...
<commit_before>/* ******************************************************************************* * * Copyright (C) 1999-2003, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: scrp...
<commit_before>#ifndef QRW_RENDERABLE_HPP #define QRW_RENDERABLE_HPP #include <SFML/System/Vector2.hpp> namespace sf { class RenderTarget; } namespace qrw { typedef int Layer; class Renderable { public: Renderable(Layer layer); virtual ~Renderable(); virtual void render(sf::RenderTarget& renderTarget) = 0; ...
<commit_before>#pragma once #include "Function.hpp" #include "Error.hpp" #include "types/Boolean.hpp" #include "types/Number.hpp" #include "types/String.hpp" #include <cassert> namespace slim { inline bool try_unpack_arg(const ObjectPtr &arg, std::string *out) { auto str = dynamic_cast<String*>(arg.get...
<commit_before>#ifndef LIBTEN_HTTP_MESSAGE_HH #define LIBTEN_HTTP_MESSAGE_HH #include <string> #include <vector> #include <stdexcept> #include <mutex> #include <stdarg.h> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string/predicate.hpp> #include "http_parser.h" #include "ten/task.hh" #include "ten/err...
<commit_before>#pragma once #include <sys/types.h> #include <unistd.h> #include <array> namespace the { namespace net { template < typename Owner > class ClientSocket : public Socket { public: ClientSocket( int socket, Owner& owner ) : Socket( socket ) , m_owner( owner ) { } void handl...
<commit_before>/// /// @file string.hpp /// @brief Contains ulility functions for string operations /// /// @author Lyrex <admin@lyrex.net> /// @version 1.0 2017/09/04 /// #pragma once #ifndef thunder_utils_string_hpp__ #define thunder_utils_string_hpp__ #include <algorithm> #include <vector> #if _HAS_CXX17 && __ha...
<commit_before>/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "library/constants.h" #include "library/vm/vm.h" namespace lean { // ======================================= // Builtin nat operati...
<commit_before>/************************************************************************/ /* */ /* Copyright 2015 by Thorsten Beier */ /* */ /* ...
<commit_before>/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <iostream> #include "library/vm/vm.h" #include "library/vm/vm_string.h" namespace lean { // =======================================...
<commit_before>#include <iostream> using namespace std; #include <fstream> #include "Lecture.h" #include <cstring> #include <locale> bool isnumber(wchar_t ch) { if(ch >= L'0' && ch <= L'9') return true; return false; } int tonumber(wchar_t ch) { return int(ch) - int(L'0'); } int tonumber(wchar_t ...
<commit_before>#include <QNetworkInterface> #include <QJsonObject> #include <QJsonDocument> #include <QCoreApplication> #include <QSettings> #include "DiscoveryServer.h" #include "Data.h" #include "Database.h" /* TODO: implement a security process based on activation * Client send Discovery process with an UUID, EMS...
<commit_before>#ifndef ENTT_META_CONTAINER_HPP #define ENTT_META_CONTAINER_HPP #include <array> #include <map> #include <set> #include <type_traits> #include <unordered_map> #include <unordered_set> #include <vector> #include "meta.hpp" #include "type_traits.hpp" namespace entt { /** * @cond TURN_OFF_DOXYGEN * ...
<commit_before>#ifndef ENTT_RESOURCE_CACHE_HPP #define ENTT_RESOURCE_CACHE_HPP #include <type_traits> #include <unordered_map> #include <utility> #include "../config/config.h" #include "../core/fwd.hpp" #include "fwd.hpp" #include "handle.hpp" #include "loader.hpp" namespace entt { /** * @brief Simple cache for res...
<commit_before>// // Copyright (c) articy Software GmbH & Co. KG. All rights reserved. // #include "ArticyFlowPlayer.h" #include "ArticyRuntimeModule.h" #include "Interfaces/ArticyFlowObject.h" #include "Interfaces/ArticyObjectWithSpeaker.h" #include "ArticyExpressoScripts.h" #include "UObject/ConstructorHelpers....
<commit_before>/*************************************************************************** * This file is part of libmygpo-qt * * Copyright (c) 2010 - 2011 Stefan Derkits <stefan@derkits.at> * * Copyright (c) 2010 - 2011 Christian Wagner <christian.wagner86@gmx.at> ...
<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. // Tests common functionality used by the Chrome Extensions webNavigation API // implementation. #include "testing/gtest/include/gtest...
<commit_before>/// \file ROOT/RNTupleMetrics.hxx /// \ingroup NTuple ROOT7 /// \author Jakob Blomer <jblomer@cern.ch> /// \date 2019-08-27 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /******************************************...
<commit_before>/* Copyright 2017 The TensorFlow Authors. 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 appl...
<commit_before>// Copyright 2018 Google LLC // // 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...
<commit_before><commit_msg>copied color scale formulas also need to listen to the new document<commit_after><|endoftext|>
<commit_before>#include <sstream> #include <algorithm> #include "player.h" #include "board.h" #include "entity.h" using namespace std; Player::Player(ABoard& board, std::string name, bool human) : board(board), name(name), human(human), active(!human), alive(true) { static size_t idCount = 1; id = idCount++;...
<commit_before>/* * Copyright 2021 Google LLC * * 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 la...
<commit_before><commit_msg>Output meStringConversion symbolically<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pkgdatasupplier.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: obo $ $Date: 2006-09-17 13:59:46 $ * * The Contents of this file ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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><commit_msg>sc: loplugin:staticmethods<commit_after><|endoftext|>
<commit_before>/**************************************************************************** * Copyright (c) 2012-2018 by the DataTransferKit authors * * All rights reserved. * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuconpol.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: obo $ $Date: 2007-07-18 11:12:35 $ * * The Contents of this file are made...
<commit_before>#include "EventBrowser.h" #include <QTimer> #include "Code/Core.h" #include "ui_EventBrowser.h" enum { COL_NAME = 0, COL_EID = 1, COL_DURATION = 2, COL_CURRENT, COL_FIND, COL_BOOKMARK, }; EventBrowser::EventBrowser(Core *core, QWidget *parent) : QFrame(parent), ui(new Ui::EventBrowser)...
<commit_before>/** \copyright * Copyright (c) 2013, 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>// Copyright (c) 2018 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. // A test of roundtrips through the encoder and decoder. #include <stddef.h> #include "absl/strings/string_view.h" #include "http2/de...
<commit_before>// Copyright (c) 2018 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 "net/third_party/quiche/src/quic/core/quic_stream_id_manager.h" #include <cstdint> #include <string> #include "net/third_part...
<commit_before>#ifndef SKSAT_WINDOW_HPP #define SKSAT_WINDOW_HPP #include <sksat/common.hpp> #include <sksat/platform.hpp> namespace sksat { class window_base { public: window_base() : opend(false), xsize(default_xsize), ysize(default_ysize), xpos(default_xpos), ypos(default_ypos) {} window_base(size_t x, size_t y...
<commit_before>// Copyright Benoit Blanchon 2014 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include <gtest/gtest.h> #include <ArduinoJson/Internals/QuotedString.hpp> #include <ArduinoJson/Internals/StringBuilder.hpp> using namespace ArduinoJson::Internals; class QuotedStr...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkRenderWindowInteractor.cc Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen. This software is cop...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include "Identity.h" #include "Base.h" int main (int argc, char * argv[]) { if (argc < 2) { std::cout << "Usage: regaddr filename address" << std::endl; return -1; } i2p::crypto::InitCrypto (false); i2p::data::PrivateKeys keys; std::...
<commit_before>#include <cassert> #include <iostream> #include <fstream> #include <map> #include <unordered_map> #include <unordered_set> #include <tuple> #include <stack> #include <vector> #include <string> #include <algorithm> #include <functional> // uncomment to enable debugging: //#define CDEBUG 1 // util for de...
<commit_before> #include "../Flare.h" #include "../Game/FlareWorld.h" #include "../Game/FlareGame.h" #include "../Game/FlareSimulatedSector.h" #include "../Spacecrafts/FlareSimulatedSpacecraft.h" #include "FlareScenarioTools.h" #define LOCTEXT_NAMESPACE "FlareScenarioToolsInfo" /*----------------------------------...
<commit_before>/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. ...
<commit_before>#pragma once #include <iostream> #include <spdlog/spdlog.h> #include "file_util.hpp" #include "singleton.hpp" namespace czrpc { namespace base { static const std::string logger_name = "czrpc"; static const std::size_t max_file_size = 3 * 1024 * 1024; static const std::size_t max_files = 30; class logg...
<commit_before>// This file is part of the "libxzero" project // (c) 2009-2015 Christian Parpart <https://github.com/christianparpart> // (c) 2014-2015 Paul Asmuth <https://github.com/paulasmuth> // // libxzero is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General P...
<commit_before>#include <xzero/testing.h> #include <xzero/BufferUtil.h> #include <xzero/raft/Generator.h> using namespace xzero; using namespace xzero::raft; TEST(raft_Generator, VoteRequest) { Buffer out; raft::Generator g(BufferUtil::writer(&out)); g.generateVoteRequest(VoteRequest{ .term = 0x11, ...
<commit_before>// Regression test for // http://code.google.com/p/address-sanitizer/issues/detail?id=19 // Bug description: // 1. application dlopens foo.so // 2. asan registers all globals from foo.so // 3. application dlcloses foo.so // 4. application mmaps some memory to the location where foo.so was before // 5. ap...
<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 "config.h" #include "core/inspector/PromiseTracker.h" #include "bindings/core/v8/ScopedPersistent.h" #include "bindings/core/v8/S...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkExtractImageTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ...
<commit_before>/* $Id$ */ # ifndef CPPAD_EXP_EPS_INCLUDED # define CPPAD_EXP_EPS_INCLUDED /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under ...
<commit_before> #include "CPipelineState.h" #include <ionWindow.h> #include <glad/glad.h> namespace ion { namespace Graphics { namespace GL { CPipelineState::CPipelineState(CWindow * Window) { this->Window = Window; this->PrimitiveType = GL_TRIANGLES; } CPipelineState::~CP...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2018 ARM 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 * * http://www.apache.org/licenses/LICENSE-2.0 * *...
<commit_before>#include <algorithm> #include <cassert> #include <cerrno> #include <condition_variable> #include <csignal> #include <cstdio> #include <cstdlib> #include <fstream> #include <iostream> #include <iterator> #include <limits> #include <map> #include <mutex> #include <pthread.h> #include <sstream> #include <st...