text
stringlengths
7
961k
/* * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood * 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 l...
#include <iostream> #include "solution.cc" void test() { Solution solution; string str = "123456579"; auto res = solution.splitIntoFibonacci(str); for (auto val : res) { std::cout << val << " "; } std::cout << std::endl; } int main(int argc, char const *argv[]) { test(); retur...
#include <mbgl/test/util.hpp> #include <mbgl/test/stub_geometry_tile_feature.hpp> #include <mbgl/layout/merge_lines.hpp> #include <mbgl/layout/symbol_feature.hpp> #include <utility> const std::u16string aaa = u"a"; const std::u16string bbb = u"b"; using namespace mbgl; namespace { PropertyMap properties; LineStrin...
#ifndef CPPURSES_DEMOS_GAME_OF_LIFE_GOL_DEMO_HPP #define CPPURSES_DEMOS_GAME_OF_LIFE_GOL_DEMO_HPP #include <cppurses/widget/layouts/horizontal.hpp> #include "gol_widget.hpp" #include "side_panel.hpp" namespace gol { struct GoL_demo : cppurses::layout::Horizontal { GoL_demo(); Side_panel& side_panel{this->mak...
#include "sparse-hist-cell.hpp" #include "perceive/io/fp-io.hpp" #define This SparseHistCell namespace perceive { string This::to_string() const noexcept { return format("[({}, {}), count = {}]", xy.x, xy.y, count); } void write_sparse_hist_cell(FILE* fp, const SparseHistCell& cell) { save_int(fp, cell.xy.x);...
#pragma once #include <string_view> #include "Runtime/RetroTypes.hpp" #include "Runtime/World/CAnimationParameters.hpp" #include "Runtime/World/CEntity.hpp" #include <zeus/CVector3f.hpp> namespace urde { class CScriptWorldTeleporter : public CEntity { enum class ETeleporterType { NoTransition, Elevator, Text }; ...
/********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/* Copyright 2016 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 <iostream> #include <string> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include "lib/fileutil.h" #include "lib/gpio.h" bool RunScript(char* script_path) { if (!FileUtil::IsFile(script_path)) { std::cout << "RunScript. No script file"; return false; } pid_t pid; in...
#include "Halide.h" namespace { template<typename T> Halide::Expr is_interleaved(const T &p, int channels = 3) { return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; } template<typename T> Halide::Expr is_planar(const T &p, int channels = 3) { return p.dim(0).strid...
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass SetBonus_MaxHealth_High....
// // URITest.cpp // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "URITest.h" #include "CppUnit/TestCaller.h" #include "CppUnit/TestSuite.h" #include "Poco/URI.h" #include "Poco/Path.h" using Poco::URI; using Poco:...
/* * Copyright 2019-2020 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 "...
// 2007-04-09 Paolo Carlini <pcarlini@suse.de> // Copyright (C) 2007 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Found...
/** * 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...
//===- OpFormatGen.cpp - MLIR operation asm format generator --------------===// // // 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 <CGAL/Triangulation_data_structure.h> #include <CGAL/Combination_enumerator.h> #include <cassert> #include <iostream> #include <iterator> #include <vector> template< typename TDS > void find_face_from_vertices(const TDS & tds, const std::vector<typename TDS::Vertex_handle> & face_vertices, ty...
/* * This source file is part of libRocket, the HTML/CSS Interface Middleware * * For the latest information, see http://www.librocket.com * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
cur->sendQuery("select * from examplefunc() as (exampleint int, examplefloat float, examplechar char(40))"); char *field00=cur->getField(0,0); char *field01=cur->getField(0,1); char *field02=cur->getField(0,2); char *field10=cur->getField(1,0); char *field11=cur->getField(1,1); char *field12=cur->getF...
#include <stdio.h> #include <occa/c/types.h> OCCA_START_EXTERN_C //---[ occaType size ]------------------ static size_t occaTypeGetSize() { return sizeof(occaType); } static size_t occaTypeMagicHeaderGetSize() { return sizeof(((occaType*)0)->magicHeader); } static size_t occaTypeTypeGetSize() { return s...
/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
//================================================================================================= // SAMPLE Single Include //------------------------------------------------------------------------------------------------- // Identical to 'SampleBasic' except for how the NetImgui code is integrated to the project. //...
/* BSD 3-Clause License Copyright (c) 2020, The Regents of the University of Minnesota 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 ...
#include "demogData.h" #include <iostream> #include "tddFuncs.h" using namespace std; int main() { cout << "Testing class county demographics..." << endl; /* will not work until student modifies class */ demogData c1("Santa Barbara", "CA", 14.0, 22.4, 6.4, 31.3, 79.1, 440668); ASSERT_EQUALS("Santa Barbara",c1...
#include <iostream> #include "Utilities.h" void Random::seed(){ std::random_device rd; _seed = rd(); _mt = std::mt19937(_seed); _realDist = std::uniform_real_distribution<float>(0,1); } void Random::seed(unsigned int seedValue){ _seed = seedValue; _mt = std::mt19937(_seed); _realDist = std::uniform_real_distri...
// RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s #include <sys/param.h> #include <assert.h> #include <endian.h> #include <md2.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void test1() { MD2_CTX ctx; uint8_t entropy[] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66}; uint8_t digest[MD2_DIG...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | | | Cop...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2008-2009. 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) // // See http://www.boost.org/libs/contain...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__new_delete_array_struct_17.cpp Label Definition File: CWE416_Use_After_Free__new_delete_array.label.xml Template File: sources-sinks-17.tmpl.cpp */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using new, initialize memory...
/* ============================================================ * QupZilla - WebKit based browser * Copyright (C) 2010-2016 David Rosca <nowrep@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 ...
//-------------------------------------------------------------------------------------------------- // // File: m+mExemplarInputServiceMain.cpp // // Project: m+m // // Contains: The main application for the exemplar input service. // // Written by: Norman Jaffe // // Copyright: (c) 2014 by H Plus Tec...
/* * BSD 3-Clause License * * Copyright (c) 2019, Analog Devices, 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 copyrigh...
#include "config.hpp" #include "interface_factory.hpp" #include "logger.hpp" #include "system.hpp" #include <cstdio> #include <cstring> #include <sstream> #include <string> // redundant includes to make linter stop complaining #include <vector> namespace hyped { namespace utils { #define BUFFER_SIZE 250 // max len...
/** * @file graphics.cpp * @author Keeton Feavel (keetonfeavel@cedarville.edu) * @author Michel (JMallone) Gomes (michels@utfpr.edu.br) * @brief * @version 0.2 * @date 2021-07-24 * * @copyright Copyright the Panix Contributors (c) 2021 * * References: * https://wiki.osdev.org/Double_Buffering */ #i...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Authors: Friederike Bock, Daniel Muehlheim * * Version 1.0 ...
/* * Copyright 2017 The Polycube Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
#include <eve/function/rshl.hpp> #include <eve/wide.hpp> #include <iostream> using iT = std::int32_t; using wide_it = eve::wide<iT, eve::fixed<4>>; int main() { wide_it pi = {100, 200, -2, 3}; wide_it qi = {1, -2, 3, -1}; std::cout << "---- simd" << '\n' << "<- pi = " << pi << '\n' ...
#include "say.h" #define BOOST_TEST_MAIN #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE(zero) { BOOST_REQUIRE_EQUAL("zero", say::in_english(0ULL)); } #if defined(EXERCISM_RUN_ALL_TESTS) BOOST_AUTO_TEST_CASE(one) { BOOST_REQUIRE_EQUAL("one", say::in_english(1ULL)); } BOOST_AUTO_TEST_CASE(fourteen) {...
/*========================================================================= Program: Visualization Toolkit Module: vtkWidgetCallbackMapper.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 s...
#pragma once #include <memory> #include <new> // --------------------------------------------------------------------- Bitcast // template<typename To, typename From, typename = std::enable_if<(sizeof(To) == sizeof(From)) && std::is_trivially_copyable<To>::value ...
#pragma once #include "engine/alice/alice_codelet.hpp" #include "messages/detections.capnp.h" #include "messages/image.capnp.h" #include "messages/camera.capnp.h" #include "messages/image.hpp" #include "messages/camera.hpp" namespace isaac { class Synchronizer : public alice::Codelet { public: void start() overri...
#include "clientmodel.h" #include "guiconstants.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include "transactiontablemodel.h" #include "alert.h" #include "main.h" #include "ui_interface.h" #include <QDateTime> #include <QTimer> static const int64_t nClientStartupTime = GetTime(); ClientModel::Clien...
#ifndef KORE_ERRORS_HPP #define KORE_ERRORS_HPP #include <string> #include "location.hpp" std::string format_error_at_line( const std::string& line, std::size_t lnum, std::size_t start_col, std::size_t end_col ); std::string format_error_at_line(const std::string& line, const Location& location); s...
#include "CollisionWorld.hpp" #include <boost/python.hpp> #include <boost/shared_ptr.hpp> #include <btBulletDynamicsCommon.h> #include <btBoost/Collision/CollisionWorldWrap.hpp> using namespace boost::python; const btBroadphaseInterface* (btCollisionWorld::*btCollisionWorld_getBroadphase_const)() const = &bt...
/* * NPlot - A charting library for .NET * * PlotSurface2DDemo.cs * Copyright (C) 2003-2006 Matt Howlett, Jamie McQuay. * 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. Redistri...
#include "WAVM/Inline/BasicTypes.h" #include "WAVM/Inline/Errors.h" #include "WAVM/Platform/Defines.h" #include "WAVM/Platform/RWMutex.h" #define NOMINMAX #include <Windows.h> using namespace WAVM; using namespace WAVM::Platform; Platform::RWMutex::RWMutex() { static_assert(sizeof(LockData) == sizeof(SRWLOCK), "");...
#define _USE_MATH_DEFINES #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "MPC.h" #include "json.hpp" // for convenience using json = nlohmann::json; // For converting back and fort...
//===----RTLs/cuda/src/rtl.cpp - Target RTLs Implementation ------- C++ -*-===// // // 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 (c) 2009-2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, p...
/* See LICENSE file in root folder */ #ifndef ___PLY_IMPORTER_H___ #define ___PLY_IMPORTER_H___ #pragma warning( disable:4251 ) #pragma warning( disable:4275 ) #pragma warning( push ) #pragma warning( disable:4311 ) #pragma warning( disable:4312 ) #include <Castor3D/Model/Mesh/Importer.hpp> #pragma warning( pop ) ...
//===- RaggedTest.cpp -- Ragged array runtime function builder unit tests -===// // // 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 // //===---------------------------...
/*========================================================================= Program: Visualization Toolkit Module: vtkShadowMapPass.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...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "future/future.h" namespace Mso { LIBLET_PUBLICAPI Future<void> WhenAll(Mso::Async::ArrayView<Future<void>> futures) noexcept { if (futures.Size() == 0) { return MakeSucceededFuture(); } using TaskType = Mso::Futures::When...
/* * Copyright © [2019 - 2021] [Jonny Charlotte] * * 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 * * Unl...
/** * MIT License * * Copyright (c) 2016-2018 Center of Human-centered Interaction for Coexistence * * 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 with...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
/* This file is part of the Tomographer project, which is distributed under the * terms of the MIT license. * * The MIT License (MIT) * * Copyright (c) 2016 ETH Zurich, Institute for Theoretical Physics, Philippe Faist * Copyright (c) 2017 Caltech, Institute for Quantum Information and Matter, Philippe Faist * ...
/* file: low_order_moments_dense_distributed_mpi.cpp */ /******************************************************************************* * Copyright 2017 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 obt...
#include <iostream> #include "DPPIR/protocol/backend/backend.h" namespace DPPIR { namespace protocol { void BackendParty::CollectAndInstallSecrets() { // Listen to offline queries. std::cout << "Listening to " << this->queries_.Capacity() << " offline secrets..." << std::endl; index_t count = this-...
/* * Copyright 2019 Xilinx 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 2020 The XLS Authors // // 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 t...
// Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Lovell Fuller and contributors. // // 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/LICENS...
// // ScriptEditorWidget.cpp // interface/src/ui // // Created by Thijs Wenker on 4/14/14. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "ui_scriptEditorWidget.h" #...
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> #include <algorithm> using std::vector; using std::cout; using std::string; enum class State {kEmpty, kObstacle, kClosed, kPath, kStart, kFinish}; string CellString(State state) { switch(state) { case State::kOb...
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdialog.h" #include "aboutdialo...
// This file is part of OpenMVG, an Open Multiple View Geometry C++ library. // Copyright (c) 2012 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #...
#include "tiger/absyn/absyn.h" #include "tiger/semant/semant.h" namespace { static type::TyList* make_formal_tylist(sym::Table<type::Ty>* tenv, absyn::FieldList* params, err::ErrorMsg *errormsg) { if (params == nullptr) return nullptr; type::TyList* ans = new type::TyList(); const std::list<absyn::Fiel...
#include "Command.h" #include "Common.Data.h" #include "Data.Stores.h" #pragma warning (disable: 26812) namespace application::Keyboard { static std::map<int, ::Command> keyboardCommands; static bool initialized = false; static void Initialize() { if (!initialized) { auto& config = data::Stores::GetStore(d...
#include <bits/stdc++.h> #define sp2(a,b), cout << a << " " << b << endl; #define sp1(k), cout << k << endl; using std::cin; using std::cout; using std::vector; using std::ios; using std::unordered_map; using std::endl; using std::stack; unordered_map<int, vector<int>> gph; unordered_map<int, vector<int>> rev_gph; stac...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <boost/assign/list_of.hpp> #include <boost/foreach.hpp> #include <boost/program_options.hpp> #include <fstream> #include <iostream> #include <list> #include <map> #include <string> #include "base/task_annotations.h" #include "base/test/...
/* zmlt.f -- translated by f2c (version 20100827). This file no longer depends on f2c. */ #include "slatec-internal.hpp" int zmlt_(double *ar, double *ai, double *br, double *bi, double *cr, double *ci) { double ca, cb; /* ***BEGIN PROLOGUE ZMLT */ /* ***SUBSIDIARY */ /* ***PURPOSE Subsidiary to ZBESH, ZBE...
// // Created by mwo on 5/11/15. // #include "MicroCore.h" namespace safexeg { /** * The constructor is interesting, as * m_mempool and m_blockchain_storage depend * on each other. * * So basically m_mempool is initialized with * reference to Blockchain (i.e., Blockchain&) * and m_blockchain_storage is initia...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Paycore developers // Distributed under the MIT software license, see the accompanying // file COPYING or http...
/* * APInformation.cpp * */ #include <string> #include <cstring> #include "APInformation.h" using namespace std; void APInformation::SetAPInformation(int type, string value) { switch (type) { case AP_ID: m_ID.assign(value); break; case AP_IP: m_IP.assign(value); break; case AP_SSID: break; case AP_D...
// Copyright (c) 2017-2019 John Biddiscombe // // 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) #pragma once #include <hpx/assert.hpp> #include <hpx/debugging/demangle_helper...
// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2019-2022 Second State INC #include "common/defines.h" #if WASMEDGE_OS_WINDOWS #include "common/errcode.h" #include "host/wasi/environ.h" #include "host/wasi/inode.h" #include "host/wasi/vfs.h" #include "win.h" namespace WasmEdge { namespace Host { na...
/*++ Copyright (c) 1997-2000 Microsoft Corporation All Rights Reserved Module Name: basedma.cpp Abstract: IDmaChannel implementation. Does nothing HW related. --*/ #pragma warning (disable : 4127) #include <msvad.h> #include "common.h" #include "basewave.h" #pragma code_seg("PAGE") //=================...
/** * Copyright 2011 (c) 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, * but WITHOU...
// expression_parser_text_test.cpp /** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distribute...
#pragma once #include <fc/crypto/base64.hpp> #include <fc/variant.hpp> #include <fc/reflect/reflect.hpp> namespace fc { /** * Provides a fixed size array that is easier for templates to specialize * against or overload than T[N]. */ template<typename T, size_t N> class array { public: /** ...
#include "reporting.h" boolean messagesAvailable = false; String notifyMessage = ""; String attackerIpAddress = ""; #if MQTT_ENABLED #include "mqtt.h" MqttNotifier mqttNotifier; #endif #if EMAIL_ENABLED #include "email.h" EmailNotifier emailNotifier; #endif #if TELEGRAM_ENABLED #include "telegram.h" TelegramNotifi...
// Copyright (c) 2019 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/seed2need/optionbutton.h" #include "qt/seed2need/forms/ui_optionbutton.h" #include "qt/seed2need/qtutils.h" #include <QMouseE...
#ifndef AGPU_VULKAN_SHADER_RESOURCE_BINDING_HPP #define AGPU_VULKAN_SHADER_RESOURCE_BINDING_HPP #include "device.hpp" #include "shader_signature_builder.hpp" #include "descriptor_pool.hpp" namespace AgpuVulkan { class AVkShaderResourceBinding : public agpu::shader_resource_binding { public: AVkShaderResourceBind...
// Copyright (c) 2011-2016 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "data/tx_invalid.json.h" #include "data/tx_valid.json.h" #include "test/test_digibyte.h" #include "clientversion.h...
// Created on: 2013-12-25 // Created by: Varvara POSKONINA // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2....
/* Copyright (c) 2009-2016, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #ifndef EL_OPTIMIZATION_CREFLECT_C_HPP #define EL_OPTIMIZ...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
#include "stdafx.h" #include "MetadbHandleList.h" #include "db.h" #include "Embed.h" #include "FileInfoFilter.h" #include "OptimiseLayout.h" #include <foobar2000/helpers/metadb_handle_set.h> MetadbHandleList::MetadbHandleList(metadb_handle_list_cref handles) : m_handles(handles) {} STDMETHODIMP MetadbHandleList::ge...
// 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 "components/services/storage/service_worker/service_worker_storage_control_impl.h" #include "components/services/storage/service_worker/service_...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
/** * Copyright 2021 Robert MacGregor * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish,...
/* AUTHORS: liad ben moshe */ #include "doctest.h" #include "FamilyTree.hpp" #include <string> using namespace std; using namespace family; TEST_CASE("addMother and addFather, 16 tests") { Tree T1("Yosef"); T1.addFather("Yosef", "Yakov"); T1.addMother("Yosef", "Rachel"); T1.addFather("Yakov", "Issac"); T1.add...
#include "stdafx.h" #include "d20stats.h" #include <gamesystems/gamesystems.h> #include <gamesystems/objects/objsystem.h> #include <feat.h> #include <util/fixes.h> #include <d20.h> #include <critter.h> #include <config/config.h> #define VANILLA_STAT_COUNT 288 D20StatsSystem d20Stats; class D20StatsHooks : public Tem...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "BoundsBus.h" #include <AzCore/RTTI/BehaviorContext.h> namespace AzFramework { void...
/* os.cc Mathieu Stefani, 13 August 2015 */ #include <pistache/common.h> #include <pistache/config.h> #include <pistache/os.h> #include <fcntl.h> #include <sys/epoll.h> #include <sys/eventfd.h> #include <unistd.h> #include <algorithm> #include <fstream> #include <iterator> #include <thread> namespace Pistache {...
#include "mbed.h" #include "mbed_events.h" #include "mbed_trace.h" #include "simple-mbed-cloud-client.h" #include "SimulatorBlockDevice.h" #include "eventOS_scheduler.h" SimulatorBlockDevice bd("myblockdevice", 128 * 512, 512); // Declaring pointers for access to Pelion Device Management Client resources outside of m...
// Copyright Carl Philipp Reh 2009 - 2021. // 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 FCPPT_MPL_SET_INSERT_HPP_INCLUDED #define FCPPT_MPL_SET_INSERT_HPP_INCLUDED #include <fcpp...
// Copyright (c) 2020 The Crown Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/consensus.h> #include <net.h> #include <net_processing.h> #include <protocol.h> #include <test/fuzz/FuzzedDataPr...
/* * Copyright (c) 2015 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...