text
stringlengths
7
961k
#include "RTPathTracingPass.h" #include "../rt_globals.h" #include "glm/glm.hpp" #include "engine/rendering/Screen.h" #include "engine/rendering/architecture/RenderPipeline.h" #include "engine/ecs/ECS.h" #include "engine/geometry/Transform.h" #include "../source/engine/rendering/Texture2D.h" #include "../../GUI/PathTra...
#include "ctr_provider.h" #include "static_ctr_provider.h" TIntrusivePtr<ICtrProvider> MergeCtrProvidersData(const TVector<TIntrusivePtr<ICtrProvider>>& providers, ECtrTableMergePolicy mergePolicy) { TVector<const TStaticCtrProvider*> nonEmptyStaticProviders; for (const auto& provider : providers) { if...
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
// Copyright (c) 2016 The Chromium Embedded Framework 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 was generated by the CEF translato...
#include <chat/chat.hpp> #include <hash.hpp> #include <server.hpp> #include <algorithm> #include <unordered_map> #include <utility> namespace MCPP { static const String from_server("SERVER"); static const String label_separator(": "); static const String recipient_separator(", "); static const String you("You")...
// // Created by milinda on 8/9/18. // /** * @author Milinda Fernando * School of Computing, University of Utah * @brief Contains utility function for the host related to GPUs * */ #include "cudaUtils.h" namespace cuda { cudaDeviceProp* getGPUDeviceInfo(unsigned int device) { cudaDeviceProp devi...
/****************************************************************************** Copyright (c) 2009-2012, Intel Corporation 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 ...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1PathFinding.h" #include "ModuleEnemies.h" j1PathFinding::j1PathFinding() : j1Module(), map(NULL), last_path(DEFAULT_PATH_LENGTH),width(0), height(0) { name.create("pathfinding"); } // Destructor j1PathFinding::~j1PathFinding() { RELEASE_ARRAY(map...
/* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. * * Use of this source code is governed by a BSD-style license that * * can be found in the LICENSE file. */ #ifndef __libamtrs__google__firebase_ios__hpp #define __libamtrs__google__firebase_ios__hpp // Library...
// Copyright (c) 2012-2014 The Bitcoin developers // Original code was distributed under the MIT software license. // Copyright (c) 2014-2017 Coin Sciences Ltd // MultiChain code distributed under the GPLv3 license, see COPYING file. #include "storage/coins.h" #include "utils/util.h" #include "utils/random.h" #inclu...
//Hickey, Thomas Matzen Spring 2014 Program 3 //Overview: An interactive program to read in a list of numbers from a file, store them in an array, // sort the array into ascending order, and allow the user to search the array for a number //Compiler Used: G++ with TextPad editor //Status: Compiles...
#define _CRT_SECURE_NO_WARNINGS #include<cstdio> #include<climits> #include<algorithm> const char ADD='t',MULTIPLY='x'; const int VERTEX_NUM_MAX=50; int main(){ int vertexNum; scanf("%d",&vertexNum); char edges[VERTEX_NUM_MAX+1]; int vertices[VERTEX_NUM_MAX]; for(int i=0;i<vertexNum;i++) scanf("%s%d",edges+...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <algorithm> #include <assert.h> #include <execution> #include <forward_list> #include <iterator> #include <list> #include <parallel_algorithms_utilities.hpp> #include <utility> #include <vector> using namespace...
// Copyright 2020 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
#include "overviewpage.h" #include "ui_overviewpage.h" #include "walletmodel.h" #include "bitbeanunits.h" #include "optionsmodel.h" #include "transactiontablemodel.h" #include "transactionfilterproxy.h" #include "guiutil.h" #include "guiconstants.h" #include "bitbeanrpc.h" #include "init.h" #include "base58.h" #includ...
/* Copyright (c) 2016 PaddlePaddle 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...
/*========================================================================= Program: Visualization Toolkit Module: vtkHAVSVolumeMapper.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 distribu...
#define _USE_MATH_DEFINES #include <iostream> #include <cmath> int main() { double radius=0.0; { std::cout << "Welcome! Set the radius for a sphere\n"; std::cin >> radius; std::cout << "The volume is: " << 4.0/3.0*M_PI * pow(radius, 3.0)<< "\n"; std::cout << "The area is: "<< ...
// Copyright (c) 2014 The Chromium Embedded Framework Authors. // Portions 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 "libcef/browser/printing/print_dialog_linux.h" #include <string> #in...
/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QAbstractVideoSurfaceSlots.h" QAbstractVideoSurfaceSlots::QAbst...
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
#include <Foundation/PCH.h> #include <Foundation/Strings/StringConversion.h> // **************** ezStringWChar **************** void ezStringWChar::operator=(const char* szUtf8) { EZ_ASSERT_DEV(ezUnicodeUtils::IsValidUtf8(szUtf8), "Input Data is not a valid Utf8 string. Did you intend to use a Wide-String and forge...
/* * 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 may ...
#include <common/toolkit/StringTk.h> #include "Config.h" #define IGNORE_CONFIG_CLIENT_VALUE(keyStr) /* to be used in applyConfigMap() */ \ if(testConfigMapKeyMatch(iter, keyStr, addDashes) ) \ ; \ else // Note: Keep in sync with enum RunMode RunModesElem const __RunModes[] = { { "--checkfs", RunMode_CH...
// Copyright (c) 2016 The Ai the coins developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "support/lockedpool.h" #include "support/cleanse.h" #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif...
#include "index_calcer.h" #include "features_data_helpers.h" #include "fold.h" #include "online_ctr.h" #include "score_calcer.h" #include "split.h" #include "tree_print.h" #include <catboost/libs/cat_feature/cat_feature.h> #include <catboost/libs/data_new/model_dataset_compatibility.h> #include <catboost/libs/helpers...
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2019 polarphp software foundation // Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license info...
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
// boost/system/windows_error.hpp ------------------------------------------// // Copyright Beman Dawes 2007 // 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 library home page at http://www.boost.org/...
/* Copyright (c) 2004-2021, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
// ***************************************************************************** // // Class Font // // Module: TextEngine // Namespace: TE // Contact person: DGY // // SG compatible // // ***************************************************************************** #if !defined FONT...
// Copyright (c) 2011-2013 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 "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #includ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 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 "rpcprotocol.h" #include "util.h" #include <stdint.h> #include <boost/algor...
#include "data/ops/link.h" #include "data/connection.h" #include "data/test_only.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace vectorbook { TEST(ResourceIdFromUrl, Url) { auto create = CreateRedisConnection(); ASSERT_TRUE(create.ok()); auto clear = ClearLocalDatabase(); ASSERT_TRUE(clear.ok());...
/* * * Copyright (c) 2020 Project CHIP 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...
// Copyright 2011 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 "cc/layers/layer.h" #include <stddef.h> #include "base/thread_task_runner_handle.h" #include "cc/animation/animation_host.h" #include "cc/anima...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 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 <hash.h> // For CHashWriter #include <key.h> // F...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Completed includes // Type namespace: namespace GlobalNamespace { //...
#include "hfpch.h" namespace HFR { Window::Window(const Vec2i& _size, const std::string& _Name) { size = _size; position = Vec2i(); name = _Name; } Window::~Window() { Debug::systemLog("Attempting to delete window: " + name); Debug::systemSuccess("Deleted window: " + name); } void Window::create() { ...
#include "caffe2/sgd/decay_adagrad_op.h" namespace caffe2 { // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) REGISTER_CPU_OPERATOR(DecayAdagrad, DecayAdagradOp<float, CPUContext>); // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) OPERATOR_SCHEMA(DecayAdagrad) // NOLINTNEX...
/* Created by Thibault Gagnaux on 2019-04-05. uva 10249 - The grand dinner Summary: Given are 1<= M <=70 teams with 1 <= m_i <= 100 members and 1 <= N <= 50 tables with 2 <= n_i <= 100 capacity. Is there a seating arrangement so that no two members of the same team sit at the same table? If so: print 1 and the c...
#include <algorithm> #include <vector> #include <iostream> #include <functional> #include <stack> #include <queue> #include <bitset> #include "../maze/maze.h" #include "../maze/print.h" using namespace std; struct state { public: int x; int y; int cost; }; class Maze : public maze<int> { public: Maze(int width,...
/** * @file World.hpp * @author ZerethjiN * @brief An exchangeable object that contains all * resources for the game. * @version 0.1 * @date 2022-02-22 * * @copyright Copyright (c) 2022 - ZerethjiN * */ #ifndef ZERENGINE_WORLD_HPP #define ZERENGINE_WORLD_HPP #include "Registry.hpp" #include "TypeMap.hpp" #...
/**************************************************************************** Copyright (c) 2013 cocos2d-x.org http://www.cocos2d-x.org 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 res...
#include "Model.h" #include "AnalysisConstraints.h" #include "RobustDesign.h" using namespace std; using namespace AnalysisGenerator; Model::Model() {}; Model::Model(std::shared_ptr<Generator>& generator) : generator_(generator) { auto temp = generator_->getBlock(); setBlock(temp); return; } void Model::setGene...
#ifndef SPAWN #include "diablo.h" DEVILUTION_BEGIN_NAMESPACE BOOLEAN lavapool; int abyssx; int lockoutcnt; BOOLEAN lockout[DMAXX][DMAXY]; const BYTE L3ConvTbl[16] = { 8, 11, 3, 10, 1, 9, 12, 12, 6, 13, 4, 13, 2, 14, 5, 7 }; const BYTE L3UP[20] = { 3, 3, 8, 8, 0, 10, 10, 0, 7, 7, 0, 51, 50, 0, 48, 49, 0, 0, 0, 0 }; c...
/*========================================================================= Program: Visualization Toolkit Module: vtkMultiTimeStepAlgorithm.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 di...
// Copyright (c) 1997-1999 Matra Datavision // 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.1 as published ...
#pragma once #include "Record.hpp" namespace oless { namespace excel { namespace records { class TemplateRecord : public Record { public: TemplateRecord(unsigned short type, std::vector<uint8_t> data) : Record(type, data) { } }; } } }
/**************************************************************************** * * Copyright (c) 2018-20 PX4 Development Team. 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. Redis...
/* * 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 ...
#include "Macierz3x3.hh" /* * Tutaj nalezy zdefiniowac odpowiednie metody * klasy Macierz3x3, ktore zawieraja wiecej kodu * niz dwie linijki. * Mniejsze metody mozna definiwac w ciele klasy. */ Macierz3x3 mac_obr_x(double angle) { double rad = angle * M_PI / 180; Macierz3x3 Rot; Rot(0, 0) = 1; ...
/// /// \file AliAnalysisTaskFemto.cxx /// #include <sstream> #include "TROOT.h" #include "TChain.h" #include "TH1.h" #include "TCanvas.h" #include "TSystem.h" #include "TFile.h" #include "TInterpreter.h" #include "TMacro.h" #include "TFile.h" #include "TGrid.h" //#include "AliAnalysisTask.h" #include "AliAnalysisTas...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2021 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 <txmempool.h> #include <chain.h> #include <coins.h> #include <consensus...
//$Id$ //------------------------------------------------------------------------------ // Nadir Pointing //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Author: Yeerang Lim/KAIST // Created: 2013.05.09 // /** * C...
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2018 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
/* Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5 Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QWizardPageSlots.h" QWizardPageSlots::QWizardPageSlots( QObject...
/******************************************************************************* * Copyright 2019-2020 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.apa...
#include "pch.h" #include "MediaSample.h" #include "MediaBuffer2D.h" #include "ImageDecoder.h" using namespace concurrency; using namespace MediaCaptureReader; using namespace Microsoft::WRL; using namespace Platform; using namespace Windows::Foundation; using namespace Windows::Graphics::Imaging; using namespace Wind...
#pragma once #include "../graph/graph-template.hpp" // Rerooting // f1(c1, c2) ... merge value of child node // f2(memo[i], chd, par) ... return value from child node to parent node // memo[i] ... result of subtree rooted i // dp[i] ... result of tree rooted i template <typename T, typename G, typename F1, typename F...
#include <seqan3/core/debug_stream.hpp> #include <seqan3/range/view/get.hpp> #include <seqan3/range/view/to_char.hpp> #include <seqan3/alphabet/quality/aliases.hpp> using namespace seqan3; int main() { //! [usage] // Create a vector of dna4 quality composite alphabet. std::vector<dna4q> qv{{'A'_dna4, phred42{0}}, {'C...
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with...
//! Test that Catch works #define CATCH_CONFIG_MAIN #include "catch.hpp" TEST_CASE("Digits are transliterated", "[alphanumeric]"){ REQUIRE(false); } TEST_CASE("Special characters are removed", "[punctuation]"){ REQUIRE(false); }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) Lawrence Livermore National Security, LLC and other Ascent // Project developers. See top-level LICENSE AND COPYRIGHT files for dates and // other details. No copyright assignment is required to contribute to Ascent. //~~~~...
/* * Copyright (C) 2014 Patrick Mours. All rights reserved. * License: https://github.com/crosire/reshade#license */ #pragma once inline VkFormat make_format_srgb(VkFormat format) { switch (format) { case VK_FORMAT_R8_UNORM: return VK_FORMAT_R8_SRGB; case VK_FORMAT_R8G8_UNORM: return VK_FORMAT_R8G8_SRGB; ...
#ifndef BLAZINGDB_COMMUNICATION_ADDRESS_INTERNAL_H_ #define BLAZINGDB_COMMUNICATION_ADDRESS_INTERNAL_H_ #include "blazingdb/transport/Address.h" #include <cassert> namespace blazingdb { namespace transport { Address::Address(Type type, const std::string &ip, const std::int16_t communication_port, ...
/*************************************************************************/ /* editor_profiler.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// filemgr.cpp #include "filemgr.h" //======================= // CFileGenData Class //======================= CFileGenData::CFileGenData () { m_sigType = 0; m_dicType =0; m_procType =0; m_blockHop = 0; m_blockSize = 0; m_initBlock = 0; m_endBlock = 0; m_nMaxStep = 0; m_coefTempSu...
#include "stdafx.h" #include "../xrRender/resourcemanager.h" #include "blender_light_occq.h" #include "blender_light_mask.h" #include "blender_light_direct.h" #include "blender_light_point.h" #include "blender_light_spot.h" #include "blender_light_reflected.h" #include "blender_combine.h" #include "blender_ssao.h" #inc...
// Copyright 2004-present Facebook. All Rights Reserved. #include "CxxNativeModule.h" #include "Instance.h" #include <iterator> #include <folly/json.h> #include <cxxreact/JsArgumentHelpers.h> using facebook::xplat::module::CxxModule; namespace facebook { namespace react { std::function<void(folly::dynamic)> make...
//===- PDBSymbolCompilandDetails.cpp - compiland details --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "Halide.h" #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { Target t(get_jit_target_from_environment()); if (!t.has_gpu_feature()) { printf("Not running test because no gpu target enabled\n"); return 0; } // Make an uninitialized host buffer Bu...
#include "gloo/math.h" #include <algorithm> #if GLOO_USE_AVX #include <immintrin.h> #endif #include "gloo/types.h" #define is_aligned(POINTER, BYTE_COUNT) \ (((uintptr_t)(const void *)(POINTER)) % (BYTE_COUNT) == 0) namespace gloo { #if GLOO_USE_AVX // Assumes x and y are either both aligned to 32 bytes or una...
// See LICENSE_CELLO file for license and copyright information /// @file test_Parameters.cpp /// @author James Bordner (jobordner@ucsd.edu) /// @date Thu Feb 21 16:04:03 PST 2008 /// @brief Program implementing unit tests for the Parameters class //--------------------------------------------------------...
/* This source file is part of the Tomviz project, https://tomviz.org/. It is released under the 3-Clause BSD License, see "LICENSE". */ #include "ColorMapSettingsWidget.h" #include "ui_ColorMapSettingsWidget.h" #include <vector> #include <vtkColorTransferFunction.h> #include <vtkWeakPointer.h> namespace tomviz ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The Searchcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPY...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
// XXX uniqID XXX 4a6493fa3cb4851af1c5f0c2dce63c78 XXX #include <gba_types.h> #include "bullet.hpp" #include "fixed.hpp" #include "esp_rade/round_5_alice_clone.hpp" extern const BulletStepFunc bullet_04d55bd18af5cc65e3753821d39b0c7b_4a6493fa3cb4851af1c5f0c2dce63c78[] = { stepfunc_e2f2d38c94ef4cdb1e0b45f60d9374c0...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_wchar_t_loop_52b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-52b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate me...
// Copyright (c) 2009-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. #if defined(HAVE_CONFIG_H) #include <config/bytz-config.h> #endif #include <consensus/merkle.h> #include <primitives/block.h...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include ...
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * Copyright (C) 2010-2016, International Business Machines Corporation and * others. All Rights Reserved. *******************...
#include "Windflower/Windflower.hpp" #include <iostream> #include <sstream> #include <fstream> #include "Bytecode.hpp" #include "VM.hpp" #include "Parser.hpp" #include "Validator.hpp" #include "CodeGen/BytecodeGen.hpp" #include "Datatypes/SymbolTable.hpp" namespace wf { static const char* const ERROR_COLOR = "\...
// Copyright (C) 2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <common_test_utils/test_constants.hpp> #include <single_layer_tests/dft.hpp> #include <vector> namespace { const std::vector<ngraph::helpers::DFTOpType> opTypes = {ngraph::helpers::DFTOpType::FORWARD, ...
// 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-2019 The IanCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYIN...
//===- llvm/unittest/IR/IRBuilderTest.cpp - IRBuilder 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 // //===---------------------------...
/* https://stackoverflow.com/questions/64921085/count-number-of-teams-javascript https://leetcode.com/problems/count-number-of-teams/ ---- Approach 1 take each element as mid number of triples per elem = Number of lesser to left * number of greater to right sum over all elements relation is not transitive - NumL...
/* * libjingle * Copyright 2012 Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the fo...
#include "memory.tpp" #include "runtime.h" using namespace elpa; template class TestAllocator< Debug, SimpleScheme >; template class SimpleAllocator< Debug, SimpleScheme >; template class SimpleAllocator< Safe, OptScheme >; //should read OptAllocator when a real class template class SimpleAllocator< Fast, OptScheme...
// Copyright 2018 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/codegen/constant-pool.h" #include "src/codegen/assembler-arch.h" #include "src/codegen/assembler-inl.h" namespace v8 { namespace internal...
/** * 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...
#include <h5pp/h5pp.h> int main() { // Initialize a file h5pp::File file("myDir/someFile.h5"); // Initialize a vector with 10 doubles std::vector<double> v (10, 3.14); // Write the vector to file. // Inside the file, the data will be stored in a dataset named "myStdVector" file.writeData...
/* * Copyright 2015 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
#include <iostream> #include "SerialPort.h" #include <stdio.h> #include <string.h> using namespace std; char* portName = "\\\\.\\COM20"; #define MAX_DATA_LENGTH 255 char incomingData[MAX_DATA_LENGTH]; //Control signals for turning on and turning off the led //Check arduino code char ledON[] = "ON\n"; char ledOFF[]...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo...
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include <cppast/cpp_member_variable.hpp> #include "test_parser.hpp" using namespace cppast; TEST_CASE("cpp_member_var...