text
stringlengths
5
1.04M
/* * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * b...
#pragma once #ifndef _ABSTRACTRANDOMGENERATOR_H_ #define _ABSTRACTRANDOMGENERATOR_H_ // Include #include "LightBulb/LinearAlgebra/AbstractLinearAlgebraUser.hpp" #include "LightBulb/LinearAlgebra/Vector.hpp" // Library Includes namespace LightBulb { /** * \brief Describes a generator of random numbers. */ cla...
#include "foobar2000.h" void abort_callback::check() const { if (is_aborting()) throw exception_aborted(); } void abort_callback::sleep(double p_timeout_seconds) const { if (!sleep_ex(p_timeout_seconds)) throw exception_aborted(); } bool abort_callback::sleep_ex(double p_timeout_seconds) const { #ifdef _WIN32 ret...
/* * index.cpp * * Created on: 23 May, 2014 * Author: Ivan Sovic */ #include <index/index.h> #include "log_system/log_system.h" Index::Index() { reference_starting_pos_.clear(); reference_lengths_.clear(); headers_.clear(); data_length_ = 0; data_length_forward_ = 0; num_sequences_forward_ = 0;...
/**************************************************************************\ * Copyright (c) Kongsberg Oil & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Red...
//===- lib/Support/Disassembler.cpp -----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------...
///////////////////////////////////////////////////////////////////////////// // Name: src/common/colourcmn.cpp // Purpose: wxColourBase implementation // Author: Francesco Montorsi // Modified by: // Created: 20/4/2006 // RCS-ID: $Id: colourcmn.cpp 62099 2009-09-24 20:05:33Z JS $ // Copyright:...
// Copyright 2020 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <align.h> #include <platform.h> #include <string.h> #include <zircon/assert.h> #include <ktl/algorithm.h> #include <ktl/...
#include "eventuals/scheduler.h" #include "glog/logging.h" // For GetTID(). //////////////////////////////////////////////////////////////////////// // Forward declaration. // // TODO(benh): don't use private functions from glog; currently we're // doing this to match glog message thread id's but this is prone to //...
/*! * @file Adafruit_LEDBackpack.cpp * * @mainpage Adafruit LED Backpack library for Arduino. * * @section intro_sec Introduction * * This is an Arduino library for our I2C LED Backpacks: * ----> http://www.adafruit.com/products/ * ----> http://www.adafruit.com/products/ * * These displays use I2C to communi...
#include<iostream>> using namespace std; int linearSearch(int element, int arr[], int size){ bool found=false; int i; for (i = 0; i < size;i++) if(element==arr[i]){ found = true; break; } if(found) return i; else return -1; } in...
#include<stdio.h> #include<string.h> #include<stdlib.h> struct goutom { char a[11]; int len; }roy[15005]; bool flag[15005]; long c=0; int comp1(const void *A,const void *B) { goutom *x=(goutom*)A; goutom *y=(goutom*)B; return(x->len-y->len); } int comp2(const void *A,const void *B) { char *x=(char*)A; char *y=(...
// Copyright 2021 RobosoftAI 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...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
#ifndef VIENNACL_LINALG_ICHOL_HPP_ #define VIENNACL_LINALG_ICHOL_HPP_ /* ========================================================================= Copyright (c) 2010-2012, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien...
#include "VulkanCommon.h" #include "radcpp/File.h" #define VOLK_IMPLEMENTATION #include "volk.h" #define VMA_IMPLEMENTATION #include "vk_mem_alloc.h" #include "VulkanDevice.h" #include "VulkanShader.h" #include "VulkanRenderPass.h" #include "vk_format_utils.h" #define CASE_ENUM_RETURN_STRING(e) case e: return #e; ...
/* *********************************************************************************************************************** * * Copyright (c) 2015-2018 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
// Copyright (c) 2013-2019 The GleecBTC Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/tx_check.h> #include <consensus/validation.h> #include <test/data/sighash.json.h> #include <hash.h> #inc...
#include <ripple/app/paths/AccountCurrencies.h> namespace ripple { hash_set<Currency> accountSourceCurrencies ( AccountID const& account, std::shared_ptr<RippleLineCache> const& lrCache, bool includeXRP) { hash_set<Currency> currencies; if (includeXRP) currencies.insert (xrpCurrency());...
#include<iostream> #include<climits> #include<vector> using namespace std; struct Node{ int data; Node *left,*right; Node(int val){ data = val; left = NULL; right = NULL; } }; vector<Node*> constrcutress(int start,int end){ vector<Node*> trees; if(start > end){ ...
/* * 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 lis...
#include "Plugin.h" #include <iostream> #include <ING/Engine/Engine.h> #include <ING/_Debug/Debug.h> #include <ING/Plugin/Plugin.h> #include <ING/Plugin/Manager/Manager.h> #include <ING/Window/Manager/Manager.h> #include <ING/Application/Application.h> #include <ING/Application/Manager/Manager.h> #include <ING/Sta...
// Q1.3.4.1. 求排名 // WzhDnwzWzh #include <iostream> #include <algorithm> #include <cstring> using namespace std; struct student { int a, c, d; }; bool comp1(student a, student b) { if (a.a != b.a) return a.a > b.a; else return a.c < b.c; } bool comp2(student a, student b) { return a....
#include <TypeDef.h> #include "CompilerMacros.h" #include "SIMD_Core.h" #include "Vector3.h" namespace math { template <size_t ComponentCount, typename T> struct Vector; /// <summary> /// This class is made for SIMD computation. So it's aligned to 16 byte /// </summary> template <> struct alignas(16) Vector<4,...
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
//===- InlineCost.cpp - Cost analysis for inliner -------------------------===// // // 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 (c) 1994-2006 Sun Microsystems 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 ...
#include <iostream> #include <cstdlib> //for malloc, realloc, and free #include "TestSuite.h" #include "../../libjson.h" void DoTests(void); void DoTests(void){ TestSuite::TestStreams(); TestSuite::TestValidator(); TestSuite::TestString(); TestSuite::TestConverters(); #ifdef JSON_BINARY TestSui...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
// Copyright (c) 2009-2012 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 <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints.h" #include "m...
// Copyright 2017 ProjectQ-Framework (www.projectq.ch) // // 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...
#include "NGramPrinter.h" using namespace std; using namespace lem; using namespace Solarix; NGramPrinter::NGramPrinter() : NGramHandler() { } bool NGramPrinter::Do( Solarix::Ngrams & ngrams, int id_ngram, int freq, int id_word1, const lem::UCString &word1 ) { mout->printf("%vf6[%vn%us%vf6]%v...
#include <queue> #include <src/blockstore.hpp> #include <src/versioning.hpp> #include <src/lib/tx.h> namespace { /** * Fill in our predecessors */ class set_predecessor : public germ::block_visitor { public: set_predecessor (MDB_txn * transaction_a, germ::block_store & store_a) : transaction (transaction_a),...
// Copyright (c) 2016 The Tcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "aes.h" #include "crypto/common.h" #include <assert.h> #include <string.h> extern "C" { #include "crypto/ctaes/ctaes.c" }...
/*------------------------------------------------------------------------/ / Foolproof MMCv3/SDv1/SDv2 (in SPI mode) control module /-------------------------------------------------------------------------/ / / Copyright (C) 2019, ChaN, all right reserved. / / * This software is a free software and there is N...
//===-- AMDGPURegisterInfo.cpp - AMDGPU Register Information -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
#include "process.h" #include <unistd.h> #include <cctype> #include <sstream> #include <string> #include <vector> using std::string; using std::to_string; using std::vector; // DONE: Return this process's ID int Process::Pid() { return pid_; } auto& Process::getCPU() const { return cpu_; } // DONE: Return this proc...
/* * Copyright 2013-2022 Step Function I/O, LLC * * Licensed to Green Energy Corp (www.greenenergycorp.com) and Step Function I/O * LLC (https://stepfunc.io) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownershi...
//===----------------------------------------------------------------------===// // // 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 (c) 2016-2021 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
<<<<<<< HEAD /* Copyright 2015 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 applic...
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved #include "pch.h...
/*============================================================================= Copyright (c) 2011-2017 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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.tx...
/************************************************************** * * 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...
#include <iostream> #include <stdlib.h> #include <time.h> #include <windows.h> #include <pmmintrin.h> #include <omp.h> using namespace std; const int N = 2000; float mat[N][N]; float test[N][N]; const int thread_count = 4; long long head, tail, freq; // timers void init_mat(float test[][N])...
#include <cstdint> #include <iostream> #include <jsonmapper/JsonMapper.h> #include <jsonmapper/types/serialize/raw_ptr.h> #include <jsonmapper/types/serialize/string.h> #include <jsonmapper/types/serialize/unordered_map.h> #include <jsonmapper/types/serialize/vector.h> #include <memory> #include <sstream> #include <str...
#include <fstream> #include <iostream> #include <map> #include <sstream> #include <vector> #include <chrono> #include <opencv2/opencv.hpp> #include <dirent.h> #include "NvInfer.h" #include "cuda_runtime_api.h" #include "logging.h" #include "decode.h" #define CHECK(status) \ do\ {\ auto ...
#include <cstdio> const int N = 1234; int a[N], b[N]; int main() { freopen("input", "rt", stdin); freopen("output", "wt", stdout); int n, k; scanf("%d%d", &n, &k); for (int i = 0; i < k; ++i) { scanf("%d", a + i); --a[i]; } for (int i = 0; i < n * k; ++i) { b[i] = -1; } for (int i = 0; i...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_wchar_t_12.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml Template File: sources-sinks-12.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory ...
#ifndef OSMIUM_AREA_DETAIL_PROTO_RING_HPP #define OSMIUM_AREA_DETAIL_PROTO_RING_HPP /* This file is part of Osmium (https://osmcode.org/libosmium). Copyright 2013-2021 Jochen Topf <jochen@topf.org> and others (see README). Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free ...
#include "Mesh.h" #include "Node.h" #include "ofRectangle.h" namespace Cog{ void Mesh::UpdateBoundingBox(Trans& transform) { auto absPos = ofVec2f(transform.absPos.x, transform.absPos.y); this->boundingBox.topLeft = absPos; this->boundingBox.topRight = ofVec2f(absPos.x + this->GetWidth() * transform.absScale.x...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK. // Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland. // Use, mo...
// Copyright 2017 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...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// Security > Terminology and Concepts > Security Encryption Scheme // Count the number of bijections and the number of keys that produce different encryption functions. // // https://www.hackerrank.com/challenges/security-encryption-scheme/problem // #include <cmath> #include <cstdio> #include <vector> #include <io...
/*************************************************** * Problem Name : 1123 - Trail Maintenance.cpp * Problem Link : http://lightoj.com/volume_showproblem.php?problem=1123 * OJ : LOJ * Verdict : AC * Date : 2019-09-08 * Problem Type : Graph(MST) * Author Name : Saikat Sharma * University ...
#include "ffmpeg_video_target.h" #include "except.h" #ifdef GENERATE_PERFORMANCE_OUTPUT #include <boost/timer/timer.hpp> #ifndef timer_format_str #define timer_format_str \ std::string(", %w, %u, %s, %t, %p" \ ", wall (s), user (s), system (s), user+system (s), CPU (\%)\n") #endif #ifndef t...
// 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 "ui/compositor/layer.h" #include <algorithm> #include "base/command_line.h" #include "base/debug/trace_event.h" #include "base/json/json_wr...
/** * Copyright 2019-2021 Huawei Technologies Co., Ltd * * 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 applicabl...
/* See the Zcash protocol specification for more information. https://github.com/zcash/zips/blob/master/protocol/protocol.pdf */ #ifndef ZC_NOTE_ENCRYPTION_H_ #define ZC_NOTE_ENCRYPTION_H_ #include <boost/array.hpp> #include "uint256.h" #include "uint252.h" #include "zcash/Zcash.h" #include "zcash/Address.hpp" #inc...
#ifndef MARLIN_CORE_FIBERS_SENTINELFRAMINGFIBER_HPP #define MARLIN_CORE_FIBERS_SENTINELFRAMINGFIBER_HPP #include <marlin/core/Buffer.hpp> #include <marlin/core/fibers/FiberScaffold.hpp> #include <spdlog/spdlog.h> namespace marlin { namespace core { template<typename ExtFabric, uint8_t sentinel> class SentinelFramin...
// Copyright (c) 2012-2018 CIYAM Developers #include <cstring> #include <cstdlib> #include "fcgiapp.h" using namespace std; int main( ) { FCGX_Stream* in; FCGX_Stream* out; FCGX_Stream* err; FCGX_ParamArray envp; while( FCGX_Accept( &in, &out, &err, &envp ) >= 0 ) { FCGX_FPrintF( out, "Con...
// // Utility class to print GenParticle // #ifndef Print_inc_GenParticlePrinter_hh #define Print_inc_GenParticlePrinter_hh #include <cstring> #include <iostream> #include "CLHEP/Vector/ThreeVector.h" #include "Print/inc/ProductPrinter.hh" #include "MCDataProducts/inc/GenParticleCollection.hh" #include "art/Framew...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
/* * micro:bit OneWire Library, derived from the mbed DS1820 Library, for the * Dallas (Maxim) 1-Wire Digital Thermometer * Copyright (c) 2010, Michael Hagberg Michael@RedBoxCode.com * * This version uses a single instance to talk to multiple one wire devices. * During configuration the devices will be listed and...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercia...
/** * * You can modify and use this source freely * only for the development of application related Live2D. * * (c) Live2D Inc. All rights reserved. */ #include "L2DMotionManager.h" namespace live2d { namespace framework { L2DMotionManager::L2DMotionManager() :currentPriority(0),reservePriority(0) { ...
// 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 "base/bind.h" #include "base/macros.h" #include "base/strings/utf_string_conversions.h" #include "base/timer/timer.h" #include "build/build_c...
// FRAGMENT(main) #include <iostream> #include <seqan/seq_io.h> #include <seqan/journaled_set.h> using namespace seqan; template <typename TString, typename TStream, typename TSpec> inline int loadAndJoin(StringSet<TString, Owner<JournaledSet> > & journalSet, TStream & stream, JoinConfig<TSpec...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
/* * Copyright 2017 Andrei Pangin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Copyright (c) YugaByte, 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 in writ...
#include "Cursor.h" Cursor::Cursor(): m_shape(sf::Vector2f(Constants::FONT_WIDTH + Constants::CURSOR_PADDING, Constants::FONT_SIZE + Constants::CURSOR_PADDING)) { m_shape.setOrigin(m_shape.getOrigin().x + Constants::CURSOR_PADDING / 2, m_shape.getOrigin().y + Constants::CURSOR_PADDING / 2); m_shape.setFillColor(C...
#include <I2PService.h> #include "server.h" #include <Destination.h> #include <I2PTunnel.h> #include <Identity.h> #include <api.h> #include <fstream> #include <streambuf> #include "../../or_throw.h" using namespace std; using namespace ouinet::ouiservice; using namespace ouinet::ouiservice::i2poui; Server::Server(...
/* * name: g_mover.c * * desc: * */ #include "g_local.h" const char *hintStrings[HINT_NUM_HINTS] = { "", // HINT_NONE "HINT_NONE", // actually HINT_FORCENONE, but since this is being specified in the ent, the designer actually means HINT_FORCENONE "HINT_PLAYER", "HINT_ACTIVATE", "HIN...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "prosperitynodeman.h" #include "activeprosperitynode.h" #include "addrman...
#include "stdafx.h" #include "protein_calls/BindingSiteCall.h" using namespace megamol; using namespace megamol::core; using namespace megamol::protein_calls; /* * BindingSiteCall::BindingSiteCall */ const unsigned int BindingSiteCall::CallForGetData = 0; BindingSiteCall::BindingSiteCall(void) : megamol::core::Ca...
// // "$Id: table-spreadsheet.cxx 8864 2011-07-19 04:49:30Z greg.ercolano $" // // Simple example of an interactive spreadsheet using Fl_Table. // Uses Mr. Satan's technique of instancing an Fl_Input around. // // Copyright 1998-2010 by Bill Spitzak and others. // // This library is free software. Distribution and use ...
/**************************************************************************** * audio_recorder/audio_recorder_main.cxx * * Copyright 2018 Sony Semiconductor Solutions Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
#ifndef __MESHWRAPPER_T_HH__ #define __MESHWRAPPER_T_HH__ #include "Utilities.hh" #include <OpenMesh/Core/IO/MeshIO.hh> #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh> #include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh> #include <pybind11/pybind11.h> #include <pybind11/numpy.h> namespace py = pybind11; t...
// -*- C++ -*- // // Package: FWLite // Class : Event // // Implementation: // <Notes on implementation> // // Original Author: Chris Jones // Created: Tue May 8 15:07:03 EDT 2007 // // system include files #include <iostream> // user include files #include "DataFormats/FWLite/interface/Event....
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2017 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 <rpc/blockchain.h> #include <amount.h> #include <chain.h> #include <chainpar...
/** * Intended to be used for FFTE. Collective inspiration and credit * to M. Stoyanov's LibHALA. * * github.com/LIBHALA/hala/ */ #ifndef VEC_TYPES_HPP #define VEC_TYPES_HPP #include <type_traits> #include <immintrin.h> #include <complex> namespace FFTE { // Structs to figure out precise properties of inpu...
/*************************************************************************** * This file is part of the CuteReport project * * Copyright (C) 2012-2014 by Alexander Mikhalov * * alexander.mikhalov@gmail.com * * ...
//============================================================================ // Name : dnatemplatecalcfuncs.hpp // Author : Roger Fraser // Contributors : // Version : 1.00 // Copyright : Copyright 2017 Geoscience Australia // // Licensed under the Apache License, Version 2.0 (the...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * ...
// 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 "content/renderer/pepper/pepper_device_enumeration_event_handler.h" #include "base/logging.h" #include "ppapi/shared_impl/ppb_device_ref_sha...
// Copyright 2020 Barger M., Knoll M., Kofler L. #include "sip_client.hpp" SIPClient::SIPClient(std::string username, std::string password, std::string uri, int port, int threadid) { this->context = nullptr; this->last_event = nullptr; this->reg_msg = nullptr; this->threadid = threadid; // Initialize conte...
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #include <java/lang/Thread_Caches.hpp> extern void unimplemented_(const char16_t* name); java::lang::Thread_Caches::Thread_Caches(const ::default_init_tag&) : super(*static_cast< ::default_init_tag* >(0)) { clinit...
// 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...
// Copyright 2014 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 "media/midi/usb_midi_device_android.h" #include <jni.h> #include <vector> #include "base/android/jni_array.h" #include "base/time/time.h" #incl...
// 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 "chromeos/network/network_device_handler.h" #include "base/bind.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop/message_loop....
#ifndef __UNROLLEDLOOP_HPP__ #define __UNROLLEDLOOP_HPP__ #pragma once #include <type_traits> #include <utility> namespace impu { // // The code below creates the constexprs 'make_integer_range' // and 'make_index_range' these are akin to 'std::make_integer_sequence' // and 'std::make_index_sequence', resp...
/*========================================================================= * * Copyright Insight Software Consortium * * 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...
#include <stdio.h> #include <string.h> #include <math.h> #define NANOSVG_ALL_COLOR_KEYWORDS #define NANOSVG_IMPLEMENTATION #include "nanosvg.h" #include <string> #include <vector> #include <iostream> #include <sstream> #include <fstream> namespace status_code { constexpr int success = 0; } std::string encode(float* ...
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2015-2020 The PIVX developers // Copyright (c) 2021 The DECENOMY Core Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h...
#include "vecoptions.h" #include "cpp-utils.h" VecOptions::VecOptions(const struct libenv_options options) { m_options = std::vector<libenv_option>(options.items, options.items + options.count); } void VecOptions::consume_string(std::string name, std::string *value) { auto opt = find_option(name, LIBENV_DTYPE...
#include <limits> #include "CUDACore/allocate_host.h" #include "CUDACore/cudaCheck.h" #include "getCachingHostAllocator.h" namespace { const size_t maxAllocationSize = allocator::intPow(cms::cuda::allocator::binGrowth, cms::cuda::allocator::maxBin); } namespace cms::cuda { void *allocate_host(size_t nbytes, cud...
#include <iostream> #include <fstream> #include <vector> #include <memory> #include "FuzzyConstants.h" #include "FuzzyHashMode.h" #include "Hasher.h" using namespace std; using namespace FuzzyPP; int main(int argc, char *argv[]) { if (argc < 2) { printf("Usage:\n\t%s [path to file]\n", argv[0]); ...
#include <memory> #include <filesystem> #include <Common/StringUtils/StringUtils.h> #include <Common/escapeForFileName.h> #include <Common/typeid_cast.h> #include <Common/Macros.h> #include <Common/randomSeed.h> #include <Core/Defines.h> #include <Core/Settings.h> #include <IO/WriteBufferFromFile.h> #include <IO/Wr...