text
stringlengths
7
961k
#include <math.h> #include <iostream> using namespace std; int main(){ double raio, res; cin >> raio; res = 3.14159*pow(raio,2); cout.precision(4); cout << fixed << "A=" << res << endl; return 0; }
#include "Redirector.h" #include "WinSocket.h" #include "WinSerial.h" static DWORD WINAPI SocketReadThread(LPVOID arg); Redirector::Redirector(WinSocket * sock, WinSerial * ser) : sock_(sock) , ser_(ser) , runFlag_(TRUE) { } void Redirector::shutcut() { DWORD threadId; HANDLE thread = ::CreateTh...
#include "View.h" #include "Log.h" #include "Tcl.h" #include "Index.h" #include "UbuntuMono.ttf.h" #include <vector> #include <stb_truetype.h> #include <GLFW/glfw3.h> #include <sera.h> #define GL_BGRA 0x80E1 namespace view { static const tcl::Variable FONT_SIZE("view_fontSize", 16); static const tcl::Variable ...
#ifndef Hsd_PV64Ctrls_hh #define Hsd_PV64Ctrls_hh #include <string> #include <vector> namespace Pds_Epics { class EpicsPVA; }; namespace Pds { class Task; namespace HSD { class Module64; enum Action { Configure, Unconfigure, Reset, ConfigureA, ConfigureB }; enum State { InTransition=0, Configured=...
#include"xir_scanner.h" #include"xir_parser.h" #include"xir_token.h" #include"sl_state.h" #include"io/sys_file.h" #include<stdio.h> #include<stdlib.h> int main(int argc,char** argv) { if(argc!=2) { printf("usage: %s <file>\n",argv[0]); exit(-1); } SysFile* f=SysFile::open(argv[1],"rb"); if(f==NULL) { pri...
#include <Storages/MergeTree/MergeTreeDataPartWriterWide.h> namespace DB { namespace { constexpr auto DATA_FILE_EXTENSION = ".bin"; } MergeTreeDataPartWriterWide::MergeTreeDataPartWriterWide( const String & part_path_, const MergeTreeData & storage_, const NamesAndTypesList & columns_list_, const...
#ifndef color_lms_convert_YCgCo #define color_lms_convert_YCgCo #include "../../_internal/convert.hpp" #include "../category.hpp" #include "../../YCgCo/YCgCo.hpp" #include "../../rgb/rgb.hpp" #include "../../xyz/xyz.hpp" namespace color { namespace _internal { template < typename lms_tag_na...
--- content/renderer/render_thread_impl.cc.orig 2019-10-21 19:06:33 UTC +++ content/renderer/render_thread_impl.cc @@ -185,12 +185,21 @@ #include "mojo/public/cpp/bindings/message_dumper.h" #endif +#if !defined(OS_BSD) #if defined(OS_MACOSX) #include <malloc/malloc.h> #else #include <malloc.h> #endif +#endif ...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkCanvas.h" #include "modules/svg/include/SkSVGRenderContext.h" #include "modules/svg/include/SkSVGTransformableNode.h" #include "modules/svg/include/Sk...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE #pragma pack(push, 1) struct $_TypeDescriptor$_extraBytes_45 { const void *pVFTable; void *spare; char name[45]...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/game/bb/ScriptID.hpp> namespace RED4ext { namespace game::bb { struct ScriptID_EntityID : game::bb::ScriptID { static constexpr const char* NAME =...
//================================================================================================== /*! @file @copyright 2016 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) */ //===========================...
#include <math.h> // smallpt, a Path Tracer by Kevin Beason, 2008 #include <stdlib.h> // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt #include <stdio.h> // Remove "-fopenmp" for g++ version < 4.2 struct Vec { // Usage: time ./smallpt 5000 && xv image.ppm double x, y, z; // position...
/* Asynchronous WebServer library for Espressif MCUs Copyright (c) 2016 Hristo Gochkov. All rights reserved. This file is part of the esp8266 core for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as pu...
/* tracer.cpp */ /* Copyright © 2016 Far Group 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 conditions and th...
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "meta/processors/zone/UpdateZoneProcessor.h" DECLARE_int32(heartbeat_interval_secs); namespace nebula { names...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2017-2018 The Gostcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "net.h...
#include <pcl/ModelCoefficients.h> #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/filters/extract_indices.h> #include <pcl/filters/voxel_grid.h> #include <pcl/features/normal_3d.h> #include <pcl/kdtree/kdtree.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_consensus/model_t...
// Copyright (c) 2013 The Bitcoin Core developers // Copyright (c) 2019-2020 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 <boost/test/unit_test.hpp> #include "base58.h" #include "key.h" #incl...
#include "shader.h" #include <iostream> #include <filesystem> #include <fstream> #include <sstream> #include <glm/gtc/type_ptr.hpp> Shader::Shader() { m_program = glCreateProgram(); } Shader::Shader(const std::string& vertSource, const std::string& fragSource) :Shader() { assert(attachShaderSource(GL_VE...
/* ************************************************************************ * Copyright (c) 2020 Advanced Micro Devices, Inc. * * 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 re...
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_ParticleSubtrackEndingGlobalEventObserver.hpp //! \author Alex Robinson, Eli Moll //! \brief Particle subtrack ending event global observer bass class decl. //! //-------------------------------------------------...
#include <iostream>//cin/cout/wcin/wcout/left/right/internal/dec/hex/oct/fixed/scientific using namespace std; int main(void) { int n, x; cin >> n >> x; int front = x - 1; int back = n - x; cout << (front < back ? front : back) << endl; return 0; }
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The SIQS developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #incl...
<?hh // strict namespace Decouple\Common\Contract\DB; /** * This software is maintained voluntarily under the MIT license. * For more information, see <http://www.decouple.io/> */ /** * A database table interface * * @author Andrew Ewing <drew@phenocode.com> */ interface Table extends DataStore { /** * Che...
/* Copyright 2021 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...
// MIT License // // Copyright (c) 2020 Mechatronics and Haptic Interfaces Lab - Rice 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 l...
class Solution { public: bool XXX(vector<int>& nums) { int nLen = nums.size(); int farstep = 0; for(int i = 0; i<nLen && i<=farstep; ++i){ farstep = max(farstep,nums[i]+i); } return farstep>=(nLen-1); } };
// 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 "chrome/browser/ash/login/users/chrome_user_manager.h" #include "ash/constants/ash_switches.h" #include "base/command_line.h" #include "chrome/b...
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT /** * @file * @brief Define the properties of a test option. * */ #pragma once #include <azure/core/context.hpp> #include <string> #include <vector> namespace Azure { namespace Perf { /** * @brief Define the prope...
// Copyright 2014 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/assembler-inl.h" #include "src/callable.h" #include "src/compiler/code-generator-impl.h" #include "src/compiler/code-generator.h" #include...
/* * This file was modified from the original version within Gazebo: * * Copyright (C) 2014 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 * * ht...
//================================================================================================= /*! // \file src/mathtest/smatsmatsub/SCaHCa.cpp // \brief Source file for the SCaHCa sparse matrix/sparse matrix subtraction math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This f...
// // Copyright 2016 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 (c) 2016 by Contributors * \file broadcast_reduce_op.cc * \brief CPU Implementation of broadcast and reduce functions. */ #include "./broadcast_reduce_op.h" namespace mxnet { namespace op { DMLC_REGISTER_PARAMETER(ReduceAxesParam); DMLC_REGISTER_PARAMETER(ReduceAxisParam); DMLC_REGISTER_PARAMETER(...
#include<bits/stdc++.h> using namespace std; vector< vector< pair<int, double> > > graph; vector<double> dis; double dijkstra(int s, int d){ queue<int> q; fill(dis.begin(), dis.end(), -1); dis[s] = 1; q.push(s); while(!q.empty()){ int node = q.front(); q.pop(); int n = graph[node].size(); for(int i=0;i...
/* * Copyright (c) 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 <algorithm> #include <chrono> #include <cmath> #include <cstdio> #include <iomanip> #include <n...
/*-- Fitter.cpp This file is part of the Cornucopia curve sketching library. Copyright (C) 2010 Ilya Baran (baran37@gmail.com) 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 Foundatio...
// 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 <stdlib.h> #include "base/command_line.h" #include "content/browser/renderer_host/render_widget_host_impl.h" #include "content/common/view_messa...
//将一个字符串转换成一个整数(实现Integer.valueOf(string)的功能,但是string不符合数字要求时返回0), //要求不能使用字符串转换整数的库函数。 //数值为0或者字符串不是一个合法的数值则返回0。 //输入描述: 输入一个字符串,包括数字字母符号,可以为空 //输出描述: 如果是合法的数值表达则返回该数字,否则返回0 //示例1: 输入+2147483647 1a33 //输出2147483647 0 class Solution { public: int StrToInt(string str) { if(str...
#include "OpenGLWindow.h" //(*InternalHeaders(OpenGLWindow) #include <wx/string.h> #include <wx/intl.h> //*) //(*IdInit(OpenGLWindow) const long OpenGLWindow::ID_TIMER1 = wxNewId(); const long OpenGLWindow::ID_VIEWFULLSCREEN = wxNewId(); const long OpenGLWindow::ID_VIEWSHOWXYPLANE = wxNewId(); const long OpenGLWindow...
//----------------------------------*-C++-*----------------------------------// // Copyright 2021 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
#include "polkadot.h" // c++ 17 std::invoke implementation template <class PMF, class Pointer, class... Args> inline auto INVOKE(PMF pmf, Pointer &&ptr, Args &&... args) -> decltype(((*std::forward<Pointer>(ptr).*pmf)(std::forward<Args>(args)...))) { return ((*std::forward<Pointer>(ptr)).*pmf)(std::forward<Arg...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <gtest/gtest.h> #include <tests_common.hpp> #include <legacy/ie_layers_internal.hpp> #include <legacy/details/ie_cnn_network_iterator.hpp> #include <functional_test_utils/plugin_cache.hpp> #include "single_la...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is grant...
// Copyright (c) 2011-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <qt/bitcoin.h> #include <qt/bitcoingui.h> #in...
#pragma once #include "GameObject.hpp" namespace Butterfly { namespace GameObject { class Player : public GameObject { public: Player(); virtual ~Player(); void Input(); }; } }
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/benchmark_test.h" #include "bin/builtin.h" #include "bin/file.h" #include "bin/isolate_da...
#include "Button.hpp" Button::Button(int x, int y, int w, int h, std::string name, std::function<void()> func) : SpriteObject(x, y, w, h) { _name = name; SetAction(func); } Button::Button(int x, int y, int w, int h, std::string name) : SpriteObject(x, y, w, h) { _name = name; }
#pragma once #include <v8.h> #include <uv.h> #include <node.h> #include <memory> #include <iostream> #include "hdf5.h" #include "H5IMpublic.h" namespace NodeHDF5 { class H5im { public: static void Initialize (Handle<Object> target) { // append this function to the target object targ...
#include "maintenance-html.h" #include "pages/Pages.h" #include <LinkedList.hpp> #include <WifiHandler.hpp> String maintenanceProcessor(const String &var) { // Firmware upload if (var == "pioenv_name") return String(PIOENV_NAME); return String(); } void handleMaintenanceSetupPage(AsyncWebServerRequest *req...
/*********************************************************************************************************************** * 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...
// GAMBIT: Global and Modular BSM Inference Tool // ********************************************* /// \file /// /// Greg's code for combining HDF5 output of /// multiple MPI processes. Replaces the old /// Python script /// /// ********************************************* /// /// Authors (add name and date i...
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 Ryo Suzuki // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/Error.hpp> # include <Siv3D/En...
#include <cstdio> #include <cstdint> #include <vector> #include <numeric> //#include <signal.h> // for debugging #include <coat/Function.h> #include <coat/ControlFlow.h> #include <coat/Vector.h> // function signature using func_type = void (*)(const uint32_t*, const uint32_t*, uint32_t*, size_t); void mean( const...
#include "os/c-api/il2cpp-config-platforms.h" #include "os/Time.h" #include <stdint.h> #include <time.h> extern "C" { #if !RUNTIME_TINY uint32_t UnityPalGetTicksMillisecondsMonotonic() { return il2cpp::os::Time::GetTicksMillisecondsMonotonic(); } int64_t UnityPalGetTicks100NanosecondsDateTim...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
#include "Design/Components/Internal_Component.hpp"
// // Created by Ivan Shynkarenka on 29.03.2018 // #include "server/asio/service.h" #include "server/asio/tcp_client.h" #include "benchmark/reporter_console.h" #include "system/cpu.h" #include "threads/thread.h" #include "time/timestamp.h" #include <atomic> #include <iostream> #include <vector> #include <OptionPars...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2010-2012 Barend Gehrels, Amsterdam, the Netherlands. // 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...
/* * Copyright (c) 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 law ...
#include "PythonUserImpl.h" #include "Utilities\macros.h" #include "Implement\LogUserImpl.h" #include <iostream> #include <vcruntime_new.h> #include <assert.h> using namespace Yap; std::shared_ptr<PythonUserImpl> PythonUserImpl::s_instance; Yap::PythonUserImpl::~PythonUserImpl() { } Yap::PythonUserImpl& Yap::Pyt...
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2017-2019 The socialcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H)...
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Vladimír Vondruš <mosra@centrum.cz> Copyright © 2016 Jonathan Hale <squareys@googlemail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software ...
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2014 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 ...
// Copyright (c) 2011-2016 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 "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #inclu...
#ifndef __SMOKESIMULATOR_HPP__ #define __SMOKESIMULATOR_HPP__ #include <Arbiter/Core/Framework/Scene.hpp> #include <Arbiter/Core/Framework/Application.hpp> #include <Arbiter/Graphics/Engine/Camera.hpp> #include <Arbiter/Graphics/Engine/RaytracerRenderer.hpp> #include <Arbiter/Graphics/API/Opengl/GLGraphicsApi.hpp> cl...
#include "j1App.h" #include "Defs.h" #include "p2Log.h" #include "Entity.h" #include "j1Collision.h" #include "j1Particles.h" #include "j1Render.h" Entity::Entity(float x, float y, int type) : position(x, y), startPos(x, y) { this->type = type; } Entity::~Entity() { if (collider != nullptr) collider->toDelete = tr...
/* Copyright (c) 2010-2018, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have received *...
#include <franka_udrilling/udrilling_state.h> namespace franka_udrilling{ // #################################################################################### uDrillingState::uDrillingState(ros::NodeHandle &nh): nh_(nh){ ros::Rate loop_rate(1000); // create publishers -------------------------------------...
/** @file Statistics example plugin. This plugin demonstrates the statistics API and also serves as a regression test for TS-4840. If traffic_server is restarted, a plugin ought to be able to safely reattach to its statistics. This source is included as an example in the developers so if you change it, y...
/* * Copyright 2018-present Facebook, 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 a...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
//===- LoopCacheAnalysis.cpp - Loop Cache Analysis -------------------------==// // // The LLVM Compiler Infrastructure // // 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-...
#include "BoundType.hpp" #include "MetaLibrary.hpp" #include "StaticTypeId.hpp" #include "Bindings.hpp" #include "BinaryStream.hpp" #include "TestTypes/Physics.hpp" #include "TestTypes/Math.hpp" #include "TestTypes/Mesh.hpp" #include "TestTypes/Misc.hpp" #include "TestTypes/Actor.hpp" #include "TestTypes/ActorComponent...
/* * 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 m...
// // Created by egi on 5/23/19. // #include "axes_grid.h" #include "cpp/common_funcs.h" #include "core/gpu/coloring.cuh" #include <QPainter> axes_grid::axes_grid () : QOpenGLFunctions (), font ("Arial", 10) { } void axes_grid::initialize_gl (QObject *parent) { initializeOpenGLFunctions (); program = new QOpe...
// // Created by wei on 1/14/19. // #include "Array2DCuda.h" #include <Cuda/Common/UtilsCuda.h> namespace open3d { namespace cuda { template<typename T> Array2DCuda<T>::Array2DCuda() { max_rows_ = max_cols_ = pitch_ = -1; } template<typename T> Array2DCuda<T>::Array2DCuda(int max_rows, int max_cols) { Crea...
#include <iostream> #include <fstream> #include <cmath> #include <string> #include<assert.h> #include "Grid.h" using namespace std; Grid::Grid(int nn){ n = nn; std::cout << n << "\n"; x = new double[n]; conc = new double[4*n]; concA = new double[n]; concB = new double[n]; concY = new double[n]; concZ ...
// 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/profiles/profile.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_dialogs.h" #include "chrome/br...
class Twitter { public: /** Initialize your data structure here. */ Twitter() { } /** Compose a new tweet. */ void postTweet(int userId, int tweetId) { dq.push_front(make_pair(userId, tweetId)); // cout<<userId<<" "<<tweetId<<endl; } /** Retrieve the 10 mos...
// Copyright (C) 2018 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "detector.hpp" #include <algorithm> #include <iostream> #include <string> #include <map> #include <opencv2/core/core.hpp> #include <inference_engine.hpp> using namespace InferenceEngine; #define SSD_EMPTY_DETECTIONS_INDICATOR...
/** \file kk-ot-ext-snd.cpp \author michael.zohner@ec-spride.de \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2019 ENCRYPTO Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of the GNU...
//===-- clang-import-test.cpp - ASTImporter/ExternalASTSource testbed -----===// // // 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 // //===---------------------------...
// Boost.Range library // // Copyright Thorsten Ottosen 2003-2004. 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/rang...
/**************************************************************************** Copyright (c) 2014-2019 Gabriel Heilig fresh-engine funkyzooink@gmail.com ****************************************************************************/ #include "SettingsView.h" #include "../GameData/Constants.h" #include "../GameData/Ga...
#include "baldr/double_bucket_queue.h" #include "config.h" #include "midgard/util.h" #include "test.h" #include <algorithm> #include <cmath> #include <cstdint> #include <iostream> #include <vector> using namespace std; using namespace valhalla; using namespace valhalla::baldr; namespace { void TryAddRemove(const std...
#include <regex> #include <iostream> #include "TokenStream.h" TokenStream::TokenStream(const std::string &inputPath) { inputFilePath = inputPath; inputFile.open(inputPath); if (!inputFile.is_open()) std::cerr << "TokenStream unable to open file \"" << inputPath << "\"" << std::endl; defineTokens(); } ...
#include "cru/ui/helper/ClickDetector.h" #include "cru/common/log/Logger.h" #include "cru/ui/DebugFlags.h" #include "cru/ui/controls/Control.h" #include "cru/ui/host/WindowHost.h" #include <optional> namespace cru::ui::helper { Point ClickEventArgs::GetDownPointOfScreen() const { auto window_host = sender_->GetWin...
#pragma once #include "config.hpp" namespace reproject { struct Image { LensInfo lens; int width, height, channels; float *data; }; enum Interpolation { NEAREST, BILINEAR, BICUBIC, }; void reproject(const Image *in, Image *out, int num_samples, Interpolation interpolation); ...
/*************************************************/ /* gjk_epa.cpp */ /*************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /*************************************************/ /* ...
#include<set> #include<iostream> using namespace std; int main() { set<int> s; int n, type, item; cin >> n; while(n--) { cin >> type; if( type == 1) { cin >> item; s.insert(item); } else if(type == 2) { cin >> item...
// // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney // 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 "soci/soci-platform.h" #include "soci/sqlite3/soci-sqlite3.h" #include "so...
#include <iostream> #include <string> #include <vector> #include "bowdictionary.hpp" #include "convert_dataset.hpp" #include "histogram.hpp" #include "serialize.hpp" #include "utils.hpp" using namespace bovw; using namespace cv; int main() { // Create dictionary from binary const std::string dictionary_bin{"data...
/* S E M A P H O R E _ R E G I S T E R . C P P * BRL-CAD * * Copyright (c) 2019-2022 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * v...
// 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 "pal_config.h" #include "pal_networking.h" #include "pal_utilities.h" #include <stdlib.h> #include <pthrea...
#include <iostream> #include <random> #include <map> #include <string> #include <tuple> #include "division.h" #include "measurement.h" #include "matrix.h" #include "util_algorithm.h" #include "linear_model.h" int main() { }
//----------------------------------------------------------------------------- // // Gaggia-PI: Raspberry PI Controller for the Gaggia Classic Coffee // // Copyright 2014, 2015 by it's authors. // Some rights reserved. See COPYING, AUTHORS. // //----------------------------------------------------------------------...