text
stringlengths
7
961k
/* * 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...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/appflow/model/InforNexusSourceProperties.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace ...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2004 Ferdinando Ametrano Copyright (C) 2007 StatPro Italia srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is...
// Copyright 2016 Cloudera 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 wr...
/** * MOAB, a Mesh-Oriented datABase, is a software component for creating, * storing and accessing finite element mesh data. * * Copyright 2004 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government * retains certain rights in this software. * * This...
/* * Copyright 2009-2017 Alibaba Cloud 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...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/* * Copyright (c) 2018 Trail of Bits, 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 o...
#include "gtest/gtest.h" #include "templates/struct_templated_template_argument/StructTemplatedTemplateArgument.h" namespace templates { namespace struct_templated_template_argument { TEST(StructTemplatedTemplateArgumentTest, readWrite) { StructTemplatedTemplateArgument structTemplatedTemplateArgument; struc...
#include "mainwidget.hpp" #include "core.hpp" #include <QPaintEvent> #include <QPainter> #include <iostream> #include <sequential-line-search/acquisition-function.hpp> #include <sequential-line-search/gaussian-process-regressor.hpp> #include <tinycolormap.hpp> using namespace sequential_line_search; using Eigen::Vecto...
/* * Copyright (c) 2013 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#include<cstdio> long long s[21][21][21]; inline long long sum(long long s[21][21],int i,int j,int k,int l) { return s[k][l]-s[i-1][l]-s[k][j-1]+s[i-1][j-1]; } main() { long long h,i,j,k,l,n,m,o,p,q,r,T; scanf("%lld",&T); while(T--) { scanf("%lld %lld %lld",&n,&m,&o); h=-2147483649ll...
/* // ______ ___ ___ ____ ___ // __ / / / // _ )/ _ )|_ // _ \ // / // /_ _/ _ / _ |/_ </ , _/ // \___/ /_//____/____/____/_/|_| // // Created by J4BB3R on 27/08/19. */ #include <tcp_interface.h>
#include <babylon/engines/processors/shader_code_cursor.h> #include <babylon/misc/string_tools.h> namespace BABYLON { ShaderCodeCursor::ShaderCodeCursor() : lineIndex{-1} , currentLine{this, &ShaderCodeCursor::get_currentLine} , canRead{this, &ShaderCodeCursor::get_canRead} , lines{this, &ShaderCodeC...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_ArduCopterDroneController_hpp #define msr_airlib_ArduCopterDroneController_hpp #include "vehicles/multirotor/api/MultirotorApiBase.hpp" #include "sensors/SensorCollection.hpp" #include "physics/Environme...
// PageCleanups.cpp - Implementation of CPageCleanups // // WinDirStat - Directory Statistics // Copyright (C) 2003-2005 Bernhard Seifert // Copyright (C) 2004-2017 WinDirStat Team (windirstat.net) // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public...
#pragma once #include <memory> #include "boost/optional.hpp" #include "common/Aliases.hpp" #include "common/Atomic.hpp" #include "providers/twitch/TwitchChannel.hpp" namespace chatterino { struct Emote; using EmotePtr = std::shared_ptr<const Emote>; class EmoteMap; class BttvEmotes final { static constexpr cons...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 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 <init.h> #include <net.h> #include <scheduler.h...
class Life_atm_management { idd = 2700; name= "life_atm_menu"; movingEnable = 0; enableSimulation = 1; class controlsBackground { class Life_RscTitleBackground: Life_RscText { colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getv...
/* * Copyright (C) 2014 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...
#include<bits/stdc++.h> using namespace std; int main(void){ int a, b, c; cin >> a >> b >> c; int i = 0, times = 10000001; while(i < times){ if(i && c == a / b){ cout << i << "\n"; return 0; } a %= b; a *= 10; i++; } puts("-1"); }
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Stream_lines_2.h> #include <CGAL/Runge_kutta_integrator_2.h> #include <CGAL/Triangular_field_2.h> #include <iostream> #include <fstream> typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef K::Point_2 ...
// 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 "net/url_request/url_request.h" #include <utility> #include "base/bind.h" #include "base/callback.h" #include "base/callback_helpers.h" #in...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <arith_uint256.h> #include <chain.h> #include <primiti...
// minHeap from top down #include <iostream> #include <bits/stdc++.h> using namespace std; int minIndex(int *array, int i, int j) { if (array[i] < array[j]) return i; else return j; } void swapper(int *array, int i, int j) { int temp = array[i]; array[i] = array[j]; array[j] = temp; } void minHeapify(int *arra...
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/version.hpp> #if defined(WIN32) && BOOST_VERSION == 104900 #define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTT...
/* Copyright (c) 2017 Microsoft Corporation. All rights reserved. Author: Lev Nachmanson */ #include <limits> #if _LINUX_ #include <dirent.h> #endif #include <algorithm> #include <string> #include <set> #include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <cstdlib> #include <ctime> #include <stdlib...
#include "ClientTestFixture.h" class StreamApiFunctionalityTest : public ClientTestBase { }; TEST_F(StreamApiFunctionalityTest, putFrame_DescribeStreamDeleted) { CreateStream(); // Ensure the describe called EXPECT_EQ(0, STRCMP(TEST_STREAM_NAME, mStreamName)); // Move to ready state mStreamDescri...
#include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::string; using std::vector; void ParticleFilter::init(double x, double y, double theta, double ...
/** * fix_tilemap.cxx * * Copyright (C) 2020-2021 Christopher Stephen Rafuse <ImpishDeathTech@protonmail.ch> * License : BSD-3-Clause * * Lua Adapter doesn't seem to recognize the ["key"] values of * the lua tables the tilemapping application "Tiled" puts out * thus, I wrote this simple little application t...
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Ken Esler...
#include <Dusk/InputDriver.hpp> namespace Dusk { static std::unique_ptr<InputDriver> _InputDriver(nullptr); DUSK_CORE_API void SetInputDriver(std::unique_ptr<InputDriver> && driver) { _InputDriver = std::move(driver); } DUSK_CORE_API InputDriver * GetInputDriver() { return _InputDriver.get(); } } // name...
#ifndef _CPP_EXTENSIONS_LATCH_HPP_ #define _CPP_EXTENSIONS_LATCH_HPP_ #include <cpp_extensions/prolog.hpp> #include <cpp_extensions/thread/fast_latch.hpp> namespace cpp_extensions { using latch = thread::fast_latch; } #endif // _CPP_EXTENSIONS_LATCH_HPP_
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_MagnetometerSimple_hpp #define msr_airlib_MagnetometerSimple_hpp #include <random> #include "common/Common.hpp" #include "common/EarthUtils.hpp" #include "MagnetometerSimpleParams.hpp" #include "Magnetom...
// The MIT License (MIT) // // Copyright (c) 2015 - 2016 Florian Rappl // // 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...
// Copyright 2020 Mishina Nadezhda #include <mpi.h> #include <stdexcept> #include <set> #include <random> #include "../../../modules/task_3/mishina_n_dvumer_po_characteru/dvumer_po_characteru.h" double f1(double x, double y) { return std::pow(y - 1, 2) + std::pow(x, 2); } double f2(double x, double y) { return...
#define CATCH_CONFIG_MAIN #include "CALPHADConcSolverBinary3Ph2Sl.h" #include "CALPHADConcSolverBinaryThreePhase.h" #include "CALPHADFreeEnergyFunctionsBinary.h" #include "CALPHADFreeEnergyFunctionsBinary3Ph2Sl.h" #include "CALPHADFreeEnergyFunctionsBinaryThreePhase.h" #include "InterpolationType.h" #include "Physica...
#include <iostream> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include <stdio.h> int main() { FILE *f = fopen("wtexels.bin", "rb"); uint32_t wtex_size; fread(&wtex_size, sizeof(wtex_size), 1, f); auto **texture_datas = new unsigned char*[wtex_size / 2048]; for(int i =...
/*************************************************************************/ /* collada.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "../fmu/fmi2.hpp" #include "../util/filesystem.hpp" #include "paths.hpp" #include <catch2/catch.hpp> #include <iostream> TEST_CASE("Test loading of FMI") { const auto fmi_file = example_fmu_path(); REQUIRE(fs::exists(fmi_file)); REQUIRE(fs::is_regular_file(fmi_file)); spawn::fmu::FMI2 fmi{example_fmu...
/* Copyright 2020 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...
/** * Copyright (C) 2012 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, * ...
#include <flutter/dart_project.h> #include <flutter/flutter_view_controller.h> #include <windows.h> #include "flutter_window.h" #include "utils.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, _In_ wchar_t *command_line, _In_ int show_command) { // Attach to console w...
#include "ctranslate2/ops/dequantize.h" #include "cpu/kernels.h" #include "cpu/parallel.h" namespace ctranslate2 { namespace ops { template <typename T> static inline void dequantize_kernel(const T* x, const float scale, cons...
/* * This file is part of the Simutrans-Extended project under the Artistic License. * (see LICENSE.txt) */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "../simconvoi.h" #include "../simdebug.h" #include "../simdepot.h" #include "../simhalt.h" #include "../simintr.h" #include "../simline.h" #i...
/*========================================================================= Program: Visualization Toolkit Module: TestSprites.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribute...
#include "../Test.hpp" namespace bitshift { // Based on the Alternative Routine by Jack Ganssle // http://www.ganssle.com/debouncing-pt2.htm constexpr uint8_t DELAY = 1; uint8_t history = 0xFF; void loop(Test& test) { history = (history << 1) | test.read() | 0b10000000; if (history == 0b11000000) test.re...
#include <cstdio> #include <iostream> #include <QLabel> #include <QPaintEvent> #include <QStylePainter> #include <QStyleOptionTabV3> #include <QPixmap> #include <QIcon> #include <QStackedLayout> #include <QVBoxLayout> #include "seafile-tab-widget.h" namespace { const int kTabIconSize = 24; const char *kTabsBackgrou...
// (C) Copyright 2006-7 Anthony Williams // 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 <boost/test/unit_test.hpp> #include <boost/thread/thread.hpp> #include <boost/thread/xtime.hpp> #include "util.in...
//Catherine Stringfellow AND Zachary Kingcade //OOP Program 5ListShapesAreas //ListShapesAreas.cpp - reads a list of shapes and their dimensions from a file and //outputs their areas and the cumulative area. #include <iostream> #include <fstream> #include <vector> #include "List.h" #include "Shapes.h" using namespac...
#include <iostream> #include <vector> #include <cassert> #include <cstdlib> typedef unsigned long long bigint; void lagged_fibinaccci_generator(std::vector<int>& v, int N) { for( bigint k = 1 ; k <= std::min( 55, N ); ++k ) { const bigint k3 = k * k * k; v[k] = ( 100003 - (200003 * k ) + (300007 ...
/* * 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, software * distributed u...
// Copyright (c) 2016-2020 The Askalcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <coins.h> #include <policy/policy.h> #include <script/signingprovider.h> #include <test/u...
/** * Copyright (C) 2021 All rights reserved. * * FileName :result.cpp * Author :C.K * Email :theck17@163.com * DateTime :2021-07-24 21:23:38 * Description : */ using namespace std; class Solution { public: bool wordPattern(string pattern, string str) { map<ch...
// Ouzel by Elviss Strazdins #ifndef OUZEL_STORAGE_PATH_HPP #define OUZEL_STORAGE_PATH_HPP #include <chrono> #include <cstdint> #include <stdexcept> #include <string> #include <vector> namespace ouzel::storage { class Path final { public: enum class Format { generic, ...
#ifndef CLICK_RADIOTAPENCAP_HH #define CLICK_RADIOTAPENCAP_HH #include <click/element.hh> #include <clicknet/ether.h> CLICK_DECLS /* =c RadiotapEncap() =s Wifi Pushes the click_wifi_radiotap header on a packet based on information in Packet::anno() =d Copies the wifi_radiotap_header from Packet::anno() and pushes ...
#include <Functions/IFunction.h> #include <Functions/FunctionFactory.h> #include <DataTypes/DataTypeString.h> #include <DataTypes/DataTypeNullable.h> #include <DataTypes/DataTypeDateTime.h> #include <common/DateLUTImpl.h> #include <Core/Field.h> namespace DB { namespace ErrorCodes { extern const int BAD_ARGUMENT...
#include <iostream> int main() { long double sum = 0; int num; std::cout << "Enter a number!"; std::cout << std::endl; std::cin >> num; while (num > 0) { sum = sum + num; num = num - 1; } std::cout << sum; std::cout << std::endl; //std::system("pause"); retu...
#define SOL_ALL_SAFETIES_ON 1 #include <sol/sol.hpp> #include <iostream> int main() { std::cout << "=== variadic_args ===" << std::endl; sol::state lua; lua.open_libraries(sol::lib::base); // Function requires 2 arguments // rest can be variadic, but: // va will include everything after "a" argument, // whic...
// 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-CHROMIUM file. #include "common/main_delegate.h" #include <memory> #include "browser/browser_client.h" #include "common/content_client.h" #include "base/...
// Copyright 2018 The Chromium OS 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 <sys/mount.h> #include <base/at_exit.h> #include <base/check.h> #include <base/files/file_descriptor_watcher_posix.h> #in...
#include "entitydatapool.h" #include "data/entity.h" #include <QLoggingCategory> namespace { Q_LOGGING_CATEGORY(errorLog, "SUCore.EntityDataPool", QtCriticalMsg); } namespace SUData { void EntityDataPool_C::addEntity(std::unique_ptr<Entity_C> entity) { if (m_cache.count(entity->id())) { qCDebug(errorLo...
// logic.cpp: functional tests for logic tests on arbitrary reals // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. // minimum set of include files to reflect source code dependencies #include <uni...
// *************************************************************** // Copyright (c) 2022 Jittor. All Rights Reserved. // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // *************************************************************** #inclu...
/* Petar 'PetarV' Velickovic Algorithm: Depth-First Search */ #include <math.h> #include <stdio.h> #include <string.h> #include <algorithm> #include <complex> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define MAX_N 5001 us...
#ifndef _MIDPOINT_ALGORITHM_HH_ #define _MIDPOINT_ALGORITHM_HH_ //---------------------------------------------------------------------- // This file distributed with FastJet has been obtained from // http://www.pa.msu.edu/~huston/Les_Houches_2005/JetClu+Midpoint-StandAlone.tgz // // Permission to distribute it with F...
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- #include "tecs.h" #include <ecl/ecl.h> #include <systemlib/err.h> #include <geo/geo.h> using namespace math; /** * @file tecs.cpp * * @author Paul Riseborough * * Written by Paul Riseborough 2013 to provide: * - Combined control of sp...
// Copyright GREYC - UMR 6072 ; Université de Caen Normandie // Esplanade de la paix // CS 14032 // 14032 Caen CEDEX 5 // contributeur : // Jean Creusefond, 2015 // // jean.creusefond@unicaen.fr // // Ce logiciel est un programme informatique servant à la comparaison et à l'analyse d'outils de détection de communauté...
#include "mull/Mutators/CXX/BitwiseMutators.h" using namespace mull; using namespace mull::cxx; static std::vector<std::unique_ptr<irm::IRMutation>> getLLShiftToLRShift() { std::vector<std::unique_ptr<irm::IRMutation>> mutators; mutators.emplace_back(new irm::ShlToLShr()); return mutators; } std::string LShift...
// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Sven Kaulmann #ifndef DUNE_STUFF_FUNCTION_GLOBAL_HH #define DUNE_STUFF_FUNCT...
/******************************************************************************* * Filename : syscfgcompfieldvalues.hpp * * Details : Enumerations related with SYSCFG_COMP peripheral. This header * file is auto-generated for STM32F0x1 device. * * **********************************************...
/* * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this software and ...
// Given integers L and R, find the number of different pairs of integers A and B such that L <= A <= R and L <= B <= R and A3 = B2. // Note that A and B may even coincide (A = B = 1 is one of the possibilities). // Example // * For L = 1 and R = 4, the output should be // equationSolutions(L, R) = 1. // There is only ...
//===--- Stencil.cpp - Stencil implementation -------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* * Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES) * * 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...
// gdb-index.cc -- generate .gdb_index section for fast debug lookup // Copyright (C) 2012-2014 Free Software Foundation, Inc. // Written by Cary Coutant <ccoutant@google.com>. // This file is part of gold. // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Gener...
// BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE #include <string> #include <sstream> #include "awkward/array/ListOffsetArray.h" #include "awkward/type/UnknownType.h" #include "awkward/type/OptionType.h" #include "awkward/type/ListType.h" namespace awkward { ListType::List...
#include <iostream> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { use_io_optimizations(); unsigned int distance; cin >> distance; cout << 2 * distance << " minutos\n"; return 0; }
// Copyright 2019 Glyn Matthews. // 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 SKYR_UNICODE_CODE_POINTS_U8_HPP #define SKYR_UNICODE_CODE_POINTS_U8_HPP #include <tl/expected.hpp> #include <skyr/unicode...
// Copyright 2015 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/v8.h" #include "src/typing-asm.h" #include "src/ast.h" #include "src/codegen.h" #include "src/scopes.h" #include "src/zone-type-cache.h"...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/payments/content/service_worker_payment_app.h" #include <memory> #include "base/memory/weak_ptr.h" #include "base/strings/utf_strin...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CPhysicalDynamicIndexScan.cpp // // @doc: // Implementation of dynamic index scan operator //-------------------------------------------------------------------------...
/** * @file core/tree/rectangle_tree/typedef.hpp * @author Ryan Curtin * * Typedefs of RectangleTrees, for use by classes that require trees matching * the TreeType API. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received...
#include <iostream> template <typename T> class A { public: void show(const T& x) const { std::cout << x << "\n"; } }; template <typename T> class B : public A<T> { T n; public: B(const T& n) : n{n} { } void show_elem() const { //A<T>::show(n); this->show(n); } }; int main() { B<double> m{15}; m...
#include "SpeedUp.h" #include "Camera.h" #include "SoundManager.h" SpeedUp::SpeedUp(Camera& cam) : PowerUp("gfx/powerup_bad.png", "gfx/powerup_bad.png"), mCamera(cam) { } void SpeedUp::activate() { SoundManager::instance().playSound("sound/powerup_sound.wav"); mCamera.changeSpeedRelative(2.f); } bool...
/B2016/2017: Zadaća 3, Zadatak 4 #include <iostream> #include<list> #include<vector> #include<set> #include<string> #include<stdexcept> int duzina_imena(const std::string &S) { auto it(std::begin(S)); int brojac(0); while( it!=std::end(S) ) { while ( (!( ( *it>='a' && *it<='z' ) || ( *it>='0' && *...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2011-2013 The Litecoin developers // Copyright (c) 2014 The Inutoshi developers // Copyright (c) 2014 The Dogecoin developers // Copyright (c) 2015 The SJWcoin developers // Distributed under the M...
// 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 "sync/internal_api/public/non_blocking_sync_common.h" namespace syncer_v2 { DataTypeState::DataTypeState() {} DataTypeState::~DataTypeState() ...
#ifndef _FIXIE_LIB_POINT_STATE_HPP_ #define _FIXIE_LIB_POINT_STATE_HPP_ #include "fixie/fixie_gl_types.h" #include "fixie_lib/range.hpp" #include "fixie_lib/vector.hpp" namespace fixie { class point_state { public: point_state(); const GLfloat& point_size() const; GLfloat& point_s...
/*========================================================================= Program: ParaView Module: vtkSMStateVersionController.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT...
/* * inetprot.cxx * * Internet Protocol ancestor class. * * Portable Windows Library * * Copyright (c) 1993-2002 Equivalence Pty. Ltd. * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You ...
/* * Copyright (C) 2009 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 conditio...
/** * @file ada_belief_update.hpp * @author Marcus Edel * * AdaBelief optimizer update policy. The intuition for AdaBelief is to adapt * the stepsize according to the "belief" in the current gradient direction. * * ensmallen is free software; you may redistribute it and/or modify it under * the terms of the 3-c...
#include "core.h" #include "rodinbtnodecompositesingular.h" #include "simplestring.h" #include "Components/wbcomprodinbehaviortree.h" #include "idatastream.h" RodinBTNodeCompositeSingular::RodinBTNodeCompositeSingular() : m_ChildIndex( 0 ) , m_ChildStatus( ETS_None ) { } RodinBTNodeCompositeSingular::~RodinBTNodeComp...
// copyright (c) 2014 Grant Mercer // // 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 <hpx/hpx.hpp> #include <hpx/hpx_init.hpp> #include <hpx/include/parallel_find.h...
// vtocx.cpp : Implementation of CvtocxApp and DLL registration. #include "stdafx.h" #include "vtocx.h" #include "vtdata/vtLog.h" #ifdef _DEBUG #define new DEBUG_NEW #endif CvtocxApp NEAR theApp; const GUID CDECL BASED_CODE _tlid = { 0xAD34DE08, 0x561, 0x4AC1, { 0xB7, 0x40, 0x7F, 0xAE, 0x0, 0xCA, 0x8D, 0x28 } };...
// Copyright (c) 2009-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. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "base58.h" #include "clientversion.h" #include...
/* ----------------------------------------------------------------------------- The copyright in this software is being made available under the BSD License, included below. No patent rights, trademark rights and/or other Intellectual Property Rights other than the copyrights concerning the Software are granted unde...
//================================================================================================== /*! @file @copyright 2015 NumScale SAS @copyright 2015 J.T. Lapreste 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 (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <string> #include "ngraph_reader_tests.hpp" #include "common_test_utils/data_utils.hpp" TEST_F(NGraphReaderTests, ReadFQNetwork) { std::string model = R"V0G0N( <net name="Network" version="10"> <layers> <la...