text
stringlengths
54
60.6k
<commit_before>#include "vast/configuration.h" #include "config.h" #include <iostream> #include <string> #include <boost/exception/diagnostic_information.hpp> #include "vast/exception.h" #include "vast/fs/path.h" #include "vast/fs/fstream.h" #include "vast/fs/operations.h" #include "vast/logger.h" namespace vast { ...
<commit_before>#pragma once #include <cstdlib> // std::aligned_alloc (C++17) & std::free #include <stdint.h> // uintptr_t #include <cstring> // std::memset #include <stdexcept> // std::runtime_error #if ANYODE_NO_LAPACK == 1 #include "anyode/anyode_blasless.hpp" #else #include "anyode/anyode_blas_lapack.hpp" #endif ...
<commit_before>#ifndef _BLISPP_MEMORY_HPP_ #define _BLISPP_MEMORY_HPP_ #include "blis++.hpp" namespace blis { template <typename T, typename Allocator=std::allocator<T> > class Memory { public: typedef T type; private: struct _mem_s : Allocator { type* _base = NULL; ...
<commit_before>/** * \file * \brief ContiguousRange template class header. * * \author Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was no...
<commit_before>#include "search_engine.hpp" #include "result.hpp" #include "search_query.hpp" #include "../storage/country_info.hpp" #include "../indexer/categories_holder.hpp" #include "../indexer/search_string_utils.hpp" #include "../indexer/mercator.hpp" #include "../indexer/scales.hpp" #include "../platform/plat...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 ArangoDB GmbH, Cologne, 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 o...
<commit_before>// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com> // // 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 // ob...
<commit_before> /* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkColorPriv.h" #include "SkShader.h" namespace skiagm { class BigMatrixGM : public GM { public: BigMatrixGM() { this->s...
<commit_before>// Copyright Daniel Wallin 2007. Use, modification and distribution is // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <libtorrent/extensions.hpp> #include <libtorrent/entry.hpp> #include <libtorre...
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_DETAIL_UTILS_HPP #define KGR_KANGARU_INCLUDE_KANGARU_DETAIL_UTILS_HPP #include <type_traits> namespace kgr { namespace detail { /* * Type trait that extract the return type of the forward function. */ template<typename, typename = void> struct ServiceTypeHelper {}...
<commit_before>// utils/grm_tester.cc // Copyright 2016 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/LICENSE-2.0 // // Unless require...
<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) 2016-2020 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 <fs.h> #include <util/system.h> #include <util/translation.h> #include <wallet/salvage.h> #include <w...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 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>#include <boost/lexical_cast.hpp> #include <qwt_symbol.h> #include "graphPlot.h" using namespace std; using namespace watcher; INIT_LOGGER(TimeScaleDraw, "TimeScaleDraw"); INIT_LOGGER(GraphCurve, "GraphCurve"); INIT_LOGGER(GraphPlot, "GraphPlot"); TimeScaleDraw::TimeScaleDraw(const QTime &base): b...
<commit_before>// // Copyright (C) 2016 Greg Landrum // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <GraphMol/MolDraw2D/MolDraw2...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2011, 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>// // 16bitBinaryLoader.cpp // Phantasma // // Created by Thomas Harte on 17/12/2013. // Copyright (c) 2013 Thomas Harte. All rights reserved. // #include "16bitBinaryLoader.h" #include "Parser.h" #include "16bitDetokeniser.h" class StreamLoader { private: vector<uint8_t>::size_type bytePointer;...
<commit_before>/* * Phusion Passenger - http://www.modrails.com/ * Copyright (c) 2010 Phusion * * "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>/************************************************************************* * * $RCSfile: AccessibleDrawDocumentView.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: af $ $Date: 2002-04-18 17:54:21 $ * * The Contents of this file are made available subject to the terms of * either of t...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2008, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // ...
<commit_before>#include <algorithm> #include <cstddef> #include <optional> #include <string_view> #include <type_traits> template <std::size_t N> struct fixed_string { constexpr fixed_string(const char (&foo)[N + 1]) { std::copy_n(foo, N + 1, data); } constexpr fixed_string(std::string_view s) { static_a...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 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>/* * Phusion Passenger - http://www.modrails.com/ * Copyright (c) 2010 Phusion * * "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>#ifndef _DEFAULT_PLUGINS_H #define _DEFAULT_PLUGINS_H #include "./command-interface.hpp" #include "./bot.hpp" #include "./dynamic-loading.hpp" /* for Loader */ #include <string> #include <vector> #include <iostream> #include <stdexcept> namespace DefaultPlugins { static void strip_string(std::stri...
<commit_before>//===-- TimeProfiler.cpp - Hierarchical Time Profiler ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<commit_before><commit_msg>coverity#708214 Uninitialized scalar field<commit_after><|endoftext|>
<commit_before>// ======================================================================== // // Copyright 2009-2015 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>// C++ General Utility Library (mailto:cgul@zethes.com) // Copyright (C) 2012-2014, Joshua Brookover and Amber Thrall // All rights reserved. /** @file Vector4.hpp */ #pragma once #include <CGUL/Config.hpp> #include "../External/Defines.hpp" // Without this here you would need a human sacrifice each ...
<commit_before>/** * @file llnamelistctrl.cpp * @brief A list of names, automatically refreshed from name cache. * * $LicenseInfo:firstyear=2003&license=viewergpl$ * * Copyright (c) 2003-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided...
<commit_before>/*********************************************************************/ /* Copyright (c) 2013, EPFL/Blue Brain Project */ /* Raphael Dumusc <raphael.dumusc@epfl.ch> */ /* All rights reserved. */ /* ...
<commit_before>#include "NodeStyle.h" #if defined(Q_OS_WIN) static QString FontName = "Segoe UI"; #else static QString FontName = "DejaVu Sans"; #endif // Scene NodeStyle QColor NodeStyle::SceneBackground = QColor(64, 64, 64); QColor NodeStyle::SceneBlockedBackground = QColor(34, 34, 34); // Link NodeStyle QPen Node...
<commit_before>/* * Copyright (C) 2015 Dan Leinir Turthra Jensen <admin@leinir.dk> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your...
<commit_before>#include "About.hpp" #include <QHBoxLayout> #include <QVBoxLayout> #include <QLabel> #include <QDialogButtonBox> #include <QEvent> #include <QPixmap> namespace GUI { namespace Dialogs { /** * Creates a new about dialog. * * @param parent Parent widget, the dialog will be centered above this widget ...
<commit_before> #include "CPipelineState.h" #include <GL/glew.h> namespace ion { namespace Graphics { namespace GL { void CPipelineState::SetProgram(IShaderProgram * inShaderProgram) { ShaderProgram = dynamic_cast<CShaderProgram *>(inShaderProgram); Loaded = false; } vo...
<commit_before>// system includes #include <stdexcept> #include <cassert> #include <iomanip> #include <cstdio> // stl includes #include <iostream> #include <sstream> #include <iterator> // Qt includes #include <QResource> #include <QDateTime> // hyperion util includes #include "hyperion/ImageProcessorFactory.h" #inc...
<commit_before>#ifdef WIN32 #include "Socket.hpp" int Socket::socket(int domain, int type, int protocol) { return (socket(domain, type, protocol)); } int Socket::connect(int sockfd, const void *addr, int addrlen) { return (connect(sockfd, addr, addrlen)); } int Socket::send(int sockfd, const void *buf, int ...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>/* Copyright (c) 2008, 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>#pragma once // only included in case there's a C++11 compiler out there that doesn't support `#pragma once` #ifndef DKM_KMEANS_H #define DKM_KMEANS_H #include <algorithm> #include <array> #include <cassert> #include <cstddef> #include <cstdint> #include <random> #include <tuple> #include <type_traits>...
<commit_before>// GenericRepositoryTests.cpp #include <gtest/gtest.h> #include <dlfcn.h> #include "GenericRepository.h" #include "GenericRepositoryTests.h" #include "XMLQueryEngine.h" #include "Timer.h" using namespace std; //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Gene...
<commit_before>#include "Arduino.h" #include "custom_joystick.h" int custom_joystick::normalize(int value) { /* * a wrapper for map built-in function * * @param value: is within analogRead boundries * @return: normalize value within normalize boundries */ // https://www.arduino.cc/en/Reference/Ma...
<commit_before>#ifdef USE_GECODE #include "CPSpaceALG.hh" #include "alg/ContextALG.hh" #include "dtoout/SolutionDtoout.hh" #include "bo/ProcessBO.hh" #include "bo/MachineBO.hh" #include "tools/Checker.hh" #include "tools/Log.hh" #include <algorithm> #include <gecode/search.hh> using namespace Gecode; CPSpaceALG::CP...
<commit_before>/*********************************** Copyright 2017 Ravishankar Mathur 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 req...
<commit_before>#ifndef ELEKTRA_KEY_EXCEPT_HPP #define ELEKTRA_KEY_EXCEPT_HPP #ifndef USER_DEFINED_EXCEPTIONS namespace kdb { class Exception : public std::exception { public: virtual const char* what() const throw() { return "Exception thrown by Elektra"; } }; class KeyException : public Exception { public: v...
<commit_before>/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2016 Liviu Ionescu. * * 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 Sof...
<commit_before>/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz> 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 r...
<commit_before>#include "UpdateDialogWin32.h" #include "AppInfo.h" #include "Log.h" // enable themed controls // see http://msdn.microsoft.com/en-us/library/bb773175%28v=vs.85%29.aspx // for details #pragma comment(linker,"\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0'...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/generic/memory/lib/utils/bit_count.H $ ...
<commit_before>/*! * \author ddubois * \date 12-Sep-18. */ #include "shaderpack_validator.hpp" #include "../json_utils.hpp" #include "../../util/utils.hpp" #include "../../../tests/src/general_test_setup.hpp" #ifdef ERROR #undef ERROR #endif namespace nova { /*! * \brief All the default values for a JSON...
<commit_before>/* * Copyright (C) 2008-2010 The QXmpp developers * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>#ifndef SILICIUM_RANGE_VALUE_HPP #define SILICIUM_RANGE_VALUE_HPP #include <boost/range/algorithm/equal.hpp> #include <boost/range/begin.hpp> #include <boost/range/end.hpp> #include <boost/functional/hash.hpp> namespace Si { template <class BidirectionalRange> struct range_value { BidirectionalRan...
<commit_before>#ifndef VIENNAGRID_ALGORITHM_INTERSECT_HPP #define VIENNAGRID_ALGORITHM_INTERSECT_HPP /* ======================================================================= Copyright (c) 2011-2012, Institute for Microelectronics, Institute for Analysis and Scientific Computing, ...
<commit_before><commit_msg>Create lc943.cpp<commit_after><|endoftext|>
<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>#include "foreign.h" #include "interp.hh" #include "program.hh" #include <initializer_list> #include <list> #include <sstream> #include <string> #include <vector> using namespace std; Value::Value() : type(BOT) {} Value::Value(const bool b) : type(BOOL) { value.b = b; } Value::Value(const int i) : type...
<commit_before>// $Id$ /** * @file makeComponentConfigurationObject.C * @brief Creation of HLT component configuration objects in OCDB * * <pre> * Usage: aliroot -b -q makeComponentConfigurationObject.C'("path", "param", "uri", runmin, runmax)' * </pre> * * Create an OCDB entry with a TObjString containing para...
<commit_before>/// /// @file S2_easy.cpp /// @brief Calculate the contribution of the clustered easy leaves /// and the sparse easy leaves in parallel using OpenMP /// (Deleglise-Rivat algorithm). /// /// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the B...
<commit_before>/**************************************************************************** * * Copyright 2018 Samsung Electronics 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...
<commit_before>#include <GLFW/glfw3.h> #include <cstring> #include <stdlib.h> // srand, rand #include <thread> // std::this_thread::sleep_for #include <chrono> // std::chrono::seconds #include "math.h" #include <windows.h> #include <stdbool.h> #define pi 3.14159265358979 const in...
<commit_before>/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "sk_tool_utils.h" #include "SkRandom.h" #if SK_SUPPORT_GPU #include "etc1.h" #include "GrContext.h" #include "GrGpu.h" #include "GrRe...
<commit_before>/* * Conway's Game of Life implementation with less than 1KB code. * Prototype is developed first with Arduino then ported to ATtiny84A. * * Description: * - cells are displayed on an 8x8 LED matrix * - initial setup is set through 2 pots (X and Y) and one button to select/unselect a cell * - sta...
<commit_before>/* * The MIT License * * Copyright 2017-2018 Norwegian University of Technology * * 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 ...
<commit_before>/* * Copyright (c) 2007-2008 The Florida State 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 * n...
<commit_before>/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/utilities/CTableCell.cpp,v $ $Revision: 1.17 $ $Name: $ $Author: shoops $ $Date: 2009/07/24 14:30:48 $ End CVS Header */ // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., EML Research, gGm...
<commit_before>/** * Created by Liam Huang (Liam0205) on 2018/10/17. */ #ifndef SORTS_MERGE_SORT_HPP_ #define SORTS_MERGE_SORT_HPP_ #include <functional> #include <algorithm> #include <iterator> #include <vector> namespace detail { template <typename InputIt1, typename InputIt2, typename OutputIt, typena...
<commit_before>/* * *** ***** ********************* Mercenaries Engineering SARL ***************** Copyright (C) 2016 ************* ********* http://www.mercenaries-engineering.com *********** **** **** ** ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: addonstoolbarmanager.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2007-01-23 07:10:00 $ * * The Contents of this f...
<commit_before>/* =============================================================================== FILE: arithmeticencoder.hpp CONTENTS: A modular C++ wrapper for an adapted version of Amir Said's FastAC Code. see: http://www.cipr.rpi.edu/~said/FastAC.html PROGRAMMERS: martin.isenbur...
<commit_before>/* * Copyright 2022 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>#include "curvedLabel.h" #include "gl/dynamicQuadMesh.h" #include "labels/obbBuffer.h" #include "labels/screenTransform.h" #include "log.h" #include "style/textStyle.h" #include "text/fontContext.h" #include "textLabels.h" #include "util/geom.h" #include "util/lineSampler.h" #include "view/view.h" #inc...
<commit_before>#include "application.h" // POSIX #include <stropts.h> // STL #include <atomic> #include <cassert> #include <algorithm> // PDTK #include <object.h> #include <specialized/eventbackend.h> // atomic vars are to avoid race conditions static std::atomic_int s_return_value (0); static std::atomic_bool s_r...
<commit_before><commit_msg>fix overflow in cuts<commit_after><|endoftext|>
<commit_before>#include <aery32/all.h> #include "board.h" #define LED AVR32_PIN_PC04 volatile bool pa00 = false; void isrhandler_group2(void) { pa00 = gpio_read_pin(AVR32_PIN_PA00); delay_ms(10); if (gpio_read_pin(ARV32_PIN_PA00) == pa00) { /* Still connected? */ gpio_toggle_pin(LED); } porta->ifrc = (1 << 0)...
<commit_before>//LUDUM DARE 30 #include <map> #include <string> #include <sstream> #include <iostream> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> namespace sf{ bool operator< (const sf::Color& c1, const sf::Color& c2){ if(c1.r < c2.r) return true; else if(c1.r > c2.r) return false; else if(c1.g < c...
<commit_before>// // OpenFlight loader for OpenSceneGraph // // Copyright (C) 2005-2006 Brede Johansen // #include <osgSim/LightPointNode> #include <osg/Texture2D> #include "Registry.h" #include "Document.h" #include "RecordInputStream.h" using namespace flt; /** LightPoint */ class LightPoint : public PrimaryReco...
<commit_before>/// HEADER #include <csapex/view/widgets/message_preview_widget.h> /// PROJECT #include <csapex/msg/direct_connection.h> #include <csapex/manager/message_renderer_manager.h> #include <csapex/msg/io.h> #include <csapex/msg/generic_value_message.hpp> #include <csapex/msg/any_message.h> #include <csapex/ut...
<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>// Time: O(n * m * k) // Space: O(n * m * k) #include <memory> // enum type for Vehicle enum class VehicleSize { Motorcycle, Compact, Large }; // Foward declaration to make circular reference work. class ParkingSpot; class Level; // Use pImpl idiom to make copy assignment work. class Veh...
<commit_before>#include "cpp/ylikuutio/common/any_value.hpp" #include "cpp/ylikuutio/callback_system/callback_parameter.hpp" #include "cpp/ylikuutio/callback_system/callback_object.hpp" #include "cpp/ylikuutio/callback_system/callback_engine.hpp" namespace ajokki { datatypes::AnyValue* glfwTerminate_cleanup( ...
<commit_before> #pragma once #include "pipe.hpp" namespace lambda { namespace streams { // // `Stream` concept // struct Stream { using Type = void; Maybe<Type> next(); }; template <class C> class CollectionStream : public Stream { C collection; typename C::const_iterator begin, end; public: us...
<commit_before>/*************************************************************************** * @file node.hpp * @author Alan.W * @date 03 August 2014 * @remark CLRS Algorithms implementation, using C++ templates. ***************************************************************************/ ...
<commit_before>// Time: O(max(r, c) * wlogw) // Space: O(w^2) class Solution { public: int shortestDistance(vector<vector<int>>& maze, vector<int>& start, vector<int>& destination) { static const vector<vector<int>> dirs = {{-1, 0}, {0, 1}, {0, -1}, {1, 0}}; int result = -1; priority_queue...
<commit_before>/* Copyright (c) 2009-2014, 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 ...
<commit_before>#include "app.h" #include <cassert> #include <fstream> #include <regex> #include <boost/filesystem.hpp> #include <QApplication> #include <QMainWindow> #include <dependency_graph/port.inl> #include <dependency_graph/node.h> #include <dependency_graph/node_base.inl> #include <dependency_graph/nodes_ite...
<commit_before>//===-- GlobalDCE.cpp - DCE unreachable internal functions ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===- InputFiles.cpp -----------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>/* This file is part of SWGANH. For more information, visit http://swganh.com Copyright (c) 2006 - 2011 The SWG:ANH Team 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 v...
<commit_before>// Copyright (c) 2016 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 <bench/bench.h> #include <crypto/ripemd160.h> #include <crypto/sha1.h> #include <crypto/sha256.h> #include...
<commit_before>// // yas_processing_send_signal_processor.cpp // #include "yas_processing_send_signal_processor.h" #include "yas_processing_processor.h" #include "yas_processing_module.h" #include "yas_processing_channel.h" #include "yas_processing_signal_event.h" #include "yas_stl_utils.h" using namespace yas; tem...
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <boost/program_options.hpp> #include <iostream> #include <exception> #include <vector> #include <algorithm> #include <cstdlib> #include <set> #include <random> namespace po = boost::program_options; auto main(int argc, char * argv[]) -> int { ...
<commit_before>#include "ebc/BitcodeRetriever.h" #include "ebc/BitcodeArchive.h" #include "ebc/BitcodeContainer.h" #include "ebc/EbcError.h" #include "llvm/ADT/Triple.h" #include "llvm/Object/ELFObjectFile.h" #include "llvm/Object/MachO.h" #include "llvm/Object/MachOUniversal.h" #include <algorithm> #include <memory...
<commit_before>// -*- coding: utf-8 -*- // Copyright (C) 2012-2014 MUJIN Inc. <rosen.diankov@mujin.co.jp> // // 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/lice...
<commit_before>/* * This file is part of qasmtools. * * Copyright (c) 2019 - 2021 softwareQ Inc. All rights reserved. * * MIT License * * 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 Softwar...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file 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 "Lice...
<commit_before>#ifndef _C4_STORAGE_GROWTH_HPP_ #define _C4_STORAGE_GROWTH_HPP_ /** @file growth.hpp Storage growth policies for dynamic containers. */ #include "c4/config.hpp" #include "c4/error.hpp" C4_BEGIN_NAMESPACE(c4) C4_BEGIN_NAMESPACE(stg) /** @defgroup storage_growth_policies Storage growth policies * Thes...
<commit_before>#include "../cshared/shared.h" #include "../cshared/opcodes.h" #include "../cshared/opcodes_format.h" #include "../cshared/opcodes_debug.h" #include "../cshared/asm_stream.h" #include "../cshared/stream.h" struct Arg { uint64_t fixnum = 0; std::string string; Arg(uint64_t fixnum) : fixnu...
<commit_before>/**************************************************************************** * Copyright (C) 2015 by Savoir-Faire Linux * * Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> * * ...
<commit_before>/** * @file */ #pragma once /** * @def LIBBIRCH_ATOMIC_OPENMP * * Set to 1 for libbirch::Atomic use OpenMP, or 0 to use std::atomic. * * The advantage of the OpenMP implementation is assured memory model * consistency and the organic disabling of atomics when OpenMP, and thus * multithreading, ...