text
stringlengths
5
1.04M
/* g++ unique_ptr_scalar.cpp -std=c++11 -lpthread g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.10' --with-bugurl=file:///usr/share/doc/gcc-5/READM...
/* file: low_order_moments_csr_sum_online_fpt_cpu.cpp */ /******************************************************************************* * Copyright 2014-2019 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 m...
#include "CTMStack.h" CTMStack::CTMStack(int intialProgram) { program = intialProgram; head = nullptr; size = 0; } void CTMStack::pushMatrix(mat4 matrix) { CTMNode* newNode = new CTMNode; newNode->matrix = (head != nullptr ? head->matrix : Angel::identity()) * matrix; newNode->prev = head; head =...
/* * Copyright 2016 - 2020 Angelo Matni, Yian Su, Simone Campanoni * * 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, co...
/* * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
#include<iostream> #include<cstdio> using namespace std; int n,m; int main(){ scanf("%d%d",&n,&m); return 0; }
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include <iostream> typedef struct { char name[7]; int score; } Person; void printScoreStars(Person* persons, int len) { for (int i = 0; i < len; ++i) { std::cout << persons[i].name << ' '; for (int j = 0; j < persons[i].score / 5; ++j) { std::cout << '*'; } std...
/* * CoapPacket.cpp * * Created on: Nov 17, 2017 * Author: armin */ #include <string.h> #include "CoapPacket.h" #define COAP_HEADER_SIZE 4 namespace Coap { static inline void coapOptionDelta(uint32_t v, uint8_t* n) { v < 13 ? (*n = (0xFF & v)) : (v <= 0xFF + 13 ? (*n = 13) : (*n = 14)); } size_t packe...
/*********************************************************************************************************************** * 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 (c) 2013-2021 The SRS Authors // // SPDX-License-Identifier: MIT or MulanPSL-2.0 // #include <srs_app_source.hpp> #include <sstream> #include <algorithm> using namespace std; #include <srs_kernel_log.hpp> #include <srs_rtmp_stack.hpp> #include <srs_protocol_amf0.hpp> #include <srs_kernel_codec.hpp> #...
/* Copyright (c) 2014-2017, ARM Limited and Contributors * * SPDX-License-Identifier: 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 limita...
#include "CppML/CppML.hpp" namespace PackExtractorTest { void run() { { using T = ml::f< ml::PackExtractor< ml::Int<0>, ml::Int<1>, ml::Int<2>, ml::Int<3>, ml::Int<4>, ml::Int<5>, ml::Int<6>, ml::Int<7>, ml::Int<8>, ml::Int<9>, ml::Int<10>, ml::Int<11>, ml::Int<12>, ml...
/************************************************************** * * 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 y...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/map_unittest.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include <google/protobuf/map_unittest.pb.h> #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <...
// Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #ifndef TAOCPP_JSON_INCLUDE_INTERNAL_STRING_STATE_HPP #define TAOCPP_JSON_INCLUDE_INTERNAL_STRING_STATE_HPP #include <string> #include <utility> namespace tao { namespace json ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" #include "Test.h" #if SK_SUPPORT_GPU #include "GrContext.h" #include "GrColor.h" #include "GrGeometryProcessor.h" #include "GrGpuCommandBuffer.h" #inclu...
// 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/chromeos/login/screens/error_screen.h" #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" #include "chrom...
/* $Id: rtmempage-exec-mmap-posix.cpp $ */ /** @file * IPRT - RTMemPage*, POSIX with mmap only. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it a...
// MIT Licensed (see LICENSE.md). #pragma once #include "Reals.hpp" namespace Math { template <typename ScalarType, uint Dimension> struct ZeroSharedTemplate GenericVector { // should technically add a trait type for the scalar type to do things // like get zero and whatnot, but that's not necessary yet typede...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* 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 "base/basictypes.h" #inc...
/* * Copyright © 2018 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copy...
#pragma once #include <memory> #include <string> #include <iostream> class ISymbolType { public: virtual ~ISymbolType() = default; virtual bool Equals(const ISymbolType &other) const { return this == &other; } protected: ISymbolType() = default; }; class ISymbol { public: virtual ~ISymb...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: NUnit.Framewor...
#include "RequesterSimple.hpp" #include "Subscriber.hpp" #include "timer.hpp" #include "json.hpp" #include <signal.h> #include <chrono> #include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <nav_msgs/Odometry.h> #include <ros_layer_walker/wheels_current.h> #include <geometry_msgs/Pose2D.h> #include <fs...
/* * Copyright (C) 2015-2018 Nils Asmussen <nils@os.inf.tu-dresden.de> * Copyright (C) 2019-2022 Nils Asmussen, Barkhausen Institut * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * thi...
#include "mzpch.h" #include "OpenGLBuffer.h" #include <glad/glad.h> namespace Mazel { #pragma region [VertexBuffer] OpenGLVertexBuffer::OpenGLVertexBuffer(float* vertices, uint32_t size) { glCreateBuffers(1, &m_RendererID); glBindBuffer(GL_ARRAY_BUFFER, m_RendererID); glBufferData(GL_ARRAY_BUFFER, size, verti...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, Image Engine Design 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: // // * Re...
/* * Copyright (c) 2004-present, Facebook, Inc. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
/*========================================================================= * * Copyright David Doria 2011 daviddoria@gmail.com * * 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 * *...
#include "gimbal_protocol_v2.h" #include "gimbal_impl.h" #include "global_include.h" #include <functional> #include <cmath> namespace mavsdk { GimbalProtocolV2::GimbalProtocolV2( SystemImpl& system_impl, const mavlink_gimbal_manager_information_t& information, uint8_t gimbal_manager_sysid, uint8_t gim...
#include <iostream> #include <vector> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include <pthread.h> #include "BufferManager/BufferManager.hpp" using namespace std; BufferManager* bm; unsigned pagesOnDisk; unsigned pagesInRAM; unsigned threadCount; unsigned* threadSeed; volatile bool stop=false; u...
/************************************************************************/ /* namespace std */ /************************************************************************/ #include <ctime> #include <vector> #include <string> #include <fstream> #include <iostream> #in...
/****************************************************************************** * Copyright 2019 The Apollo 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 ...
/* ============================================================================== This is an automatically generated GUI class created by the Introjucer! Be careful when adding custom code to these files, as only the code within the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loa...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.IO.Compression.ZipArchiveEnt...
#include "VulkanDescriptorSetLayoutBuilder.h" #include "VulkanMesh.h" #include "VulkanShader.h" using namespace NCL; using namespace Rendering; VulkanDescriptorSetLayoutBuilder& VulkanDescriptorSetLayoutBuilder::WithSamplers(unsigned int count, vk::ShaderStageFlags inShaders) { vk::DescriptorSetLayoutBinding binding...
// (C) Copyright David Abrahams 2002. // (C) Copyright Jeremy Siek 2002. // (C) Copyright Thomas Witt 2002. // 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 BOOST_ENABLE_IF_23022003THW_HPP #de...
#include <iostream> #include <clickhouse-cpp/client.h> #include <clickhouse-cpp/error_codes.h> #include <clickhouse-cpp/types/type_parser.h> #include <clickhouse-cpp/columns/factory.h> #include "click2db.h" #define CONNECT_TIMEOUT 60 Click2DB::Click2DB() : m_run(false), m_pQueue(std::make_unique<Queue>(10000)) { }...
/* 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...
// Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2018, The sevabit Project // // 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 ...
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "low_precision/rt_info/precisions_attribute.hpp" #include <memory> #include <string> #include <unordered_map> #include <iterator> #include <vector> #include <ngraph/opsets/opset1.hpp> #include "low_precision/network_helper.hpp...
/** * Copyright (C) 2011 * University of Rochester Department of Computer Science * and * Lehigh University Department of Computer Science and Engineering * * License: Modified BSD * Please see the file LICENSE.RSTM for licensing information */ #include "algs.hpp" #include "../cm.hpp" namespace...
// Copyright (c) 2012-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientversion.h" #include "tinyformat.h" #include <string> /** * Name of client reported in the 'version' message. R...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/** * \file PnlWzskScfGeom.cpp * job handler for job PnlWzskScfGeom (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Emily Johnson (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #ifdef WZSKCMBD #include <Wzskcmbd.h> #else #include <Wzskd.h> #endif #include ...
// stdafx.cpp : source file that includes just the standard includes // Assignment2Animals.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/* IterativeYang.cxx Author: Benjamin A. Thomas Copyright 2013-2015 Institute of Nuclear Medicine, University College London. Copyright 2014-2015 Clinical Imaging Research Centre, A*STAR-NUS. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in co...
#include "qsidebutton.h" #include "common/qstealth.h" #define SC_QSS_SIDE_BTN_DEFAULT "background-color: transparent; border: none; outline: none;" #define SC_QSS_SIDE_BTN_CLICKED "background-color: #00c6ff; border: none; outline: none;" #define SC_QSS_SIDE_BTN_HOVER "background-c...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: edge-based-graph.proto #include "edge-based-graph.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_l...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $Header: $ // $NoKeywords: $ //===========================================================================// #include "shaderlib/cshader.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/mem...
#ifndef MESH_HPP #define MESH_HPP #include <vector> #include <GL/glew.h> #include "tools/ResourceLoader.hpp" class Mesh { private: GLuint vao; std::vector<GLuint> vbos; int size; void LoadIntoAttributeList(int location, int size, std::vector<float> data); void LoadIntoIndexBuffer(std::vector<i...
////////////////////// /// File generated by glLoadGen, version 2.0.5 /// glLoadGen's website: https://bitbucket.org/alfonse/glloadgen/wiki/Home /// File generated from command line: core_4_5 -spec=gl -version=4.5 -profile=core -style=pointer_cpp -indent=space -stdext=electroslag.txt -geninfo #ifndef POINTER_CPP_GENER...
//write include statements #include "expressions.h" #include<iostream> //write namespace using statement for cout using std::cout; using std::cin; /* Call multiply_numbers with 10 and 10 parameter values and display function result */ int main() { //initialize variables double meal_amount; double tip_rate; doub...
//===------------------------- unwind_01.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 // //===---------------------------...
// 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. #ifndef OPENCV_DNN_SRC_CUDA4DNN_CSL_STREAM_HPP #define OPENCV_DNN_SRC_CUDA4DNN_CSL_STREAM_HPP #include "error.hpp" #include...
/************************************************************************************ OpenGL with Qt - Tutorial ------------------------- Autor : Andreas Nicolai <andreas.nicolai@gmx.net> Repository : https://github.com/ghorwin/OpenGLWithQt-Tutorial License : BSD License, see https://github.com/ghorwin/Ope...
/* * This Code Was Created By Brett Porter For NeHe Productions 2000 * Visit NeHe Productions At http://nehe.gamedev.net * * Visit Brett Porter's Web Page at * http://www.geocities.com/brettporter/programming */ #include <windows.h> // Header File For Windows #include <stdio.h> // He...
#include <thread> #include <chrono> #include <numeric> #include <algorithm> #include <functional> #include <vector> #include <iostream> #include <iomanip> #include <cassert> namespace workspace { template < typename Time = std::chrono::microseconds, typename Clock = std::chrono::high_resolution_clock> str...
#include "openmc/particle_restart.h" #include "openmc/array.h" #include "openmc/constants.h" #include "openmc/hdf5_interface.h" #include "openmc/mgxs_interface.h" #include "openmc/nuclide.h" #include "openmc/output.h" #include "openmc/particle.h" #include "openmc/photon.h" #include "openmc/random_lcg.h" #include "open...
// // This class stores the name and related // hardware mapings for a ROC // #include "CalibFormats/SiPixelObjects/interface/PixelROCName.h" #include <string> #include <iostream> #include <sstream> #include <cctype> #include <cassert> #include <cstdlib> using namespace std; using namespace pos; PixelROCName::Pixel...
#include "FSMContextBase.h" FSMContextBase::FSMContextBase(UWorld* world) : mWorld{ world }, mIsTimerOver {true} { } void FSMContextBase::StartTimer(float duration) { FTimerDelegate timerDelegate; timerDelegate.BindLambda([this] { OnTimeOver(); }); mIsTimerOver = false; mWorld->GetTimerManager().SetTimer(mTim...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist...
#pragma once #include <string> #include <vector> #include <memory> #include "Plugin.hpp" #include "PluginLoader_API.h" class PluginLoader_API PluginLoader { public: PluginLoader(void *API_Handle); void Load(const std::string& ListFile); bool isEmpty() const; public: // Iterators and access methods std::shared...
/**************************************************************************** * * (c) 2009-2019 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * * @brief Custom QGCCorePlugin Impleme...
/* * ModSecurity, http://www.modsecurity.org/ * Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * 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 * * If any of the fil...
#include "bank_a.h" #include <iostream> BankA::BankA(const string &dep_name, const string &a_num, double bal) { this->dep_name = dep_name; this->a_num = a_num; this->bal = bal; } void BankA::show() { using namespace std; cout << this->dep_name << " (" << this->a_num << ") Balance: " << this->bal << endl; ...
/**************************************************************************************** * @author: kzvd4729 created: Nov/19/2017 20:01 * solution_verdict: Accepted language: GNU C++14 * run...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "openvino/op/ops.hpp" namespace ov { namespace opset5 { #define _OPENVINO_OP_REG(a, b) using b::a; #include "openvino/opsets/opset5_tbl.hpp" #undef _OPENVINO_OP_REG } // namespace opset5 } // namespace ov
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2017 Pivotal, Inc. // // Implementation of DXL Part list null test expression #include "naucrates/dxl/operators/CDXLScalarPartListNullTest.h" #include "naucrates/dxl/operators/CDXLNode.h" #include "nau...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
#include <fstream> using namespace TagLib; ByteVector getPictureData(const char *filename) { std::ifstream is; is.open(filename, std::ios::binary); is.seekg(0, std::ios::end); int length = is.tellg(); is.seekg(0, std::ios::beg); char *buffer = new char[length]; is.read(buffer, length); is.close(); ...
#include <pybind11/pybind11.h> namespace py = pybind11; #include "../../cplusplus/src/player/Player.h" #include "../../cplusplus/src/Game.h" void init_Player(py::module &m) { py::class_<Player>(m, "Player") .def(py::init<Game&, int>()) .def_readonly("sGatheredGold", &Player::sGatheredGo...
// This file is a part of Julia. License is MIT: https://julialang.org/license // utility procedures used in code generation static Instruction *tbaa_decorate(MDNode *md, Instruction *inst) { inst->setMetadata(llvm::LLVMContext::MD_tbaa, md); if (isa<LoadInst>(inst) && md == tbaa_const) inst->setMetad...
/****************************************************************************** * Copyright © 2014-2018 The SuperNET Developers. * * * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * ...
# /* ************************************************************************** # * * # * (C) Copyright Edward Diener 2011. * # * (C) Copyright Paul Mensonides 2011. * ...
#include <QApplication> #include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #if QT_VERSION >= 0x050000 #include <QUrlQuery> #else #inclu...
#include "Precompile.hpp" #include "ValueDragBoxUI.hpp" #include <cinttypes> #include <imgui.h> #include <unordered_map> namespace krakoa::ui { const char* GetPrintfToken(size_t hashcode) { static const std::unordered_map<size_t, const char*> tokenMap = { {typeid(long double).hash_code(), "%.6f"}, {ty...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
/* Copyright (c) 2016, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
/* * PDFedit - free program for PDF document manipulation. * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, * Jozef Misutka, * Martin Petricek * Former team members: Miroslav Jahoda * * This program is free soft...
/* * Copyright Andrey Semashev 2007 - 2013. * 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) */ /*! * \file timestamp.cpp * \author Andrey Semashev * \date 31.07.2011 * * \brief Th...
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
/* * Copyright (c) 2015 Kaprica Security, Inc. * * 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, mer...
// clang-format off #include "net.h" #include "masternodeconfig.h" #include "util.h" #include "ui_interface.h" #include <base58.h> // clang-format on CMasternodeConfig masternodeConfig; void CMasternodeConfig::add(std::string alias, std::string ip, std::string privKey, std::string txHash, std::string outputIndex) { ...
#include "RelativeInformation.h" RelativeInformation::RelativeInformation() {} RelativeInformation::~RelativeInformation() {} void RelativeInformation::RegisterDynamicsInfo(const int sat_id, const Dynamics* dynamics) { dynamics_database_.emplace(sat_id, dynamics); } void RelativeInformation::RemoveDynamicsInfo(cons...
// Copyright (c) 2021 Johannes Delport // This code is licensed under MIT license (see LICENSE for details) #include "JoSIM/Simulation.hpp" #include "JoSIM/AnalysisType.hpp" #include "JoSIM/Components.hpp" #include "JoSIM/Matrix.hpp" #include "JoSIM/Constants.hpp" #include "JoSIM/Model.hpp" #include "JoSIM/Pr...
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2014-2017 XDN developers // Copyright (c) 2016-2017 BXC developers // Copyright (c) 2017 UltraNote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.ph...
/* Copyright 2008-2009 Uppsala University * * 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<bits/stdc++.h> using namespace std; // eg. (a+) b(+) will also bet true here -- as its only balance check class Stack{ private: int size; int top; int *s; public: Stack(){ top=-1; } Stack(int size){ this->size=size; s...
#include "../.././Core/Container/Misc/BinTable.hh"
/**************************************************************************** ** ** Copyright (C) 2008-2010 C.B. Barber. All rights reserved. ** ****************************************************************************/ #//! QhullError -- All exceptions thrown by Qhull are QhullErrors #include "QhullError.h" #inc...
/* www.sourceforge.net/projects/tinyxml Original code (2.0 and earlier )copyright (c) 2000-2002 Lee Thomason (www.grinninglizard.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. Permiss...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/* * Neuron.cpp * * Author: Nicolae Natea */ #include <stdint.h> #include <assert.h> #include <random> #include "Neuron.hpp" namespace BackPropagation { namespace { std::random_device g_rand_dev; std::mt19937 mt(g_rand_dev()); std::uniform_real_distribution<dou...
/** * @file data_loader.cpp * @author Weiqi Shen (weiqishen1994@ufl.edu) * @brief * @version 0.1 * @date 2019-01-29 * * @copyright Copyright (c) 2019 * */ #include "data_loader.h" #include <sys/stat.h> data_loader::data_loader(string in_filename) { struct stat st = {0}; if (stat(in_filename.c_str()...
/* ******************************************************************************** * Copyright (C) 1999-2015 International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************** * Date Name Description * 10...
#include "pybulletphysics.h" static PyObject* StaticPlaneShape_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { PyObject *py_vector3 = NULL; float planeConstant = 0; if (!PyArg_ParseTuple(args, "Of", &py_vector3, &planeConstant)) { return NULL; } bulletphysics_CollisionShapeObject *s...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2018 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
#include "utils.hpp" #include "mapnik_geometry.hpp" // mapnik #include <mapnik/wkt/wkt_factory.hpp> // boost #include MAPNIK_MAKE_SHARED_INCLUDE Persistent<FunctionTemplate> Geometry::constructor; void Geometry::Initialize(Handle<Object> target) { NanScope(); Local<FunctionTemplate> lcons = NanNew<Functio...