text
stringlengths
7
961k
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 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. #ifdef HAVE_CONFIG_H #include "config/zc...
#include <conio.h> #include <fstream> #include <iostream> #include <sstream> //TEH INCLUDEZ #include <string> #include <stdlib.h> #include <windows.h> using namespace std; struct node //A structure, which contains all the data (int + pointer) for each element (node) in the linked list { int data; //This will cont...
#ifndef AUTOBOOST_THREAD_THREAD_ONLY_HPP #define AUTOBOOST_THREAD_THREAD_ONLY_HPP // thread.hpp // // (C) Copyright 2013 Vicente J. Botet Escriba // // 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) #include...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
#include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <chrono> #include <iostream> #include <filesystem> #include <memory> #include <libutils/rasserts.h> void drawText(cv::Mat img, std::s...
/* Copyright 2006 - 2011 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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "LazyDevSupportManager.h" using std::string; namespace facebook { namespace react { void LazyDevSupportManager::EnsureDevSupportManager() noexcept { if (!m_dsm) m_dsm = std::make_unique<D...
#include <errno.h> #include <fcntl.h> #include <glib.h> #include <netinet/in.h> #include <nvml.h> #include <poll.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ipc.h> #include <sys/mman.h> #include <time.h> #include <unistd.h> #include <algorithm> #include <atomic> #inc...
// Copyright (c) 2013 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/test/chromedriver/alert_commands.h" #include "base/callback.h" #include "base/values.h" #include "chrome/test/chromedriver/chrome/ch...
/* Analogous to Java substring(start, end) where start index is inclusive, end index is exclusive. C++ does not have a substring method which takes in start and end indices. We implement such a method by making use of STL substr(pos, len) method. */ #include <bits/stdc++.h> using namespace std; string substring(stri...
/* * 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 ma...
/* * Copyright 2010-2016 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...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: Valve.VR.IVROverlay #...
#ifndef __CONSOLAS_HPP__ #define __CONSOLAS_HPP__ // This file was generated by codegen.py #include <array> namespace glt { extern std::array<char, 4194580> consolas; } // end namespace glt #endif // __CONSOLAS_HPP__
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "subsystems/SwerveModule.h" #include <frc/geometry/Rotation2d.h> #include <wpi/numbers> #include "Constants.h...
/* Copyright 2021 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...
#include<string> #include<iostream> using namespace std; void findAndReplace(string& s, const string& oldValue, const string& newValue) { int pos = 0; auto n_o = oldValue.size(); auto n_n = newValue.size(); while (pos < (s.size() - n_o)) { if (oldValue == string(s, pos, n_o)) { s.replace(pos, n_o, newValue); ...
#pragma once #include <chrono> #include <map> #include <set> #include <string> #include <vector> #include <protozero/pbf_reader.hpp> #include <protozero/pbf_writer.hpp> #include <mapnik/box2d.hpp> #include <mapnik/box2d_impl.hpp> #include <mapnik/geometry.hpp> #include <mapnik/unicode.hpp> #include <vector_tile_dat...
#pragma once namespace sim_mob { //Forward Declaration class Node; /** * This class provides base methods for rerouting */ class Reroute { protected: sim_mob::Node * reroutingPoint; public: /** * before starting the reroute */ virtual void preReroute() = 0; /** * called after ending t...
/** * OpenAL cross platform audio library * Copyright (C) 2009 by Chris Robinson. * This library 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 ...
#include <string> #include <iostream> #include "ServerLog.h" #include "HttpTask.h" ServerLog* ServerLog::sm_serverLogPtr = nullptr; extern HttpTask* g_currentTask; ServerLog::ServerLog() { log4cxx::PropertyConfigurator::configure("log4cxx.properties"); m_infoLogger = (log4cxx::Logger::getLogger("server")); m_erro...
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
#pragma once #include <optional> #include <string_view> #include <netinet/in.h> #include <arpa/inet.h> #include <ostream> namespace core { class address_t final { public: using generic_type = sockaddr; using native_type = sockaddr_in; using port_type = uint16_t; enum class known_e : uint32_t ...
/* ///////////////////////////////////////////////////////////////////////// * File: src/backends/bec.fprintf.cpp * * Purpose: Implementation for the fprintf() back-end * * Created: 26th June 2005 * Updated: 25th June 2020 * * Home: http://www.pantheios.org/ * * Copyright (c) 2019-20...
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2019 The Peercoin developers // Copyright (c) 2019 The Stronghands developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <map> #if OPENSS...
#include "common/http/access_log/access_log_impl.h" #include <cstdint> #include <string> #include "envoy/filesystem/filesystem.h" #include "envoy/http/header_map.h" #include "envoy/runtime/runtime.h" #include "envoy/upstream/upstream.h" #include "common/common/assert.h" #include "common/common/utility.h" #include "c...
/* * File: StatNotification.cpp * Author: rmartins * * Created on April 30, 2013, 12:16 AM */ #include "StatNotification.h" StatNotification::StatNotification() { } StatNotification::StatNotification(const StatNotification& orig) { } StatNotification::~StatNotification() { }
// // impl/write_at.hpp // ~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 ASIO_IMPL_WRITE_AT_HPP #d...
// Copyright 2015 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 "ui/events/android/events_jni_registrar.h" #include "base/android/jni_android.h" #include "base/android/jni_registrar.h" #include "base/macros.h...
// Copyright (c) 2012, Robert Escriva // 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 c...
//================================================================================================= /*! // \file src/mathtest/dmatsmatmult/HDaSCb.cpp // \brief Source file for the HDaSCb dense matrix/sparse matrix multiplication math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // Thi...
// Copyright (c) 2012 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 "base/system/sys_info.h" #include <algorithm> #include "base/base_switches.h" #include "base/bind.h" #include "base/callback.h" #include "b...
/* * Copyright 2003-2008, Marcus Overhagen. All rights reserved. * Copyright 2005-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * * Distributed under the terms of the MIT License. */ #include <string.h> #include <KernelExport.h> #define __HAIKU_PCI_BUS_MANAGER_TESTING 1 #include <PCI.h> #incl...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com extern const unsigned short g_FXCMAP_GB1CID2Unicode_5[30284] = { 0xFFFD, ...
#include <iostream> #include <string> using namespace std; class Base{ public: Base(int a = 0): m_a(a){ } int get_a() const{ return m_a; } virtual void func() const { } protected: int m_a; }; class Derived: public Base{ public: Derived(int a = 0, int b = 0): Base(a), m_b(b){ } int get_b() const { retur...
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. // Use, modification and distribution are 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). // // See http://www.boost.org/libs/type_trait...
#include "FWCore/Framework/interface/EDProducer.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "DataFormats/PatCandidates/interface/Electron.h" #include "DataFormats/Common/interface/ValueMap.h" clas...
// 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 typedef int (WINAPIV *ATLCOMPARESTRINGW)(unsigned int, unsigned int, const wchar_t *, int, const wchar_t *, int); END_ATF_NAMESPACE
#include <percy/percy.hpp> #include <percy/io.hpp> #define MAX_TESTS 256 using namespace percy; using kitty::dynamic_truth_table; #if 0 void gen_check_equivalence(int nr_in, bool full_coverage) { dag<2> g; unbounded_dag_generator<sat_solver*> ugen; auto synth1 = new_std_synth(); auto synth2 = new_da...
// Copyright (c) 2016-2021 Daniel Frey and Dr. Colin Hirsch // Please see LICENSE for license or visit https://github.com/taocpp/taopq/ #ifndef TAO_PQ_CONNECTION_POOL_HPP #define TAO_PQ_CONNECTION_POOL_HPP #include <memory> #include <string> #include <string_view> #include <utility> #include <tao/pq/internal/pool.hp...
// Copyright 2010-2011, Google Inc. // 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 condit...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <CppUnitTest.h> #include <RuntimeOptions.h> #include <Test/WebSocketServer.h> #include "TestRunner.h" using namespace Microsoft::React::Test; using namespace Microsoft::VisualStudio::CppUnitTestFramework; using facebook::react::RCTL...
// Copyright 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 "ash/system/unified/unified_system_tray_controller.h" #include "ash/capture_mode/capture_mode_feature_pod_controller.h" #include "ash/constants/...
//===- PowerPCSubtarget.cpp - PPC Subtarget Information -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// (C) Copyright Gennadiy Rozental 2001-2008. // 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/test for the library home page. // Boost.Runtime.Param #include <boost/test/u...
#include <stdio.h> #include <stl/algorithm> using namespace stl; int main () { printf ("Results of median_test:\n"); int v1 [3] = {0,1,2}; do printf ("(%d,%d,%d) %d\n",v1 [0],v1 [1], v1 [2],median (v1 [0],v1 [1],v1 [2])); while (next_permutation (v1,v1+3)); return 0; }
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details of these ...
#include "script_component.hpp" class CfgPatches { class ADDON { name = COMPONENT_NAME; units[] = {}; weapons[] = {}; requiredVersion = REQUIRED_VERSION; requiredAddons[] = {"vtx_UH60"}; author = ""; authors[] = {""}; VERSION_CONFIG; }; }; #inclu...
// Copyright (C) 2020 T. Zachary Laine // // 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) // Warning! This file is autogenerated. #include <boost/text/normalize_string.hpp> #include <boost/text/transcode_view.hp...
#include "file_system.hpp" namespace msrv { namespace file_io { std::vector<uint8_t> readToEnd(FileHandle::Type handle, int64_t maxBytes) { size_t bytesToRead = static_cast<size_t>(queryInfo(handle).size); if (maxBytes >= 0) bytesToRead = std::min(bytesToRead, static_cast<size_t>(maxBytes)); std...
/** * Copyright 2019-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 applicabl...
// // Copyright (C) 2004-2006, Maciej Sobczak // Copyright (C) 2017-2019, FlightAware LLC // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "ModulusAnimatedNode.h" #include "NativeAnimatedNodeManager.h" namespace react { namespace uwp { ModulusAnimatedNode::ModulusAnimatedNode( int64_t tag, const folly::dynamic &config, c...
#645. [2014-11-05 - 18:40:21] O harta este data intr-o matrice n*m in care valorile 1 reprezinta uscatul, iar valorile 0 reprezinta apa. Doua zone de uscat se considera ca fac parte din acelasi continent daca sunt vecine pe linie sau pe coloana. Determinati numarul de continente de pe harta si care este aria (numarul d...
#include "envoy/matcher/matcher.h" #include "common/matcher/field_matcher.h" #include "common/matcher/matcher.h" #include "test/common/matcher/test_utility.h" #include "gtest/gtest.h" namespace Envoy { namespace Matcher { class FieldMatcherTest : public testing::Test { public: std::vector<FieldMatcherPtr<TestDat...
#include <Tanker/Log/Log.hpp> #include <Tanker/Log/LogHandler.hpp> #include <Tanker/Log/Record.hpp> namespace Tanker::Log { void format(Log::Level level, char const* cat, char const* file, std::uint32_t line, fmt::string_view format, fmt::format_args args) { ...
/**************************************************************************** * * (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. * *************************************...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
// // Simulate the readout waveform for each sensors from CaloShowerROs. // Individual photo-electrons are generated for each readout, including photo-statistic fluctuations // Simulate digitization procedure and produce CaloDigis. // // #include "art/Framework/Core/EDProducer.h" #include "art/Framework/Core/ModuleMac...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
/*************************************************************************** ** ** Copyright (C) 2012 Research In Motion ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercial Qt ...
#include<iostream> using namespace std; void main() { }
#include <Parsers/ParserSystemQuery.h> #include <Parsers/ASTSystemQuery.h> #include <Parsers/CommonParsers.h> #include <Parsers/ExpressionElementParsers.h> #include <Parsers/ASTLiteral.h> #include <Parsers/parseDatabaseAndTableName.h> namespace ErrorCodes { extern const int NOT_IMPLEMENTED; } namespace DB { b...
/*********************************************************\ * File: BodyMesh.cpp * * * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) * * This file is part of PixelLight. * * Permission is hereby granted, free of charge, to any person obtaining a co...
// Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2018, The Sevabit 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 mus...
#include <dis7/DataQueryPdu.h> using namespace DIS; DataQueryPdu::DataQueryPdu() : SimulationManagementFamilyPdu(), _requestID(0), _timeInterval(0), _numberOfFixedDatumRecords(0), _numberOfVariableDatumRecords(0) { setPduType( 18 ); } DataQueryPdu::~DataQueryPdu() { _fixedDatums.clear(); ...
/*************************************************************************/ /* file_dialog.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "VKTexture3D.h" #include "VKBase.h" #include "Program/Log.h" #include "VKBuffer.h" #include "include/half.hpp" #include <iostream> namespace Engine { VKTexture3D::VKTexture3D(VKBase *base, unsigned int width, unsigned int height, unsigned int depth, const TextureParams &params, const void *data) { AddRe...
/// \file ExplicitAdvect.cpp /// \brief Explicit (BD) solver for advection equation /// \date Aug 22, 2016 /// \author Severt /// \copyright <2015-2020> Forschungszentrum Juelich GmbH. All rights reserved. #include "ExplicitAdvect.h" #include "../utility/Parameters.h" #include "../boundary/BoundaryController.h...
#include "selfdrive/camerad/cameras/camera_qcom2.h" #include <fcntl.h> #include <poll.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <unistd.h> #include <atomic> #include <cassert> #include <cerrno> #include <cmath> #include <cstdio> #include <cstring> #include "media/cam_defs.h" #include "media/cam_isp.h"...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // // System includes ...
// stdafx.cpp : source file that includes just the standard includes // win32_com.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/** SemiSpace Policy class. * Implements Policy interface. */ #ifndef GVMT_INTERNAL_SEMISPACE_H #define GVMT_INTERNAL_SEMISPACE_H #include <deque> #include "gvmt/internal/gc.hpp" #include "gvmt/internal/gc_templates.hpp" #include "gvmt/internal/memory.hpp" class SemiSpace { /** Two semi-spaces, each bu...
/** * @file tsdf_bridge.cpp * @author Julian Gaal * @date 2020-09-29 */ #include <omp.h> #include <iterator> #include <ros/ros.h> #include <bridge/from_trenz/tsdf_bridge.h> #include <util/constants.h> #include <bridge/util.h> using namespace fastsense::bridge; TSDFBridge::TSDFBridge( ros::NodeHandle& n, ...
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "codegen/il2cpp-codegen.h" #include "il2cpp-object-internals.h" // Syste...
/** * \file Execute.cc * \brief Implementation of the Execute class * \author Julien Henry */ #include <fstream> #include "llvm/IR/Module.h" #include "llvm/IR/LLVMContext.h" #include "llvm/Pass.h" #include "llvm/PassManager.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/Bitcode/ReaderWriter.h...
#include <iostream> #include <vector> #include <math.h> using namespace std; constexpr int f(int d, int x) { return d == 0 ? x : (x % 2 == 1 ? f(d - 1, 3 * x + 1) : f(d - 1, x / 2)); } vector<long double> randomVector(); int main() { long double arr[f(5, 50)]; for (int i = 0; i < sizeof(arr) / sizeof(*arr); ++i) ...
/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the qmake application of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL...
#include "vehicle/router.h" #include "vehicle/vehicle.h" #include "flow/route.h" #include "roadnet/roadnet.h" #include <limits> #include <queue> #include <set> namespace CityFlow { Router::Router(const Router &other) : vehicle(other.vehicle), route(other.route), anchorPoints(other.anchorPoints), ...
/* //@HEADER // ***************************************************************************** // // group_collective.cc // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of C...
/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman Copyright (c) 2009 Christopher Schmidt 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 (c) 1999-2003 Jaakko Jarvi Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2006 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at ht...
#include <nano/crypto_lib/random_pool.hpp> #include <nano/lib/config.hpp> #include <nano/lib/numbers.hpp> #include <nano/secure/blockstore.hpp> #include <nano/secure/common.hpp> #include <crypto/cryptopp/words.h> #include <boost/endian/conversion.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/var...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
/*! @file models/sine/src/SineLagCompensation.cpp @ingroup TrickHLAModel @brief This class provides lag compensation for the sine wave object. @copyright Copyright 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. No copyright is claimed in the Unit...
// 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 "ash/wm/maximize_mode/maximize_mode_controller.h" #include <utility> #include "ash/accelerators/accelerator_controller.h" #include "ash/acceler...
// // Created by 王泽夫的小小笔记本 on 2019-10-02. // #include <iostream> using namespace std; class polynomial{ friend polynomial& operator+(const polynomial& a, const polynomial& b); int node[10000]{0}; int maxpower; public: polynomial():maxpower(-1){} void add(int coeff, int power); //void check(); ...
#include <iostream> using namespace std; void test(int x) { try { if (x > 0) throw x; else throw 'x'; } catch(char) { cout << "Catch a integer and that integer is:" << x; } } int main() { cout << "Testing multiple catches\n:"; test(10); test(0); }
// sciplot - a modern C++ scientific plotting library powered by gnuplot // https://github.com/sciplot/sciplot // // Licensed under the MIT License <http://opensource.org/licenses/MIT>. // // Copyright (c) 2018 Allan Leal // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this soft...
/***************************************************************************** Copyright (c) 2001 - 2011, The Board of Trustees of the University of Illinois. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#include <iostream> #include <string> #include <fstream> #include <map> int main () { std::ifstream myfile; myfile.open("../tomls/tree.toml"); if (myfile.fail()) std::cout << "not found" << std::endl; std::string s; std::map < std::string, std::map <std::string,std::string> > res; std::string header; ...
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Registers group namespace PwmaPpr{ ///<PWM Pre-scalar Register using Addr = Register::Address<0x40040000,0x00000000,0x00000000,unsigned>; ///Clock pre-scalar 0(PWM counter 0 & 1 for group A and PWM counter 4 & 5 for group B)Clock ...
/* ____ ____ ___ ____ ____ ____ ___ 6MMMMb `MM( )M' `MM' 6MMMMb\`MM( )M' 8P Y8 `MM. d' MM 6M' ` `MM. d' 6M Mb __ ____ ____ ___ __ `MM. d' MM MM ...
// Copyright (2013) JDSU. All rights reserved. #include <log4cxx/logger.h> #include "xtreme/common/dimension/rac.h" #include "xtreme/common/parsed_frame.h" #include "xtreme/cpp/param_value_types.h" #include "xtreme/common/debug.h" namespace { log4cxx::LoggerPtr g_logger(log4cxx::Logger::getLogger("xtreme.common.Dime...
// Copyright (c) 2011-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <fs.h> #include <qt/intro.h> #include <qt/form...
// Copyright (c) Lawrence Livermore National Security, LLC and other Conduit // Project developers. See top-level LICENSE AND COPYRIGHT files for dates and // other details. No copyright assignment is required to contribute to Conduit. //----------------------------------------------------------------------------- ///...
/* Noctis galactic guide / DELE command. GOES Net Module. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <conio.h> #include <dos.h> #include <io.h> char msgbuffer[40]; char *divider = "&&&&&&&&&&&&&&&&&&&&&"; void msg (char *string) { int x; strcpy (msgbuffer, string); msgbuffer[21] =...
// ============================================================================= // // ztd.text // Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC // Contact: opensource@soasis.org // // Commercial License Usage // Licensees holding valid commercial ztd.text licenses may use this file in // accorda...