text
stringlengths
5
1.04M
// Copyright (c) 2003, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditi...
// Copyright (c) 2014-2019 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_INTERNAL_FILE_MAPPER_POSIX_HPP #define TAO_PEGTL_INTERNAL_FILE_MAPPER_POSIX_HPP #include <sys/mman.h> #include <unistd.h> #include "../config.hpp" #include "file_...
/* Nº GRUPO: D25 NOMBRES Y APELLIDOS DE LAS PERSONAS QUE HAN REALIZADO EL CONTROL: JAVIER GÓMEZ MORALEDA MARIO ALCOLEA ALCOLEA */ #include "ParqueDeAtracciones.h" ParqueDeAtracciones::ParqueDeAtracciones() {} /* Función que añade una atraccion al Diccionario de atracciones. Para ello hace uso de itera...
#include "pch.h" #include <ang/graphics/angraph.hpp> #include "ang_inlines.h" #include "vector_specialization.inl" #if defined _DEBUG #define new new(__FILE__, __LINE__) #endif using namespace ang; using namespace ang::graphics; using namespace ang::graphics::reflect; ANG_IMPLEMENT_ENUM(ang::graphics::reflect, var_t...
#include "syscalls32.gen.hpp" #define FDP_MODULE "syscalls32" #include "log.hpp" #include "os.hpp" #include <map> namespace { constexpr bool g_debug = false; static const tracer::callcfg_t g_callcfgs[] = { {"_NtAcceptConnectPort@24", 6, {{"PHANDLE", "PortHandle", sizeof(wow64::PHANDLE)}, {"PVOID", "PortC...
// RUN: %clang_cc1 -verify -fopenmp %s -Wno-openmp-target -Wuninitialized // RUN: %clang_cc1 -verify -fopenmp-simd %s -Wno-openmp-target -Wuninitialized extern int omp_default_mem_alloc; void foo() { } bool foobool(int argc) { return argc; } struct S1; // expected-note {{declared here}} expected-note{{forward dec...
#include "StdAfx.h" #include "MyRecordSet.h" using namespace System; using namespace System::IO; using namespace System::Text; using namespace System::Data::OleDb; using namespace System::Data; using namespace System::Collections::Generic; MyRecordSet::MyRecordSet(void) { } void MyRecordSet::SetPath() { String^ con...
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...
#include "main.h" #include <cage-core/math.h> #include <cage-core/variableSmoothingBuffer.h> void testVariableSmoothingBuffer() { CAGE_TESTCASE("VariableSmoothingBuffer"); { CAGE_TESTCASE("compilations"); VariableSmoothingBuffer<uint32> iUint32; VariableSmoothingBuffer<Real> iReal; VariableSmoothingBuffer<...
/* Smooth - A C++ framework for embedded programming on top of Espressif's ESP-IDF Copyright 2019 Per Malmberg (https://gitbub.com/PerMalmberg) 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 h...
/* * Copyright 2004-2009, Marcus Overhagen. All rights reserved. * Distributed under the terms of the MIT License. */ #include "util.h" #include <KernelExport.h> #include <OS.h> #include <vm/vm.h> #include <string.h> #define TRACE(a...) dprintf("ahci: " a) #define ERROR(a...) dprintf("ahci: " a) static inline u...
#include <algorithm> #include <vector> #include "caffe/layer.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> void SliceLayer<Dtype>::SetUp(const vector<Blob<Dtype>*>& bottom, vector<Blob<Dtype>*>* top) { LOG(INFO)<<"slice start re...
#include "basis_function/lagrange.h" namespace BasisFunction { // linear template<> double LagrangeOfOrder<1>:: dphi_dxi(int i, double xi) { if (i==0) return -1; return 1; } template<> double LagrangeOfOrder<1>:: phi(int i, double xi) { if (i==0) return 1-xi; return xi; } // quadratic template<> dou...
/*************************************************************************/ /* texture.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "AnimGraphPrivatePCH.h" #include "GraphEditorActions.h" #include "ScopedTransaction.h" #include "AnimGraphNode_BlendListByBool.h" ///////////////////////////////////////////////////// // UAnimGraphNode_BlendListByBool #define LOCTEXT_NAMESPACE "A...
#include <iostream> #include <cstring> /* * ___ __ __ ____ _ ____ ___ ___ ____ * / _ \| \/ | _ \ / \ | _ \_ _/ _ \/ ___| * | | | | |\/| | |_) | / _ \ | | | | | | | \___ \ * | |_| | | | | __/ / ___ \| |_| | | |_| |___) | * \___/|_| |_|_| /_/ \_\____/___\___/|____/ *...
// MusicXML Class Library // Copyright (c) by Matthew James Briggs // Distributed under the MIT License #include "../../core/elements/Tuplet.h" #include "../../core/FromXElement.h" #include "../../core/elements/TupletActual.h" #include "../../core/elements/TupletNormal.h" #include <iostream> namespace mx { namesp...
/**************************************************************************************** * @author: kzvd4729 created: Apr/25/2020 11:17 * solution_verdict: Accepted language: GNU C++14 * run...
// Copyright (c) 2014-2017 Michael J. Sullivan // Use of this source code is governed by an MIT-style license that can be // found in the LICENSE file. #include "epoch_leak.hpp"
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 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 "rpcserver.h" #include "base58.h" #include "init.h" #include "main.h" #includ...
// _ _____ __________ // | | / / _ | / __/_ __/ Visibility // | |/ / __ |_\ \ / / Across // |___/_/ |_/___/ /_/ Space and Time // // SPDX-FileCopyrightText: (c) 2018 The VAST Contributors // SPDX-License-Identifier: BSD-3-Clause #include "vast/system/spawn_exporter.hpp" #include "vas...
/* * * Copyright 2017 gRPC 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 <liegroups/se2.hpp> #include <liegroups/se2_io.hpp> #include <liegroups/so3.hpp> #include <liegroups/so3_io.hpp> #include <liegroups/se3.hpp> #include <liegroups/se3_io.hpp> #include <cstdlib> #include <cassert> #include <vector> #include <iostream> using namespace std; using namespace liegroups; double ran...
#pragma once #ifndef GREEZEZ_MPSCQUEUE_HPP #define GREEZEZ_MPSCQUEUE_HPP namespace greezez { namespace mpsc { class Produser { public: Produser() { } ~Produser() { } private: }; class Consumer { public: Consumer() { } ~Consumer() { } private: }; }...
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie For full license information read the LICENSE file in the project folder */ // USAGE: - Copy this file and rename it to my_custom.cpp // - Change false to true on line 9 #include "hasplib.h" #if defined(HASP_USE_CUSTOM) && false // <-- set this to t...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The ALLMN Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #include "chainparams.h" #include "clientversio...
// Generated by Haxe 4.2.2 #include <hxcpp.h> #ifndef INCLUDED_haxe_Exception #include <haxe/Exception.h> #endif #ifndef INCLUDED_haxe_io_Bytes #include <haxe/io/Bytes.h> #endif #ifndef INCLUDED_lime_utils_Log #include <lime/utils/Log.h> #endif #ifndef INCLUDED_openfl_display3D__internal_ATFReader #include <openfl/dis...
// Std. Includes #include <string> // GLEW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> // GL includes #include "Headers/Shader.h" #include "camera.h" // GLM Mathemtics #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> // Other Libs #include ...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // Se...
#include "HKConnection.h" #include "HKServer.h" #include "HKAccessory.h" #include "HKLog.h" uint8_t SHARED_REQUEST_BUFFER[SHARED_REQUEST_BUFFER_LEN] = {0}; uint8_t SHARED_RESPONSE_BUFFER[SHARED_RESPONSE_BUFFER_LEN] = {0}; uint8_t SHARED_TEMP_CRYPTO_BUFFER[SHARED_TEMP_CRYPTO_BUFFER_LEN] = {0}; LEDStatus RGB_STATUS_YEL...
//===------------------------- future.cpp ---------------------------------===// // // 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. // //===----------------------------------------...
// // FILE NAME: TestEvents.cpp // // AUTHOR: Dean Roddey // // CREATED: 09/21/2009 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opensource.o...
// Copyright (c) 2014-2017 The Dash Core developers #include "cachemap.h" #include "test/test_soom.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(cachemap_tests, BasicTestingSetup) bool Compare(const CacheMap<int,int>& map1, const CacheMap<int,int>& map2 ) { if(map1.GetMaxSize() != map2.GetMax...
/* ***************************************************************************** * A.L.E (Arcade Learning Environment) * Copyright (c) 2009-2013 by Yavar Naddaf, Joel Veness, Marc G. Bellemare and * the Reinforcement Learning and Artificial Intelligence Laboratory * Released under the GNU General Public Lice...
// // read.hpp // ~~~~~~~~ // // Copyright (c) 2003-2015 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_READ_HPP #define ASIO_READ_HPP #if de...
/* Copyright 2019 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...
/* * UAVCAN data structure definition for libuavcan. * * Autogenerated, do not edit. * * Source file: /mnt/c/Users/BrianTaylor/Documents/Software/dronecan/dsdl/uavcan/protocol/file/40.BeginFirmwareUpdate.uavcan */ #ifndef UAVCAN_PROTOCOL_FILE_BEGINFIRMWAREUPDATE_HPP_INCLUDED #define UAVCAN_PROTOCOL_FILE_BEGINFIR...
/* * Lion * (C) 1999-2007,2014 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/lion.h> #include <botan/exceptn.h> namespace Botan { /* * Lion Encryption */ void Lion::encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const { verify_key_s...
// // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // #include "pch.h" using namespace std; /// /// EventMonitor.cpp /// /// Monitors a event log for new events in specified channels. /// /// EventMonitor starts a monitor thread that waits for events from EvtSubscribe ///...
#ifndef _ACF_PROCESS_APU_COMPUTE_BRIEF_DESCRIPTOR #define _ACF_PROCESS_APU_COMPUTE_BRIEF_DESCRIPTOR #include <acf_process_apu.h> #include <apex_launcher.hpp> #include <stdint.h> #include <COMPUTE_BRIEF_DESCRIPTOR_APU_LOAD.h> //APU load associated with this process //SCENARIO LIST*************************************...
#ifndef __AANIMAL_H__ #define __AANIMAL_H__ #include <string> using std::string; class AAnimal { protected: string _type; public: // Constructors AAnimal(); // Destructor virtual ~AAnimal(); // Getters / Setters const string& getType() const; // Abstract Methods virtual void makeSound() const...
#include <bdsg/overlays/vectorizable_overlays.hpp> #include <functional> #include <handlegraph/handle_graph.hpp> #include <handlegraph/path_handle_graph.hpp> #include <handlegraph/path_metadata.hpp> #include <handlegraph/types.hpp> #include <iterator> #include <memory> #include <sstream> // __str__ #include <string> #i...
#include <cstdio> #include <algorithm> using namespace std; int main() { int N, P; scanf("%d %d", &N, &P); static const int M = 10000; static int from[M], to[M]; for (int i = 0; i < P; i++) { scanf("%d %d", &from[i], &to[i]); --from[i]; --to[i]; if (from[i] > to[i]) { swap(from[i], to[i]);...
#include "MapScreen.h" #include "Strategic_Event_Handler.h" #include "MemMan.h" #include "Item_Types.h" #include "Items.h" #include "Handle_Items.h" #include "LaptopSave.h" #include "Tactical_Save.h" #include "StrategicMap.h" #include "Quests.h" #include "Soldier_Profile.h" #include "Game_Event_Hook.h" #include "Game_C...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // this include is necessary to get MPI included before anything else to support intel MPI #include "hoomd/ExecutionConfiguration.h" #include <algorithm> #inclu...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/shell/browser/web_test/mojo_echo.h" #include "mojo/public/cpp/bindings/self_owned_receiver.h" namespace content { // static void Mojo...
/* * Copyright (c) 2016, The OpenThread Authors. * 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 ...
// $Id: utl_scope.cpp 96358 2012-11-23 19:26:43Z parsons $ /* COPYRIGHT Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United States of America. All Rights Reserved. This product is protected by copyright and distributed under the following license restricting its use. The Interface Definition ...
/* ============================================================================================ Program : High resolution Fetal and Pediatric MRI reconstruction Module : Compute image contrast measures (variance measure, L2 norm of gradient, Laplacian) File : mialtkEvaluateContrst.cxx Language: C++...
#include <DoubleBufferedAllocator.h> #include <FallbackAllocator.h> #include <LinearAllocator.h> #include <MallocAllocator.h> #include <PoolAllocator.h> #include <iostream> using namespace EzMemory; // Static checks // Malloc is an allocator that can align... static_assert(IsAllocator<MallocAllocator>); static_asser...
#include <cstdlib> #include <string> #include <chrono> #include <thread> #include "ros/ros.h" #include "interface.h" #include "uds.h" using namespace std; using namespace roscar::car::interface; using namespace roscar::car::roscar_common; const char *UDS_URI = "/tmp/.roscar.car.interface.soc"; int main(int argc, c...
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2013-2020 Intel Corporation */ #include "AMTEthernetPortSettingsClient.h" #include "AMTFCFHWSmanClient.h" #include "AMTRedirectionServiceWSManClient.h" #include "AuditLogWSManClient.h" #include "BaseWSManClient.h" #include "CancelOptInClient.h" #include "HB...
// Copyright (c) 2009, V. Lepetit, EPFL // 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 condit...
// stdafx.cpp : source file that includes just the standard includes // MMI.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
// Copyright (C) <2019> Intel Corporation // // SPDX-License-Identifier: Apache-2.0 #include "WebRtcConnection.h" #include "ThreadPool.h" #include "IOThreadPool.h" #include "MediaStream.h" #include <node.h> using namespace v8; void InitAll(Handle<Object> exports) { WebRtcConnection::Init(exports); MediaStream::...
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2015 Jean-David Gadina - www.xs-labs.com / www.digidna.net * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation f...
/****************************************************************************** * Copyright 2018 Google * 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/licens...
/* * File: TaskPort.cpp * * Copyright (C) 2021, Albert Krzymowski * */ #include "TaskPort.h" namespace IA20 { namespace IOT { namespace Tools { /*************************************************************************/ // TaskPort::TaskPort(){ // IA20_TRACER; // } // /***************************************...
#pragma once #include "distconv/base.hpp" #include <cooperative_groups.h> namespace distconv { namespace tensor { enum class HaloTraversalOpGroup {THREAD, WARP, BLOCK}; namespace internal { template <int ND, typename DataType, typename OpType> __global__ typename std::enable_if<OpType::group == HaloTraversalOpGro...
// -*- C++ -*- // FILE: direct_follow // (C) 2005 Frank R. Schaefer // // 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 the Free Software Foundation; either // version 2.1 of the License, or (at y...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
// Copyright 2018-2021, NVIDIA CORPORATION & AFFILIATES. 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...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/download/download_item_model.h" #include "base/i18n/number_formatting.h" #include "base/i18n/rtl.h" #include "base/metrics/f...
//////////////////////////////////////////////////////////////////////////// // Created : 25.09.2008 // Author : Dmitriy Iassenev // Copyright (C) GSC Game World - 2009 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include <xray/os_include.h> u64 windows_que...
// <ReportConfigInspection> -*- C++ -*- /*! * \file ReportConfigInspection.hpp * * Collection of helper methods to inspect report / report trigger * configuration for a given simulation. */ #ifndef __REPORT_CONFIG_INSPECTION_H__ #define __REPORT_CONFIG_INSPECTION_H__ #include "sparta/app/ReportDescriptor.hpp" ...
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <atomic> #include <cstdint> #include <iostream> #include ...
#include "image.h" #include <cassert> #include <cstdlib> int rawbmp2image(const data& file,int height,int width,image& i){ // if(file.len!=3*height*width) // return -1; if(i.len!=height*width) image_init(i,height,width); CastArray<RGB*> d(i.data,i.width); CastArray<unsigned char (*)[3]> d2((unsigne...
// // 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/* Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
// Copyright 2019 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 "fuchsia/base/message_port.h" #include <stdint.h> #include <lib/fidl/cpp/binding.h> #include <lib/fit/function.h> #include <memory> #include <s...
#include <string> #include "core/compiler.h" #include "gtest/gtest.h" #include "tests/util/util.h" #include "torch/csrc/jit/ir/irparser.h" TEST(Converters, ATenSoftmax1DConvertsCorrectly) { const auto graph = R"IR( graph(%0 : Tensor): %1 : None = prim::Constant() %2 : int = prim::Constant[value...
/* * Copyright (c) 2017 * FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de) * KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
/* * Copyright (c) 2014, Ford Motor Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of condit...
#include "Precomp.h" #include "VulkanRenderer.h" using namespace ::CainEngine::Graphics; using namespace ::CainEngine::Graphics::Vulkan; VulkanRenderer::VulkanRenderer() { VkWin32SurfaceCreateInfoKHR }
#include<iostream> using namespace std; /* Priority Queue is nothing but logical arrangements of queues accroding to priority power. Two types of PQ could be: 1. Limited Element Set Priority - when number of priorities are limited like in OS - Element will be added to its corresponding priority...
/* *Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.com> *All rights reserved. * *Redistribution and use in source and binary forms, with or without *modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, ...
#include "hooks/hooks.H" #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <bm/bm.h> #include "libdft_api.h" #include "tagmap.h" #include "pin.H" #include "provlog.H" #include "dtracker.H" #include "osutils.H" /* tracks whether path existed before the execution of syscall */ static struct { std::s...
/* * Copyright (c) 2003-2020 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ /** \file * Implement...
#ifdef PEGASUS_OS_FREEBSD #ifndef __UNIX_AUTHORIZATIONSUBJECT_PRIVATE_H #define __UNIX_AUTHORIZATIONSUBJECT_PRIVATE_H #endif #endif
#include <time.h> #include <iostream> using namespace std ; // iteration code is in a separate source file extern int iterate(int *data,int *indices,int length) ; // generate an array - and initialise it int *generate_data(int length) { int *data = new int[length] ; for ( int i = 0 ; i < length ; i++ ) ...
#include "core.hpp" #include "lbfgs.hpp" #include <cblas.h> #include <immintrin.h> template <class T> struct get_blas_int_type; template <class T> struct get_blas_int_type<float (*)(T, float const*, T, float const*, T)> { using type = T; }; using blas_int = typename get_blas_int_type<decltype(&cblas_sdot)>::typ...
// Copyright (c) 2014 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 "base58.h" #include "hash.h" #include "uint256.h" #include "chainparams.h" #include <assert.h> #include <stdint.h> #incl...
// ============================================================================ // Include files // ============================================================================ // STD & STL: // ============================================================================ #include <limits> // ===========================...
// Copyright 2014 Stellar Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "simulation/Topologies.h" #include "lib/catch.hpp" #include "overlay/StellarXDR.h" #in...
// Copyright (c) 2018 The Open-Transactions developers // 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 "stdafx.hpp" #include "opentxs/core/AccountList.hpp"...
#include <bts/rpc/rpc_client.hpp> #include <bts/net/stcp_socket.hpp> #include <bts/blockchain/address.hpp> #include <bts/blockchain/transaction.hpp> #include <bts/blockchain/block.hpp> #include <bts/utilities/key_conversion.hpp> #include <bts/utilities/padding_ostream.hpp> #include <fc/reflect/variant.hpp> #include <fc...
// ===================================================================================== // // Filename: gemma_impl.cpp // // Description: // // Version: 1.0 // Created: 05/20/2018 05:53:23 PM // Revision: none // Compiler: g++ // // Author: Baoxing Song (songbx.me), son...
#include "Time.h" float Time::deltaTime; float Time::scaleTime = 1; float Time::time; bool Time::running = false; bool Time::paused = false; Timer Time::gameTimer; void Time::Start() { running = true; gameTimer.Start(); time = 0; } void Time::PreUpdate(float dt) { deltaTime = running ? dt : 0; if (running) ...
//===--- SILGenBridging.cpp - SILGen for bridging to Clang ASTs -----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2020, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, w...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
// ctcbin/nnet2-ctc-latgen-faster.cc // Copyright 2009-2012 Microsoft Corporation // Johns Hopkins University (author: Daniel Povey) // 2014 Guoguo Chen // 2016 LingoChamp Feiteng // See ../../COPYING for clarification regarding multiple authors // // Licensed...
/* @Copyright:LintCode @Author: qili @Problem: http://www.lintcode.com/problem/cosine-similarity @Language: C++ @Datetime: 16-07-26 07:25 */ class Solution { public: /** * @param A: An integer array. * @param B: An integer array. * @return: Cosine similarity. */ double cosineSimil...
/** global.hpp **/ #ifndef GLOBAL_HPP #define GLOBAL_HPP #ifdef _WIN32 #define DLL #endif #ifdef DLL #ifdef BUILD_DLL #define DLL_EXPORT __declspec(dllexport) #else #define DLL_EXPORT __declspec(dllimport) #endif #define DLL_CALL __stdcall #else #define DLL_EXPORT #define DLL_CALL #endif typedef const boo...
/* $Id: UIKeyboardHandlerNormal.cpp 69500 2017-10-28 15:14:05Z vboxsync $ */ /** @file * VBox Qt GUI - UIKeyboardHandlerNormal class implementation. */ /* * Copyright (C) 2010-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. Thi...
#include <SDL2/SDL.h> #include <SDL2/SDL_mixer.h> #include <iostream> using namespace std; #include "./menu.h" #include "../util/util.h" void start_page(SDL_Window* gWindow, SDL_Surface* gScreenSurface){ SDL_Surface* start_page = NULL; start_page = LoadSurface("source/picture/word/start.bmp"); // show pi...
#undef NDEBUG #include"Bitcoin/Tx.hpp" #include"Bitcoin/TxId.hpp" #include"Util/Str.hpp" #include<assert.h> #include<sstream> #include<iostream> namespace { Bitcoin::Tx test_tx(char const* hextx, char const* hextxid) { auto tx_bytes = Util::Str::hexread(hextx); auto tx_s = std::string(tx_bytes.begin(), tx_bytes.en...
#include <limits> #include <cmath> #include <itkImageToHistogramFilter.h> #include <itkMaskedImageToHistogramFilter.h> #include <itkHistogram.h> #include <itkExtractImageFilter.h> #include <itkImageRegionConstIterator.h> #include <itkChangeInformationImageFilter.h> #include <itkMinimumMaximumImageCalculator.h> #inclu...