text
stringlengths
7
961k
// ============================================================================ // // Copyright (c) 1997-2000 The CGAL Consortium // // This software and related documentation is part of an INTERNAL release // of the Computational Geometry Algorithms Library (CGAL). It is not // intended for general use. // // --------...
#pragma once #include "CTRPluginFramework.hpp" #include "MarioKartFramework.hpp" #include "MarioKartTimer.hpp" #include "ExtraResource.hpp" #include "Minibson.hpp" #include "savesettings.hpp" #include "MusicSlotMngr.hpp" #define MISSIONCUPID 64 namespace CTRPluginFramework { class MissionHandler { public: class M...
// (c) Copyright 1995-2020 Xilinx, Inc. All rights reserved. // // This file contains confidential and proprietary information // of Xilinx, Inc. and is protected under U.S. and // international copyright and other intellectual property // laws. // // DISCLAIMER // This disclaimer is not a license and does not grant ...
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: smt_model_checker.cpp Abstract: Model checker Author: Leonardo de Moura (leonardo) 2010-12-03. Revision History: --*/ #include "ast/normal_forms/pull_quant.h" #include "ast/for_each_expr.h" #include "ast/rewriter/var_subst.h" #include "ast/...
#include "_glm.h" namespace autowig { class Wrap_6316c34dc99c5ef5a60a92b032b9e729 : public ::statiskit::PolymorphicCopy< struct ::statiskit::glm::Design, struct ::statiskit::glm::CompleteDesign, struct ::statiskit::glm::Design >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statis...
// Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. // source: action_server/action_server.proto #include "action_server/action_server.pb.h" #include "action_server/action_server.grpc.pb.h" #include <functional> #include <grpcpp/impl/codegen/async_stream.h> #include <grpcpp/impl/c...
#include "hal.h" #include "ancestorsML.h" #include "ancestorsMLBed.h" using namespace std; using namespace hal; static CLParserPtr initParser() { CLParserPtr optionsParser = hdf5CLParserInstance(true); optionsParser->addArgument("halFile", "hal tree"); optionsParser->addArgument("genome", "(ancestor) genome to ...
#include <cstdio> #include <cstdint> #include <cstring> #include <cassert> #include <vector> #include <algorithm> #include <sys/time.h> static inline int ascii_std(const uint8_t *data, int len) { return !std::any_of(data, data+len, [] (int8_t b) { return b < 0; }); } static inline int ascii_u64(const uint8_t *da...
#include "pxt.h" #include "Adafruit_SSD1306.h" using namespace pxt; namespace OLED { #define SSD1306_ADDRESS 0x78 #undef printf MicroBitI2C i2c(I2C_SDA0, I2C_SCL0); Adafruit_SSD1306_I2c *oled; void init(int height, int width){ if (oled != NULL) delete oled; oled = new Adafruit_SSD1306_I2c(i2c, SSD1306_ADD...
/* * This is a lightweight wrapper for recsplit, reexporting symbols * from suxcpp (https://github.com/vigna/sux.git) to make them: * 1) usable within this codebase * 2) lightweight in the sense that most unused functionality was plainly removed * * Please see LICENSE.md for more information */ #include "../../...
// =========================================================================== // Copyright 2008-2013 Gennaro Prota // // Licensed under the 3-Clause BSD License. // (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or // <https://opensource.org/licenses/BSD-3...
#include "toonz/scriptbinding_renderer.h" #include "toonz/scriptbinding_scene.h" #include "toonz/scriptbinding_level.h" #include "toonz/txsheet.h" #include "toonz/txshsimplelevel.h" #include "toonz/toonzscene.h" #include "trenderer.h" #include "toonz/scenefx.h" #include "toonz/sceneproperties.h" #include "toonz/tcamer...
// Copyright (c) 2016-2017 The Bitcoinlimitededition Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <validation.h> #include <base58.h> #include <array> #include <vector> #incl...
#include "stdafx.h" #include "../Core/Node.h" using namespace Crystal::Math; using namespace Crystal::Core; TEST(NodeTest, Test) { Vertex v1(Vector3d<float>(0, 0, 0), Vector3d<float>(0,0,1)); Vertex v2(Vector3d<float>(0.1, 0, 0), Vector3d<float>(0, 0, 1)); Node node; node.add(&v1); node.add(&v2); const auto& p...
// Generated by Haxe 4.1.5 #include <hxcpp.h> #ifndef INCLUDED_95f339a1d026d52c #define INCLUDED_95f339a1d026d52c #include "hxMath.h" #endif #ifndef INCLUDED_Std #include <Std.h> #endif #ifndef INCLUDED_haxe_Exception #include <haxe/Exception.h> #endif #ifndef INCLUDED_haxe_ds_List #include <haxe/ds/List.h> #endif #if...
#include <bits/stdc++.h> using namespace std; void solution() { uint64_t a = UINT64_MAX; cout << a << endl; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); solution(); return 0; }
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "Halide.h" #include "HalideRuntime.h" using namespace Halide; #ifdef _WIN32 #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT #endif // External functions to track whether the cache is working. int call_count = 0; extern "C" DLLEXPOR...
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
#ifndef PACMAN_HH #define PACMAN_HH #include <alpm.h> #include <memory> #include <optional> #include <string> #include <vector> namespace auracle { class Pacman { public: struct Package { Package(std::string pkgname, std::string pkgver) : pkgname(std::move(pkgname)), pkgver(std::move(pkgver)) {} ...
#ifndef CLICK_DPDKINFO_HH #define CLICK_DPDKINFO_HH #include <click/element.hh> #include <click/dpdkdevice.hh> CLICK_DECLS /* =title DPDKInfo =c DPDKInfo([I<keywords> NB_MBUF, MBUF_SIZE, RX_PTHRESH, etc.]) =s netdevices Set DPDK global parameters. =d Set Intel's DPDK global parameters used by FromDPDKDevice an...
// This file imports lz4.c prefixing all functions with I64_ #include "lz4_64.h" #include "..\..\..\original\lz4.c"
// Copyright (c) 2014-2018 The Dash Core developers // Copyright (c) 2017-2018 The ZeroOne Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "governance-object.h" #include "core_io.h" #include "governa...
// 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 "chrome/browser/download/download_service_factory.h" #include "chrome/browser/download/download_service.h" #include "chrome/browser/history/...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/vk/GrVkRenderTarget.h" #include "include/gpu/GrBackendSurface.h" #include "src/gpu/GrRenderTargetPriv.h" #include "src/gpu/vk/GrVkCommandBuffer.h" #include ...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2019-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
#include "AliAnalysisTaskHyperTriton2He3piML.h" #include <array> #include <unordered_map> #include <TRandom3.h> #include <Riostream.h> #include <TChain.h> #include <TFile.h> #include <TH1D.h> #include <TH2D.h> #include <TList.h> #include <TMath.h> #include <stdio.h> #include "AliAnalysisManager.h" #include "AliDataFil...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2008 - 2010 Greenplum, Inc. // // @filename: // CAutoTimer.cpp // // @doc: // Implementation of wrapper around wall clock timer //-----------------------------------------------------------------------...
/* * Copyright (c) 2015-2018, Luca Fulchir<luca@fulchir.it>, All rights reserved. * * This file is part of "libRaptorQ". * * libRaptorQ 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 Foundation, either vers...
// Copyright 2020-2022 OpenDR European 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 applicable law...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // This file was modified by Oracle on 2014. // Modifications copyright (c) 2014 ...
// Copyright (c) 2012-2015 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 "consensus/merkle.h" #include "merkleblock.h" #include "serialize.h" #include "streams.h" #include "uint256.h" #incl...
#include <cstdio> #include <chrono> #include <cstdlib> #include <vector> #include <algorithm> #include <numeric> #include <mpi.h> #include "sampler/sampler.hpp" #define NSAMPLES 240 #define NPARAMETERS 2 #define MSG_EXIT 1 #define MSG_READY 2 #define MSG_RESULT 3 size_t nSamples; size_t nParameters; void dispatch(...
#include "LoadingSystem.h" #include "../EntityManager.h" #include "OgreSceneManager.h" #include "tinyxml.h" #include <regex> LoadingSystem::LoadingSystem(EntityManager* pEntityManager, const std::string& scriptsRoot) : m_pEntityManager(pEntityManager), m_strSavesRootPath(scriptsRoot) { } void LoadingSystem::LoadFr...
#ifndef HTTP_PARSER_MULTIPART_IMPL_HPP #define HTTP_PARSER_MULTIPART_IMPL_HPP #include <string> #include <fstream> namespace websocketpp { namespace http { namespace parser { #define CR '\r' #define LF '\n' #define SP ' ' #define TAB '\t' #define HYPHEN '-' #define APPEND_DATA(P, S) \ if (m_is_file_part &&...
/* file: train_result.cpp */ /******************************************************************************* * Copyright 2014 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 a...
#include <cmath> #include <cstdio> #include <iostream> //#include <algorithm> using namespace std; bool is_prime(int n) { for (int i = 2; i <= sqrt(n); ++i) if (n % i == 0) return false; return true; } int main() { // freopen("prime.in", "r", stdin); // freopen("prime.out", "w", stdout)...
// // 744. Find Smallest Letter Greater Than Target - Easy // #include <bits/stdc++.h> // using namespace std; // #define f(x) for (int i = 0; i < x; i++) // #define fe(x) for (int i = 0; i <= x; i++) // #define vi vector<int> // #define ll long long int // // char nextGreatestLetter(vector<char> &letters, char targe...
// Copyright 2018 Open Source Robotics Foundation, Inc. // Copyright 2020, TNG Technology Consulting GmbH. // // 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/...
// BOJ ID 1976 #include <iostream> using namespace std; int city[201]; int getHead(int idx) { if(idx == city[idx]) { return idx; } return getHead(city[idx]); } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, m; cin >> n >> m; for(int i=1;i<=n;++i) { ...
// 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 "dockyard_proxy_local.h" #include "src/lib/fxl/logging.h" namespace harvester { DockyardProxyStatus DockyardProxyLocal::Init() { FXL_LOG(INFO...
๏ปฟ/* * 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...
//================================================================================================= /*! // \file src/mathtest/dmatdmatmult/MDbMHa.cpp // \brief Source file for the MDbMHa dense matrix/dense matrix multiplication math test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // This...
#include "stdafx.h" #include "climableobject.h " #include "PHStaticGeomShell.h" #include "xrServer_Objects_ALife.h" #include "PHCharacter.h" #include "MathUtils.h" #ifdef DEBUG # include "debug_renderer.h" # include "level.h" # include "PHDebug.h" #endif #ifdef DEBUG # include "debug_renderer.h" #endif static const ...
/* * Copyright (c) 2020-2021, NVIDIA 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...
// Copyright 2020 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <lib/acpi_lite.h> #include <lib/acpi_lite/apic.h> #include <lib/acpi_lite/testing/test_util.h> #include <vector> #inclu...
/*! ****************************************************************************** * * \file * * \brief Header file for CUDA shared memory window executors. * ****************************************************************************** */ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
// Copyright 2018 U.C. Berkeley RISE Lab // // 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...
#include <_qry_case_unmandtrader_buy_update_wait.hpp> START_ATF_NAMESPACE END_ATF_NAMESPACE
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/CName.hpp> #include <RED4ext/Scripting/Natives/Generated/ink/CompoundWidgetReference.hpp> #include <RED4ext/Scripting/Natives/Generated/ink/ILoadingLogicController.hpp> #include <R...
// Copyright (c) 1997-2019 The CSE Authors. All rights reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// // CSE.cpp : Main program module // Defines entry points ///...
// Copyright (c) 2011-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 <qt/receiverequestdialog.h> #include <qt/forms/ui_receiverequestdialog.h> #include <qt/topazunits.h> #include <qt/g...
// Copyright 2021 The SwiftShader 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 b...
// Copyright Neil Groves 2009. Use, modification and // distribution is 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) // // // For more information, see http://www.boost.org/libs/range/ // #include <boost/range/algor...
// // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // // D...
/* ----------------------------------------------------------------------------- This source file is part of ogre-procedural For the latest info, see http://code.google.com/p/ogre-procedural/ Copyright (c) 2010 Michael Broutin Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_environment_execlp_83a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-83a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an enviro...
#include <gazebo_version_helpers/GazeboVersionHelpers.h> #include <gazebo/physics/physics.hh> using gazebo::GzPose3; using gazebo::GzVector3; using gazebo::GzMatrix3; using gazebo::GzMatrix4; /////////////////////////////////////////////////////////////////////////////// GzPose3 gazebo::GetWorldPose(const gazebo::phy...
/****************************************************************************** * * Project: ESRI ArcSDE Raster reader * Purpose: Rasterband implementation for ESRI ArcSDE Rasters * Author: Howard Butler, hobu@hobu.net * * This work was sponsored by the Geological Survey of Canada, Natural * Resources Canada...
#include "hphp/runtime/ext/collections/ext_collections-map.h" #include "hphp/runtime/ext/collections/ext_collections.h" #include "hphp/runtime/ext/collections/ext_collections-pair.h" #include "hphp/runtime/ext/collections/ext_collections-set.h" #include "hphp/runtime/ext/collections/ext_collections-vector.h" #include ...
#include "mjolnir/pbfgraphparser.h" #include "mjolnir/osmpbfparser.h" #include "mjolnir/util.h" #include "graph_lua_proc.h" #include "mjolnir/luatagtransform.h" #include "mjolnir/osmaccess.h" #include <boost/algorithm/string.hpp> #include <boost/format.hpp> #include <boost/optional.hpp> #include <boost/range/algorith...
// This file is a part of Julia. License is MIT: https://julialang.org/license // // This file implements common functionality that is useful for the late GC frame // lowering and final GC intrinsic lowering passes. See the corresponding header // for docs. #include "llvm-version.h" #include <llvm/IR/Function.h> #in...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: CCreateRole.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "CCreateRole.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h>...
// // Copyright (c) 2019-2022 Ruben Perez Hidalgo (rubenperez038 at gmail 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 BOOST_MYSQL_DETAIL_AUXILIAR_VOID_T_HPP #define BOOST_MYSQL_DETAIL_AUX...
//solved by @who.so (hhamzic1@etf.unsa.ba) //TP 2018/2019: Zadaฤ‡a 4, Zadatak 2 #include <iostream> #include <stdexcept> #include <string> #include <cmath> bool KorektanDatum(int dan, int mjesec, int godina) { if(mjesec>12 || mjesec<1) return false; if(godina<0) return false; if(mjesec==1 || mjesec==3 || mj...
// 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...
/** * @file * @brief Vector2f Class * @author Quinten Perquin * @license See LICENSE */ #ifndef VECTOR2F_HPP #define VECTOR2F_HPP class Vector2f { public: /** * @brief creates a Vector2f object * * Constructor for a Vector2f object with no arguments. * * @return a Vector2f...
#include "ShaderInstruction.h" #include "ShaderExecInstruction.h" #define D() ShaderExecInstruction::dumpDynamicMemoryState(); #define DMEM() ShaderExecInstruction::dumpDynamicMemoryState(true); int main( void ) { u32bit pc = 10; u32bit startCycle = 12335; ShaderInstruction si; D(); ShaderExecInstruction* s...
// Copyright (c) 2007-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2011-2017 The Litecoin Core developers // Copyright (c) 2013-2018 The Goldcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource....
// Copyright 2005, 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 conditions ...
// Copyright 2016 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 "third_party/blink/public/platform/web_cors.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/public/platform/web_co...
//$Id$ //------------------------------------------------------------------------------ // GroundStation //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2020 United States Government as represen...
๏ปฟ#include "BasicFunction206.h" /// <summary> /// ๋ฌธ์ œ /// main() ํ•จ์ˆ˜ ๋‚ด์—๋Š” ์ˆซ์ž๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ๋ง๊ณ  ์ฆ‰, #define ์„ ์ด์šฉํ•˜์—ฌ 1, 2, 3 ์„ธ ๊ฐœ์˜ ์ˆซ์ž๋ฅผ ์กฐํ•ฉํ•˜์—ฌ ๊ฐ€๋Šฅํ•œ ํ•œ ๋ชจ๋“  ํ•ฉ์„ /// ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. /// /// ์ถœ๋ ฅ์˜ˆ์™€ ๊ฐ™์ด ์ถœ๋ ฅํ•˜์‹œ์˜ค. /// /// ์ถœ๋ ฅ ์˜ˆ /// 1 + 1 = 2 /// 1 + 2 = 3 /// 1 + 3 = 4 /// 2 + 1 = 3 /// 2 + 2 = 4 /// 2 + 3 = 5 /// 3 + 1 = 4 /// 3 + 2 = 5 /// 3 + 3 = 6 ...
#pragma once #include "quickVtkAlgorithm.hpp" #include <vtkDataSetAlgorithm.h> namespace quick { namespace Vtk { class DataSetAlgorithm : public Algorithm { Q_OBJECT private: static Qml::Register::AbstractClass<DataSetAlgorithm> Register; public: Data...
// ZDecoder.cpp #include "StdAfx.h" // #include <stdio.h> #include "../../../C/Alloc.h" #include "../Common/InBuffer.h" #include "../Common/OutBuffer.h" #include "ZDecoder.h" namespace NCompress { namespace NZ { static const UInt32 kBufferSize = (1 << 20); static const Byte kNumBitsMask = 0x1F; static const Byte...
// Copyright 2016 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/blink/event_with_callback.h" #include "base/time/time.h" #include "third_party/blink/public/common/input/web_input_event_attribution....
// Copyright 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 "cc/base/latency_info_swap_promise_monitor.h" #include "base/threading/platform_thread.h" #include "cc/base/latency_info_swap_promise.h" #includ...
#if defined(linux) || defined(unix) || defined(__linux) #warning nvCVImageProxy.cpp not ported #else /*############################################################################### # # Copyright 2020 NVIDIA Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software...
#ifndef DYNO_MODEL #define DYNO_MODEL #include <string> namespace dyno { class Model { public: const std::string name; Model(std::string n); }; }; #endif
// Copyright 2019 The Chromium OS 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 "common/camera_gpu_algorithm.h" #include <utility> #include <base/bind.h> #include <base/check_op.h> #include <base/containers/contains.h>...
// Copyright 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 "net/log/write_to_file_net_log_observer.h" #include <stdio.h> #include <memory> #include <set> #include <utility> #include "base/json/json_wri...
#pragma once // #include "content-address.hh" #include <nix/config.h> #include "types.hh" namespace nix { class Store; struct Hash; class StorePath { std::string baseName; public: /* Size of the hash part of store paths, in base-32 characters. */ constexpr static size_t HashLen = 32; // i.e. 160 bits ...
#include "addrman.h" #include "protocol.h" #include "activemasternode.h" #include "masternodeman.h" #include "masternode.h" #include "masternodeconfig.h" #include "spork.h" // // Bootup the Masternode, look for a 1000DRK input and register on the network // void CActiveMasternode::ManageStatus() { std::string ...
/* * Copyright (c) 2017, The Regents of the University of California (Regents). * 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 a...
#include "Runtime/World/CScriptDebris.hpp" #include "Runtime/CSimplePool.hpp" #include "Runtime/CStateManager.hpp" #include "Runtime/GameGlobalObjects.hpp" #include "Runtime/Collision/CCollisionInfoList.hpp" #include "Runtime/Graphics/CBooRenderer.hpp" #include "Runtime/Particle/CElementGen.hpp" #include "TCastTo.hpp...
// Copyright 2020 amsl // // 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...
#pragma once #include "sico/types/units.hpp" namespace sico { #pragma warning(push) #pragma warning(disable : 4820) // filling bytes /// Universal Transverse Mercator Grid vector template<typename Unit> struct vec_utm { Unit easting; Unit northing; Unit altitude; int zone_number; char zone_lette...
// Copyright (c) 2011-2022 by Artem A. Gevorkyan (gevorkyan.org) // // 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, ...
// RUN: %cxx %s -o %t %flags %include %link // RUN: %t 2>&1| FileCheck %s #include <numeric> #include "halo/lib/ir/ir_builder.h" #include "halo/lib/ir/values.h" #include "halo/lib/pass/pass_manager.h" #include "halo/lib/transforms/dce.h" #include "halo/lib/transforms/inst_simplify.h" using namespace halo; void buil...
#include<iostream> #include<conio.h> using namespace std; /* Request to make a Function Inline may be rejected if... 1.For Functions Returning values,IF a LOOP or SWITCH or GOTO Exists. 2.For Functions NOT Returning values,IF a RETURN Statement Exists 3.IF Functions CONTAIN STATIC VARIABLES 4.IF Inline Functions ARE ...
//===--- ASTDumper.cpp - Swift Language AST Dumper ------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// // Copyright 2018 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
// Copyright 2018 Google LLC // Copyright 2018-present Open Networking Foundation // SPDX-License-Identifier: Apache-2.0 #include "stratum/hal/lib/phal/system_fake.h" #include "stratum/lib/macros.h" #include "absl/memory/memory.h" #include "absl/synchronization/mutex.h" namespace stratum { namespace hal { namespace...
// Copyright 2017 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 "services/test/echo/echo_service.h" #include "services/service_manager/public/cpp/service_context.h" namespace echo { std::unique_ptr<service_...
#include <vector> #include <memory> #include "event_loop.h" #include "epoll.h" #include "time_operator.h" #include "log.h" #include "errno_define.h" using namespace dstore::common; using namespace dstore::network; using namespace std::placeholders; int timer_func(int fd, int type, void *args) { int ret = DSTORE_SUC...
/* Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke 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 ...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: The Sniper Player Class // // $Workfile: $ // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "tf_player.h" #include "tf_class_sniper.h" #include "...
// sca_unmerge.hh // // Read scalepack data into hkl_unmerge object // Also reads scalepack merged files & ShelX intensity files // For ShelX files, there is no simple way to tell if they are merged or unmerged // #ifndef SCA_UNMERGE_HEADER #define SCA_UNMERGE_HEADER #include <fstream> // Clipper #include "rotation....
#include<algorithm> #include<memory> #include<unordered_set> #include "planner.hxx" namespace cppplanner { using EType = std::tuple<double, std::shared_ptr<std::set<std::string>>, std::vector<std::string>>; template <class T> inline void hash_combine(std::size_t& seed, T const& v) { seed ^= std::hash<T>()...
/* Copyright (c) 2020 Zhong Ruoyu */ #include <cstdio> int getint(int *errCode = NULL) { if (errCode != NULL) *errCode = 0; int c = getchar(); // Temporarily stores next character from stdin int sign = 1; int absResult = 0; while ((c == '\t') || (c == '\v') || (c == '\f') || (c == '\r') || (c == ...
#include <QSqlTableModel> #include <QSqlQuery> #include <QSqlError> #include <QStringList> #include "MainPresenter.h" #include "Views/ConnectDialog.h" #include "Views/MainView.h" presenters::MainPresenter::MainPresenter() : m_db(QSqlDatabase::addDatabase("QMYSQL")) { } presenters::MainPresenter::~MainPresenter()...