text
stringlengths
5
1.04M
// Boost.Geometry (aka GGL, Generic Geometry Library) // // Copyright (c) 2012-2015 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2013, 2014. 2015. // Modifications copyright (c) 2013-2015, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on ...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // ---------------------------------------------------------------------------- // "THE BEER-WARE LICENSE" (Revision 42): // <ztn@zurreal.com> wrote this fi...
//Call_By_Reference.cpp //Demonstrates Call by Reference #include <iostream> using namespace std; int main() { void intfrac(float, float&, float&); float number, intpart, fracpart; do { cout << "\nEnter a real nuumber: "; cin >> number; intfrac(number, intpart...
#include "DB.h" #include <QSqlDatabase> #include <QSqlQuery> #include <QSqlError> #include <QVariant> #include <QException> #include "DatabaseManager.h" DB::DB() { } bool DB::createDatabase() { try { QSqlDatabase db; CDatabaseManager& dbMgr = CDatabaseManager::GetInstance()...
// 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 "content/browser/gpu/gpu_process_host_ui_shim.h" #include <algorithm> #include "base/bind.h" #include "base/debug/trace_event.h" #include "...
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
#include "ClassicFEZoneWriter.h" #include "checkPercentDone.h" #include "AltTecUtil.h" #include "ItemSetIterator.h" #include "NodeMap.h" #include "writeValueArray.h" #include "ClassicZoneFileLocations.h" namespace tecplot { namespace ___3933 { ClassicFEZoneWriter::ClassicFEZoneWriter( ItemSetIterator& varI...
// Copyright (c) 2014 The Bitcoin Core developers // Copyright (c) 2014-2015 The XCL developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "primitives/transaction.h" #include "main.h" #include <boost/test/unit...
#ifndef AGGRO_DEQUE_TEST #define AGGRO_DEQUE_TEST #include "deque.hpp" #include <deque> inline void aggro_test_deque() { aggro::deque<size_t, 4ull> sizes; for (auto i = 0ull; i < 1000ull; ++i) { sizes.push_front(i); sizes.push_back(i); if (sizes.size() > 15ull) { sizes.pop_back(); sizes.pop_front()...
#include "ChristmasEffect.h" #include "Support.h" #include "Constants.h" // The normal, static color of the LEDs #define DEFAULT_R 50 #define DEFAULT_G 0 #define DEFAULT_B 0 // The brighest twinkle color #define TWINKLE_R 255 #define TWINKLE_G 70 #define TWINKLE_B 30 // The timing of a twinkle #define FADE_UP_DURATI...
$LICENSE$ #include "$package_name$/$file_name$.hpp" #include <limits> #include <memory> #include <string> #include <vector> #include "controller_interface/helpers.hpp" namespace $package_name$ { $ClassName$::$ClassName$() : controller_interface::ControllerInterface() {} CallbackReturn $ClassName$::on_init() { tr...
// // Created by mocurin on 30.11.2020. // #include "header.hpp"
// Copyright 2010-2016, 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...
#ifndef STAN_MCMC_HMC_HAMILTONIANS_DENSE_E_METRIC_HPP #define STAN_MCMC_HMC_HAMILTONIANS_DENSE_E_METRIC_HPP #include <stan/callbacks/logger.hpp> #include <stan/math/prim/mat.hpp> #include <stan/mcmc/hmc/hamiltonians/base_hamiltonian.hpp> #include <stan/mcmc/hmc/hamiltonians/dense_e_point.hpp> #include <boost/ra...
#include "pch.h" #include "SceneRenderer.h" #include "GraphicsCommon.h" #include "CommandContext.h" #include "SamplerManager.h" #include "ColorBuffer.h" #include "Renderer.h" #include "RendPrim.h" namespace pbe { namespace { enum class BaseDescriptor : uint { cbPass = 0, cbModel = 1, texDepth = 2, ...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/cognito-idp/model/AdminDeleteUserAttributesResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> ...
// Copyright © 2017-2021 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "Transaction.h" #include "ABI/Function.h" #include...
#include <ctype.h> #include <algorithm> #include "CCDirector.h" #include "platform/CCFileUtils.h" #include "CCScene.h" #include "CCTextureCache.h" #include "CCSpriteFrameCache.h" #include "CCBReader.h" #include "CCNodeLoader.h" #include "CCNodeLoaderLibrary.h" #include "CCNodeLoaderListener.h" #include "CCBMemberVari...
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> v = {8,6,7,9}; for(int i=0; i<v.size(); ++i){ cout<<v[i]<<" "; } cout<<endl; vector<int> :: iterator it; it = v.begin(); for(it=v.begin(); it!=v.end(); ++it){ cout<<(*it)<<endl; } vector<pair<int...
#pragma once #include "../base_def.hpp" namespace lol { struct LolLobbyTeamBuilderLobbyInvitation { json invitationMetaData; }; inline void to_json(json& j, const LolLobbyTeamBuilderLobbyInvitation& v) { j["invitationMetaData"] = v.invitationMetaData; } inline void from_json(const json& j, LolLobb...
#include<bits/stdc++.h> #include<limits.h> #define r(i,n) for(long long int i=0;i<n;i++) using namespace std; int main() { //No. of vertex and edges in the graph int n,e,e1,e2; cin>>n>>e; //Using adjacency list to represent graph vector < vector <int> > v(n); for(int i=0;i<e;i++) { cin>>e1>>e2; ...
/* * File: view.hpp * Project: Leviathan * Version: 0.1 * File Created: 09/04/2020 01:58 * Author: Alexandre THOMAS (alexandre.thomas@isen-ouest.yncrea.fr) * ----- * Last Modified: 18/04/2020 16:10 * Modified By: Alexandre THOMAS (alexandre.thomas@isen-ouest.yncrea.fr) * ----- * Copyright (c) 2020 - Alexandre...
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
/// @ref core /// @file glm/detail/type_vec3.hpp #pragma once #include "qualifier.hpp" #if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR # include "_swizzle.hpp" #elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION # include "_swizzle_func.hpp" #endif #include <cstddef> namespace glm { template<typename T, qualifier Q> s...
#include <faasm/faasm.h> #include <pthread.h> #include <stdio.h> int globalVar = 10; #define SUCCESS (void*)100 #define FAILURE (void*)101 // Effects of zygote should be seen by main function by default FAASM_ZYGOTE() { globalVar = 20; return 0; } // Thread should see global changes made in the main thread...
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "transformations/tensor_iterator_transformations/unroll_tensor_iterator.hpp" #include "transformations/utils/utils.hpp" #include <memory> #include <vector> #include <ngraph/graph_util.hpp> #include <ngraph/opsets/opset4.hpp> #...
// Copyright 2009 Matthew Cox and Earl Kinney // // 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 3 of the License, or // (at your option) any later version. // // This program ...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
// Generated by Haxe 3.4.7 #include <hxcpp.h> #ifndef INCLUDED_massive_munit_IAdvancedTestResultClient #include <massive/munit/IAdvancedTestResultClient.h> #endif #ifndef INCLUDED_massive_munit_ITestResultClient #include <massive/munit/ITestResultClient.h> #endif namespace massive{ namespace munit{ static ::String ...
/* * gucefCORE: GUCEF module providing O/S abstraction and generic solutions * Copyright (C) 2002 - 2007. Dinand Vanvelzen * * 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 Foundati...
// 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 <stdint.h> #include "base/notreached.h" #include "base/time/time.h" #include "build/build_config.h" #include "ui/events/event_utils.h" #incl...
#include "qtfirebase_plugin.h" #if defined(QTFIREBASE_BUILD_ALL) || defined(QTFIREBASE_BUILD_ANALYTICS) #include "src/qtfirebaseanalytics.h" # endif // QTFIREBASE_BUILD_ANALYTICS #if defined(QTFIREBASE_BUILD_ALL) || defined(QTFIREBASE_BUILD_MESSAGING) #include "src/qtfirebasemessaging.h" # endif // QTFIREBASE_BUILD_M...
//=== BuiltinFunctionChecker.cpp --------------------------------*- C++ -*-===// // // The LLVM37 Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------...
/*************************************************************************** * Copyright (C) by GFZ Potsdam * * * * You can redistribute and/or modify this program under the * * terms o...
/** * Copyright (c) 2017-present, 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 ...
//================================================================================================= /*! // \file src/mathtest/dvecdvecmin/VHaV6b.cpp // \brief Source file for the VHaV6b dense vector/dense vector minimum math test // // Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved // // This file is...
/* Copyright 2019 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...
#ifndef RENDERBOI__WINDOW__GLFW3__GLFW3_GAMEPAD_MANAGER_HPP #define RENDERBOI__WINDOW__GLFW3__GLFW3_GAMEPAD_MANAGER_HPP #include <atomic> #include <unordered_map> #include <vector> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #undef GLFW_INCLUDE_NONE #include "../enums.hpp" #include "../gamepad/gamepad_manager....
#include "includes/kratos_flags.h" #include "custom_elements/embedded_fluid_element_discontinuous.h" #include "custom_elements/qs_vms.h" #include "custom_elements/weakly_compressible_navier_stokes.h" #include "utilities/element_size_calculator.h" #include "custom_utilities/embedded_discontinuous_data.h" #include "cus...
// Fill out your copyright notice in the Description page of Project Settings. #include "MenuGameMode.h" #include "MenuHUD.h" AMenuGameMode::AMenuGameMode() { HUDClass = AMenuHUD::StaticClass(); }
class Solution { public: int reachableNodes(vector<vector<int>>& edges, int maxMoves, int n) { vector<vector<pair<int, int>>> g(n); for(const vector<int>& EDGE: edges){ int x = EDGE[0]; int y = EDGE[1]; int w = EDGE[2]; g[x].push_back({y, w}); ...
#include "murk/crypto/awful.hpp" namespace murk::crypto { namespace xor_single { uint8_t crack(data_const_ref ctext, const dist_t& expected) { using namespace flow_ops; auto score_key = murk::in<uint8_t>(crypt < ctext) -> then(murk::cast_span<uint8_t, murk::crypto::token_t>) ...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "CarPawn.h" #include "CarWheelFront.h" #include "CarWheelRear.h" #include "Components/SkeletalMeshComponent.h" #include "common/common_utils/Utils.hpp" #include "Components/TextRenderComponent.h" #include "Components/AudioComponent.h" #include "Soun...
#include <glog/logging.h> #include <cstdio> #include <ctime> #include "caffe/common.hpp" #include "caffe/util/rng.hpp" namespace caffe { shared_ptr<Caffe> Caffe::singleton_; // random seeding int64_t cluster_seedgen(bool sync) { int64_t s, seed, pid; FILE* f = fopen("/dev/urandom", "rb"); if (f && fread(&seed...
#if !defined (SYNCHLIB_BUILD_DLL) #define SYNCHLIB_BUILD_DLL #endif /* SYNCHLIB_BUILD_DLL */ #include "ace/Log_Msg.h" #include "Benchmark_Base.h" #if defined (ACE_HAS_THREADS) // Initialize the static variables. /* static */ Benchmark_Base::Benchmark_Base (int type) : benchmark_type_ (type) { } int Benchmark_Ba...
// 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_OPENGL_WGL_VISUAL_CHOOSE_FORMAT_HPP_INCLUDED #define SGE_OPENGL_WGL_VISUAL_CHOOSE_FORMA...
/* SPWFSA01 Device * Copyright (c) 2015 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include "nms.h" #include "ml_nms.h" #include "ROIAlign.h" #include "ROIPool.h" #include "SigmoidFocalLoss.h" #include "deform_conv.h" #include "deform_pool.h" PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { m.def("nms", &nms, "non-maximum suppressi...
#include <Parsers/parseQuery.h> #include <Parsers/ParserQuery.h> #include <Parsers/ASTInsertQuery.h> #include <Parsers/Lexer.h> #include <Parsers/TokenIterator.h> #include <Common/StringUtils/StringUtils.h> #include <Common/typeid_cast.h> #include <Common/UTF8Helpers.h> #include <common/find_symbols.h> #include <IO/Wri...
/* * Copyright (c) 2018, The MarketCash Developers. * Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers. * * This file is part of MarketCash. * * This file is subject to the terms and conditions defined in the * file 'LICENSE', which is part of this source code package. */ #i...
// 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 "chromeos/dbus/ibus/ibus_engine_service.h" #include <map> #include "base/bind.h" #include "base/message_loop/message_loop.h" #include "base/...
// // Copyright 1998-2012 Jeff Bush // // 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 agr...
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization // ...
/** * @author github.com/akappakappa * */ #include <bits/stdc++.h> // Include every standard library using namespace std; #define VALUE(x) cerr << "The value of " << #x << " is " << x << endl inline void OPEN(string i, string o) { freopen(i.c_str(), "r", stdin); freopen(o.c_str(), "w", stdout); } int main...
/* * Copyright Andrey Semashev 2007 - 2014. * 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) */ /*! * \file attributes.hpp * \author Andrey Semashev * \date 13.07.2009 * ...
/** * @file security.hpp * @author Jichan (development@jc-lab.net / http://ablog.jc-lab.net/ ) * @date 2019/07/19 * @copyright Copyright (C) 2019 jichan.\n * This software may be modified and distributed under the terms * of the Apache License 2.0. See the LICENSE file for details. */ #pra...
/* * Copyright (C) 2013 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 conditio...
/****************************************************************************** The MIT License(MIT) Embedded Template Library. https://github.com/ETLCPP/etl http://www.etlcpp.com Copyright(c) 2016 jwellbelove Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
/** * \file PnlWznmTcoRec_evals.cpp * job handler for job PnlWznmTcoRec (implementation of availability/activation evaluation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE using namespace std; using nam...
//============================================================================ // Name : // Author : Avi // Revision : $Revision: #16 $ // // 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/license...
/* * Copyright 2001-2006 Adrian Thurston <thurston@complang.org> */ /* This file is part of Ragel. * * Ragel 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 * ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Soneet developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "intro.h" #include "ui_intro.h" #include "guiutil.h" #include "uti...
// // $Id$ // // // Original author: Austin Keller <atkeller .@. uw.edu> // // 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 // ...
// Copyright (c) 2011-2019 The GoldBCR Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/openuridialog.h> #include <qt/forms/ui_openuridialog.h> #include <qt/guiutil.h> #include <qt/sendcoinsrecipient...
// 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. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8WebGLContextEventInit.h" #include ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include <initializer_list> // Including type: RootMotion.FinalIK.IKSolver #include "Roo...
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #ifndef TURI_IS_POD_HPP #define TURI_IS_POD_HPP #include <type_traits> namespace turi { /** \ing...
/* Copyright (c) DataStax, 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 in writing, so...
/* * (C) Copyright 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/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
// Copyright (C) 2016 National ICT Australia (NICTA) // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // ----------------------------------------------------------...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
// Copyright (c) 2001-2011 Hartmut Kaiser // // 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) #if !defined(BOOST_SPIRIT_SUPPORT_LIMITS_MAR_26_2011_0833PM) #define BOOST_SPIRIT_SUPPORT_LIMITS_MAR_26_2011_0833PM ...
/**@file ***************************************************************************** Implementations of various methods used within FRI ***************************************************************************** * @author This file is part of libiop (see AUTHORS) * @copyright MIT license (see LICENSE file...
#include "pch.h" #include "trace.h" #include "Settings.h" TRACELOGGING_DEFINE_PROVIDER( g_hProvider, "Microsoft.PowerToys", // {38e8889b-9731-53f5-e901-e8a7c1753074} (0x38e8889b, 0x9731, 0x53f5, 0xe9, 0x01, 0xe8, 0xa7, 0xc1, 0x75, 0x30, 0x74), TraceLoggingOptionProjectTelemetry()); void ...
//===--- TypeCheckProtocolInference.cpp - Associated Type Inference -------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__char_connect_socket_w32CreateFile_16.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-16.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: connect_socket Read ...
#ifndef TIN_NETWORK_BSDSOCKET_EVENT_HPP #define TIN_NETWORK_BSDSOCKET_EVENT_HPP #include "../../utils/Event.hpp" namespace tin { namespace network { namespace bsdsocket { class ManagerVisitor; struct Event: public tin::utils::Event<tin::network::bsdsocket::ManagerVisitor> { virtual void accept(ti...
// Copyright 2017 Lewis Baker // // 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, modify, merge, publish, distr...
/* YOU CAN ALSO DEFINE SOME GENERIC FUNCTIONS AS WELL AS UTILITY FUNCTIONS WHICH WILL HELP YOU MINIMISE REPETITIVE CODE ! Here is an example: template <typename T> T findValueByKey(std::string const &keyFilter, std::string const &filename) { std::string line, key; T value; std::ifstream stream(kProcDirectory +...
// Copyright Carl Philipp Reh 2009 - 2021. // 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 FCPPT_FROM_STD_WSTRING_HPP_INCLUDED #define FCPPT_FROM_STD_WSTRING_HPP_INCLUDED #include <...
/* * Author: Jon Trulson <jtrulson@ics.com> * Copyright (c) 2015-2016 Intel Corporation. * * Thanks to Adafruit for supplying a google translated version of the * Chinese datasheet and some clues in their code. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software a...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#include "stdafx.h" #include "DXFramework.h" #include "TextureLoader.h" #include "ShaderLoader.h" #include "ModelLoader.h" #include "LightLoader.h" #include "SpriteLoader.h" #include "ParticleEmitterLoader.h" #include "TextLoader.h" #include <d3d11.h> #include <memory> #include <Matrix4x4.hpp> #include <Vector4.hpp> #...
// strin.cpp -- formatted reading from a char array #include <iostream> #include <sstream> #include <string> int main() { using namespace std; string lit = "It was a dark and stormy day, and " " the full moon glowed brilliantly. "; istringstream instr(lit); // use buf for input string...
/* * Copyright (C) 2012 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 VIENNACL_LINALG_DETAIL_SPAI_QR_HPP #define VIENNACL_LINALG_DETAIL_SPAI_QR_HPP /* ========================================================================= Copyright (c) 2010-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, ...
#ifndef PROTON_TYPES_FWD_HPP #define PROTON_TYPES_FWD_HPP /* * * 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 ...
#include "Processor.h" #include <cassert> using namespace std; using namespace ramulator; Processor::Processor(const Config& configs, vector<const char*> trace_list, function<bool(Request)> send_memory, MemoryBase& memory) : ipcs(trace_list.size(), -1), early_exit(configs.is_early_exit()), no_...
/**************************************************************************************** ** Program Filename: GrandPrize.hpp ** Author: Chris Kearns ** Date: 3/13/2016 ** Description: Header file for Oscillator.cpp. ****************************************************************************************/ #ifndef GRAND...
#define UNIT_TESTING #include "../structure.h" #include "../errors.h" #include "catch.h" using namespace simplex; TEST_CASE("boolean [structure]") { std::vector<bool> bools = { false, true }; for (bool b : bools) { Structure s(b); CHECK(s.kind() == StructureKind::boolean); CHECK(s.boolean() == b); ...
// // rnode.h // shmht // // Created by Wang Zhang on 3/22/20. // Copyright © 2020 Wang Zhang. All rights reserved. // #include <string> #include <iostream> #include <tuple> #ifndef rnode_h #define rnode_h typedef std::tuple<int32_t, uint64_t> pid_st; enum RNodeStatus { NONEXIST=0, DELETED, EXIST };...
// Copyright (c) 2016-2018 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 <amount.h> #include <policy/feerate.h> #include <test/test_deepcoin.h> #include <boost/test/unit_test.hpp> BOOST_F...
// // 1.twosum.cpp // leetcode // // Created by Yuebin Yang on 2017/1/20. // Copyright © 2017 year yuebin. All rights reserved. // // Question: // Given an array of integers, return indices of the two numbers such that they add up to a specific target. // You may assume that each input would have exactly one sol...
//===---- CGObjC.cpp - Emit LLVM Code for Objective-C ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/memory_manager/internal_allocation_storage.h" #include "opencl/source/command_queue/gpgpu_walker.h" #include "opencl/source/command_queue/hardware_interface.h" #include "opencl/source/helpers...
/*Exercise 3 - Repeatition Convert the C program given below which calculates the Factorial of a number that you input from the keyboard to a C++ program. Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/ #include <iostream> using namespace std; int main() { int n...
#ifndef GAME_SERVER_GAMECONTROLLER_H #define GAME_SERVER_GAMECONTROLLER_H #include <base/vmath.hpp> /* Class: Game Controller Controls the main game logic. Keeping track of team and player score, winning conditions and specific game logic. */ class GAMECONTROLLER { vec2 spawn_points[3][64]; int ...
#if !defined(PUGIXML_NO_XPATH) && ! defined( PUGIXML_NO_XPATH_HPP) #define PUGIXML_NO_XPATH_HPP namespace pugi{ // XPath query return type enum xpath_value_type { xpath_type_none, // Unknown type (query failed to compile) xpath_type_node_set, // Node set (xpath_node_set) xpath_type_number, // Number ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-...
#include "Motor.h" #include <Arduino.h> Motor::Motor(int* PWM, int* Direction){ _PWM = PWM; _Direction = Direction; pinMode(PWM[0], OUTPUT); pinMode(PWM[1], OUTPUT); pinMode(Direction[0], OUTPUT); pinMode(Direction[1], OUTPUT); } void Motor::Forward(float rSpeed, float lSpeed){ digitalWrite(_PWM[0], ...