text
stringlengths
7
961k
/* * Copyright 2015 Twitter, 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 ...
//===--- CodeGenTypes.cpp - Type translation for LLVM CodeGen -------------===// // // 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 // //===---------------------------...
/** * @file hss-pal-timer-ino.cpp * @brief Timer platform abstraction layer Arduino class * @copyright Copyright (c) 2021 Infineon Technologies AG * * SPDX-License-Identifier: MIT */ #include <Arduino.h> #include "hss-pal-timer-ino.hpp" using namespace hss; /** * @brief Constructor of the Timer...
// Copyright 2021 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 "node_properties.h" #include <zircon/assert.h> #include <vector> #include "fidl/fuchsia.sysmem2/cpp/wire.h" #include "logical_buffer_collection...
// // main.cpp // 189_rotate // // Created by Bella Yang on 2019/11/10. // Copyright © 2019 Bella Yang. All rights reserved. // #include <iostream> #include <vector> using namespace std; class Solution { public: void rotate(vector<int>& nums, int k) { k = k % nums.size(); if (k == 0) { ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "accountregtx.h" #include "commons/serialize.h" #include "tx.h" #inc...
// Copyright (c) 2008-2022 the Urho3D project // License: MIT #include "../../Precompiled.h" #include "../../Graphics/Graphics.h" #include "../../Graphics/Material.h" #include "../../GraphicsAPI/GraphicsImpl.h" #include "../../GraphicsAPI/RenderSurface.h" #include "../../IO/Log.h" #include "../../Resource/ResourceCac...
//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. //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 <boost/qvm/vec_operations.hpp> #include "test_qvm_vector.hpp" #include "gold.hpp" namespa...
#include "secret_key.h" using namespace core; SecretKey::SecretKey() : Key() { LOGGER_FUNCTION_BEGIN; LOGGER_DEBUG("New %s", __FUNCTION__); try { ItemByType(CKA_CLASS)->To<AttributeNumber>()->Set(CKO_SECRET_KEY); Add(AttributeBool::New(CKA_SENSITIVE, false, PVF_8 | PVF_11)); ...
#ifndef PANEL_H #define PANEL_H #include "../Manager/Input/InputStructs.hpp" #include "Label.hpp" #include "SpriteButton.hpp" class Panel : public UIObject { public: /** * @brief Construct a new Panel * * @param position * @param title * @param size * @param renderer * @param...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Basic.hpp" #include "ARKSurvivalEvolved_ShooterGame_classes.hpp" #include "ARKSurvivalEvolved_StructureItemContainerBaseBP_classes.hpp" #include "ARKSurvivalEvolved_Engine_classes.hpp" #include...
/*************************************************************************** * * $Id: StDedxPidTraits.cxx,v 2.17 2015/12/24 00:14:44 fisyak Exp $ * * Author: Thomas Ullrich, Sep 1999 *************************************************************************** * * Description: * *********************************...
#include "search/tracer.hpp" #include "base/stl_helpers.hpp" #include <cstddef> #include <iomanip> #include <sstream> using namespace std; namespace search { // Tracer::Parse ----------------------------------------------------------------------------------- Tracer::Parse::Parse(vector<TokenType> const & types, boo...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/common/RateLimiter.h" #include <thread> #include <gtest/gtest.h> ...
// 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 "platform/scheduler/child/web_task_runner_impl.h" #include "base/bind.h" #include "base/location.h" #include "base/memory/ptr_util.h" #include "...
// // Copyright (c) 2008-2019 the Urho3D project. // // 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, m...
// 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: Zenject.FactoryFromBi...
#include<iostream> using namespace std; class vehicle{ private: int maxspeed; protected: int numTyres = 0; public: string color; vehicle(){ cout<<"vehicle constructor called\n"; } vehicle(int r){ cout<<"Parameterized Constructor vehicle\n"; } ~vehicle(){ cout<<"De...
#include "OpenGLRenderResourceManager.h" #include "OpenGLEmptyRenderEntry.h" #include "LevSceneObject.h" namespace Leviathan { namespace Renderer { OpenGLRenderResourceManager::OpenGLRenderResourceManager(OpenGLResourceManager& resource_manager) : m_resource_manager(resource_manager) { } bool OpenGLRend...
// Copyright 2012-2016 The CRAVE developers, University of Bremen, Germany. All rights reserved.// #pragma once #include "ReferenceExpressionType.hpp" #include "../frontend/bitsize_traits.hpp" namespace crave { template <typename Integer> struct ReferenceExpressionImpl : public ReferenceExpression { public: Refe...
#include <bits/stdc++.h> class Solution { public: void moveZeroes(std::vector<int>& nums) { int start = 0; for(int i = 0; i < nums.size(); i++) if(nums[i] != 0) nums[start++] = nums[i]; while(start < nums.size()) nums[start++] = 0; } };
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcserver.h" #include "base58.h" #include "init.h" #include "main.h" #include "u...
// (C) Copyright Gennadiy Rozental 2005-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. // // File : $RCSfile$ // // Version ...
/* Copyright (C) 2022 The Falco 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
// DGen/SDL v1.29 // by Joe Groff // How's my programming? E-mail <joe@pknet.com> /* DGen's font renderer. * I hope it's pretty well detached from the DGen core, so you can use it in * any other SDL app you like. */ #include <stddef.h> #include <stdio.h> #include <string.h> #include "font.h" /* The interface functi...
#include "Layout.hpp" #include "LIEF/ELF/Binary.hpp" #include "LIEF/ELF/Symbol.hpp" #include "LIEF/ELF/Section.hpp" #include <LIEF/iostream.hpp> #include "Builder.tcc" namespace LIEF { namespace ELF { Layout::Layout(Binary& bin) : binary_{&bin} {} Layout::~Layout() = default; bool Layout::is_strtab_shared_shstrta...
// <SysCSpartaSchedulerAdapter> -*- C++ -*- /** * \file SysCSpartaSchedulerAdapter.h * * \brief Glue code that connect the SPARTA scheduler to SystemC * */ #ifndef __SYSCSPARTASCHEDULERADAPTER_H__ #define __SYSCSPARTASCHEDULERADAPTER_H__ #include <climits> #include "sparta/kernel/Scheduler.hpp" #include "spar...
#define __STDC_FORMAT_MACROS #include "torch/csrc/python_headers.h" #include <structmember.h> #include <stdbool.h> // See Note [TH abstraction violation] // - Used to get at allocator from storage #include <TH/THTensor.hpp> #include <THC/THCTensor.hpp> #include "THCP.h" #include "override_macros.h" #include "torc...
// Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/graph-visualizer.h" #include <memory> #include <sstream> #include <string> #include "src/codegen/optimized-compilation-info.h" ...
#include<leveldb/db.h> #include <leveldb/env.h> #include<leveldb/filter_policy.h> #include<iostream> #include<string> #include<leveldb/statistics.h> using namespace std; int main(int argc,char *argv[]){ char *dbfilename = argv[1]; leveldb::Options options; leveldb::DB *db; options.opEp_.stats_ = leveldb::Create...
#include "utility/rtos.hpp" #if defined HOST_TEST DEFINE_FAKE_VOID_FUNC(vTaskStartScheduler); DEFINE_FAKE_VOID_FUNC(vTaskSuspend, TaskHandle_t); DEFINE_FAKE_VOID_FUNC(vTaskResume, TaskHandle_t); DEFINE_FAKE_VOID_FUNC(vTaskDelete, TaskHandle_t); DEFINE_FAKE_VOID_FUNC(vTaskDelayUntil, TickType_t *, TickType_t); DEFINE_F...
#ifndef __opengl_sample__SceneManager__ #define __opengl_sample__SceneManager__ class IScene; class SceneManager { IScene* _current; IScene* _nextScene; public: SceneManager(); ~SceneManager(); void update(); void render(); void loadScene(IScene* scene); IScene* getCurrent(); }; #endif...
#include "vntr_annotator.h" VNTRAnnotator::VNTRAnnotator(std::string& ref_fasta_file, bool _debug, uint32_t _m, int32_t _c) : debug(_debug), max_mlen(_m), min_copy(_c) { fai = fai_load(ref_fasta_file.c_str()); if (fai==NULL) { fprintf(stderr, "[%s:%d %s] Cannot load genome index: %s\n", __FILE__, __LIN...
#include "util/statemachine.hpp" #include <gtest/gtest.h> #include <gmock/gmock.h> using testing::_; using testing::InSequence; struct TestStateMachineContext { public: }; class TestState : public util::State<TestStateMachineContext&> { public: MOCK_METHOD1(entry, void(TestStateMachineContext&)); MOCK_METHOD1(exi...
#include "software/backend/input/network/filter/ball_filter.h" #include <Eigen/Dense> #include <algorithm> #include <limits> #include "shared/constants.h" #include "software/geom/util.h" #include "software/util/math/math_functions.h" BallFilter::BallFilter(unsigned int min_buffer_size, unsigned int max_buffer_size) ...
#include <memory> #include <Parsers/ASTLiteral.h> #include <Parsers/ASTSelectQuery.h> #include <Parsers/IParserBase.h> #include <Parsers/CommonParsers.h> #include <Parsers/ExpressionElementParsers.h> #include <Parsers/ExpressionListParsers.h> #include <Parsers/ParserSetQuery.h> #include <Parsers/ParserSampleRatio.h> #i...
// The MIT License (MIT) // // Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project // // 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 wit...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
// 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 "chrome/browser/printing/print_view_manager_base.h" #include <memory> #include <utility> #include "base/auto_reset.h" #include "base/bind.h" #i...
#include <libwidget/Slider.h> Recti Slider::track_bound() { return Recti{ (bound().width() - THUMP_SIZE), bound().height(), } .with_height(TRACK_HEIGHT) .centered_within(bound()); } Recti Slider::value_bound() { return track_bound() .take_left(track_bound().width() ...
/***************************************************************************** EnvFollowerPeak.cpp Author: Laurent de Soras, 2018 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under...
#include "../Binding_pch.h" #include <glbinding/gl/functions.h> using namespace glbinding; namespace gl { void glTagSampleBufferSGIX() { return Binding::TagSampleBufferSGIX(); } void glTangent3bEXT(GLbyte tx, GLbyte ty, GLbyte tz) { return Binding::Tangent3bEXT(tx, ty, tz); } void glTangent3bvEXT(const...
// // Copyright Jason Rice 2017 // 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 NBDL_EXT_STD_UNORDERED_MAP #define NBDL_EXT_STD_UNORDERED_MAP #include <nbdl/concept/Store.hpp> #include <nbdl/match.hpp...
/* Copyright (c) 2018 PaddlePaddle 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...
// 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 "third_party/blink/public/platform/web_thread_type.h" #include "base/logging.h" namespace blink { const char* GetNameForThreadType(WebThreadTy...
#include <RendererCorePCH.h> #include <RendererCore/Pipeline/RenderData.h> #include <RendererCore/Pipeline/Renderer.h> #include <RendererCore/Pipeline/SortingFunctions.h> // clang-format off EZ_BEGIN_SUBSYSTEM_DECLARATION(RendererCore, RenderData) BEGIN_SUBSYSTEM_DEPENDENCIES "Foundation" END_SUBSYSTEM_DEPEN...
// Copyright (c) 2018 Shahrzad Shirzad // // Distributed under the Boost Software License, Version 1.0.0. (See accompanying // file LICENSE_1_0.0.txt or copy at http://www.boost.org/LICENSE_1_0.0.txt) #include <phylanx/phylanx.hpp> #include <hpx/hpx_init.hpp> #include <iostream> #include <blaze/Math.h> #includ...
//misaka will carry me to master #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <functional> #include <numeric> #include <set> #include <map> #define ll long long #define lb long double #define sz(vec) ((in...
//===- InputSection.cpp ---------------------------------------------------===// // // 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 // //===---------------------------...
/* * UAVCAN data structure definition for libuavcan. * * Autogenerated, do not edit. * * Source file: /Users/bendyer/Projects/ARM/workspace/libuavcan/dsdl/uavcan/equipment/air_data/1026.Sideslip.uavcan */ #ifndef UAVCAN_EQUIPMENT_AIR_DATA_SIDESLIP_HPP_INCLUDED #define UAVCAN_EQUIPMENT_AIR_DATA_SIDESLIP_HPP_INCLU...
#include "CvGameCoreDLL.h" #include"CvEnums.h" #include "CvGameCoreDLLUnDefNew.h" # include <boost/python/enum.hpp> #include "CvGameCoreDLLDefNew.h" // // Python interface for free enums // void CyEnumsPythonInterface() { OutputDebugString("Python Extension Module - CyEnumsPythonInterface\n"); python::enum_<GameS...
/* Copyright (C) 2017 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
#include "mac_loop.h" #include <sys/event.h> // @link // https://www.freebsd.org/cgi/man.cgi?query=EV_SET&sektion=3&apropos=0&manpath=FreeBSD+10.0-RELEASE namespace fw { inline int evtsEncode(int evFlag) { int n = 0x00000000; for (auto item : Events) { n |= evtsEncode(item); } return n; } // namespace fw i...
/** * This file is part of GEO Project. * It is subject to the license terms in the LICENSE.md file found in the top-level directory * of this distribution and at https://github.com/GEO-Project/GEO-Project/blob/master/LICENSE.md * * No part of GEO Project, including this file, may be copied, modified, propagated, ...
/** * YATO library * * Apache License, Version 2.0 * Copyright (c) 2016-2020 Alexey Gruzdev */ #include <condition_variable> #include <memory> #include <yato/assertion.h> #include "../actor.h" #include "../actor_system.h" #include "actor_cell.h" #include "mailbox.h" #include "scheduler.h" #include "name_generator.h...
#include <boost/fusion/include/copy.hpp>
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <gmock/gmock-spec-builders.h> #include <ie_version.hpp> #include <ie_plugin_cpp.hpp> #include <cpp_interfaces/base/ie_infer_async_request_base.hpp> #include <cpp_interfaces/interface/ie_iexecutabl...
#pragma once #include "Runtime/Camera/CCameraShakeData.hpp" #include "Runtime/Character/CBoneTracking.hpp" #include "Runtime/MP1/World/CMetroidPrimeProjectile.hpp" #include "Runtime/Weapon/CBeamInfo.hpp" #include "Runtime/Weapon/CPlasmaProjectile.hpp" #include "Runtime/Weapon/CProjectileInfo.hpp" #include "Runtime/Wor...
#include "lib.h" #include <common/input_parser.h> #include <fstream> #include <iostream> int main(int argc, char *argv[]) { if (argc != 2) { std::cerr << "Input file required" << std::endl; return 1; } std::ifstream file(argv[1]); if (!file.is_open()) { std::cerr << "...
// Copyright (c) 2020 The Orbit 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 "SyntaxHighlighter/X86Assembly.h" #include <qregularexpression.h> #include <QColor> #include <QRegularExpression> #include <QString> #include ...
/***************************************************************************** AllPass2p.cpp Author: Laurent de Soras, 2016 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the t...
#include <bits/stdc++.h> #if defined(LOCAL) #include "prettyprint.h" #endif using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ii = pair<int,int>; using vii = vector<ii>; using l = long long; using vl = vector<l>; using vvl = vector<vl>; using ll = pair<l,l>; using vll = vector<ll>; using vvll...
#include <iostream> #include <cmath> #include <math.h> #include <vector> #include <array> #include "GeneralizedHeat.hpp" #include "TriDiagMatrix.hpp" #include "MassMatrix.hpp" #include "StiffnessMatrix.hpp" #include <fstream> #include <string> #include <functional> #include <boost/math/quadrature/gauss.hpp> using names...
/* * This source file is part of RmlUi, the HTML/CSS Interface Middleware * * For the latest information, see http://github.com/mikke89/RmlUi * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * Copyright (c) 2019 The RmlUi Team, and contributors * * Permission is hereby granted, free of charge, to...
#pragma once #include <vector>
#include <iostream> using namespace std; int main(){ cout << "Hello World!" << endl; return 0; }
#include "platform/local_country_file_utils.hpp" #include "platform/country_file.hpp" #include "platform/mwm_version.hpp" #include "platform/platform.hpp" #include "platform/settings.hpp" #include "coding/file_name_utils.hpp" #include "coding/internal/file_data.hpp" #include "coding/reader.hpp" #include "base/assert...
/*******************************************************************\ Module: Handling of functions without body Author: Michael Tautschnig Date: July 2016 \*******************************************************************/ /// \file /// Handling of functions without body #include "undefined_functions.h" #incl...
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include "vw_prediction.h" #include "vw_example.h" #include "vw_base.h" #include "vowpalwabbit.h" namespace VW { float V...
 #include "numerics/pid.hpp" #include "geometry/frame.hpp" #include "geometry/grassmann.hpp" #include "geometry/named_quantities.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "quantities/si.hpp" #include "testing_utilities/approximate_quantity.hpp" #include "testing_utilities/is_near.hpp" #include "...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Gdcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionrecord.h" #include "base58.h" #include "consensus...
