text
stringlengths
5
1.04M
/* * Copyright (c) 2020 - 2021 Advanced Micro Devices, 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 r...
// // detail/win_fenced_block.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2019 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) // #if...
// // Created by DefTruth on 2021/6/26. // #include "lite/lite.h" static void test_default() { std::string onnx_path = "../../../hub/onnx/cv/mobilenetv2.onnx"; std::string test_img_path = "../../../examples/lite/resources/test_lite_mobilenetv2.jpg"; lite::cv::classification::MobileNetV2 *mobilenetv2 = new lite...
/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2011-05-31 // Updated ...
#pragma once #include "base/PlannerUtils.hpp" #include "AbstractPlanner.hpp" /** * Derived from AbstractPlanner, this class is intended to simplify * existing (hand-crafted) trajectories using OMPL path simplifiers. */ class OMPLSimplifier : public AbstractPlanner { public: explicit OMPLSimplifier(const std::v...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "bm_message_bus.h" #include "pending_tracker_hash.h" #include "pending_tracker.h" #include "storage_reply_error_checker.h" #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/network/rpcnet...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
//===--- ParseDecl.cpp - Swift Language Parser for Declarations -----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* * 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...
// // Sim.cpp // // Christopher Batty, Fang Da 2014 // // #include <sstream> #include <iomanip> #include "Sim.h" #include "SimOptions.h" #include "subdivisionscheme.h" #include "MeshIO.h" #include "drivers/MCFDriver.h" #include "drivers/MultimaterialFaceOffsetDriver.h" #include "drivers/CurlNoiseDriver.h" using nam...
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. Note: A leaf is a node with no children. Example: Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ / \ 7 2 5 1 Return: [ [5,4,11,2], [5,8,4,5] ] ...
#include <iostream> #include <vector> #include <cstdint> #include "WordSelection.hpp" int main(int argc, char* argv []) { using namespace std; using namespace com::github::nimelo; size_t letters = 26, index = 0; vector<unsigned int> letter_heights(letters); while(index < letters && cin >> letter_hei...
// Copyright (c) 2018-2019 The PRiVCY Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bls/bls.h> #include <hash.h> #include <random.h> #include <tinyformat.h> #ifndef BUILD_BITCOIN_INTERNAL #include <...
//===- VectorOps.cpp - MLIR Super Vectorizer Operations -------------------===// // // Copyright 2019 The MLIR Authors. // // 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....
/******************************************************************************* * This file is part of the "Enduro2D" * For conditions of distribution and use, see copyright notice in LICENSE.md * Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com) ***************************************************...
/* * Copyright (c) 2021 Samsung Electronics 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...
#include "../../../JString.hpp" #include "../../../JThrowable.hpp" #include "./SipException.hpp" namespace android::net::sip { // Fields // QJniObject forward SipException::SipException(QJniObject obj) : java::lang::Exception(obj) {} // Constructors SipException::SipException() : java::lang::Exception( "...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "catch2/catch.hpp" #include "utl/cmd_line_parser.h" using namespace utl; struct config { cmd_line_flag<bool, UTL_SHORT("-c"), UTL_LONG("--capture"), UTL_DESC("capture incoming")> capture_; cmd_line_flag<std::string, required, UTL_LONG("--file"), UTL_DESC("target fil...
// Copyright 2020 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/ui/webui/settings/chromeos/files_section.h" #include "base/callback_helpers.h" #include "base/no_destructor.h" #include "chrome/...
/* Copyright 2015 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...
class Solution { public: vector<vector<int>> highFive(vector<vector<int>> &items) { unordered_map<int, vector<int>> mp; for (const auto &ele : items) { mp[ele[0]].push_back(ele[1]); } vector<vector<int>> ans; for (const auto &ele : mp) { int id = el...
/* * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
#include "Constituent.h" CConstituent::CConstituent(void) { exchange_rate_scale_factor = CStringOP("1"); vs_coefficient = CStringOP("1"); settling_model = "constant-velocity"; } CConstituent::CConstituent(string _settling_model) { exchange_rate_scale_factor = CStringOP("1"); vs_coefficient = CStringOP("1"); s...
/******************************* // Name : Abdul Qadir Faridi // IPG-3rd yr // Institute : ABV-IIITM,Gwalior *********************************/ //header files #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <climits> #include <cassert> #include <iomanip> #include ...
// Begin License: // Copyright (C) 2006-2014 Tobias Sargeant (tobias.sargeant@gmail.com). // All rights reserved. // // This file is part of the Carve CSG Library (http://carve-csg.com/) // // This file may be used under the terms of either the GNU General // Public License version 2 or 3 (at your option) as published ...
// dear imgui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline // If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp. // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, et...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <cmath> #include <iostream> #include <string> #include <chrono> #include <ctime> #include <thread> #include <mutex> #include <functional> #include <opencv2/core.hpp> #include <opencv2/core/core.hpp> #include <opencv2/opencv.hpp> #in...
// Copyright 2021 Kumbrasev Mark #include <gtest/gtest.h> #include "./conjugate_gradient.h" TEST(Conjugate_gradient_omp, M2) { std::vector<std::vector<double>> M = { { 5, 2}, {2, 1} }; std::vector<double> B = { 7, 9 }; std::vector<double> X = ConjugateGradient(M, B); tbb::tick_count t0 = tbb::tick_cou...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "filter_wrapper.h"
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkSGMerge.h" #include "SkCanvas.h" #include "SkPathOps.h" namespace sksg { Merge::Merge(std::vector<Rec>&& recs) : fRecs(std::move(recs)) { for (const aut...
// // Option01.cpp // OptionPricer01 // // Created by wu yen sun on 2022/2/11. // #include "Option01.h" #include "BinomialTreeModel.h" #include <iostream> #include <cmath> using namespace std; namespace fre { double PriceByCRR(double S0, double U, double D, double R, int N, double K) { double q = R...
// Copyright (c) 2009-2011, Tor M. Aamodt, Ali Bakhoda, George L. Yuan, // The University of British Columbia // 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 co...
/* * Copyright (c) 2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 <database/impl/CachedSubDatabase.hpp> #include <database/api/ISequenceDatabase.hpp> #include <designpattern/impl/Property.hpp> #include <set> #include <vector> namespace database { namespace impl { CachedSubDatabase::CachedSubDatabase(ISequenceIterator* refIterator, std::set<u_int64_t>* blacklist) : _se...
// Copyright (c) 2009-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/nix-config.h> #endif #include <cstddef> #if defined(HAVE_SYS_SELECT_H) #include...
// Copyright 2018 The Fuchsia 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 "peridot/lib/testing/session_shell_impl.h" #include <lib/async/cpp/task.h> #include <lib/async/default.h> namespace modular { namespace testing ...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #in...
#include "FilterFindMoonChallenge.h" #include "AStar/SimplifiedLevel.h" #include "SeedFinder.h" namespace SeedFinder { uint16_t FilterFindMoonChallenge::msTunID = 0; uint16_t FilterFindMoonChallenge::msMattockID = 0; const char* FilterFindMoonChallenge::msComparisonOptions[] = {"less than or equal to", "gr...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * 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 abo...
// RUN: %clang_cc1 -fsyntax-only -fopenmp -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify=expected,omp4 %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=50 -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify=expected,omp5 %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fop...
//===- Trace.cpp - Implementation of Trace class --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_Nuclide.cpp //! \author Alex Robinson //! \brief The nuclide class declaration //! //---------------------------------------------------------------------------// // Std Lib Includes #include <stdexcept> #includ...
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi f...
// 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 // distributed ...
#include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include "stealth.h" #include <QApplication> #include <QClipboard> SendCoinsEntry::SendCoinsEntry(QWi...
// Copyright (c) 2011-2015 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "data/script_tests.json.h" #include "core_io.h" #include "key.h" #include "keystore.h" #include "script/script.h" #...
#ifndef INFRA_BOUNDED_STRING_MATCHER_HPP #define INFRA_BOUNDED_STRING_MATCHER_HPP #include "gmock/gmock.h" #include "infra/util/BoundedString.hpp" namespace testing { template<class T> class Matcher<infra::BoundedStringBase<T>> : public internal::MatcherBase<infra::BoundedStringBase<T>> { publ...
#include <iostream> #include <fstream> #include "MapWords.h" int main() { MapWords mapWords("TextToRead.txt"); mapWords.printMapWords(); return 0; }
#include "drawable.h"
/* * Copyright © 2007-2019 Advanced Micro Devices, 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...
// compute (possibly zero) residual from predicted and actual values template <typename T, class M> HZresidual<T, M>::HZresidual(T p, T a) { U r = U(map(p) - map(a)); U c = U(~r); value = U(c < r ? ~(2 * r) : 2 * r); } // read byte-aligned variable-length residual from stream template <typename T, class M> HZres...
#include <iostream> /* [Namespace alias] Namespace aliases are only allowed in namespace scope or block scope. Namespace aliases are NOT allowed in class scope. Below are the text and grammar extracted from the Standard Specification. 6.3 Compound statement or block [stmt.block] 1. ... the compound statement (also...
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ _ // | | | | // __ _| |_ ___| | __ _ _ __ __ _ // / _` | __/ __| |/ _` | '_ \ / _` | // | (_| | || (_...
// // main.cpp // LAB3_4 // // Created by Hyemi Kim on 2018. 4. 12.. // Copyright © 2018년 Hyemi Kim. All rights reserved. // //Derivative Filters #include <opencv2/opencv.hpp> #include <opencv2/core/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc...
#include <chrono> #include <cstdint> #include <string> #include <vector> #include "envoy/stats/stats.h" #include "common/common/empty_string.h" #include "common/http/codes.h" #include "common/http/header_map_impl.h" #include "common/stats/symbol_table_creator.h" #include "test/mocks/stats/mocks.h" #include "test/tes...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
/* * Copyright (c) 2019-2020, The Linux 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: * * Redistributions of source code must retain the above copyright * notice, this list o...
/* * 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 ...
// // Created by 贾顺名 on 2020/7/20. // input and output // #include <iostream> int main() { using namespace std; int carrots; cout << "How many carrots do you have?" << endl; cin >> carrots; cout << "Here are two more."; carrots = carrots + 2; cout << "Now you have " << carrots << " carr...
// file : liblava/block/descriptor.hpp // copyright : Copyright (c) 2018-present, Lava Block OÜ and contributors // license : MIT; see accompanying LICENSE file #pragma once #include <liblava/base/device.hpp> namespace lava { struct descriptor : id_obj { struct binding : id_obj { usin...
#include <iostream> #include <string> using namespace std; int main(void) { int a, b, c, d, abLen, cdLen, idx1, idx2, mod, check = 0; string ab, cd, ans = ""; cin >> a >> b >> c >> d; ab = to_string(a) + to_string(b); cd = to_string(c) + to_string(d); abLen = ab.length(); cdLen = cd.length(); for (idx1 = abL...
/* * GridTools * * Copyright (c) 2014-2019, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #include "gtest/gtest.h" #include <gridtools/common/defs.hpp> #include <gridtools/common/variadic_pack_metafunctions.hpp> TEST(V...
// Copyright (c) 2011-2013 The Bitcoin Core developers // Copyright (c) 2019 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 "key.h" #include "keystore.h" #include "main.h" #include "script/scrip...
// // SPDX-License-Identifier: MIT // Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng // #pragma once namespace SCREEN { namespace bfs = boost::filesystem; struct RegionWithScore { uint32_t start; uint32_t end; float score; }; std::ostream& operator<<(std::ostream&...
/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE Versions 3.13....
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2017-2018 The Gostcoin developers // Copyright (c) 2018- The SPbCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit...
/** * 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) 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 "media/base/media.h" #include <string> #include "base/file_path.h" #include "base/logging.h" #include "base/path_service.h" #include "base/...
// // Tracker time cluster diagnostics // // Original author D. Brown and G. Tassielli // // framework #include "art/Framework/Principal/Event.h" #include "fhiclcpp/ParameterSet.h" #include "art/Framework/Principal/Handle.h" #include "art/Framework/Core/EDAnalyzer.h" #include "art/Framework/Core/ModuleMacros.h" #inclu...
// 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 <fcntl.h> #include <poll.h> #include <signal.h> #include <stddef.h> #include <stdio.h> #include <sys/resource.h> #include <sys/stat.h> #inclu...
#include <optional> #include <Core/Field.h> #include <Columns/ColumnsNumber.h> #include <Columns/ColumnTuple.h> #include <Common/typeid_cast.h> #include <DataTypes/DataTypeTuple.h> #include <DataTypes/DataTypeNullable.h> #include <Parsers/ASTExpressionList.h> #include <Parsers/ASTFunction.h> #include <Parsers/ASTL...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
#include "behavior_tree/task/ActionClearBlackboard.h" namespace BehaviorTree { ActionClearBlackboard::ActionClearBlackboard() { } Task::StatusType ActionClearBlackboard::evaluate(std::shared_ptr<Blackboard> blackboard) { blackboard->clear(false); return STATUS_SUCCESS; } }
/** ****************************************************************************** * Copyright (c) 2019 - ~, SCUT-RobotLab Development Team * @file PowerCtrl.cpp * @author Kainan.Su 15013073869 * @brief Power control for chassis in Robomaster. * @date 2019-11-12 * @version 1.0 * @par Change Log...
/** \file Util.cc * \author Gabriel Montenegro <gmontenegro@users.sourceforge.net> * \date 10-22-04 * \brief Util class implementation * * Class implementation */ /* * 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 ...
#ifndef BFSSearcher_hpp #define BFSSearcher_hpp #include "DequeSearcher.hpp" #include <deque> #include <algorithm> /** * The BFS searcher pops nodes of the front of the frontier when needed. * It also overrides the is repeated state check to check the entire tree. */ template <class State_type, class Success_func...
#include <iostream> #include "Wektor.hh" #include "UkladRownanLiniowych.hh" using namespace std; int main() { /*Wektor W1(0,1,1); Wektor W2(2,2,3); Wektor W3(2 ,2,3); Wektor W4(9,8.5,8); Macierz M1(W1,W2,W3);*/ UkladRownanLiniowych UklRown; Wektor Wx; Wektor Wbledu; cout << endl << "Start pr...
#include "ekf_sym.h" using namespace EKFS; using namespace Eigen; EKFSym::EKFSym(std::string name, Map<MatrixXdr> Q, Map<VectorXd> x_initial, Map<MatrixXdr> P_initial, int dim_main, int dim_main_err, int N, int dim_augment, int dim_augment_err, std::vector<int> maha_test_kinds, std::vector<std::string> global...
class Solution { public: int distributeCandies(vector<int>& c) { return min(unordered_set<int>(begin(c), end(c)).size(), c.size() / 2); } };
#include "global_defines.h" #include "tdf4_impl_defines.h" #include <stdbool.h> #include <assert.h> #include "tdf4_conv_stages.h" // Multiplies the intermediate feature maps with the second-layer // filters. OCHAN_SCALE_FACTOR is an integer factor of the number // of input channels. The k parameter tells us which grou...
//===--- ImportDecl.cpp - Import Clang Declarations -----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <array> #include <cstddef> #include <memory> #include <string> #include <unordered_set> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" #include "DataStructures/DataBox/Tag.hpp" #i...
/* * ====================== leet_314.cpp ========================== * -- tpr -- * CREATE -- 2020.05.04 * MODIFY -- * ---------------------------------------------------------- * 314. 二叉树的垂直遍历 */ #include "innL...
/* //@HEADER // ************************************************************************ // // Kokkos v. 2.0 // Copyright (2014) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this softw...
/* * * Copyright (c) 2020-2021 Project CHIP 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/LI...
#include "OpenAPI.h" void OpenAPI::Server::fromJSON(const JSON &json) { } JSON & OpenAPI::Server::toJSON(JSON &json) const { return json; }
// COMPONENT should be defined in the script_component.hpp and included BEFORE this hpp #define MAINPREFIX y #define PREFIX tfw_radios // TODO: Consider Mod-wide or Component-narrow versions (or both, depending on wishes!) // We will use the DATE for the BUILD# in the format YYMMDD - VM #include "script_version.hpp"...
#include <iostream> #include <vector> #include <algorithm> template <typename T> auto print_type_info(const T& t) { if constexpr (std::is_integral<T>::value) { return t + 1; } else { return t + 0.001; } } int main() { std::cout << print_type_info(5) << std::endl; std::cout << print_type_info(3.14) << std::...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: OVRPlugin #include "GlobalNamespace/OVRPlugin.hpp" // I...
#pragma once #include <libstm32f10x/platform/stm32f10x.h> #include <cstdint> #include <libcore/peripherals/gpio.hpp> #include <libcore/peripherals/interrupt.hpp> #include <libcore/peripherals/system_controller.hpp> #include <libcore/utility/error_handling.hpp> #include <libcore/utility/math/bit.hpp> #include <libstm3...
// Copyright 2019 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/paint_preview/player/android/player_compositor_delegate_android.h" #include <vector> #include "base/android/callback_android.h" #in...
// Copyright 2019 The Fuchsia 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 <lib/zxio/inception.h> #include <lib/zxio/ops.h> #include <lib/zxio/zxio.h> #include <sys/stat.h> #include <zxtest/zxtest.h> // Tests the conver...
#include "all.h" #include "../SourceX/display.h" #include "../3rdParty/Storm/Source/storm.h" DEVILUTION_BEGIN_NAMESPACE SDL_Color logical_palette[256]; SDL_Color system_palette[256]; SDL_Color orig_palette[256]; /* data */ int gamma_correction = 100; BOOL color_cycling_enabled = TRUE; BOOLEAN sgbFaded...
#define BOOST_SPIRIT_USE_PHOENIX_V3 #include <boost/fusion/include/io.hpp> #include <boost/bind.hpp> #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/spirit/include/pho...
/* * Copyright 2019-2022 Diligent Graphics 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 applica...
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include "mod.h" #include <game/server/player.h> #include <engine/shared/config.h> #include <engine/server/mapconverter.h> #include <engine...
 #pragma once namespace ln { template<class T> struct BuilderVariant; struct AbstractBuilderDetails; //==================== template<class T, class B, class D> struct AbstractBuilder { public: Ref<T> build() const; protected: virtual ~AbstractBuilder() = default; AbstractBuilder() { m_detail = std::m...
/** * 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...
#include <iostream> #include "Game.h" using namespace std; //Game game; int main() { cout << "Welcome to RISK!" << endl; Game game = Game(); game.setUpGame(); cout << "Welcome to RISK!" << endl; cout << "Welcome to RISK!" << endl; return 0; }