text
stringlengths
7
961k
#ifdef HAVE_WINRT #define ICustomStreamSink StreamSink #include "ppltasks_winrt.h" #else EXTERN_C const IID IID_ICustomStreamSink; class DECLSPEC_UUID("4F8A1939-2FD3-46DB-AE70-DB7E0DD79B73") DECLSPEC_NOVTABLE ICustomStreamSink : public IUnknown { public: virtual HRESULT Initialize() = 0; virtual HRESULT Shutdo...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==...
/******************************************************************************* Copyright (C) 2017 Milo Solutions Contact: https://www.milosolutions.com 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 Sof...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
#include<bits/stdc++.h> using namespace std; #define int long long int int32_t main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin>>n; for(int i=1; i<=n; i++) cout<<i*i*(i*i-1)/2-4*(i-1)*(i-2)<<endl; return 0; }
// Copyright (c) 2020 Carnegie Mellon University // // 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...
//------------------------------------------------------------------------------------- // SimpleMath.inl -- Simplified C++ Math wrapper for DirectXMath // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIE...
#include "algostuff.hpp" using namespace std; int main() { deque<int> coll; list<int> subcoll; INSERT_ELEMENTS(coll, 1, 7); INSERT_ELEMENTS(coll, 1, 7); INSERT_ELEMENTS(subcoll, 3, 6); PRINT_ELEMENTS(coll, "coll: "); PRINT_ELEMENTS(subcoll, "subcoll: "); deque<int>::iterato...
#include "AudioSample.h" #if defined(ADD_SAMPLE) ADD_SAMPLE("Media", "Audio Player", AudioSample, 2); #endif AudioSample::AudioSample() : _formBackground(NULL), _formEngine(NULL), _formBraking(NULL), _audioBackground(NULL), _audioEngine(NULL), _audioBraking(NULL) { } void AudioSample::initialize() { ...
#include <iostream> #include <thread> #include "Util/Timer.cpp" #include "Contract/Coin.cpp" #include "Graph/Lockfree/Graph.cpp" #include "Util/FILEOPR.cpp" #include <unistd.h> #define MAX_THREADS 128 #define M_SharedObj 5000 #define FUN_IN_CONT 3 #define pl "===========================================================...
// license:BSD-3-Clause // copyright-holders:David Haywood #include "emu.h" #include "sh.h" #include "sh_dasm.h" #include "cpu/drcumlsh.h" void sh_common_execution::device_start() { /* allocate the implementation-specific state from the full cache */ m_sh2_state = (internal_sh2_state *)m_cache.alloc_near(sizeof(int...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
#include "ZipReader.h" #include <iostream> #include "Utils.h" ZipReader::ZipReader(std::string filepath) : filepath(filepath) { } ZipReader::~ZipReader() { if (ifs.is_open()) ifs.close(); } void ZipReader::readZipFile() { ifs.open(filepath, std::ios::binary); readEndOfCDR(); ifs.cl...
// Copyright (c) 2014-2020 Thomas Fussell // // 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, pu...
/* * Copyright (C) 2010-2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of con...
#include "c/methods/callbacks/ModStatsCallbacks.h" std::map<u32, GetModStatsParams *> get_mod_stats_callbacks; std::map<u32, GetAllModStatsParams *> get_all_mod_stats_callbacks; void modioOnGetModStats(u32 call_number, u32 response_code, nlohmann::json response_json) { ModioResponse response; modioInitResponse(&r...
// 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 "chainparamsbase.h" #include "util.h" #include <assert.h> #include <boost/assig...
#include "precompiled.h" #pragma hdrstop #include "ResourceManagementModule.h" #include <spdlog/spdlog.h> ResourceManagementModule::ResourceManagementModule() : m_resourceManager(std::make_shared<ResourcesManager>()) { spdlog::info("Initialize resource management module..."); } ResourceManagementModule::~Resou...
// The MIT License (MIT) // Copyright (c) 2013 lailongwei<lailongwei@126.com> // // 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...
/* Purpose: Generator for LM-Cut disjunctive action landmarks */ #include <map> #include <algorithm> #include <strips_prob.hxx> #include <fluent.hxx> #include <action.hxx> #include <cond_eff.hxx> #include "dalandmarks.hxx" #include "utility.hxx" namespace dalm{ void DALandmarkGenerator::construct_justified_graph...
//================================================================================================= /*! // \file src/mathtest/dvecdvecadd/V6bV6b.cpp // \brief Source file for the V6bV6b dense vector/dense vector addition math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file i...
/* * (C) 1999-2003 Lars Knoll (knoll@kde.org) * (C) 2002-2003 Dirk Mueller (mueller@kde.org) * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights * reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public ...
#include "CultureGroups.h" #include "../../Configuration.h" #include "OSCompatibilityLayer.h" #include <set> #include "Log.h" #include "../CultureMapper/CultureMapper.h" #include "../../EU4World/World.h" void mappers::CultureGroups::initForEU4() { LOG(LogLevel::Info) << "Parsing Cultures and Culture Groups"; registe...
/* * Copyright 2016 WebAssembly Community Group participants * * 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...
#pragma once #include <exchcxx/util/bidirectional_map.hpp> namespace ExchCXX { enum class Functional { SVWN3, SVWN5, BLYP, B3LYP, PBE0, }; extern BidirectionalMap<std::string, Functional> functional_map; std::ostream &operator<<(std::ostream &out, Functional functional); }
#include "external/ppp2code/file/std_lib_facilities.h" int main() { string name {}; int score {}; vector<string> names; vector<int> scores; while (cin >> name >> score) { if (name == "NoName" && score == 0) { break; } if (find(names, name) != names.end()) { simple_error("...
#include "StdAfx.h" #include "InstalledCheck.h" #include "InstalledCheckRegistry.h" #include "InstalledCheckFile.h" #include "InstalledCheckDirectory.h" #include "InstalledCheckProduct.h" InstalledCheck::InstalledCheck() { } InstalledCheck::~InstalledCheck() { } InstalledCheckPtr InstalledCheck::Create(const std::...
// 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 "src/virtualization/bin/guest/vshc.h" #include <fcntl.h> #include <fidl/fuchsia.hardware.pty/cpp/wire.h> #include <fuchsia/virtualization/cpp/fid...
#ifdef PEGASUS_OS_TRU64 #ifndef __UNIX_POLICYSETCOMPONENT_PRIVATE_H #define __UNIX_POLICYSETCOMPONENT_PRIVATE_H #endif #endif
/* * Recurser.cpp * * Created on: Jan 25, 2012 * Author: fabrizio */ #include "Recurser.h" Recurser::Recurser() { // TODO Auto-generated constructor stub } Recurser::~Recurser() { // TODO Auto-generated destructor stub } int Recurser::recurse(int x, ValueWrapper* r ) { cout << "Recursion with" << x...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__char_listen_socket_open_84_bad.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-84_bad.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: listen_socket Read data using ...
#ifdef NANOGUI_PYTHON #include "python.h" void register_eigen(py::module &m) { py::handle vector2i = py::detail::get_type_handle(typeid(Vector2i), false); if (!vector2i) { py::class_<Vector2i>(m, "Vector2i") .def(py::init<int, int>()) .def("__init__", [](Vector2i &v, py::list l...
/* * Copyright (c) 2016, NVIDIA CORPORATION. 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 co...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2018 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include "interface.h" size_t NVdso::Enumerate(TSymbol*, size_t) { return 0; } void* NVdso::Function(const char*, const char*) { return nullptr; }
// -*- C++ -*- //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
#include <stdio.h> #include <string> #include "initPapi.h" #include "naiveNeuralNetwork.h" #include <unistd.h> #include "optimizedNeuralNetwork.h" void test(int argc, char **argv) { char *trainingTaskFilename; char *classificationTaskFilename; const char *default_filename = "../data/cancer.dt"; const...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "clientversion.h" #include "coins.h" #include "cor...
/* * Copyright © 2010 Intel Corporation * * 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, pub...
//===-- Clang.cpp - Clang+LLVM ToolChain Implementations --------*- C++ -*-===// // // 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 // //===---------------------------...
// Copyright 2016, 2018 The Fuchsia Authors // Copyright (c) 2008-2015 Travis Geiselbrecht // // 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 <assert.h> #include <debug.h> #include <inttypes.h> #include <lib/ar...
// Copyright (c) 2011-2016 The Coinbit Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include <stdint.h> #include <sstream> #include <iomanip> #include <limits> #include <cma...
// Copyright (c) 2015-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 <bench/bench.h> #include <crypto/sha256.h> #include <key.h> #include <util/system.h> #include <util/strencodings.h>...
#include "GAMER.h" extern void (*Init_User_Ptr)(); #ifdef PARTICLE extern void (*Par_Init_ByFunction_Ptr)( const long NPar_ThisRank, const long NPar_AllRank, real *ParMass, real *ParPosX, real *ParPosY, real *ParPosZ, real *ParVelX, real *...
#include "m2qt_callback.h" #include "m2qt_messageparser.h" #include <QCryptographicHash> #include <QJsonObject> #include <QTextStream> #include <QDebug> using namespace M2QT; namespace { static CallbackHelper* helper = new M2QT::CallbackHelper(); // ----------------------------------------------------------------...
/*=================================================================== BlueBerry Platform 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 of MERCHANTABILITY or FITNESS...
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // this file is under MIT License. // See https://opensource.org/licenses/MIT for license information. // Copyright (c) 2020-2022 moe-org All rights reserved. //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #pragma ...
#include <boost/range/algorithm_ext/erase.hpp> #include <Interpreters/InterpreterSelectQuery.h> #include <Interpreters/InterpreterInsertQuery.h> #include <Interpreters/InterpreterAlterQuery.h> #include <Interpreters/castColumn.h> #include <Interpreters/evaluateConstantExpression.h> #include <Processors/Transforms/Addin...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
/********************************************************************************** * MIT License * * * * Copyright (c) 2021 Binbin Song <ssln.jzs@gmail.com> ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-string.hpp" // Completed includes // Type namespace: nam...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
#include <cstdio> #include <cctype> #include <vector> #include <set> #include <queue> #include <map> #include <stack> #include <iostream> #include <algorithm> #include <iterator> #include <string> #include <cstring> #include <sstream> #include <cstdlib> #include <locale> #include <cmath> #define scd(x) scanf("%d", &x) ...
// Copyright 2016 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 "object/thread_dispatcher.h" #include <assert.h> #include <inttypes.h> #include <lib/counters.h> #include <platform.h> #...
// // Created by Morteza Ahmadi on 2020-03-08. // #include "FuncBody.h" #include "../../../Visitors/Visitor.h" void FuncBody::accept(Visitor &visitor) { visitor.visit(this); }
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
#ifndef STAN_MATH_PRIM_PROB_CHI_SQUARE_LPDF_HPP #define STAN_MATH_PRIM_PROB_CHI_SQUARE_LPDF_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/constants.hpp> #include <stan/math/prim/fun/digamma.hpp> #include <stan/math/prim/fun/lgamma.hpp> #include <stan/math/prim/fu...
#include <iostream> using namespace std; #include "Lista.h" int main(){ Lista lst; lst.Insertar(5); lst.Insertar(1); lst.Insertar(4); lst.Mostrar(); lst.Modificar(5,4); lst.Mostrar(); lst.Buscar(7); lst.Mostrar(); lst.Eliminar(1); lst.Mostrar(); return 0; }
// (C) Copyright 2008-10 Anthony Williams // (C) Copyright 2011-2014 Vicente J. Botet Escriba // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef AUTOBOOST_THREAD_FUTURE_HPP #define AUTOBOOST_THREAD_...
// // Copyright 2015 The ANGLE 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. // // string_utils: // String helper functions. // #include "string_utils.h" #include <algorithm> #include <stdlib.h> #include <string.h> #incl...
// Copyright (c) 2011 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/renderer_host/backing_store_skia.h" #include "content/browser/renderer_host/render_process_host.h" #include "skia/ext/platf...
#include <stdio.h> int main () { int x1, x2, x3; scanf( "%d %d %d", & x1, &x2, & x3 ); int * pMin = & x1; if ( x2 < * pMin ) pMin = & x2; if ( x3 < * pMin ) pMin = & x3; printf( "Address of minimal value is %p, value = %d\n", pMin, * pMin ); int replacement; scanf( "...
#include<bits/stdc++.h> using namespace std; char upd[500]; char tun[500]; int main(){ cin>>tun; int n; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<strlen(tun);j++) upd[j]=tun[j]; for(int j=0;j<strlen(tun);j++){ if(upd[j]=='L'){ if(j==0){ if(upd[strlen(upd)-1]=='L') tun[strlen(upd)-1]='O'; else...
#ifndef __DXM_COM_INTERFACE_H__ #define __DXM_COM_INTERFACE_H__ #include <map> #include <string> #include <typeinfo> #include <memory> #include <functional> #include "dxm_util/util_memory.hpp" namespace dxm{ typedef std::string ComID; class ICom:public std::enable_shared_from_this<ICom> { public: typedef std::...
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #include <cassert> #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,&...
// 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 "remoting/client/ui/fling_tracker.h" #include <cmath> namespace remoting { namespace { const float kSecToMs = 0.001f; // TODO(yuweih): May n...
// #include <abel/system/endian.h> #include <algorithm> #include <cstdint> #include <limits> #include <random> #include <vector> #include <gtest/gtest.h> #include <abel/base/profile.h> namespace abel { namespace { const uint64_t kInitialNumber{0x0123456789abcdef}; const uint64_t k64Value{kInitialNumber}; const uint...
// Autogenerated from CppSourceCreator // Created by Sc2ad // ========================================================================= // Begin includes // Including type: Zenject.GuiRenderableManager/Zenject.<>c__DisplayClass1_0 #include "Zenject/GuiRenderableManager_--c__DisplayClass1_0.hpp" // Including type: Zenje...
#include <ATen/ATen.h> #include <ATen/NativeFunctions.h> #include <ATen/Parallel.h> namespace at { namespace native { namespace { inline int start_index(int a, int b, int c) { // NOLINTNEXTLINE(cppcoreguidelines-narrowing-conversions,bugprone-narrowing-conversions) return (int)std::floor((float)(a * c) / b); } ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/log/log.h> LOG_SETUP("attributecontent_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/searchcommon/attribute/attributecontent.h> #include <vespa/searchlib/attribute...
/*************************************************************************** * Copyright (c) 2017, Sylvain Corlay and Johan Mabille * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
/* * Author: Jon Trulson <jtrulson@ics.com> * Copyright (c) 2015 Intel Corporation. * * 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 limitatio...
// Include Radium base application and its simple Gui #include <Gui/BaseApplication.hpp> #include <Gui/RadiumWindow/SimpleWindowFactory.hpp> // include the core geometry/appearance interface #include <Core/Geometry/MeshPrimitives.hpp> // include the Engine/entity/component/system/animation interface #include <Engine/...
/* * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this software and ...
#ifndef WEBSERVER_HPP_ # define WEBSERVER_HPP_ # include <cpprest/http_listener.h> # include <string> # include <array> namespace WebServer { class WebServer final { public: WebServer(std::wstring &&ip, std::wstring &&port) noexcept; ~WebServer() noexcept; private: void GetColors(web::http::http_request me...
#include "InAppPurchases_precompiled.h"
/* * Copyright (c) 2013, Mathias Hällman. 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 notice, * this list of condi...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
/* * Copyright (c) 2021, NVIDIA CORPORATION. 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 requir...
#pragma once #include <memory> #include <chrono> #include "EffectorAcceptable.hpp" #include "Graphics/g3d/DuplicatedPanel.hpp" namespace otoge2019 { class JudgeEffect : public EffectorAcceptable { protected: std::unique_ptr<Graphics::g3d::DuplicatedPanel> panel; double alpha; std::chrono::syste...
/************************************************************************* * Arduino Library for Freematics OBD-II UART Adapter * Distributed under BSD License * Visit http://freematics.com for more information * (C)2012-2016 Stanley Huang <stanleyhuangyc@gmail.com> *****************************************************...
/* "Copyright [2021] <Anshika Dubey>" Given a string S, compute recursively a new string where identical chars that are adjacent in the original string are separated from each other by a "*". */ #include <bits/stdc++.h> void pairStar(char input[]) { int size = 0, i; while (input[size] != '\0') size++; ...
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software 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: * * 1. Redistributions of source c...
#pragma once #include <Core/Asset/GeometryData.hpp> #include <Core/Asset/VolumeData.hpp> #include <Core/Geometry/TriangleMesh.hpp> #include <Core/Geometry/Volume.hpp> #include <Engine/Component/Component.hpp> namespace Ra { namespace Engine { class Mesh; class PointCloud; class VolumeObject; } // namespace Engine } /...
/**************************************************************************** * * Copyright (C) 2015 Mark Charlebois. 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. Redistributio...
// Fill out your copyright notice in the Description page of Project Settings. #include "EFEQSTestDistanceBetween.h" #include "EnvironmentQuery/Items/EnvQueryItemType_VectorBase.h" #include "Kismet/GameplayStatics.h" #include "Kismet/KismetMathLibrary.h" #define ENVQUERYTEST_DISTANCE_NAN_DETECTION 1 namespace { F...
// Copyright 2018 The Darwin Neuroevolution Framework 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 ...
#include "Fuji_Internal.h" #if MF_RENDERER == MF_DRIVER_PS2 #include "Display_Internal.h" #include "MFView.h" #include "MFVector.h" #include "MFMatrix.h" #include "MFPrimitive.h" #include "MFTexture.h" #include "MFRenderer.h" #include "MFMaterial.h" #include "MFMaterial_Internal.h" #include "MFTexture_Internal.h" #i...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 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 "chainparamsbase.h" #include "clientversion.h" #include "rpcclient.h" #i...
//////////////////////////////////////////////////////////////////////////////// // Catapult Synthesis // // Copyright (c) 2003-2015 Calypto Design Systems, Inc. // All Rights Reserved // // This document contains information that is proprietary to Calypto Design // Systems, Inc. The original recipient of this do...
/*11656*/ /*Got it!*/ #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(){ string str; cin >> str; vector<string> v; for(int i = 0; str[i] != '\0'; i++){ v.push_back(str.substr(i)); } sort(v.begin(), v.end()); for(int i = 0; i < v...
// Author(s): Gijs Kant // Copyright: see the accompanying file COPYING or copy at // https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING // // 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 <time.h> ...
/** * @file debug.c * @author Michael Francis Williams (GitHub:Michael-ui) * @brief 使用USB虚拟串口模拟的调试窗口。 * @version 0.1 * @date 2021-11-06 * * @copyright Copyright (c) 2021 * */ #include "debug.h" #include "usbd_cdc_if.h" #include "freertos.h" #include "cmsis_os.h" uint8_t RxDataBuffer[BUFFER_SIZE]; void Deb...
/** * 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 <gtest/gtest.h> #include <memory> #include <utility> #include <vector> #incl...
/*========================================================================= Program: Visualization Toolkit Module: vtkImageStack.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is...
// // 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 and the following disclaimer. // * Redistributions in bin...
/** * 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...
#include <xpcc/architecture.hpp> extern "C" void __early_init() { SystemInit(); } extern "C" void __user_late_init() __attribute__((weak)); extern "C" void __late_init() { if(__user_late_init) __user_late_init(); xpcc::lpc11::SysTickTimer::enable(); __enable_irq(); } extern "C" __attribute__((noreturn, ...
// Copyright Louis Delacroix 2010 - 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) // // A pretty printing library for C++ // // Usage: // Include this header, and operator<< will "jus...