text
stringlengths
54
60.6k
<commit_before>#include "dream_hacking/calculator.h" logxx::Log cLog("main"); void PrintDeck(const std::shared_ptr<Medici> deck, std::ostream& s){ S_LOG("PrintDeck"); auto cardsDeck = deck->GetDeck(); auto collapses = deck->GetCollapses(); // auto &mobiles = deck->GetMobiles(); ...
<commit_before>/** * @file * TODO: Describe purpose of file. * * @author sprowell@gmail.com * * @section LICENSE * @verbatim * _ _ _ * ___| (_)___(_) ___ _ __ * / _ \ | / __| |/ _ \| '_ \ * | __/ | \__ \ | (_) | | | | * \___|_|_|___/_|\___/|_| |_| * The Elision Term Rewriter * * Copyright...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2011-2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public ...
<commit_before>/************************************************************************* * * $RCSfile: inettbc.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: fs $ $Date: 2001-01-31 14:13:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* * blinkyBlocksBlock.cpp * * Created on: 23 mars 2013 * Author: dom */ #include <iostream> #include "blinkyBlocksBlock.h" #include "blinkyBlocksWorld.h" #include <sys/wait.h> using namespace std; namespace BlinkyBlocks { static const GLfloat tabColors[12][4]={{1.0,0.0,0.0,1.0},{1.0,0.6470...
<commit_before>/* * Copyright (c) 2007-2008 SlimDX Group * * 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, ...
<commit_before>// Copyright Toru Niina 2017. // Distributed under the MIT License. #ifndef TOML11_TRAITS_HPP #define TOML11_TRAITS_HPP #include <type_traits> #include <utility> #include <chrono> #include <tuple> #include <string> #if __cplusplus >= 201703L #if __has_include(<string_view>) #include <string_view> #en...
<commit_before>#include "layouter.h" #include "utf-8.h" #include <harfbuzz/hb.h> #include <harfbuzz/hb-ft.h> #include <fribidi/fribidi.h> #include <linebreak.h> #include <vector> #include <string> #include <memory> #include <algorithm> typedef struct { std::vector<textLayout_c::commandData> run; int dx, dy; ...
<commit_before>#if defined(__cplusplus) && (__cplusplus >= 201103L) #include <iostream> #include <iomanip> #include <chrono> #include <atomic> #ifdef SEQUENTIAL_CONSISTENCY auto update_model = std::memory_order_seq_cst; #else auto update_model = std::memory_order_relaxed; #endif #ifdef _OPENMP # include <omp.h> # ...
<commit_before>#include "UpdateDialogGtkFactory.h" #include "FileUtils.h" #include "Log.h" #include "UpdateDialog.h" #include "StringUtils.h" #include <dlfcn.h> #include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> class UpdateDialogGtk; // GTK updater UI library embedd...
<commit_before><commit_msg>INTEGRATION: CWS warnings01 (1.35.50); FILE MERGED 2006/05/23 18:34:32 sb 1.35.50.3: RESYNC: (1.37-1.38); FILE MERGED 2006/04/07 18:14:16 sb 1.35.50.2: RESYNC: (1.35-1.37); FILE MERGED 2006/02/17 16:56:31 cl 1.35.50.1: warning free code changes<commit_after><|endoftext|>
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "VideoSessionWidget.h" #include "UiDefines.h" #include <QVBoxLayout> #include <QHBoxLayout> #include <QLabel> #include <QPushButton> namespace CommunicationUI { VideoSess...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: c_slots.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2007-11-02 15:27:28 $ * * The Contents of this file are made a...
<commit_before>#include <gmock/gmock.h> #include <gtest/gtest.h> #include <cstdlib> // For rand. #include <list> #include <set> #include <string> #include <stout/duration.hpp> #include <stout/foreach.hpp> #include <stout/gtest.hpp> #include <stout/hashset.hpp> #include <stout/os.hpp> #include <stout/stopwatch.hpp> #...
<commit_before>/** * File : C.cpp * Author : Kazune Takahashi * Created : 2018-4-15 21:25:15 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> //...
<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>/** * File : C.cpp * Author : Kazune Takahashi * Created : 2018-4-15 21:25:15 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> //...
<commit_before>#define DEBUG 1 /** * File : D.cpp * Author : Kazune Takahashi * Created : 2/16/2019, 9:07:46 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> ...
<commit_before>#define DEBUG 1 /** * File : F.cpp * Author : Kazune Takahashi * Created : 2019/8/18 21:33:53 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack> #...
<commit_before>#define DEBUG 1 /** * File : E.cpp * Author : Kazune Takahashi * Created : 6/7/2020, 1:08:56 AM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdio...
<commit_before>#define DEBUG 1 /** * File : F.cpp * Author : Kazune Takahashi * Created : 2/22/2020, 9:38:37 PM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdi...
<commit_before>#include "HotkeyManager.h" #include "Logger.h" HotkeyManager *HotkeyManager::instance = NULL; HotkeyManager *HotkeyManager::Instance() { return instance; } HotkeyManager *HotkeyManager::Instance(HWND notifyWnd) { if (instance == NULL) { instance = new HotkeyManager(); instance-...
<commit_before>#include <cassert> #include <set> #include <vector> #include <map> #include <thread> #include <string> #include <cstring> #include <brynet/net/SocketLibFunction.h> #include <brynet/net/fdset.h> #include <brynet/net/Connector.h> using namespace brynet; using namespace brynet::net; namespace brynet { ...
<commit_before>#include "include-opencv.hpp" #include <fmo/benchmark.hpp> #include <fmo/image.hpp> #include <fmo/processing.hpp> #include <fmo/stats.hpp> #include <random> namespace fmo { namespace { void log(log_t logFunc, const char* cStr) { logFunc(cStr); } template <typename Arg1, typename... ...
<commit_before>#ifndef __BTREE_NODE_FUNCTIONS_HPP__ #define __BTREE_NODE_FUNCTIONS_HPP__ // We have to have this file because putting these definitions in node.hpp would require mutually recursive header files. #include "btree/node.hpp" #include "btree/leaf_node.hpp" namespace node { template <class Value> void spl...
<commit_before>/* Copyright 2015 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 applicable law o...
<commit_before>/* * Copyright (C) 2003-2006 Funambol * * 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 2 of the License, or * (at your option) any later version. * * This ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkExtractGrid.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redistrib...
<commit_before>#include "osg_tools.h" #include <osg/Geometry> #include "osg/Material" #include "xo/container/prop_node.h" #include "xo/system/log.h" #include "xo/time/timer.h" #include "xo/serialization/prop_node_tools.h" #include "xo/serialization/serialize.h" using namespace xo; namespace vis { osg::Geode* create...
<commit_before>#include <cstring> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/test/test_caffe_main.hpp" namespace caffe { template <typename Dtype> class BlobSimpleTest : public ::testing::Test { protected: BlobSimpleTest() : b...
<commit_before>//===----- lib/Support/Error.cpp - Error and associated utilities ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- Module.cpp - Implement the Module class ---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: mediator.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:54:22 $ * * The Contents of this file are made ...
<commit_before><commit_msg>Review the BLIS inner kernel<commit_after><|endoftext|>
<commit_before>/* Copyright 2019-2021 Benjamin Worpitz, Erik Zenker, Sergei Bastrakov * * This file exemplifies usage of alpaka. * * 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 permiss...
<commit_before><commit_msg>Use ADL instead of directly putting property map's get/set into boost namespace.<commit_after><|endoftext|>
<commit_before>/* * Copyright 2015 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 (c) 2017 Christopher Baker <https://christopherbaker.net> // // SPDX-License-Identifier: MIT // #include "ofApp.h" void ofApp::setup() { std::chrono::time_point<std::chrono::system_clock> start, end; start = std::chrono::system_clock::now(); // Load the network data. ...
<commit_before><commit_msg>Fix error with std::integral_constant aggregate initialization<commit_after><|endoftext|>
<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>#define __STDC_FORMAT_MACROS #include <errno.h> #include <inttypes.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <algorithm> #include <phosg/Time.hh> #include <phosg/UnitTest.hh> #include <string> #include "Pool.hh" #i...
<commit_before>#ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_RING_POOL_HPP #define GHULBUS_LIBRARY_INCLUDE_GUARD_RING_POOL_HPP /** @file * * @brief Ring pool allocator. * @author Andreas Weis (der_ghulbus@ghulbus-inc.de) */ #include <gbBase/config.hpp> #include <gbBase/Assert.hpp> #include <atomic> #include <cstring> #incl...
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_GENERIC_HPP #define KGR_KANGARU_INCLUDE_KANGARU_GENERIC_HPP #include "container.hpp" #include "detail/injected.hpp" #include "detail/traits.hpp" namespace kgr { namespace detail { template<typename Generic, typename Type, typename = void> struct GenericServiceDestru...
<commit_before>/* Copyright (c) 2006, 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>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * Version: MPL 1.1 / GPLv3+ / LGPLv3+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License or as spec...
<commit_before>// $Id: fe_clough.C,v 1.2 2005-02-22 22:17:36 jwpeterson Exp $ // The libMesh Finite Element Library. // Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Licens...
<commit_before>// @(#)root/winnt:$Name$:$Id$ // Author: Valery Fine(fine@mail.cern.ch) 29/09/98 #include <process.h> #include "Windows4Root.h" #include "TTimer.h" #include "TROOT.h" #include "TWin32Timer.h" #include "TWin32HookViaThread.h" #include "TGWin32Command.h" #include "TInterpreter.h" struct WIN32TIMETHREA...
<commit_before>// // Created by yanxq on 17/6/10. // #include <string> #include <fcntl.h> #include <elf.h> #include "elfhook_utils.h" #include "elf_log.h" static inline Elf32_Phdr* find_segment_by_type(Elf32_Phdr * phdr_base, const Elf32_Word phnum, const Elf32_Word ph_type) { Elf32_Phdr *target = NULL; for (i...
<commit_before>#pragma once #include <array> #include <vector> #include "zmsg_cmm.hpp" namespace zmsg { /** * \brief typedefs */ typedef signed char CHAR; typedef unsigned char UCHAR; typedef signed short SHORT; typedef unsigned short USHORT; typedef int8_t INT8; typedef uint8_t UINT8; typedef int16_t INT16; ty...
<commit_before>#pragma once #include <limits> #include <cmath> #include <array> #include <vector> #include "zmsg_cmm.hpp" namespace zmsg { /** * \brief typedefs */ #if 0 int{8|16|32}_t uint{8|16|32}_t float double #endif } /* namespace zmsg */ /** * \brief img fiber defect description */ typedef uint32_t ifd_...
<commit_before>//--------------------------------------------------------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // withou...
<commit_before>#include "SeparateToComplex.h" #include "check_params.h" #include "lr_config.h" #include <easyshape.h> namespace edb { std::string SeparateToComplex::Command() const { return "separate2complex"; } std::string SeparateToComplex::Description() const { return "separate lr's sprites to easycompex file"...
<commit_before>#include <flusspferd/current_context_scope.hpp> #include <flusspferd/context.hpp> #include <flusspferd/init.hpp> #include <flusspferd/value.hpp> #include <flusspferd/object.hpp> #include <flusspferd/string.hpp> #include <flusspferd/string_io.hpp> #include <flusspferd/value_io.hpp> #include <flusspferd/cr...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015-2016 Maximilian Knespel * * 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 limita...
<commit_before>#include "Queue.h" #include "gtest/gtest.h" class QueueTest : public testing::Test { protected: virtual void SetUp() { //NOT YET IMPLEMENTED } virtual void TearDown() { } // setup fixtures Queue<int> q0_; }; TEST_F(QueueTest, DefaultConstructor) { EXPECT_NE(0u, 1u); } <commit_msg>Qu...
<commit_before>#include <iostream> #include <string> #include <string.h> #include <sys/stat.h> using namespace std; char numToStr(int num) //only used to convert single digit number to char { if(num < 0 | num > 9) { cout << "Use single digit\n"; } return (num + 48); } string intToStr(int i) /...
<commit_before>/* * Copyright (C) 2008-2012 J-P Nurmi <jpnurmi@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; either version 2 of the License, or * (at your option) any later versi...
<commit_before>/** * Copyright (C) 2015 Virgil Security Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
<commit_before>/************************************************************************* This software allows for filtering in high-dimensional observation and state spaces, as described in M. Wuthrich, P. Pastor, M. Kalakrishnan, J. Bohg, and S. Schaal. Probabilistic Object Tracking using a Range Camera IEEE/RSJ Int...
<commit_before>/** * Copyright (c) 2011-2014 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin_explorer. * * libbitcoin_explorer 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 pub...
<commit_before><commit_msg>Updated to use MemoryManager<commit_after><|endoftext|>
<commit_before>// // Copyright (c) 2017 The Khronos Group 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 b...
<commit_before>/** * \file * \brief ChipSpiMasterLowLevel class implementation for SPIv1 in STM32 * * \author Copyright (C) 2016-2018 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...
<commit_before>/* bzflag * Copyright (c) 1993 - 2003 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 LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/** * Copyright 2015 Silvana Trindade * * 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 Insight Software Consortium * * 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>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <iostream> #include <ostream> #include "arcball.h" using namespace visionaray; arcball::arcball() : radius(1.0f) , down_pos(0.0f) , rotation(quat::identity()) , down_rotation(quat::identi...
<commit_before>#include <primitives/log.h> #include <boost/format.hpp> #include <boost/log/common.hpp> #include <boost/log/expressions.hpp> #include <boost/log/trivial.hpp> #include <boost/log/support/date_time.hpp> #include <boost/log/utility/setup/console.hpp> #include <boost/log/utility/setup/file.hpp> #include <bo...
<commit_before>// Copyright (c) 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-CHROMIUM file. #include "shell/browser/ui/views/inspectable_web_contents_view_views.h" #include <memory> #include <utility> #include "base...
<commit_before>#include "common/cli_wrapper.h" #include "common/cli_helper.h" #include "common/logging.h" #include "common/options.h" #include "common/timer.h" #include "common/version.h" namespace marian { namespace cli { /* static uint16_t guess_terminal_width(uint16_t max_width, uint16_t default_width) { uint16_...
<commit_before>#include <iostream> #include <unordered_map> #include <vector> using namespace std; void ncopy(const vector<int> &nums, int k, int m, long long &x, int &y) { for (int i = 0; i < k; ++i) { for (auto num : nums) { if (y == m) y = 0, ++x; ++y; ...
<commit_before>/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directo...
<commit_before> // .\Release\benchmarks.exe --benchmark_repetitions=5 --benchmark_min_time=30 --benchmark_filter=HarmonicOscillator // NOLINT(whitespace/line_length) #define GLOG_NO_ABBREVIATED_SEVERITIES ...
<commit_before>/*========================================================================= * * Copyright 2011-2013 The University of North Carolina at Chapel Hill * All rights reserved. * * Licensed under the MADAI Software License. You may obtain a copy of * this license at * * https://madai-public...
<commit_before>#include "common/file_stream.h" #include <streambuf> #include <string> #include <vector> #ifdef _MSC_VER #include <windows.h> #include <io.h> #else #include <sys/types.h> #include <unistd.h> #endif <commit_msg>delete unused includes<commit_after>#include "common/file_stream.h" <|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cmdlinehelp.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: ihi $ $Date: 2007-04-19 09:30:41 $ * * The Contents of this file are ...
<commit_before>#include "GameComponent.h" #include "Model.h" #include "Game.h" #include <iostream> #include <cmath> //#include <glm/gtx/constants.hpp> #include <ctime> #include "VectorDrawer.h" using namespace BGE; using namespace std; float BGE::RandomFloat() { return (float)rand()/(float)RAND_MAX; } GameComponen...
<commit_before>/* Random.hpp * * Kubo Ryosuke */ #ifndef SUNFISH_COMMON_MATH_RANDOM_HPP__ #define SUNFISH_COMMON_MATH_RANDOM_HPP__ #include "common/Def.hpp" #include <random> #include <ctime> #include <cstdint> namespace sunfish { template <class GenType> class BaseRandom { public: BaseRandom() : rgen(static_c...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2016 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Licen...
<commit_before>/* * Copyright (c) 2007-2008 Digital Bazaar, Inc. All rights reserved. */ #include "db/io/ByteBuffer.h" using namespace db::io; ByteBuffer::ByteBuffer(int capacity) { // create the byte buffer mCapacity = capacity; mBuffer = (capacity > 0) ? (char*)malloc(mCapacity) : NULL; mOffset = 0; ...
<commit_before>/************************************************************************* * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * Fo...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<commit_before>/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * **********************...
<commit_before>#include "xchainer/backprop.h" #include <vector> #ifdef XCHAINER_ENABLE_CUDA #include <cuda_runtime.h> #endif // XCHAINER_ENABLE_CUDA #include <gtest/gtest.h> #include "xchainer/array.h" #include "xchainer/backprop.h" #ifdef XCHAINER_ENABLE_CUDA #include "xchainer/cuda/cuda_runtime.h" #endif // XCHA...
<commit_before>/* * cl_demo_handler.cpp - CL demo handler * * Copyright (c) 2015 Intel Corporation * * 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/lic...
<commit_before>// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Graphics/SpriteChainRenderer.hpp> #include <Nazara/Graphics/Graphics.hpp> #inclu...
<commit_before>// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium Authors // // 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 limi...
<commit_before>#include "opencv2/core/utility.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include <iostream> using namespace cv; using namespace std; const auto RED = cv::Scalar(0,0,255); const auto PINK = cv::Scalar(230,130,255); const auto BLUE = cv::Scalar...
<commit_before>/************************************************************************* * * $RCSfile: stringlistitem.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2003-03-19 17:52:43 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>/************************************************************************* * * $RCSfile: ToolBoxHelper.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: oj $ $Date: 2002-04-29 07:59:56 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>// Time: O(nlogn) // Space: O(n) // BIT solution. class Solution { public: /** * @param A an array * @return total of reverse pairs */ long long reversePairs(vector<int>& A) { // Get the place (position in the ascending order) of each number. vector<int> sorted_A(...
<commit_before>#include "main_window.hpp" #include "key_event.hpp" #include "open_dialog.hpp" #include "save_dialog.hpp" #include "text_file.hpp" #include "dialog.hpp" #include "application.hpp" MainWindow::MainWindow(Widget *parent): Widget(parent), screen_(this), tabs_(this), statusBar_(this), la...
<commit_before>/* * Copyright 2014 Milian Wolff <mail@milianw.de> * * This program 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 version 2 of the * License, or (at your option) any later...
<commit_before><commit_msg>Skip non-interface points in symbolic square analysis phase<commit_after><|endoftext|>
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved. This file is part of Navitia, the software to build cool stuff with public transport. Hope you'll enjoy and contribute to this project, powered by Canal TP (www.canaltp.fr). Help us simplify mobility and open public ...
<commit_before><commit_msg>:construction: chore(gc): updated the base gc definitions<commit_after><|endoftext|>