text
stringlengths
7
961k
/* Copyright (C) 2009 Imperial College London and others. Please see the AUTHORS file in the main source directory for a full list of copyright holders. Prof. C Pain Applied Modelling and Computation Group Department of Earth Science and Engineering Imperial College London am...
// Sales prediction #include <iostream> int main() { const long COMPANYX2018 = 2103419277; //Sets up Company X's profit from 2018. const double PERCENTAGE = 0.18; std::cout << "Company X's sales in 2018 was " << COMPANYX2018 << " dollars" << std::endl; //Going to calculate Company X's profit in 2019. long ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2021 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 <netaddress.h> #include <crypto/common.h> #include <crypto/sha3.h> #inc...
// Copyright 2018 Intel 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 required by appl...
// 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 "conditional_contextual_bandit.h" #include "reductions.h" #include "example.h" #include "global_data.h" #include "...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Greenhouse_Doorframe_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //-------------------------------------------------...
#include "jast/semantics/symbol-table.h" #include "jast/types/type.h" #include "jast/ir/value.h" #include <iostream> namespace jast { SymbolDefinition::SymbolDefinition(const std::string &name, Type *type, Ref<Value> value) : name_{name}, type_{ type}, depth_{0}, last_{nullptr}, next_{nullptr}, value_{value} { } S...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The CSIGNAL Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coincontroldialog.h" #include "ui_coincontroldialog.h" #inc...
// Copyright (c) 2009-2022 The Bitcoin Core developers // Copyright (c) 2017 The Zcash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or https://opensource.org/licenses/mit-license.php. #include <key.h> #include <random.h> #include <secp256k1.h> #include <secp256k1...
// chrono -*- C++ -*- // Copyright (C) 2008, 2009 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either v...
#include <eepp/graphics/textureatlasmanager.hpp> #include <eepp/maps/gameobjecttextureregion.hpp> #include <eepp/maps/maplightmanager.hpp> #include <eepp/maps/tilemap.hpp> #include <eepp/maps/tilemaplayer.hpp> namespace EE { namespace Maps { GameObjectTextureRegion::GameObjectTextureRegion( const Uint32& Flags, MapLa...
// Copyright (c) 2014-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 "chainparams.h" #include "main.h" #include "test/test_aethercoin.h" #include <boost/signals2/signal.hpp> #include ...
// 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 "ash/login/ui/login_expanded_public_account_view.h" #include "ash/login/mock_login_screen_client.h" #include "ash/login/ui/arrow_button_view.h" ...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2013 Laurent Gomila (laurent.gom@gmail.com) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages ...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /** * Copyright (c) 2014-2017, Regents of the University of California, * Arizona Board of Regents, * Colorado State University, * University Pierre & Marie Curie, Sorbonn...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes // Including type: System.ValueType #include "System/ValueType.hpp" // Completed includes // Begin forward declares // Forward declaring namespace: Unity...
// generated from rosidl_typesupport_c/resource/msg__type_support.cpp.em // generated code does not contain a copyright notice #include <cstddef> #include "rosidl_generator_c/message_type_support_struct.h" #include "rcl_interfaces/msg/rosidl_typesupport_c__visibility_control.h" #include "rcl_interfaces/srv/get_param...
/* This file is part of spixel. Spixel is free software : you can redistribute it and / or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Foobar is distributed in ...
// 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 "extensions/browser/api/cast_channel/cast_channel_api.h" #include <stddef.h> #include <stdint.h> #include <limits> #include <memory> #include <...
#include "GeneratorInterface/GenFilters/interface/TwoVBGenFilter.h" #include <iostream> using namespace std; TwoVBGenFilter::TwoVBGenFilter(const edm::ParameterSet& iConfig) { //now do what ever initialization is needed src_ = iConfig.getUntrackedParameter<edm::InputTag>("src", edm::InputTag("generator", "unsmeare...
#include <stdio.h> #include <math.h> void EX1() { int a, b; puts("Введите значения а и b"); scanf("%d %d", &a, &b); if (a > b) puts("a больше b"); else puts("a меньше или равно b"); if (a == b) puts("a равно b"); } void EX2() { int i; printf("Введите целое число:\n"); scanf("%d"...
///////////////////////////////////////////////////////////////////////////// // Name: src/common/xpmdecod.cpp // Purpose: wxXPMDecoder // Author: John Cristy, Vaclav Slavik // Copyright: (c) John Cristy, Vaclav Slavik // Licence: wxWindows licence /////////////////////////////////////////////////...
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2010-2012 Oleg Linkin * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE...
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #include "file29_data.h"
/* Copyright 2017 R. Thomas * Copyright 2017 Quarkslab * * 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 appli...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2017 ArangoDB GmbH, Cologne, Germany /// /// 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...
/****************************************************************************** * Copyright 2018 The Apollo 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 *...
#include "SteamGameServerCallbackAdapter.h" SteamGameServerCallbackAdapter::SteamGameServerCallbackAdapter(JNIEnv* env, jobject callback) { env->GetJavaVM(&m_vm); m_callback = env->NewGlobalRef(callback); m_callbackClass = 0; } SteamGameServerCallbackAdapter::SteamGameServerCallbackAdapter(JNIEnv* env, jclass call...
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -sycl-std=2020 -fsyntax-only // RUN: FileCheck -input-file=%t.h %s #include "Inputs/sycl.hpp" enum unscoped_enum : int { val_1, val_2 }; enum class no_namespace_int : int { val_1, val_2 }; enum class no_n...
// Copyright 2019 Google 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 applicable law or agreed to in w...
/** * NCtoolKit © 2007-2017 Luís F.Loureiro, under zlib software license. * https://github.com/nczeroshift/nctoolkit */ #include "nckDemo_Compound.h" Demo_Compound::Demo_Compound(Core::Window * wnd, Graph::Device * dev){ this->dev = dev; this->wnd = wnd; shader = NULL; model = NULL; time = 0; } Demo_Co...
// 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 <map> #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" using extensions::Extension; usin...
#include <qt/test/wallettests.h> #include <qt/test/util.h> #include <interfaces/chain.h> #include <interfaces/node.h> #include <qt/syscoinamountfield.h> #include <qt/optionsmodel.h> #include <qt/platformstyle.h> #include <qt/qvalidatedlineedit.h> #include <qt/sendcoinsdialog.h> #include <qt/sendcoinsentry.h> #include ...
/********** This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This libr...
/****************************************************************************** * * Project: WFS Translator * Purpose: Implements OGRWFSJoinLayer class. * Author: Even Rouault, <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright...
// 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. #include "sos.h" #include "datatarget.h" #include "corhdr.h" #include "cor.h" #include "dacprivate.h" #include "sosp...
// // Copyright 2014 John Manferdelli, 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 // or in the the file LICENSE...
#include "irods_configuration_parser.hpp" #include "irods_log.hpp" #include <algorithm> #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> namespace fs = boost::filesystem; namespace irods { configuration_parser::configuration_parser() { } // ctor configuration_parser::~configuration...
#include "ConsoleObject.h" ConsoleObject::ConsoleObject( TextScreen* _Screen, const char* _Text, const ConsoleVector& _Pos ) : Screen_(_Screen) , Pos_(_Pos) { //if (nullptr == _Screen) //{ // assert(false); //} if (nullptr == _Text) { return; } for (int i = 0; i < 3; i++) { Text_[i] = _Text[i]; }...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <node_context.hpp> #include "default_opset.hpp" namespace ov { namespace frontend { namespace paddle { namespace op { NamedOutputs softplus(const NodeContext& node) { auto data = node.get_ng_input("X"); auto beta =...
/* * Copyright 2019-2020 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 law or agreed...
#include <iostream> #include <cstdlib> #include <iomanip> using namespace std; void quickSort (int * const, int, int); int partition (int * const, int, int); void swap (int * const, int * const); int main() { const int arraySize = 10; int a[arraySize] = {37, 2, 6, 4, 89, 8, 10, 12, 68, 45}; cout << "Data items ...
#include "pairwise_scoring.h" #include "pairwise_leaves_calculation.h" #include "short_vector_ops.h" #include <util/generic/xrange.h> #include <util/system/yassert.h> using namespace NCB; void TPairwiseStats::Add(const TPairwiseStats& rhs) { Y_ASSERT(SplitEnsembleSpec == rhs.SplitEnsembleSpec); Y_ASSERT(...
#pragma once #include "../performance_info.hpp" #include <distant/error/winapi_error.hpp> namespace distant::system { inline performance_info::performance_info() { if (!boost::winapi::get_performance_info(&info_, sizeof(info_))) throw winapi_error("[performance_info::{ctor}] GetPerformanceInfo failed"); } ...
#include <iostream> #include <chrono> #include <random> #include "tbb/tbb.h" using namespace std; #include "src/bwtree.h" using namespace wangziqi2013::bwtree; ////////////////////////Helper functions for P-BwTree///////////////////////////// /* * class KeyComparator - Test whether BwTree supports context * ...
/* Copyright 2020 The OneFlow 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 agre...
// // AssignmentClientMonitor.cpp // assignment-client/src // // Created by Stephen Birarda on 1/10/2014. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <memory> #in...
// 2006.12.27 - Copyright Victor Dods - Licensed under Apache 2.0 #if !defined(BARF_REGEX_NFA_HPP_) #define BARF_REGEX_NFA_HPP_ #include "barf_regex.hpp" #include <sstream> namespace Barf { class Graph; namespace Regex { // /////////////////////////////////////////////////////////////////////////// // Graph::Nod...
// Code token from the https://github.com/shinh/test/blob/master/badlock1.cc // http://shinh.hatenablog.com/entry/20140601/1401561716 #include <pthread.h> pthread_mutex_t g_mu = PTHREAD_MUTEX_INITIALIZER; class C { public: C() { pthread_mutex_init(&mu_, NULL); } void doSlowOperation() { pthread_mutex_l...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "EnginePrivate.h" #include "Engine/LevelBounds.h" #include "Components/BoxComponent.h" // Default size of the box (scale) static const FVector DefaultLevelSize = FVector(1000.f); ALevelBounds::ALevelBounds(const FObjectInitializer& ObjectInitializ...
#include "mainwindow.h" #include "ui_mainwindow.h" #include "QMessageBox" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); ui->statusbar->addPermanentWidget(ui->pushButton_2); } MainWindow::~MainWindow() { delete ui; } void MainWindow::o...
/** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
/** * @file Denominations.cpp * * @brief Functions for converting to/from Zerocoin Denominations to other values library. * * @copyright Copyright 2017 PIVX Developers * @license This project is released under the MIT license. **/ #include "Denominations.h" #include "amount.h" namespace libzeroc...
#include "AliSigma0PhotonCuts.h" #include <iostream> #include "AliAnalysisManager.h" #include "AliInputEventHandler.h" #include "AliAODv0.h" #include "TMath.h" #include "AliV0ReaderV1.h" #include "AliNanoAODTrack.h" ClassImp(AliSigma0PhotonCuts) //______________________________________________________________________...
#ifndef MIGRAPHX_GUARD_RTGLIB_COMPILE_OPTIONS_HPP #define MIGRAPHX_GUARD_RTGLIB_COMPILE_OPTIONS_HPP #include <migraphx/config.hpp> #include <migraphx/tracer.hpp> namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { struct compile_options { bool offload_copy = false; bool fast_math = true; tracer...
#include <cstdlib> #include <chrono> #include <fstream> #include <map> #include <memory> #include <string> #include <utility> #include <vector> #include "DetectorDescription/Core/interface/DDRotationMatrix.h" #include "DetectorDescription/Core/interface/DDTranslation.h" #include "DetectorDescription/Core/interface/DDC...
//================================================================================================== /** Copyright 2017 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //====================================...
// Copyright 2019 GurumNetworks, 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 agree...
/* * Copyright (C) 2019 Open Source Robotics Foundation * * 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 appl...
/****************************************************************************** * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Implements OGRIDBSelectLayer class, layer access to the results * of a SELECT statement executed via Open() * (based on ODBC and PG drivers)...
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2017 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
#include <SofaTest/Sofa_test.h> #include <sofa/helper/BackTrace.h> #include <SofaSimulationGraph/DAGSimulation.h> using sofa::simulation::Simulation ; using sofa::simulation::Node ; using sofa::simulation::setSimulation ; using sofa::core::objectmodel::New ; using sofa::core::objectmodel::BaseData ; using sofa::simula...
#ifndef MINLIB_RANGES_HPP #define MINLIB_RANGES_HPP #include <tuple> template <typename T> class DomainRange_iter { T begin; T end; T step; public: DomainRange_iter(T _begin, T _end, T _step) : begin(_begin), end(_end), step(_step) {} T operator*() { return begin; } void operator++() { begin +...
/* ============================================================================== GenericEditor.cpp Created: 3 Nov 2019 4:47:39pm ============================================================================== */ #include "GenericEditor.h" namespace reactjuce { //===================================...
// Copyright (c) 2007-2021 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,...
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ #include "ANTLRErrorStrategy.h" antlr4::ANTLRErrorStrategy::~ANTLRErrorStrategy() {}
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/src/fgas/src/fgas_base.h" #include "fx_gefont.h" #include "fx_fo...
// RUN: %clang_analyze_cc1 -analyzer-checker=optin.mpi.MPI-Checker -verify %s #include "MPIMock.h" void matchedWait1() { int rank = 0; double buf = 0; MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (rank >= 0) { MPI_Request sendReq1, recvReq1; MPI_Isend(&buf, 1, MPI_DOUBLE, rank + 1, 0, MPI_COMM_WORLD, &sen...
#include <Arduino.h> // connect motor controller pins to Arduino digital pins // motor one int enA = 10; int in1 = 9; int in2 = 8; // motor two int enB = 5; int in3 = 7; int in4 = 6; void demoOne(); void demoTwo(); void setup() { // set all the motor control pins to outputs pinMode(enA, OUTPUT); pinMode(enB, O...
#include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> using std::cout; using std::endl; using std::ifstream; using std::istringstream; using std::string; using std::vector; enum class State { kEmpty, kObstacle, kClosed }; string CellString(State cell) { return (cell == State...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/autoscaling/model/ScheduledUpdateGroupActionRequest.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSString...
#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...
// license:BSD-3-Clause // copyright-holders:Ryan Holtz /************************************************************************* drivers/digijet.cpp Skeleton driver for the Volkswagen Digijet series of automotive ECUs The Digijet Engine Control Unit (ECU) was used in Volkswagen vehicles from the ea...
#include "TopQuarkAnalysis/Examples/plugins/TopElecAnalyzer.h" TopElecAnalyzer::TopElecAnalyzer(const edm::ParameterSet& cfg): inputToken_ (consumes<std::vector<pat::Electron> >(cfg.getParameter<edm::InputTag>("input" ))), verbose_(cfg.getParameter<bool> ("verbose")) { edm::Service<TFileService> fs; ...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The Ava Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionrecord...
/* Copyright (C) 2021 George Cave. 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...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
// *************************************************************************** // // Generated automatically by genwrapper. // Please DO NOT EDIT this file! // // *************************************************************************** #include <osgIntrospection/ReflectionMacros> #include <osgIntrospection/Type...
//***************************************************************************** // Copyright 2017-2019 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 at // // http://w...
/* $Id: CSAM.cpp 70953 2018-02-10 16:40:22Z vboxsync $ */ /** @file * CSAM - Guest OS Code Scanning and Analysis Manager */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * ...
#pragma once #include "nwn_api.hpp" #ifdef NWN_API_PROLOGUE NWN_API_PROLOGUE(CERFKey) #endif struct CExoFile; struct CExoString; typedef int BOOL; struct CERFKey { char m_sName[16]; uint32_t m_nID; uint16_t m_nType; uint8_t m_nUnused[2]; CERFKey(); ~CERFKey(); void SetName(CExoStrin...
/*__________________________________________________________________________________________ (c) Hash(BEGIN(Satoshi[2010]), END(Sunny[2012])) == Videlicet[2014] ++ (c) Copyright The Nexus Developers 2014 - 2019 Distributed under the MIT software license, see the accompanying ...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * \brief inference engine plugin API wrapper, to be used by particular implementors * \file ie_plugin_base.hpp */ #pragma once #include <memory> #include <map> #include <string> #include <ie_icnn_network.hpp> #include <ie_i...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Completed includes // Begin il2cpp-utils forward declares struct Il2CppString; // Completed il...
#include <bits/stdc++.h> using namespace std; int n; string s1, s2; vector<vector<int> > g; bool vis[26]; queue<int> q; bool BFS(int src, int dest) { memset(vis, false, sizeof vis); while(!q.empty()) q.pop(); q.push(src); while(!q.empty()) { int fr = q.front(); q.pop(); if(fr == dest) return true; ...
/******************************************************************************* * Project: Nebula * @file Actor.hpp * @brief Nebula构成实体 * @author Bwar * @date: 2016年8月9日 * @note Nebula构成实体 * Modify history: ******************************************************************************/ #ifndef...
#include<bits/stdc++.h> #include<stdint.h> using namespace std; #define IOS {cin.tie(nullptr);ios_base::sync_with_stdio(false);} #define N 30000 int l[N],r[N]; vector<int> v[N]; bool visit[N]; int sz[N]; int dfs(int x){ visit[x] = true; int mx = 0; for(int i : v[x]) if(!visit[i]) mx = max(mx,dfs(i)); else mx =...
/** * @file oglplus/renderbuffer.hpp * @brief Renderbuffer object wrappers * * @author Matus Chochlik * * Copyright 2010-2015 Matus Chochlik. 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) */ #pragma ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 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 "Base/Exception.h" #include "Debug/DVAssert.h" #include "Logger/Logger.h" #include "Utils/UTF8Utils.h" #include <utf8.h> namespace DAVA { #ifdef __DAVAENGINE_WINDOWS__ static_assert(sizeof(char16) == 2, "check size of wchar_t on current platform"); #else static_assert(sizeof(char16) == 4, "check size of wch...
/******************************************************************** * This file includes functions that are used to generate SPICE files * or code blocks, with a focus on * `include user-defined or auto-generated netlists in SPICE format *******************************************************************/ #inclu...
/* * * Copyright (c) 2018-2020 The Forge Interactive Inc. * * This file is part of The-Forge * (see https://github.com/ConfettiFX/The-Forge). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/* * Copyright (C) 2011-2020 Intel 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 li...
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: dl_mk_rule_inliner.cpp Abstract: Rule transformer which simplifies interpreted tails Author: Krystof Hoder (t-khoder) 2011-10-01. Revision History: Added linear_inline 2012-9-10 (nbjorner) Disable inliner for quantified rules 2012-1...
#pragma once #include <unordered_map> #include <tuple> #include "crab/cfg.hpp" #include "crab/ebpf_domain.hpp" namespace crab { using domains::ebpf_domain_t; using invariant_table_t = std::unordered_map<label_t, ebpf_domain_t>; std::pair<invariant_table_t, invariant_table_t> run_forward_analyzer(cfg_t& cfg); } //...
/*============================================================================= Copyright (C) 2020 yumetodo <yume-wikijp@live.jp> Distributed under the Boost Software License, Version 1.0. (See https://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #...
// Copyright (c) 2020-2021 The Eleccoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <wallet/test/wallet_test_fixture.h> WalletTestingSetup::WalletTestingSetup(const std::string& chainName) : Tes...
#include <emscripten/bind.h> #include <emscripten/val.h> #include "lib/jxl/base/thread_pool_internal.h" #include "lib/jxl/enc_external_image.h" #include "lib/jxl/enc_file.h" #include "lib/jxl/enc_color_management.h" using namespace emscripten; thread_local const val Uint8Array = val::global("Uint8Array"); struct JX...