text
stringlengths
5
1.04M
#include <CNationSettingFactoryGBDetail.hpp> #include <common/ATFCore.hpp> START_ATF_NAMESPACE namespace Detail { Info::CNationSettingFactoryGBctor_CNationSettingFactoryGB2_ptr CNationSettingFactoryGBctor_CNationSettingFactoryGB2_next(nullptr); Info::CNationSettingFactoryGBctor_CNatio...
// 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. // This file contains unit tests for ServiceResolverThunk. #include <stddef.h> #include <memory> #include "base/bit_cast.h" #include "base/macros.h...
//----------------------------------------------------------------------------- // Copyright 2012-2016 Masanori Morise. All Rights Reserved. // Author: mmorise [at] yamanashi.ac.jp (Masanori Morise) // // Voice synthesis based on f0, spectrogram and aperiodicity. // forward_real_fft, inverse_real_fft and minimum_phase ...
///////////////////////////////////////////////////////////////////////////////// // // SourceFile: ColorEdit.cpp // // Marlin Component: Internet server/client // // Copyright (c) 2014-2021 ir. W.E. Huisman // All rights reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
#pragma once #include <cstdarg> #include <cstdio> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <sstream> #include <string> #include <unordered_set> #include <vector> #include <algorithm> #include <queue> #include <thread> #include <fcntl.h> // NOLINT(bui...
// Copyright (c) 2012-2014 The Bitcoin Core developers // Copyright (c) 2014-2015 The Dash Core developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Castle developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licen...
#ifndef MyController_hpp #define MyController_hpp #include "oatpp-websocket/Handshaker.hpp" #include "oatpp/web/server/api/ApiController.hpp" #include "oatpp/network/ConnectionHandler.hpp" #include "oatpp/core/macro/codegen.hpp" #include "oatpp/core/macro/component.hpp" #include OATPP_CODEGEN_BEGIN(ApiController)...
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2018 // MIT License #pragma once #include "integral_constant.hpp" namespace ARDUINOJSON_NAMESPACE { template <typename> struct is_signed : false_type {}; template <> struct is_signed<char> : true_type {}; template <> struct is_signed<signed char> :...
/** * @file * brief description, full stop. * * long description, many sentences. * */ #include "number.h" #include <QPainter> #include <QPaintEvent> #include "../config.h" #include "../exception.h" #include "../datamgr.h" #include "../tokens.h" Number::Number(QWidget *parent,Tokeniser *t) : QWidget(NULL){ ...
// -- exception_test.cpp -- The Boost Lambda Library ------------------ // // Copyright (C) 2000-2003 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi) // Copyright (C) 2000-2003 Gary Powell (powellg@amazon.com) // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy...
// Copyright 2019 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. // // Auto-generated file. Do not edit! // Specification: test/f32-vclamp.yaml // Generator: tools/generate-vunary-test.py #include <gtest/gtest.h> #...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "hermes/Support/CheckedMalloc.h" #include "hermes/Support/ErrorHandling.h" #include "hermes/Support/SlowAssert.h" #include...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2016-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
/**************************************************************************** ** ** GateImpl.cpp -- Main control implementation file. ** ** Date Modification Author ** -----------|----------------------------------------------------|---------- ** 1999/03/20 Initial develo...
#include <iostream> #include <vector> #include <unordered_set> using namespace std; // solution 1 class Solution{ public: int repeatedNTimes(vector<int>& A){ unordered_set<int> A_set; int N = 0; for (int i = 0; i < A.size(); ++i){ A_set.insert(A[i]); ++N; ...
/* Copyright 2021 Aristocratos (jakob@qvantnet.com) 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 ...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/db.h" #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/type...
/** * 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 "greendp.hpp" #include "test_common.hpp" // Execute the modern version of the first dynamic programming algorithm // presented at "On Equivalent Knapsack Problems" (H. Greenberg) over a // hardcoded set of instances. Used to check if it is still working after a // change. int main(int argc, char** argv) { s...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2015, ITU/ISO/IEC * All rights r...
#include "dram_cache.h" #include "simulator.h" #include "config.hpp" #include "cache.h" #include "stats.h" #include "memory_manager_base.h" #include "pr_l1_cache_block_info.h" #include "queue_model.h" #include "shmem_perf.h" #include "prefetcher.h" DramCache::DramCache(MemoryManagerBase* memory_manager, ShmemPerfModel...
#pragma once #include "window/window.hpp" #include "fps_counter/fps_counter.hpp"
/* Copyright 2016 Adam Smith - P12218319 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, softw...
version https://git-lfs.github.com/spec/v1 oid sha256:4a1beec27c8680b8176fc914d6d6632e7a56e9f3b759790e37f255d1954b0b16 size 25757
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident.h" #include <memory> #include <utility> #include "base/memory/ptr_util...
// 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 <cstddef> #include <memory> #include <set> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/command_line.h" #include...
// Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "unit_test.h" #include "protocol/galaxy.pb.h" #include "agent/volum/tmpfs_volum.h" #include "agent/volum/volum.h" #include "agent/util/path_tree.h"...
/* file: low_order_moments_csr_sum_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 apply: *...
/* See LICENSE file in root folder */ #include "PrecompiledHeader.h" #include "ConfigFile.h" #include "MuseFile.h" #include "ScriptNode.h" //#include "ElypseController.h" #include "DownloadManager.h" #include "ElypseLogs.h" namespace Elypse::Data { void ConfigFileDeleter::operator()( ConfigFile * ptr )const noexc...
#include <cmath> #include "VoxelWrapper.h" namespace Mn = Magnum; namespace Cr = Corrade; namespace esp { namespace geo { #ifdef ESP_BUILD_WITH_VHACD VoxelWrapper::VoxelWrapper(const std::string& renderAssetHandle, esp::scene::SceneNode* sceneNode, esp::assets:...
/********************************************************************** Audacity: A Digital Audio Editor MixerToolBar.cpp Dominic Mazzoni *******************************************************************//*! \class MixerToolBar \brief A ToolBar that provides the record and playback volume settings. *//**...
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
#include "Tweaks/HideClassesOnCharList.hpp" #include "Services/Hooks/Hooks.hpp" #include "API/CAppManager.hpp" #include "API/CNWSCreature.hpp" #include "API/CNWSMessage.hpp" #include "API/CServerExoApp.hpp" #include "API/Functions.hpp" #include "API/Globals.hpp" namespace Tweaks { using namespace NWNXLib; using nam...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
/************************************************************** * * 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 y...
/** * \file * \author Karsten Rink * \date no date * \brief Implementation of the DiagramView class. * * \copyright * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * ...
#pragma once #include "linear_algebra_type_traits.hpp" NAMESPACE_LINEAR_ALGEBRA_BEGIN //specializable struct used for overloading commonly used functions for non-standard types template<class T> struct functions_implementation { static void sqrt(T v); static void abs(T v); static constexpr void epsilon...
#pragma once // ddpoly.hpp: Evaluate a polynomial of degree N at point x as well as its ND derivatives // // Copyright (C) 2017-2020 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. namespace sw { namespace universal { #if def...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2017-2018 The MOKEN developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "script.h" #include "tinyform...
/** Copyright 2013 BlackBerry Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * Attribute.cpp : needed for template separation using Attribute.tcc * * Created on: Aug 3, 2017 * Author: William F Godoy godoywf@ornl.gov */ #include "Attribute.h" #include "Attrib...
#include <utility> // // Created by eliane on 13/03/19. // #include "Calibrator.h" #include <cmath> #include <thread> #include <boost/log/trivial.hpp> #define USE_BOOST_KARMA #include <bprinter/table_printer.h> #include <armadillo> #include <ensmallen.hpp> #include <Engines/Internals/InternalsUtilityFunctions....
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 (c) 2012-2016 The Helveticum Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "streams.h" #include "support/allocators/zeroafterfree.h" #include "test/test_helveticum.h" #include <boost/assi...
#include <cmath> #include "gameplayState.h" #include "app.h" #include "Assets.h" #include "noiseGenerator.h" #include "terrain.h" #include "player.h" gameplayState::gameplayState(app * tEngine, sf::RenderWindow * tWindow) { window = tWindow; engine = tEngine; init(); } gameplaySt...
///////////////////////// /* // stitching.cpp // adapted from stitching.cpp sample distributed with openCV source. // adapted by Foundry for iOS */ /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USIN...
#include <stdio.h> #include <stdlib.h> #include <string> #include <math.h> #include <cstring> #include <iostream> #include <sstream> #include <cmath> #include <vector> #include <map> #include <algorithm> #include <assert.h> #include "../src/tools.h" // Numerical tools int main(int argc, char *...
// ConsoleDemo.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include "stdafx.h" //#include <iostream> //#include <windows.h> /********************************************************* Functiopn: Description:控制台程序 *******************************************************/ int main() { std::cout << "Hello Console!\n...
/** * Copyright (C) 2015-2019 * Author Alvin Ahmadov <alvin.dev.ahmadov@gmail.com> * * This file is part of Dixter Project * License-Identifier: MIT License * See README.md for more information. */ #pragma once #include "Types.hpp" #include <map> #include <list> namespace Dixter { namespace Unicode { ...
/******************************************************************************* Copyright(c) 2015-2020 Parker Hannifin Corp. All rights reserved. MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License. *******************************************************************************/ #include "st...
#ifndef RandomSearch_h #define RandomSearch_h 1 // Metaheuristic #include "Metaheuristic.hpp" //#include "RsConfiguration.hpp" // Random Search Algorithim // 1. generate a current_genome as dictated by the genome // configuration. // 2. Evaluate this current_genome to obtain the current_ // score. // 3. Set bes...
#pragma once namespace coro::detail { struct void_value { }; } // namespace coro::detail
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "LocalizationPrivatePCH.h" #include "LocalizationSettings.h" #include "LocalizationTargetTypes.h" #include "ISourceControlModule.h" ULocalizationSettings::ULocalizationSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer...
// 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 "content/shell/browser/web_test/web_test_push_messaging_service.h" #include "base/bind.h" #include "base/callback.h" #include "base/optional.h" ...
// SPDX-FileCopyrightText: 2014 Erik Garrison // // SPDX-License-Identifier: MIT #include "small_snarl_simplifier.hpp" #include "cactus_snarl_finder.hpp" namespace vg { using namespace std; SmallSnarlSimplifier::SmallSnarlSimplifier(VG& graph) : Progressive(), graph(graph), traversal_finder(graph) { // cr...
/*Exercise 4 - Functions Write a program to calculate the function called nCr which is defined as nCr = n!/ r!(n−r)! Where n! is the factorial of n. Implement the functions long Factorial(int no); long nCr(int n, int r); Do not modify the main function.*/ #include <iostream> using namespace std; long Factorial (i...
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI 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:...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
/* Generated SBE (Simple Binary Encoding) message codec */ #ifndef _FRAMECODEC_HPP_ #define _FRAMECODEC_HPP_ /* math.h needed for NAN */ #include <math.h> #include "sbe/sbe.hpp" #include "uk_co_real_logic_sbe_ir_generated/ByteOrderCodec.hpp" #include "uk_co_real_logic_sbe_ir_generated/SignalCodec.hpp" #include "uk_co...
int res[MAX_V][MAX_V], mf, f, s, t; vi p; // p stores the BFS spanning tree from s void augment(int v, int minEdge) { if (v == s) { f = minEdge; return; } else if ( p[v] != -1 ) { augment( p[v], min(minEdge, res[ p[v] ][ v ]) ); res[ p[v] ][ v ] -= f; res[ v ][ p[v] ] += f; } } ...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
// Copyright 2016 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/engagement/important_sites_util.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/metrics/histogram...
/** * @file MqBase.hpp * @brief MqBase class prototype. * @author zer0 * @date 2018-11-25 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_MQ_NODE_MQBASE_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_MQ_NODE_MQBASE_HPP__ // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma onc...
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <sstream> #include <vector> #include <iomanip> #include <cmath> #include <set> #include <map> #include <queue> #include <climits> #include <cassert> using namespace std; typedef long long LL; typedef pair<int,int> pii; #define pb ...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* 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...
#include "common_main.h" #include "bc_random.h" // defined in generated #include "gm_rand.h" class my_main: public main_t { public: float* BC; ~my_main() { delete[] BC; } my_main() { BC = NULL; } virtual bool prepare() { BC = new float[G.num_nodes()]; return t...
class Solution { public: /** * @param string: An array of Char * @param length: The true length of the string * @return: The true length of new string */ int replaceBlank(char string[], int length) { // Write your code here int blankCount = 0; // indicate the blank number ...
// David Eberly, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2021 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2021.11.12 #include "MorphControllersWindow3.h" #include <...
// $Id: PM_Server.cpp 80826 2008-03-04 14:51:23Z wotte $ #include "Options.h" #include "Rwho_DB_Manager.h" #include "PM_Server.h" #include "ace/ACE.h" #include "ace/OS_NS_string.h" #include "ace/OS_NS_stdio.h" // This is the main method for the server side of things. It reads // the RWHO file on the local ...
// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php . #include <vector> #include "prevector.h" #include "test_random.h" #include "reverse_iterator.h" #include "serialize.h" #include...
/* * ****************************************************************** * * Copyright 2015 Intel Corporation. * * -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
// (C) Copyright Edward Diener 2011 // Use, modification and distribution are 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). #include "test_mem_type.hpp" #include <boost/mpl/assert.hpp> int main() { BOOST_M...
// Copyright 2004-present Facebook. All Rights Reserved. #include "src/NullRequestHandler.h" namespace reactivesocket { template class NullSubscriberT<Payload>; void NullSubscription::request(size_t /*n*/) noexcept {} void NullSubscription::cancel() noexcept {} std::shared_ptr<Subscriber<Payload>> NullRequestHand...
#pragma once #include "../../dc/model_if.hpp" #include "../../dc/qm_fixed.hpp" #include "../../dc/bbox.hpp" namespace rev::gltf::v2 { struct IGLTFMesh; using HGMesh = std::shared_ptr<IGLTFMesh>; class Scene; class GLTFModel : public dc::IModel { private: using MeshV = std::vector<HGMesh>; MeshV _mesh, ...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2019 The ERPcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "overviewpage....
/*************************************************************************** * Copyright (C) 2005 by * * Alejandro Perez Mendez alex@um.es * * Pedro J. Fernandez Ruiz pedroj@um.es * * ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: base_gcmessages.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "base_gcmessages.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_s...
// 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. // // Copyright (C) 2018 Intel Corporation #ifndef OPENCV_GAPI_CORE_HPP #define OPENCV_GAPI_CORE_HPP #include <math.h> #in...
#include "mStorage.hpp" cStorage::cStorage(char *name) { fs = new FATFileSystem(name); mounted = false; } cStorage::~cStorage(void) { if( mounted == true) { fs->unmount(); delete fs; } } mStorageError cStorage::isConnectSdCard() { if (sd.connect()) { return STORG_...
// 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/extensions/extension_resource_protocols.h" #include "base/files/file_path.h" #include "base/memory/weak_ptr.h" #include "bas...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 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 <validationinterface.h> static CMainSignals g_signals; CMainSignals& G...
/** * Copyright (c) 2011-2017 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the Lic...
// // code_1.cpp // Algorithm // // Created by Mohd Shoaib Rayeen on 15/04/19. // Copyright © 2019 Shoaib Rayeen. All rights reserved. // #include <iostream> #include <map> using namespace std; struct bnode { int data; bnode *left; bnode *right; }; class btree { public: bnode *root; btree...
/* * Part of HTTPP. * * Distributed under the 2-clause BSD licence (See LICENCE.TXT file at the * project root). * * Copyright (c) 2016 Thomas Sanchez. All rights reserved. * */ #include <iostream> #include <string> #include <chrono> #include <httpp/HttpServer.hpp> #include <httpp/http/RestDispatcher.hpp> #i...
// #! g++ -Wall -Iinclude -o env_client.exe include/docopt.cpp env_client.cpp /** C++ client, using sockets, to simulate a MAB environment. So far, only Bernoulli arms are supported. - Author: Lilian Besson - License: MIT License (https://lbesson.mit-license.org/) - Date: 28-07-2017 - Online: h...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
/* Q Light Controller Plus - Test Unit stubwidget.cpp Copyright (C) Heikki Junnila Massimo Callegari 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.ap...
/* * Copyright (C) 2020-present The Kraken authors. All rights reserved. */ #include "inspector/protocol/runtime_dispatcher_contract.h" #include "inspector/protocol/runtime_dispatcher_impl.h" namespace kraken { namespace debugger { void RuntimeDispatcherContract::wire(kraken::debugger::UberDispatcher *uber, ...
#include <iostream> #include <Eigen/Dense> using Eigen::MatrixXd; int main() { MatrixXd m(2, 2); m(0, 0) = 3; m(1, 0) = 2.5; m(0, 1) = -1; m(1, 1) = m(1, 0) + m(0, 1); std::cout << m << std::endl; char input; std::cin >> input; return 0; }
/* Decode String ============= Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer. You may assume that the input string is always valid; ...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2020 Daniel Chappuis * **************************************************************************...
/* Copyright (c) 2012-2015, Kai Hugo Hustoft Endresen <kai.endresen@gmail.com> 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, t...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #include <QUrl> #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) : ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcserver.h" #include "rpcclient.h" #include "init.h" #include <boost/algori...
#pragma once #include "../base_def.hpp" namespace lol { struct RosterPlayerAggregatedStatsDTO { std::map<std::string, int32_t> rawStatsSum; std::map<std::string, int32_t> rawStatsMax; }; inline void to_json(json& j, const RosterPlayerAggregatedStatsDTO& v) { j["rawStatsSum"] = v.rawStatsSum; j...
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/core/SkAutoMalloc.h" #include "src/gpu/GrShaderUtils.h" #include "src/gpu/gl/GrGLGpu.h" #include "src/gpu/gl/builders/GrGLShaderStringBuilder.h" #include "src/sk...
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2013 Slava Barinov <rayslava@gmail.com> * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any...