text
stringlengths
7
961k
// https://www.interviewbit.com/problems/maxspprod/ int Solution::maxSpecialProduct(vector<int> &A) { int mod = 1000000007; int n = A.size(); vector<long long> lsp(n); vector<long long> rsp(n); stack<int> st; for(int i=0;i<n;i++) { while(!st.empty()) { if(A[st.top()] <...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "dbus/object_manager.h" #include "base/bind.h" #include "base/location.h" #include "base/logging.h" #include "base/metrics/histogram.h" #inc...
/* * Copyright (C) 2014 Open Source Robotics Foundation * * 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...
/* * $Id: sample.cpp,v 1.23 2006/11/01 23:33:56 nathanst Exp $ * * sample.cpp * hog * * Created by Nathan Sturtevant on 5/31/05. * Copyright 2005 Nathan Sturtevant, University of Alberta. All rights reserved. * * This file is part of HOG. * * HOG is free software; you can redistribute it and/or modify *...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <cstddef> #include <string> #include <vector> #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/stl_util.h...
// // Voxglitch "Grain Engine" module for VCV Rack // #include <stack> #include "plugin.hpp" #include "osdialog.h" #include "Common/sample.hpp" #include "Common/submodules.hpp" #include "GrainEngine/defines.h" #include "GrainEngine/GrainAmpSlopes.hpp" #include "GrainEngine/Grain.hpp" #include "GrainEngine/GrainEngine...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPaint.h" #include "SkPaintPriv.h" #include "SkAutoKern.h" #include "SkColorFilter.h" #include "SkData.h" #include "SkDraw.h" #include "SkFontDe...
/** * 7.11 * Using range-based for to multiply an array's elements by 2. */ #include "DisplayArray.hpp" #include <array> #include <iostream> using namespace std; int main(void) { array<int, 5> items { {1, 2, 3, 4, 5} }; // Display 'items' before modification. cout << "'items' before modif...
#include "Application.h" #include <stdio.h> namespace Ash { Application::Application() { } Application::~Application() { printf("Engine is Stopping"); } void Application::Run() { printf("Engine is Running\n"); while (true); } }
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. 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...
#include <ToolsFoundationTestPCH.h> #include <Foundation/Reflection/Reflection.h> #include <ToolsFoundation/Reflection/PhantomRttiManager.h> #include <ToolsFoundation/Reflection/ReflectedTypeStorageAccessor.h> #include <ToolsFoundation/Reflection/ToolsReflectionUtils.h> #include <ToolsFoundationTest/Object/TestObjectM...
/* GRT MIT License Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT> 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 u...
#include <Poco/Exception.h> #include <Poco/SingletonHolder.h> #include "di/Injectable.h" #include "dao/VerifiedIdentityDao.h" BEEEON_OBJECT_BEGIN(BeeeOn, MockVerifiedIdentityDao) BEEEON_OBJECT_CASTABLE(VerifiedIdentityDao) BEEEON_OBJECT_END(BeeeOn, MockVerifiedIdentityDao) using namespace std; using namespace Poco; ...
/* // // INTEL CORPORATION PROPRIETARY INFORMATION // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Intel Corporation and may not be copied // or disclosed except in accordance with the terms of that agreement. // Copyright(c) 2003...
// Copyright (c) 2019 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...
#include "Device.h" /*Device::Device() { }*/ uint16_t Device::getFreeSRAM() { return (int) SP - (int) (__brkval == 0 ? (int)&__heap_start : (int)__brkval); } uint16_t Device::getSRAMUsage() { return this->getTotalSRAM() - this->getFreeSRAM(); } uint16_t Device::getTotalSRAM() { // return 8192; // 8 KB ret...
// // Copyright (c) 2008-2015 the Urho3D project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, m...
#include "PEPCH.h" #include "OrthoGraphicCameraController.h" #include "PiratesEngine/Core/Input.h" #include <PiratesEngine/Core/KeyCode.h> namespace Pirates { OrthoGraphicCameraController::OrthoGraphicCameraController(float aspectRatio, bool Rotation) : m_AspectRatio(aspectRatio), m_Bounds({ -m_AspectRatio * m_Zoo...
/** * 例外クラスの定義ファイル * @file exception.hpp */ #ifndef HUMANITY_EXCEPTION_H #define HUMANITY_EXCEPTION_H #include <humanity/humanity.hpp> #if defined(HUMANITY_ENABLE_EXCEPTIONS) # include <stdexcept> # include <cstring> # include <cerrno> HUMANITY_NS_BEGIN /** * システムコールで発生したエラーを通知するための例外クラス */ class system_c...
#include <iostream> #include <thread> #include <chrono> #include <mavsdk/mavsdk.h> #include <mavsdk/plugins/action/action.h> #include <mavsdk/plugins/telemetry/telemetry.h> using namespace mavsdk; using namespace std; // int main(int argc,char ** argv) { Mavsdk mavsdk; ConnectionResult connection_result; ...
/* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "unit_tests/helpers/execution_environment_helper.h" #include "core/unit_tests/helpers/debug_manager_state_restore.h" #include "runtime/os_interface/device_factory.h" #include "runtime/platform/platform.h" namespace NEO...
// 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...
// // BoundingVolume.hpp // G3MiOSSDK // // Created by Agustin Trujillo Pino on 16/07/12. // Copyright (c) 2012 Universidad de Las Palmas. All rights reserved. // #ifndef G3MiOSSDK_BoundingVolume #define G3MiOSSDK_BoundingVolume #include "Context.hpp" //#include "IMathUtils.hpp" #include "Vector2I.hpp" class Vec...
#pragma once #include <chrono> #include <string> #include <fmt/format.h> #include "log.hpp" namespace ioh { namespace common { /** * \brief A simple timer class, logging elapsed CPU time to stdout */ class CpuTimer { /** * \brief A info mess...
#ifndef RENDERLIB_MESHDESCRIPTOR #define RENDERLIB_MESHDESCRIPTOR #pragma once #include <RenderLib/utils/TextureDescriptor.hpp> #include <vector> namespace RenderLib::Utils { //MeshDescriptor holds all the informations about a mesh struct MeshDescriptor { std::vector<float> vertices; std::vector<float> normal...
#include "RomInfoTopic.hh" #include "RomInfo.hh" #include "TclObject.hh" #include "CommandException.hh" using std::vector; using std::string; namespace openmsx { RomInfoTopic::RomInfoTopic(InfoCommand& openMSXInfoCommand) : InfoTopic(openMSXInfoCommand, "romtype") { } void RomInfoTopic::execute(const vector<TclObj...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ #include <quic/server/handshake/ServerHandshake.h> #include <fizz/protocol/Protocol.h> #include <quic/handshake/FizzBridge.h> #...
// util.cc // 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 // ...
// Copyright (c) 2021 Vitaly Dikov // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt) #include"effectSkill.hpp" #include"character.hpp" #include"operators.hpp" #include<cmath> namespace game { namespace object { Effect...
/*************************************************************************/ /* baked_lightmap_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/** * \file * \copyright * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "PhreeqcIO.h" #include <IPhreeq...
#include <gtest/gtest.h> #include "teamcity_gtest.h" TEST(TestCase1, SuccessfulTest1) { EXPECT_EQ(1, 1); } TEST(TestCase1, MultipleFailures) { EXPECT_EQ(1, 2); EXPECT_EQ(2, 3); EXPECT_EQ(3, 4); } TEST(TestCase2, SuccessfulTest2) { EXPECT_EQ(1, 1); } int main(int argc, char** argv) { ::testing:...
// Tests that show HLO Module conversion to PlaidML Program. // #include "plaidml/bridge/tensorflow/tests/conv_op_test.h.inc" #include <gtest/gtest.h> #include <algorithm> #include <string> #include "tensorflow/compiler/xla/tests/test_utils.h" #include "plaidml/bridge/tensorflow/tests/codegen_test.h" namespace xl...
#include "Bus.hpp" #include "Coordinate.hpp" #include "algorithm" void Bus::ride(Coordinate pPosition, Time pTime) { mPosition = pPosition; mWorkingTime = mWorkingTime +pTime;} Coordinate Bus::getPosition() const { return mPosition; } int Bus::getNbOfLeavingPassengers(std::pair<Time, std::string> pBusStop) { auto n...
#include <iostream> #include <cmath> #include "blas_wrapper.hpp" namespace frovedis { template <> void swap(const sliced_colmajor_vector_local<float>& vec1, const sliced_colmajor_vector_local<float>& vec2){ #ifdef ERROR_CHK ASSERT_PTR(vec1.data && vec2.data); if(!vec1.is_valid() || !vec2.is_valid(...
/**************************************************************************** Copyright (c) 2012-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 withou...
//===-- SelectionDAGBuilder.cpp - Selection-DAG building ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "test.h" #include "itensor/global.h" #include "itensor/real.h" using namespace itensor; TEST_CASE("Constructors") { LogNum l1; REQUIRE( std::isnan(l1.logNum()) ); CHECK_EQUAL(l1.sign(),1); REQUIRE( std::isnan(l1.real()) ); LogNum l2(1); CHECK_DIFF(l2.logNum(),0,LogNum_Accuracy...
/** * @file CliniParser.hpp * @author François-David Collin <Francois-David.Collin@umontpellier.fr> * @brief Basic parsing functions * @version 0.1 * @date 2019-01-29 * * @copyright Copyright (c) 2019 * */ #include <regex> #include <sstream> #include <iterator> #include <type_traits> #include <string_view> #...
// 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 <net_processing.h> #include <addrman.h> #include <banman.h> #include <a...
#include <particlepm.hpp> using namespace PPM::Utils; PPM_PACKAGE(p) { p->name("pb-urban"); p->version(PPM::Version("v0.1.0")); p->description("A urban dictionary plugin for PositronBot"); p->github(PPM::GitHub("handicraftsman", "pb-urban")); p->license(PPM::License("MIT", "https://github.com/handicraftsman...
// Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The kloudcoins developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "accumulators.h" #include "chain.h" #include "primitives/deterministicmint.h...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do...
// Copyright (c) 2014-2016 The Dash developers // Copyright (c) 2016-2017 The SEND developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "spork.h" #include "base58.h" #include "key.h" #include "main.h" #include...
#include <TH1D.h> #include <TProfile.h> #include <TProfile2D.h> #include <TParticle.h> #include <TList.h> #include "iostream" #include "AliLog.h" #include "AliVParticle.h" #include "AliTHn.h" #include "AliMCEvent.h" #include "AliGenEventHeader.h" #include "AliGenHijingEventHeader.h" #include "AliEventPoolManager.h" ...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "apps/shell_window.h" #include "apps/shell_window_registry.h" #include "base/bind.h" #include "chrome/browser/browser_process.h" #include "chrome...
/* leo7fn is selling a pasted cheat (batleye) here is proof kek leo7fn saying its not even pasted retard here is his src cracked Visual#9999 */ #include "../../Header Files/includes.h" namespace Offsets { PVOID* uWorld = 0; namespace Engine { namespace World { DWORD OwningGameInstance = 0; DWORD Levels = 0;...
/* * Copyright 2014 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...
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #ifndef SOURCE_POPTORCH_STATIC_INIT_H #define SOURCE_POPTORCH_STATIC_INIT_H // The constants below set priorities for constructor functions used to // initialize static data. Functions with lower numbers run first. // Priority value for symbol initialisation f...
/* * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the ...
/* * Copyright Nick Thompson, 2019 * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #define BOOST_TEST_MODULE lanczos_smoothing_test #include <random> #include <array> #includ...
#include "stdafx.h" #include "exitRoom.h" exitRoom::exitRoom(string name, string desc, direction dir, room* source, room* dest, entity* father, bool locked) : entity(name, desc, father) { this->source = source; this->destination = dest; this->locked = locked; this->tipus = EXITDOOR; } string exitRoom::Exit() ...
// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
#include <GL/glut.h> #include <stdlib.h> static int shoulder = 0, elbow = 0; void init(void){ glClearColor (0.0, 0.0, 0.0, 0.0); } void display(void){ glClear (GL_COLOR_BUFFER_BIT); glPushMatrix(); /* origem posicionada no ombro */ glTranslatef (-1.0, 0.0, 0.0); glRotatef ((GLfloat) shoulder, 0.0, 0.0, ...
/* Copyright 2020-2021 The Silkworm 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 ag...
#include <Arduino.h> #include <Homie.h> #include "dot-display.hpp" #define FIRMWARE_NAME "dot-display" #define FIRMWARE_VERSION "0.0.6" /* width of the display in pixels */ const unsigned int DISPLAY_WIDTH = 32; /* display conection - CLK -> D5, DATA IN -> D7, CS -> D8 */ DotDisplay the_display(/* clock*/ D5, /*dat...
#include "Halide.h" #include "halide_benchmark.h" #include <cstdio> using namespace Halide; using namespace Halide::Tools; template<typename A> const char *string_of_type(); #define DECL_SOT(name) \ template<> \ const char *string_of_type<name>() { \ return...
// Copyright (c) 2018, The MONCoin Developers // // Please see the included LICENSE file for more information. /////////////////////////// #include <zedwallet/Sync.h> /////////////////////////// #include <Common/StringTools.h> #include <Utilities/ColouredMsg.h> #include <zedwallet/CommandImplementations.h> #include...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/chime/model/GetMeetingRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Chime::Model; using namespace Aws::Utils::Json; using namespace...
// Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/frame/windows_10_caption_button.h" #include "base/numerics/safe_conversions.h" #include "chrome/browser/themes/them...
#include "nes/PPU.h" #include "nes/Console.h" #include "nes/CPU.h" #include "nes/Palette.h" #include "nes/Serialize.hpp" #include <cstdio> #include <chrono> PPU::PPU(Console *console) : PPUMemory(console), cycle(0), scanLine(0), frameCounter(0), paletteData{0}, nameTableData{0}, oamData{0}, v(0), t(0), x(0), ...
/****************************************************************************** * * Project: GDAL Utilities * Purpose: Command line application to build overviews. * Author: Frank Warmerdam, warmerdam@pobox.com * ****************************************************************************** * Copyright (c) 2...
/* CirKit: A circuit toolkit * Copyright (C) 2009-2015 University of Bremen * Copyright (C) 2015-2017 EPFL * * 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, in...
/* Copyright 2016 yiyuanzhong@gmail.com (Yiyuan Zhong) * * 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 applic...
#include "irrKlang-64bit-1.5.0/include/irrKlang.h" #include "irrlicht.hpp" #include "Menu.hpp" #include "MenuEventReceiver.hpp" Menu::Menu(irr::IrrlichtDevice* device) { this->nbHuman = 2; this->nbIA = 0; this->mode = DEFAULT; this->menuDevice = device; this->button = device->getVideoDriver()->getTexture("....
/* * Copyright (c) 2011-2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
// Copyright 2017 The Ray 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 to i...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2019 Intel Corporation #include "../test_precomp.hpp" #include <stdexcept> #include <opencv2/gapi/gtra...
#ifndef BLOCKCIPHER_HPP #define BLOCKCIPHER_HPP #include <cstdint> #include "Block.hpp" /* BlockCipher Simple interface for a block cipher. */ template <uint8_t SIZE> class BlockCipher { public: virtual Block<SIZE> encrypt ( Block<SIZE> plaintext, ...
// // File: DKAllocator.cpp // Author: Hongtae Kim (tiff2766@gmail.com) // // Copyright (c) 2004-2016 Hongtae Kim. All rights reserved. // #include "DKObjectRefCounter.h" #include "DKSpinLock.h" #include "DKMap.h" #include "DKArray.h" #include "DKMemory.h" #include "DKFixedSizeAllocator.h" namespace DKFoundation ...
#pragma once #include "order_type.hpp" #include "side.hpp" #include <string> namespace profitview { class OrderExecutor { public: OrderExecutor() = default; virtual ~OrderExecutor() = default; virtual void new_order(std::string const& symbol, Side side, double orderQty, OrderType type, double = 0.0) = 0...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic...
#include <iostream> int main() { int v1 = 0; int v2 = 0; std::cin >> v1; std::cin >> v2; std::cout << "the sum of "; std::cout << v1; std::cout << " and "; std::cout << v2; std::cout << " is "; std::cout << v1 * v2; std::cout << std::endl; return 0; }
// Fill out your copyright notice in the Description page of Project Settings. #include "TempleRunner.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, TempleRunner, "TempleRunner" );
/* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/device/device.h" #include "shared/source/helpers/array_count.h" #include "shared/source/helpers/basic_math.h" #include "shared/source/helpers/debug_helpers.h" #include "opencl/source/context/context.h" #i...
/* Copyright 2017 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...
// AUTO GENERATED by vnxcppcodegen #include <mmx/package.hxx> #include <mmx/Node_get_block_hash.hxx> #include <mmx/Node_get_block_hash_return.hxx> #include <vnx/Value.h> #include <vnx/vnx.h> namespace mmx { const vnx::Hash64 Node_get_block_hash::VNX_TYPE_HASH(0x43c5087066b73f38ull); const vnx::Hash64 Node_get_blo...
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <algorithm> #include <array> #include <cstddef> #include <optional> #include <string> #include "DataStructures/ComplexDataVector.hpp" #include "DataStructures/ComplexModalVector.hpp" #include "Dat...
// Copyright 2014 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/ast/scopes.h" #include "src/interpreter/bytecode-array-builder.h" #include "src/interpreter/bytecode-array-iterator.h...
#ifndef __NODE_MAPNIK_DATASOURCE_H__ #define __NODE_MAPNIK_DATASOURCE_H__ #include <v8.h> #include <node_object_wrap.h> #include <boost/shared_ptr.hpp> using namespace v8; namespace mapnik { class datasource; } typedef boost::shared_ptr<mapnik::datasource> datasource_ptr; class Datasource: public node::ObjectWrap...
/** @file A brief file description @section license License 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 und...
/* * Copyright (c) 2010 .SE (The Internet Infrastructure Foundation) * 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 ...
/*************************************************** Arduino TFT graphics library targeted at 32 bit processors such as ESP32, ESP8266 and STM32. This is a stand-alone library that contains the hardware driver, the graphics functions and the proportional fonts. The larger fonts are Run Length Encoded to r...
#include "nau/event/eventVec4.h" using namespace nau::event_; EventVec4::EventVec4(nau::math::vec4 v) { this->v = v; } EventVec4::EventVec4(const EventVec4 &c) { v=c.v; } EventVec4::EventVec4(void) { v.set(0.0f, 0.0f, 0.0f, 0.0f); } EventVec4::~EventVec4(void) { } void EventVec4::setData(void *data) { ...
/** * Marlin 3D Printer Firmware * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
#pragma once #include "common.hpp" #include "Mapper.hpp" class InesParser; class Mapper3:public Mapper{ private: uint8_t bank_select_register = 0; public: Mapper3(InesParser* ines_parser); void Write(uint8_t data); uint8_t* ReadChrRom(uint16_t addr); };
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // COptimizationContext.cpp // // @doc: // Implementation of optimization context //--------------------------------------------------------------------------- #include...
// // traits/set_value_free.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef ASIO_TRAI...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include "gwcEti.h" #include "TestUtils.h" using namespace neueda; using namespace ::testing; class MockEurexConnector : public gwcEti<eurexCodec> { public: MockEurexConnector (logger* log) : gwcEti<eurexCodec> (log) { } MOCK_METHOD1 (start, boo...
#include <qt/test/addressbooktests.h> #include <qt/test/util.h> #include <test/test_bitcoin.h> #include <interfaces/chain.h> #include <interfaces/node.h> #include <qt/addressbookpage.h> #include <qt/addresstablemodel.h> #include <qt/editaddressdialog.h> #include <qt/optionsmodel.h> #include <qt/platformstyle.h> #inclu...
/* * @Author: Ruige Lee * @Date: 2021-08-06 10:14:14 * @Last Modified by: Ruige Lee * @Last Modified time: 2021-09-26 11:24:43 */ #include <verilated.h> #include "VSimTop.h" #include <memory> #include <iostream> #include <getopt.h> #include "diff.h" #include <sstream> #if VM_TRACE #include "verilated_vcd_c.h"...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2018 The PIVX developers // Copyright (c) 2018 The nint 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/ni...
// Copyright 2018 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/ntp_tiles/custom_links_manager_impl.h" #include <memory> #include <string> #include <utility> #include "base/auto_reset.h" #include...
//===-- OptionValueEnumeration.cpp ----------------------------------------===// // // 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 <memory> #include <string> #include "envoy/stats/scope.h" #include "common/event/dispatcher_impl.h" #include "common/network/connection_impl.h" #include "common/network/utility.h" #include "common/ssl/context_config_impl.h" #include "common/ssl/context_manager_impl.h" #include "test/integration/http_integra...
/* Copyright 2017 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 "aos/transaction/transaction.h" #include <vector> #include "gtest/gtest.h" #include "aos/util/death_test_log_implementation.h" namespace aos { namespace transaction { namespace testing { class WorkStackTest : public ::testing::Test { public: // Contains an index which it adds to the created_works and i...
#include "../../../include/common/monolish_dense.hpp" #include "../../../include/common/monolish_logger.hpp" #include "../../../include/common/monolish_matrix.hpp" #include "../../../include/common/monolish_vector.hpp" #include "../../../include/monolish_blas.hpp" #include "../../internal/monolish_internal.hpp" #inclu...