text
stringlengths
5
1.04M
#include "nodeevents.h" #include "yaml-cpp/eventhandler.h" #include "yaml-cpp/mark.h" #include "yaml-cpp/node/detail/node.h" #include "yaml-cpp/node/detail/node_iterator.h" #include "yaml-cpp/node/node.h" #include "yaml-cpp/node/type.h" namespace YAML { void NodeEvents::AliasManager::RegisterReference(const detail::no...
/* ** JNetLib ** Copyright (C) 2000-2001 Nullsoft, Inc. ** Author: Justin Frankel ** File: testbnc.cpp - JNL network bounce test code ** License: see jnetlib.h */ #ifdef _WIN32 #include <windows.h> #else #define Sleep(x) usleep((x)*1000) #endif #include <stdio.h> #include "jnetlib.h" int main(int argc, char *argv[])...
#ifndef SCENEGAME_HPP_ #define SCENEGAME_HPP_ #include <iostream> #include <stdexcept> #include <vector> #include <map> #include "useGlm.hpp" #include "ASceneMenu.hpp" #include "AEntity.hpp" #include "ACharacter.hpp" #include "Bomb.hpp" #include "Score.hpp" #include "Spawner.hpp" #include "ABaseUI.hpp" #include "Tex...
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under 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) ==...
// Copyright 2014 the V8 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. #include "src/assembler-inl.h" #include "src/callable.h" #include "src/compiler/code-generator-impl.h" #include "src/compiler/code-generator.h" #include...
//***************************************************************************** // Copyright 2017-2020 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://w...
// Copyright 2019 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 agreed to in w...
/**************************************************************************** ** ** Copyright (C) 2021 Intel Corporation ** ** 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 restrict...
/*** KNOWLEDGE IS POWER ***/ #include<bits/stdc++.h> using namespace std; //=======================================// struct Node { char data ; struct Node *left, *right ; } ; Node* newNode(char val) // Assigning value to a newly created node { Node *temp = new Node ; temp->left = temp->right = NU...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
#ifndef BOOST_MPL_LIST_AUX_O1_SIZE_HPP_INCLUDED #define BOOST_MPL_LIST_AUX_O1_SIZE_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under 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) // // See http://www....
/* Copyright (C) 2015-2018 Hans-Kristian Arntzen <maister@archlinux.us> * * 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 ...
/* * Copyright (c) 2015, Peter Thorson. 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 cond...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "OnlineSubsystemIOSPrivatePCH.h" #include "OnlineTurnBasedInterfaceIOS.h" #include "TurnBasedEventListener.h" #include "OnlineIdentityInterface.h" #include "OnlineSubsystem.h" #include "OnlineAsyncTaskManager.h" #include "RepLayout.h" #include "Turn...
#include <MLoggingPCH.h> #include <Logger/LoggerImpl/LoggerImpl.h> #include <Logger/MLogger.h> namespace MLog { MLoggerImpl::MLoggerImpl(make_enabler) { state_ = false; } MLoggerImpl::~MLoggerImpl() = default; MLoggerImpl* MLoggerImpl::getInstance() { static std::once_flag initFlag; static std::unique_ptr<...
#include "HomeControlMagic.h" #include "helperFunctions.h" #include "Endpoints/EndpointZero.h" #include "debugDefines.h" #include "printWrapper.h" #ifdef ARDUINO #include "arduinoWrapper/ArduinoConfig.h" #include "arduinoWrapper/ArduinoNetworkInterface.h" #include "arduinoWrapper/ArduinoWrapper.h" #elif LINUX #inclu...
#include "toolbar.h" #include "tapp.h" #include "pane.h" #include "floatingpanelcommand.h" #include "tools/toolhandle.h" #include "tools/tool.h" #include "tools/toolcommandids.h" #include "toonzqt/menubarcommand.h" #include "menubarcommandids.h" #include "toonz/txshleveltypes.h" #include "toonz/txshlevelhandle.h" #i...
#ifndef __FLAGS_FLAGS_HPP__ #define __FLAGS_FLAGS_HPP__ #include <stdlib.h> // For abort. #include <map> #include <string> #include <typeinfo> // For typeid. #include <tr1/functional> #include <stout/option.hpp> #include <stout/stringify.hpp> #include <stout/try.hpp> #include "flags/flag.hpp" #include "flags/loade...
// Copyright (c) 2011-2016 The Helveticum 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/helveticum-config.h" #endif #include "rpcconsole.h" #include "ui_debugwindow....
//-------------------------------------------------------------------------- // File and Version Information: // $Id: MatDBInfo.cc 516 2010-01-15 08:22:00Z stroili $ // // Description: // Class MatDBInfo. // Environment: // Software developed for the BaBar Detector at the SLAC B-Factory. // // Author List: // D...
/* * Copyright 2020 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 agreed to ...
/* * Copyright 2020 Weibo 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 law or agreed to i...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <unistd.h> #include <iostream> #include <fstream> #include <stdexcept> #include <wordexp.h> #include <fcntl.h> #include <bcm_host.h> #include <GLES/gl.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include <boost/program_options....
/* * Copyright 2012 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkLightingImageFilter.h" #include "SkBitmap.h" #include "SkColorPriv.h" #include "SkDevice.h" #include "SkPoint3.h" #include "SkReadBuffer.h" #in...
/* * Copyright (c) 2019 Rockchip Electronics Co. Ltd. * Author: Huaping Liao <huaping.liao@rock-chips.com> * * 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.o...
#include <iostream> using namespace std; int main(){ int n,x,p; int localmin,localmax; cin>>n; for (int i = 0; i < n; i++) { cin>>x; localmin = 100; localmax = 0; for (int i = 0; i < x; i++) { cin>>p; if(p>localmax){ lo...
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#ifndef DLP4500_PATTERN_H #define DLP4500_PATTERN_H #include "linux_fbuffer.hpp" #define I_MAX 255 typedef struct pattern_parameters { unsigned char intensity = 255; // in rgb color level unsigned int period = 50; // in pixels float phase = 0; // in radians unsigned int exposure = 1000000; // in microseco...
// Copyright (c) 2011-2019 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 <qt/sendcoinsentry.h> #include <qt/forms/ui_se...
#include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; vector<int> a(n+1, 0); auto sieve = [&](){ int cnt = 1; for (int p = 2; p <= n; p++) { if (!a[p]) { a[p] = cnt; for (long long i = 1ll*p*p; i <= n; i+=p) { ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_int_01.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-01.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack * S...
/* * test/rectrace.cpp * Copyright 2013 Google Inc. All Rights Reserved. * * 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 ...
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "ColorBarConfigUnit.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TColorBarConfigForm *ColorBarConfigForm; //-...
#include "GamePlayer.h" #define PLAYER_LIFE_MAX 100; GamePlayer::GamePlayer(int player_id, double init_location_x, double init_location_y, double init_location_z) { this->player_id = player_id; this->location_x = init_location_x; this->location_y = init_location_y; this->location_z = init_location_z; ...
#include "JoyInfoExString.h" JoyInfoExString::JoyInfoExString(void) { } JoyInfoExString::~JoyInfoExString(void) { } tstring JoyInfoExString::ToString(JOYINFOEX* joyInfoEx) { tstringstream stream; stream << _T("----- JoyInfoEx -----") << endl << _T("dwSize:") << joyInfoEx->dwSize << endl << _T("dwFlags:") << j...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <memory> #include <transformations_visibility.hpp> #include "ngraph/op/op.hpp" namespace ngraph { namespace op { class TRANSFORMATIONS_API ScaleShiftIE : public Op { public: static constexpr NodeTypeIn...
#include <doctest/doctest.h> #include <array> #include <chess/position.hpp> #include <cstdint> #include <string> #include <swizzles/search/root.hpp> TEST_SUITE_BEGIN("Search"); TEST_CASE("Search - Tactics") { using pair_type = std::pair<std::string, std::string>; const std::array<pair_type, 2> tests = {{ ...
//============================================================================ // Name : // Author : Avi // Revision : $Revision: #11 $ // // Copyright 2009-2020 ECMWF. // This software is licensed under the terms of the Apache Licence version 2.0 // which can be obtained at http://www.apache.org/licen...
#include <boost/circular_buffer.hpp> #include <iostream> using namespace std; int main() { typedef boost::circular_buffer<int> circular_buffer; circular_buffer cb{3}; cb.push_back(0); cb.push_back(1); cb.push_back(2); cb.push_back(3); cout << boolalpha << cb.is_linearized() << endl; circular_buffer...
/*Exercise 4 - Functions Write a program to calculate the function called nCr which is defined as nCr = n!/ r!(n−r)! Where n! is the factorial of n. Implement the functions long Factorial(int no); long nCr(int n, int r); Do not modify the main function.*/ #include <iostream> long Factorial(int no); long nCr(int n...
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved. #include <UIRibbon....
/* * Copyright (c) 2015, Nagoya University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list ...
// Copyright (c) 2011-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 <util/settings.h> #include <test/util/setup_common.h> #include <test/util/str.h> #include <boost/test/unit_test.h...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // Distributed under 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.) // See http://www.boost.org/libs/iostreams for docume...
/* * QuickStartPluginApi.hpp * * Copyright (C) 2019-20 by RStudio, PBC * * 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...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
// Copyright (c) 2009-2012 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 "key.h" #include "eckey.h" int CompareBigEndian(const unsigned char *c1, size_t c1len, const unsigned char *c2, size...
#include <cassert> #include <ref/utils/StructuralContext.hpp> #include "../examples/company.hpp" #include <iostream> #include <set> #include <algorithm> using namespace ref; using namespace std; int main(int argc, char **argv) { auto companyDesc = example::Company::getClassDescriptorInstance(); auto d...
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT /** * @file * @brief Internal wrapper layer on top of a uint_8 array. * */ #pragma once #include <azure/core/http/http.hpp> #include <azure/core/internal/json/json_serializable.hpp> #include <string> #include <vector> ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/net_errors.h" #include "net/base/static_cookie_policy.h" #include "testing/gtest/include/gtest/gtest.h" #include "googleurl/src/gur...
// Copyright 2012 the V8 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. #include "src/v8.h" #include "src/handles.h" namespace v8 { namespace internal { int HandleScope::NumberOfHandles(Isolate* isolate) { HandleScopeI...
/** * Copyright (C) 2010 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
// 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h" #include <stddef.h> #include <stdint.h> #include <strin...
#include "fast_ber/ber_types/Identifier.hpp" #include "fast_ber/ber_types/Integer.hpp" #include "fast_ber/util/DecodeHelpers.hpp" #include "fast_ber/util/EncodeHelpers.hpp" #include <catch2/catch.hpp> TEST_CASE("Identifier: Encode ExplicitIdentifier") { fast_ber::Integer<> i(4); std::array<uint8_t, 100> ...
#include <uWS/uWS.h> #include <iostream> #include "json.hpp" #include <math.h> #include "FusionEKF.h" #include "tools.h" using namespace std; // for convenience using json = nlohmann::json; // Checks if the SocketIO event has JSON data. // If there is data the JSON object in string format will be returned, // else t...
#pragma once #include <cstddef> #include <cstdint> #include <memory> #include <vector> #include "amuse/AudioGroupData.hpp" #include "amuse/Common.hpp" namespace amuse { class ContainerRegistry { public: enum class Type { Invalid = -1, Raw4 = 0, MetroidPrime, MetroidPrime2, RogueSquadronPC, ...
#ifndef MS_FUZZER_RTC_RTCP_FEEDBACK_PS #define MS_FUZZER_RTC_RTCP_FEEDBACK_PS #include "common.hpp" #include "RTC/RTCP/Packet.hpp" namespace Fuzzer { namespace RTC { namespace RTCP { namespace FeedbackPs { void Fuzz(::RTC::RTCP::Packet* packet); } } // namespace RTCP } // namespace RTC } // na...
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; typedef unsigned long long ull; typedef pair<int, int> ipair; class Tree { public: int i = -1; Tre...
/* * Copyright (c) 2021, The OpenThread Authors. * 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 copyright * notice, this ...
#include <iostream> #include <string> #include "myclass.h" using namespace std; int main() { Customer user("Tom", "8IENVO3VN10N4030V3NA0V303NVQ3"); user.printname(); user.printID(); return 0; }
/* * JackAss VST plugin * Copyright (C) 2013-2014 Filipe Coelho <falktx@falktx.com> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in all copies. * * THE SO...
#include "extensions/filters/http/ip_tagging/ip_tagging_filter.h" #include "envoy/api/v3alpha/core/address.pb.h" #include "envoy/config/filter/http/ip_tagging/v3alpha/ip_tagging.pb.h" #include "common/http/header_map_impl.h" #include "common/http/headers.h" #include "absl/strings/str_join.h" namespace Envoy { names...
/* * libjingle * Copyright 2013, Google Inc. * * 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 copyright notice, * this list of conditions and the f...
#include <Cerbi.h> class Sandbox : public Cerbi::Application { public: Sandbox() { } ~Sandbox() { } }; Cerbi::Application* Cerbi::CreateApplication() { return new Sandbox(); }
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include <gtest/gtest.h> #include "clients/meta/FileBasedClusterIdMan.h" #include "common/base/Base.h" #include "common/fs/TempDir.h" namespace nebula { namespace meta { TEST(FileBasedClusterIdMan...
#include "UsingTimerService.h" #include <optional_bundles/logging_bundle/LoggerAdmin.h> #ifdef USE_SPDLOG #include <optional_bundles/logging_bundle/SpdlogFrameworkLogger.h> #include <optional_bundles/logging_bundle/SpdlogLogger.h> #define FRAMEWORK_LOGGER_TYPE SpdlogFrameworkLogger #define LOGGER_TYPE SpdlogLogger #el...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE struct _ACTRL_ACCESS_INFOW { unsigned int fAccessPermission; wchar_t *lpAccessPermissionName; }; END_ATF_NAMESPACE
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#include "perfect_neighbors.hpp" namespace odgi { namespace algorithms { /// Return true if nodes share all paths and the mappings they share in these paths /// are adjacent, in the specified relative order and orientation. bool nodes_are_perfect_path_neighbors(const PathHandleGraph& graph, handle_t left_handle, hand...
// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of //...
#pragma once #include <time.h> #include "exemodel/timespec.hpp" namespace exemodel { timespec_t get_clk_res(int clk_id); timespec_t get_clk_time(int clk_id); void set_clk_time(int clk_id, const timespec_t & tp); template<int clk_id> class clk_info { public: static timespec_t get_res() { return get_clk_res(clk_...
#define PROBLEM "https://judge.yosupo.jp/problem/subset_convolution" #include "../../src/math/subset_convolution.hpp" #include "../../src/math/modint.hpp" #include "../../src/misc/fastio/printer.hpp" #include "../../src/misc/fastio/scanner.hpp" int main() { using mint = modint_998244353; const auto N = in.val<i...
#ifndef ENTT_ENTITY_FWD_HPP #define ENTT_ENTITY_FWD_HPP #include "../core/fwd.hpp" namespace entt { /*! @class basic_registry */ template <typename> class basic_registry; /*! @class basic_view */ template<typename...> class basic_view; /*! @class basic_runtime_view */ template<typename> class basic_runtime_view...
/** * @file exces/func_adaptors/cp.hpp * @brief Adaptors for various functors making them usable with for_each * * Copyright 2012-2014 Matus Chochlik. Distributed under 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) */ #i...
// 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 // "License"); you may...
#include "mex.h" #include "GLTree.cpp" /* the gateway function */ //la chiamata deve essere DeleteGLtree(Tree) void mexFunction( int nlhs,const mxArray *plhs[], int nrhs, const mxArray *prhs[1]) { //dichiarazione variabili GLTREE* Tree; double *ptrtree; if(nrhs!=1){ m...
/* * Copyright (C) 2015 - 2017 Intel Corporation. * 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 copyright notice(s), * this list of c...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The Christian Team developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsdia...
/* * Copyright (C) 2020 Open Source Robotics Foundation * * 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...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #incl...
//===--- SerializedDiagnosticPrinter.cpp - Serializer for diagnostics -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2018-2019, The Qwertycoin developers // // This file is part of Qwertycoin. // // Qwertycoin is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | +---------...
/* * Copyright (c) 2001 Intel Corporation. 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 copyright * notice, this list of c...
/* * Copyright 2017 MapD Technologies, 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 law o...
/* Hello World Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #i...
// Copyright (c) 2018, The X-CASH Project // // 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 copyright notice, this list of // ...
// 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 file. #include "chrome/browser/component_updater/sw_reporter_installer_win.h" #include <string> #include <vector> #include "base/base_paths.h" #include "b...
/* * ConceptNetEdge.cpp * * Created on: Feb 23, 2017 * Author: stefan */ #include "containers/ConceptNetEdge.h" #include "containers/ConceptNetConcept.h" #include <sstream> #include <string> namespace kbcr { ConceptNetEdge::ConceptNetEdge(QString id, QString language, std::shared_ptr<ConceptNetConcept> ...
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Dinero Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "validation.h" #include "messagesigner.h...
/* Copyright 2020 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 applicable law or a...
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2019, ITU/ISO/IEC * All rights reserve...
#include "EpisodeListView.h" #include "SubscriptionColumn.h" #include "MyColumnTypes.h" #include <Box.h> #include <Catalog.h> #include <ControlLook.h> #include <ScrollBar.h> #include <StringFormat.h> #include <Window.h> #include "EpisodeListItem.h" #include "FileStatusColumn.h" #include "Colors.h" #include "StatusVie...
/*! * Copyright (c) 2017 by Contributors * \file opencl_device_api.cc */ #include "./opencl_common.h" #if TVM_OPENCL_RUNTIME #include <tvm/runtime/registry.h> #include <dmlc/thread_local.h> namespace tvm { namespace runtime { namespace cl { const std::shared_ptr<OpenCLWorkspace>& OpenCLWorkspace::Global() { s...
/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
/* * Copyright 2009-2017 Alibaba Cloud 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...
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under 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) #ifndef SGE_RUCKSACK_MINIMUM_SIZE_FWD_HPP_INCLUDED #define SGE_RUCKSACK_MINIMUM_SIZE_FWD_HPP_INCLUD...
#include "db.h" #include <stdlib.h> using namespace std; void CAddrInfo::Update(bool good) { uint32_t now = time(NULL); if (ourLastTry == 0) ourLastTry = now - MIN_RETRY; int age = now - ourLastTry; lastTry = now; ourLastTry = now; total++; if (good) { success++; ourLastSuccess = now; } ...