text
stringlengths
7
961k
// Nombre y Apellidos: Erik Karlgren Domercq // Comentario general sobre la solución, // explicando cómo se resuelve el problema #include <iostream> #include <fstream> #include <vector> #include <list> #include "EnterosInf.h" // propios o los de las estructuras de datos de clase using namespace std; using Datos = s...
// Copyright 2021 HUYA // // 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...
/* * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * * License Agreement * For Open Source Computer Vision Library * ...
/*! * Copyright (c) 2015 by Contributors * \file threaded_engine.cc * \brief implements base threaded engine. * \author Yutian Li */ #include <dmlc/logging.h> #include <cassert> #include <algorithm> #include <condition_variable> #include <mutex> #include <utility> #include "./threaded_engine.h" #include "../common...
#include "RegressionFactory.hpp" using namespace EnjoLib; RegressionFactory::RegressionFactory() { //ctor } RegressionFactory::~RegressionFactory() { //dtor } /* #include "RegressionRegression3.hpp" #include "RegressionMKL.hpp" #include "RegressionNumpy.hpp" #include "RegressionNewmat10.hpp" */ /* Corrade::C...
#include <iostream> #include <string> #include "splayTree.h" using namespace std; void printInformation() { cout << endl; cout << "Choose operation:" << endl; cout << "0 - Exit;" << endl; cout << "1 - Add new value;" << endl; cout << "2 - Get value by key;" << endl; cout << "3 - Is key contained;" << endl; cou...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
#include <array> #include <iostream> #include <memory> #include <string> #include "envoy/buffer/buffer.h" #include "envoy/event/dispatcher.h" #include "envoy/http/codec.h" #include "source/common/buffer/buffer_impl.h" #include "source/common/common/utility.h" #include "source/common/http/exception.h" #include "source...
// // Copyright (c) 2008-2022 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...
/* Problem: P1549 Time: 2020/10/03 11:11:47 Author: Insouciant21 Status: 打表出省一((( */ #include <bits/stdc++.h> using namespace std; int main() { int n; scanf("%d", &n); switch (n) { case 1: case 3: case 9: puts("NO"); break; case 2: ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
//===- SearchableTableEmitter.cpp - Generate efficiently searchable tables -==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. #include "exec/vectorized/intersect_node.h" #include <memory> #include "column/column_helper.h" #include "exec/pipeline/limit_operator.h" #include "exec/pipeline/pipeline_builder.h" #include "exec/pipeline/set/intersec...
/* * This file is part of the Visual Computing Library (VCL) release under the * MIT license. * * Copyright (c) 2015 Basil Fierz * * 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 with...
/******************** RISC-V Encoding ********************/ #ifndef __RISCV_ENCODING_HPP__ #define __RISCV_ENCODING_HPP__ #define XLEN 32 #define INSTR_SIZE XLEN #define MEM_WORD_ADDR_LEN (XLEN-2) #define MEM_WORD XLEN #define OP_LEN 7 #define OPIMM BvConst(0x13, OP_LEN) #...
/* * Copyright (c) 2020-2021 Huawei Device 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...
/* * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) 2011, 2012 Ericsson AB. 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 re...
/* * Copyright (C) 2018 ZDP Developers - All Rights Reserved * _________ ____ * |__ / _ \| _ \ * / /| | | | |_) | * / /_| |_| | __/ * /____|____/|_| * * <zdp@zdp.io> */ #include "../mnemonics.h" namespace zdp { std::vector<std::string> get_mnemonics_japanese() { std::vector<std::string...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #ifndef OPENCV_DNN_CUDA4DNN_CSL_CUDNN_ACTIVATION_HPP #define OPENCV_DNN_CUDA4DNN_CSL_CUDNN_ACTIVATION_HPP #include <cudnn.h>...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 ...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, John Haddon. All rights reserved. // Copyright (c) 2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided...
/* * Copyright (c) 2019, The OpenThread Authors. * 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 * n...
#include "actorInteractorStyle.h" #include "vtkRenderWindow.h" #include "qdebug.h" #include "vtkMatrix4x4.h" #include "vtkRenderer.h" #include "vtkUnstructuredGrid.h" void actorInteractorStyle::OnLeftButtonDown() { int x = this->Interactor->GetEventPosition()[0]; int y = this->Interactor->GetEventPosition()[1]; th...
// Copyright 2018 David Conran // // Code to emulate Whirlpool protocol compatible devices. // Should be compatible with: // * SPIS409L, SPIS412L, SPIW409L, SPIW412L, SPIW418L // Remotes: // * DG11J1-3A / DG11J1-04 // * DG11J1-91 // // Note: Smart, iFeel, AroundU, PowerSave, & Silent modes are unsupported. // Adv...
/*! * @file FgControlledAircraft.cpp * * @brief Aircraft abstraction of FlightGear's aircrafts that under our control * * * Copyright © 2015-2016 Oleksii Aliakin. All rights reserved. * Author: Oleksii Aliakin (alex@nls.la) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
// TranslationTablesDialog.cpp // Author: T A Burgess // Raised Bar Ltd. // http://www.raisedbar.net #include "TranslationTablesDialog.h" TranslationTablesDialog::TranslationTablesDialog( const wxString& title, std::string strHash, boost::shared_ptr<SurfaceProtocol> pProtocol) : wxDialog(NULL, -1, title, wx...
/* Copyright (c) 2005-2022 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://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
// Name: SeaOfThieves, Version: 2.0.23 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //--------------------------------------------...
// 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 "impeller/base/strings.h" #include <cstdarg> namespace impeller { IMPELLER_PRINTF_FORMAT(1, 2) std::string SPrintF(const char* format, ...) { ...
/** * This file is part of the "libterminal" project * Copyright (c) 2019-2020 Christian Parpart <christian@parpart.family> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to i...
// ______ _____ _ ________ // / ____/___ / ___/(_)___ ___ / _/ __ | // / / / __ \\__ \/ / __ `__ \ / // / / / // / /___/ /_/ /__/ / / / / / / // // /_/ / // \____/\____/____/_/_/ /_/ /_/___/\____/ // Kratos CoSimulationApplication // // License: BSD License, see license.txt // // ...
#pragma once #ifndef IO_FILTERFILEHANDLE_H #define IO_FILTERFILEHANDLE_H #include <memory> #include <string> #include <istream> #include <fstream> #include <sstream> #include <algorithm> #include <utility/Logging.hpp> #include <utility/Exception.hpp> #include <engine/Vectormath_Defines.hpp> #include <io/Fileformat.hp...
/* ----------------------------------------------------------------------------- Copyright (c) 2006 Simon Brown si@sjbrown.co.uk 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 t...
#include <ArronEngine.h> class Sandbox : public ArronEngine::Application { public: Sandbox() { } ~Sandbox() { } }; ArronEngine::Application* ArronEngine::CreateApplication() { return new Sandbox(); }
#include "catch.hpp" #include "xoroshiro.hpp" #include "random_source.hpp" #include "sequence_model.hpp" TEST_CASE("xoroshiro seeding gives same results via array and lambda") { xoroshiro128plus_engine eng_1; xoroshiro128plus_engine eng_2; std::array<uint32_t, 4> vals {{ 314, 42, 2718, 99 }}; unsigned int i =...
// Copyright (c) 2015 Daniel Bourgeois // // SPDX-License-Identifier: BSL-1.0 // 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 <pika/execution.hpp> #include <pika/functional/deferred_call.hpp> #include ...
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #include "MLModelTests.hpp" #include "../src/Format.hpp" #include "../src/Model.hpp" #include "../sr...
/////////////////////////////////////////////////////////////////////////////// // // // DxilPIXPasses.cpp // // Copyright (C) Microsoft Corporation. All rights reserved. // ...
// // ip/basic_resolver_iterator.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef...
#include <Omega_h_mesh.hpp> #include "pumipic_kktypes.hpp" #include "pumipic_adjacency.hpp" #include <particle_structs.hpp> #include <Kokkos_Core.hpp> #include "pumipic_mesh.hpp" #include <fstream> using particle_structs::lid_t; using particle_structs::SellCSigma; using particle_structs::MemberTypes; using pumipic::fp...
// Copyright 2020 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
#include "ofApp.h" #include "mathutil.h" //-------------------------------------------------------------- void ofApp::setup(){ frame.set(0, 0, 1000, 1000 * ofGetScreenHeight() / ofGetScreenWidth()); ofLog(OF_LOG_NOTICE, "width X height = %f X %f", frame.getWidth(), frame.getHeight()); kinect.open()...
/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
#include <common/debug.h> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <string> #include <thread> #include <vector> #include "client/client_engine.h" #include "server/server_engine.h" #include "client/client_config.h" #include "server/server_config.h" #include <common/network...
//===--- Context.cpp ------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
#include <gloperate/base/directorytraversal.h> #include <globjects/base/File.h> #include <globjects/logging.h> #include <globjects/NamedString.h> #ifdef _MSC_VER #include "windows.h" #include "dirent_msvc.h" #else #include <dirent.h> #endif namespace { void getFiles(const std::string & dirName, bool recursive, std...
/* * 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 <cpuinfo.h> #include <gtest/gtest.h> #include <qnnpack/isa-checks.h> #include <qnnpack/u8ma...
#include<bits/stdc++.h> #define ll long long #define pl pair<l,l> #define pll pair<ll,ll> #define mp make_pair #define pb push_back #define F first #define S second #define MOD 1000000007 #define vll vector<ll> #define fio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0) using namespace std; ll meanOf(vll v) { ll ...
// Copyright 2020 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/ui/android/passwords/all_passwords_bottom_sheet_view_impl.h" #include "base/android/jni_android.h" #include "base/android/jni_st...
/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * 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 requi...
void InspectorOverlay::update() { if (isEmpty()) { m_client->hideHighlight(); return; } FrameView* view = m_page->mainFrame()->view(); if (!view) return; IntRect viewRect = view->visibleContentRect(); FrameView* overlayView = overlayPage()->mainFrame()->view(); // Include scrollbars to avoid masking them by the gutte...
/* file: kernel_function_rbf_dense_default_batch_fpt_dispatcher.cpp */ /******************************************************************************* * Copyright 2014-2018 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms ...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) 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 o...
/*************************************************************************** * Copyright (C) 2013 by Terraneo Federico * * * * This program is free software; you can redistribute it and/or modify * * it unde...
#ifndef __REGISTERS_HPP_ #define __REGISTERS_HPP_ #include <sys/user.h> #include <algorithm> #include <sys/ptrace.h> namespace picodbg { enum class reg { rax, rbx, rcx, rdx, rdi, rsi, rbp, rsp, r8, r9, r10, r11, r12, r13, r14, r15, rip, rflags, cs, orig_rax, fs_base, ...
#ifndef __CONFIGNEURALNETWORKS_HPP_ #define __CONFIGNEURALNETWORKS_HPP_ #include <string> #include <cassert> #include <iostream> #include <fstream> // For ifstream #include <cstdlib> // for exit #include "MyStringUtilFunctions.hpp" // For str2ints #include "Myiostream.hpp" using namespace std; //======...
/* MIT License Copyright (c) 2020 Guylian Gilsing & Giel Willemsen 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, modif...
/* * Copyright (C) 2015 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#ifndef COMMON_HPP #define COMMON_HPP #include <stdint.h> using AssetID = unsigned; using AccountIndex = unsigned; using Balance = int64_t; /*! * \brief RegisterQtTypes call once to register types in qt meta type system. */ void RegisterCommonQtTypes(); #endif // COMMON_HPP
#include <QtTest> #include <QCoreApplication> #include "MyOrgSettings.h" /************************************************ * @brief QtLingoCase Class. * /class QtLingoCase ***********************************************/ class QtLingoCase : public QObject { Q_OBJECT public: QtLingoCase(); ...
// Given the root of a binary tree, flatten the tree into a "linked list": // The "linked list" should use the same TreeNode class where the right child pointer points to the next node in the list and the left child pointer is always null. // The "linked list" should be in the same order as a pre-order traversal of th...
#include <iostream> class Aux { private: double auxBudget; public: Aux() { auxBudget = 0; } void addBudget(double num) { this->auxBudget += num; Budget::addBudget(auxBudget); } }; class Budget { private: static double corpBuget; double divBudget; public: Budget() { di...
// Copyright 2018 STOMT GmbH. All Rights Reserved. #pragma once #include "StomtJsonObject.h" #include "StomtPluginPrivatePCH.h" #include "CoreMisc.h" typedef TJsonWriterFactory< TCHAR, TCondensedJsonPrintPolicy<TCHAR> > FCondensedJsonStringWriterFactory; typedef TJsonWriter< TCHAR, TCondensedJsonPrintPolicy<TCHAR> >...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // test <map> #define TEST_NAME "<map>" #define _HAS_AUTO_PTR_ETC 1 #include "tdefs.h" #include <functional> #include <map> #include <stddef.h> struct Wrapped_char { // wrap a char Wrapped_char(char ch = 0) : mych...
// // DomainServer.cpp // domain-server/src // // Created by Stephen Birarda on 9/26/13. // Copyright 2013 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 "DomainServer.h" #include <m...
#ifndef INCLUDED_ALI_LUA_CORE_DESERIALIZE #define INCLUDED_ALI_LUA_CORE_DESERIALIZE #include <aliSystem.hpp> #include <aliLuaCore_MT.hpp> #include <iostream> struct lua_State; namespace aliLuaCore { /// @brief Deserialize defines a set of utility functions for /// deserializing Lua object from streams or ...
/* * Copyright (c) 2010, 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 condi...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
// // UglyNumber.cpp // OfferReview // // Created by CHM on 2020/11/10. // Copyright © 2020 CHM. All rights reserved. // #include "UglyNumber.hpp" // 判断一个数字是否是丑数 bool UglyNumber::IsUgly(int number) { // 任意丑数对 2/3/5 其中一个取模必是 0, // 然后连续取商的话最后必是 1,即最后只需要判断 number 是否是 1 即可。 while (number % 2 == 0) { ...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/CName.hpp> #include <RED4ext/DynArray.hpp> #include <RED4ext/Types/generated/AI/behavior/TreeNodeDefinition.hpp> namespace RED4ext { namespace AI::b...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: RpcServerService.hpp * Author: ubuntu * * Created on March 31, 2018, 10:08 AM */ #ifndef RPCSERVERSERVICE_HPP #def...
// // Created by stephane bourque on 2021-09-14. // #include <iostream> #include <fstream> #include <regex> #include "framework/MicroService.h" #include "ConfigurationValidator.h" #include "framework/CountryCodes.h" #include "Poco/StringTokenizer.h" namespace OpenWifi { static const std::string GitUCentralJSONS...
#include "Globals.h" #include "Application.h" #include "ModuleAudio.h" #include "SDL/include/SDL.h" #include "SDL_mixer/include/SDL_mixer.h" #pragma comment( lib, "SDL_mixer/libx86/SDL2_mixer.lib" ) ModuleAudio::ModuleAudio() { } ModuleAudio::~ModuleAudio() { } bool ModuleAudio::Init() { Mix_Init(MIX_INIT_OGG); Mi...
#include <memory> #include <cerrno> #include <cstdlib> #ifdef _WIN32 #include <conio.h> #include <windows.h> #include <io.h> #define isatty _isatty #define strcasecmp _stricmp #define strdup _strdup #define write _write #define STDIN_FILENO 0 #include "windows.hxx" #else /* _WIN32 */ #include <unistd.h> #include <...
/**************************************************************************** ** Meta object code from reading C++ file 'tepollsocket.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.0) ** ** WARNING! All changes made in this file will be lost! ********************************************************...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. namespace config { template <typename ConfigType> std::unique_ptr<ConfigHandle<ConfigType> > ConfigSubscriber::subscribe(const std::string & configId, uint64_t timeoutInMillis) { const ConfigKey ...
// 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/local_discovery/privet_http_impl.h" #include <algorithm> #include <vector> #include "base/bind.h" #include "base/message_loop/m...
#ifdef __CUDACC__ #define IVARP_POSITIVE_NEGATIVE_PROOF2_NAME "[ivarp][prover][cuda] Full Prover Test 2 - " #else #define IVARP_POSITIVE_NEGATIVE_PROOF2_NAME "[ivarp][prover] Full Prover Test 2 - " #endif #include "test_util.hpp" #include "ivarp/run_prover.hpp" #include "ivarp/critical_printer.hpp" namespace { using...
#include "Table.h" namespace dt { void Table::setValue(size_t x, size_t y, const Content& c) { // not <= because of xaxis for (size_t i = _y_axis.size(); i < x; i++) { _y_axis.push_back(YAxis()); } if (x == 0) { auto& xax = _x_axis; if (y == ...
#pragma once #include <string> class Executor { private: typedef void (Executor::*CommandFunction)(const std::string& data) const; public: void execute(const std::string& body) const; private: std::string extractCommand(const std::string& body) const; void executeMessageBody(const std::string& data) const; vo...
// Copyright (c) 2011-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 "utilstrencodings.h" #include "test/test_kazugold.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(...
#include "converter.hpp" #include <string> #include <iostream> #include <vector> #include <limits> #include <opencv2/opencv.hpp> #include <unicode/unistr.h> #include "charset.hpp" #include "file.hpp" namespace { std::vector<cv::Mat> BlockifyImage(const cv::Mat& src, const cv::Size& size) { std::vector<cv::Mat> re...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetFrameRate(60); // ランダムに周波数の配列を生成 for (int i = 0; i < NUM; i++) { freq[i] = ofRandom(4.0, 10.0); } } //-------------------------------------------------------------- void ofApp::updat...
/* * libasiotap - A portable TAP adapter extension for Boost::ASIO. * Copyright (C) 2010-2011 Julien KAUFFMANN <julien.kauffmann@freelan.org> * * This file is part of libasiotap. * * libasiotap is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as * pu...
/** * 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 "RCubeViewer/VectorField.h" #include "RCube/Core/Graphics/MeshGen/Cone.h" #include "RCube/Core/Graphics/MeshGen/Points.h" #include "RCubeViewer/Colormap.h" #include "glm/gtx/quaternion.hpp" #include <algorithm> #include <string> #include <vector> namespace rcube { namespace viewer { VectorField::VectorField()...
//===----------------------------------------------------------------------===// // // 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 <stdlib.h> #include <ProTKRunTime.h> #include "UtilityHelperClass.h" #include <ProUtil.h> #include <ProModelitem.h> #include <ProSolid.h> #include <ProWstring.h> ProError UtilityHelperClass::ProUtilSelectionFromSurfaceId(ProMdl model, /* In : model */ ...
// Geometric Tools, LLC // Copyright (c) 1998-2014 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.1 (2010/10/01) #include "Wm5PhysicsPCH.h" #include "Wm5PolyhedralMassProperties...
// // Copyright (c) 2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <beast/core.hpp> #include <beast/http.hpp> #include <beast/version.hpp> #i...
/* [2017,10,10,14,02] */ /* CfgWorlds >> Altis >> Names >> nidasos */ areaPosition[]={23662.9, 21796.1}; // Position x, y areaRadiusA=50; // radius A of the location areaRadiusB=50; // radius B of the location areaAngle=0; // Rotation of the location demography=CIV; // Demography accessPoints[] = // Types: 0 - gene...
// Sandstorm Blackrock // Copyright (c) 2015 Sandstorm Development Group, Inc. // 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/license...
#include "Geometry/Dimension.hh" namespace Spheral { //------------------------------------------------------------------------------ // Empty constructor //------------------------------------------------------------------------------ template<> inline WendlandC4Kernel< Dim<1> >::WendlandC4Kernel(): Kernel<Dim<1>,...
// May need to make sure we don't assign items to empty clusters. // Might want to call EliminateEmpty() on every iteration. // If you do this, then must set num_clusters in KMeansThread separately on each iteration. // Would like for code to be as generic as possible. But different objects // being clustered will hav...
/****************************************************************************** * 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 ...
#ifndef GUARD_TOOL_RUNNER_H #define GUARD_TOOL_RUNNER_H #include <deque> #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "clang/Tooling/CommonOptionsParser.h" #include "clang/Tooling/Tooling.h" #include "TmpFile.hpp" namespace clang { class FrontendAction; } names...
/***************************************************************************** $Id$ File: ed.cpp Date: 06Apr06 Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved. Gmail: blackhedd This program is free software; you can redistribute it and/or modify it under the terms of either: 1) the GNU Gene...
/* * @Author: seenli * @Date: 2021-03-17 13:54:13 * @LastEditors: seenli * @LastEditTime: 2021-03-17 13:56:54 * @FilePath: \C-posix\time_use2.cpp */ /* ref: https://blog.csdn.net/xiong452980729/article/details/51394036 */ #include<iostream> #include<time.h> #include <unistd.h> //Header file for sleep(). man...
// Copyright 2018 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 "garnet/bin/zxdb/console/format_memory.h" #include <limits> #include "garnet/bin/zxdb/client/memory_dump.h" #include "gtest/gtest.h" namespace ...