/* * HashingOverlapper.hpp * * Created on: 31.01.2013 * Author: Christian Staudt */ #ifndef NETWORKIT_OVERLAP_HASHING_OVERLAPPER_HPP_ #define NETWORKIT_OVERLAP_HASHING_OVERLAPPER_HPP_ #include <functional> #include <networkit/overlap/Overlapper.hpp> namespace NetworKit { /** * @ingroup overlap * Deter...
// Copyright (c) 2015-2017 The Bitcoin Core developers // Copyright (c) 2021 The Human_Charity_Coin_Protocol Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bench.h" #include "prevector.h" static void ...
//-------------------------------------------------------------------------------------- // File: MSAAHelper.cpp // // Helper for managing MSAA render targets // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WAR...
/* This file is part of the PhantomJS project from Ofi Labs. Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com> Copyright (C) 2011 Ivan De Marino <ivan.de.marino@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following cond...
/** * 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...
/****************************************************************************************************** * 函数(Function): main() * 功能(Description): 测试串口功能 * 调用函数(Calls):open()、tcflush()、tcsetattr() * 其他(Others): 打开的串口可以调节,波特率可以调节,使用USB转TTL,发送。 * 作者(Author):Blues Yu * 联系方式(E-mail):2549721818@qq.com *************...
#include "components.h" #include "renderers.h" #include "../audio/effects.h" #include "../script/std-lib.h" #include <cstddef> namespace Tomahawk { namespace Engine { namespace Components { RigidBody::RigidBody(Entity* Ref) : Component(Ref, ActorSet::Synchronize) { } RigidBody::~RigidBody() { ...
/* * Catch v1.9.6 * Generated: 2017-06-27 12:19:54.557875 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software Lice...
/* * Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/> * Copyright (C) 2006-2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * 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 Foun...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <list> #include <arc/security/ArcPDP/attr/AttributeValue.h> #include <arc/security/ArcPDP/attr/BooleanAttribute.h> #include <arc/security/ArcPDP/fn/EqualFunction.h> #include "XACMLPolicy.h" #include "XACMLRule.h" #include "XACMLTarget.h" static Arc::Logger lo...
#pragma once #include <memory> #include <string> struct AVFormatContext; #include "../../stream_info/stream_info.hpp" class Factory; class Packet; class FormatContext { public: enum class StreamType { audio, video }; public: virtual ~FormatContext() = default; [[nodiscard]] virtua...
// Copyright 2013 The Flutter 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 "flutter/shell/platform/windows/window_win32.h" #include <imm.h> #include <cstring> #include "dpi_utils_win32.h" namespace flutter { namespac...
// 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/accessibility/chromevox/touch_exploration_controller.h" #include <math.h> #include <stddef.h> #include <memory> #include <vector> #includ...
/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2014 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ** following c...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2019-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
// Copyright (c) 2019-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #include <sync.h> #include <test/util/setup_common.h> #include <txmempool.h> #include <validation.h> #include <boost/test/...
#include "connectionsettings.h" #include <QSettings> #include <QCoreApplication> #include <QDebug> ConnectionSettings::ConnectionSettings(QObject *parent) : QObject(parent) { QCoreApplication::setOrganizationName("marknotgeorge"); QCoreApplication::setApplicationName("BelleChat"); } QString ConnectionSett...
/* * Copyright (c) 2011-2021, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/main/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, wit...
#include "stdafx_ao.h" #include "ScreenManager.hpp" #include "Function.hpp" #include "ResourceManager.hpp" #include "VRam.hpp" #include "stdlib.hpp" #include "../AliveLibAE/Renderer/IRenderer.hpp" #undef min #undef max namespace AO { ALIVE_VAR(1, 0x4FF7C8, ScreenManager*, pScreenManager_4FF7C8, nullptr); ALIVE_ARY(1...
// Copyright (c) 2009 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/strings/utf_string_conversion_utils.h" #include "base/third_party/icu/icu_utf.h" #include "build/build_config.h" namespace base { //...
// Copyright 2018 Waitman Gobble // Copyright (c) 2011-2016 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "stdafx.h" #include "ITimeProvider.h"
/* PROBLEM LINK:- https://leetcode.com/problems/find-the-duplicate-number/ */ class Solution { public: int findDuplicate(vector<int>& nums) { int n = nums.size(); sort(nums.begin(), nums.end()); for(int i = 1; i < n; i++) { if(nums[i-1] == nums[i]) { ...
// Copyright 2010 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/layers/layer.h" #include <algorithm> #include "base/debug/trace_event.h" #include "base/location.h" #include "base/metrics/histogram.h" #in...
/** * Copyright 2021 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...
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/parser/statement/relation_statement.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/parser/sql_statement.hpp" #includ...
#include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ...
//===- ObjCARCAliasAnalysis.cpp - ObjC ARC Optimization -------------------===// // // 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 <pybind11/functional.h> #include <pybind11/operators.h> #include <pybind11/stl.h> #include <torch/csrc/jit/python/pybind_utils.h> #include <torch/csrc/jit/tensorexpr/codegen.h> #ifdef USE_CUDA #include <torch/csrc/jit/tensorexpr/cuda_codegen.h> #endif #include <torch/csrc/jit/tensorexpr/graph_opt.h> #include <...