text
stringlengths
5
1.04M
/** * This file is distributed under the University of Illinois Open Source * License. See LICENSE for details. */ #include "ItaniumDemangle.h" #include "llvm/Support/raw_ostream.h" #include <cstring> //#define MUT_DEBUG // Enable ever more debugging output //#define MUT_DEBUG_VERB char *demangleCpp(StringRef n...
/** * @file Simulation/Parser.cpp * Implementation of class Parser * @author Colin Graf */ #include "Platform/OpenGL.h" #include "Parser/Parser.h" #include "Platform/Assert.h" #include "Simulation/Simulation.h" #include "Simulation/Body.h" #include "Simulation/Scene.h" #include "Simulation/Compound.h" #include "S...
#include <iostream> using namespace std; int main() { int sum=0; for(int i=1;i<=50;++i) { sum+=i; cout<<sum<<endl; } return 0; }
#include "CLI11.hpp" #include "ssplit.h" #include <fstream> #include <sstream> int main(int argc, char *argv[]) { // CLI configurations using splitmode = ug::ssplit::SentenceStream::splitmode; splitmode mode = splitmode::wrapped_text; // split mode std::string modespec = "w"; std::string prefix_file, input_...
#include <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL) #define PI(a, b) pair<a, b> #define MP make_pair #define EB emplace_back #define MOD 1000000007 #define int long long #define S second #define F f...
// Copyright (c) 2009 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. // Simple implementation of a data: protocol handler. #include "net/url_request/url_request_data_job.h" #include "net/base/data_url.h" #include "net...
// 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 <algorithm> #include "checkp...
// // CanvasRenderingContext2d.cc // // Copyright (c) 2010 LearnBoost <tj@learnboost.com> // #include <math.h> #include <string.h> #include <stdlib.h> #include <limits> #include <vector> #include <algorithm> #include "Canvas.h" #include "Point.h" #include "Image.h" #include "ImageData.h" #include "CanvasRenderingCont...
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/> * * This program is free software; you c...
/* mbed Microcontroller Library * Copyright (c) 2017-2017 ARM Limited * * 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...
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_TekBowMetalArrow_TrailEmitter_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //----------------------------------------------------...
#include <algorithm> #include <goto-programs/goto_trace.h> #include <cegis/danger/meta/literals.h> #include <cegis/genetic/instruction_set_info_factory.h> #include <cegis/instrument/meta_variables.h> #include <cegis/value/program_individual_serialisation.h> #include <cegis/instructions/instruction_set_factory.h> #in...
/** @file 14.cpp Problem 14: Longest Collatz sequence * * The following iterative sequence is defined for the set of positive * integers: * * n -> n/2 (n is even) * n -> 3n + 1 (n is odd) * * Using the rule above and starting with 13, we generate the following * sequence: * * 13 -> 40 -> 20 ->...
/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include "StdInc.h" #include "NUIApp.h" #include "CefOverlay.h" #include "memdbgon.h" #include <winrt/Windows.Foundation.Collectio...
#include "USB_poll.hpp" #include "Task_instances.hpp" #include "libusb_dev_cpp/class/cdc/cdc_notification.hpp" #include "freertos_cpp_util/logging/Global_logger.hpp" using freertos_util::logging::LOG_LEVEL; namespace { static const bool isr_mode = true; } void Test_USB_Core_task::work() { // TODO: switch to isr...
//================================================================================================= /*! // \file src/mathtest/dmatsmatsub/HDaLCb.cpp // \brief Source file for the HDaLCb dense matrix/sparse matrix subtraction math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // This fi...
/////////////////////////////////////////////////////////////////////// // File: params_model.cpp // Description: Trained language model parameters. // Author: David Eger // // (C) Copyright 2012, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file exc...
#include "NavigationWindow.h" NavigationWindow::NavigationWindow(QWidget *parent) : QWidget(parent) { this->setStyleSheet("QWidget{background:transparent;}"); setGeometry(QRect(0,0,800,480)); this->hide(); }
#include <cstdint> #include <list> #include <string> #include <vector> #include "common/common/fmt.h" #include "common/stats/isolated_store_impl.h" #include "extensions/filters/network/common/redis/supported_commands.h" #include "extensions/filters/network/redis_proxy/command_splitter_impl.h" #include "test/extensio...
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
/**************************************************************************** * * Copyright (c) 2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
#include "pch.h" #include "WindowTitleBehavior.h" #include "..\..\Mntone.Xamcc\Mntone.Xamcc.Shared\include\Preprocessor\PropertyPreprocessor.h" #include "..\..\Mntone.Xamcc\Mntone.Xamcc.Shared\include\Preprocessor\DependencyObjectPreprocessor.h" using namespace Platform; using namespace Windows::UI::ViewManagement; us...
class Singleton { public: static Singleton* Instance() { // Since it's a static variable, if the class has already been created, // It won't be created again. static Singleton myInstance; // Return a pointer to our mutex instance. return &myInstance; } ...
//****************************************************************************** //****************************************************************************** //****************************************************************************** #include "stdafx.h" #include "risNetUdpMsgSocket.h" namespace Ris { namesp...
// 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/memory/ref_counted.h" #include <type_traits> #include <utility> #include "base/test/gtest_util.h" #include "build/build_config.h" #in...
#ifndef XTENSOR_IO_FILE_ARRAY_HPP #define XTENSOR_IO_FILE_ARRAY_HPP #include <istream> #include <fstream> #include <iostream> #include <xtensor/xarray.hpp> #include <xtensor/xnoalias.hpp> namespace xt { template <class T> class xfile_value_reference { public: using self_type = xfile_value_r...
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <iostream> #include <Python.h> #include <numpy/arrayobject.h> using namespace std; int* init_numpy(){//初始化 numpy 执行环境,主要是导入包,python2.7用void返回类型,python3.0以上用int返回类型 import_array(); } int main(){ Py_Initialize(); init_numpy(); unsigned char* p...
// 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 "ash/system/chromeos/network/network_state_notifier.h" #include "ash/root_window_controller.h" #include "ash/shelf/shelf_widget.h" #include ...
/** * This file is part of the hry-core project * @ Author: Piotr Krupa <piotrkrupa06@gmail.com> * @ License: MIT License */ #include <memory> #include <MinHook.h> #include <Windows.h> #include <scssdk_telemetry.h> #include "fmt/core.h" #include "Core.hpp" #include "scssdk.h" static std::unique_ptr<hry::Core> ...
// ================================================================ // Created by Gregory Kramida on 04/14/18. // Copyright (c) 2018 Gregory Kramida // 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 th...
#include "utility/preprocessor/common.hpp" #include "utility/preprocessor/count_arguments.hpp" #include "utility/preprocessor/for_each.hpp" namespace { #define macro_sum(index, arg) (index + arg), constexpr int result_sum[] = {PP_FOR_EACH(macro_sum, 8, 7, 6, 5, 4, 3, 2, 1)}; #undef macro_sum static_assert(sizeof res...
// Copyright 2020 Oganyan Robert #include <gtest-mpi-listener.hpp> #include <gtest/gtest.h> #include <string> #include "../../../modules/task_1/oganyan_r_letters_amount/letters_amount.h" void CustomTest(const int& test_size) { int rank; MPI_Comm_rank(MPI_COMM_WORLD, &rank); std::string global_str; if (rank ==...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2010 Couchbase, 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 * * h...
//******************************************************************** //* //* Warning: This file was generated by ecore4CPP Generator //* //******************************************************************** #ifndef FUML_SEMANTICS_LOCI_LOCUS_HPP #define FUML_SEMANTICS_LOCI_LOCUS_HPP #include <list> #include <me...
// Copyright 2015-2019 Josh Pieper, jjp@pobox.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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Fill out your copyright notice in the Description page of Project Settings. #include "Floater.h" // Sets default values AFloater::AFloater() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; StaticMesh = Cre...
#define CMTS_IMPLEMENTATION #include <include/cmts.h>
/** * VKTS - VulKan ToolS. * * The MIT License (MIT) * * Copyright (c) since 2014 Norbert Nopper * * 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, inclu...
/******************************************************************************* * Copyright 2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
/*============================================================================= Copyright (c) 2006-2007 Tobias Schwinger 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). ...
/* This file is part of the Vc library. {{{ Copyright © 2013-2016 Matthias Kretz <kretz@kde.org> 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 not...
// Copyright (c) 2019 Google LLC // // 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 ...
/** * Examples/Segmentation/neuralNetworkCTSegmentation.cpp * * If you edit this example, please also update the wiki and source code file in the repository. */ #include <FAST/Tools/CommandLineParser.hpp> #include <FAST/Importers/ImageFileImporter.hpp> #include <FAST/Visualization/SimpleWindow.hpp> #include <FAST/A...
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "CImageWriterJPG.h" #ifdef _IRR_COMPILE_WITH_JPG_WRITER_ #include "CColorConverter.h" #include "IWriteFile.h" #include "CImage.h...
// traits.cpp // Copyright (c) 2019, zhiayang // Licensed under the Apache License Version 2.0. #include "errors.h" #include "codegen.h" #include "typecheck.h" CGResult sst::TraitDefn::_codegen(cgn::CodegenState* cs, fir::Type* infer) { cs->pushLoc(this); defer(cs->popLoc()); return CGResult(0); }
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include "NetworkNameDescriptor.h" #include "Utils.h" #include "aribstr.h" CNetworkNameDescriptor::CNetworkNameDescriptor (const CDescriptor &obj) :CDescriptor (obj) { if (!isValid) { return; } memset (name_char,...
// include statements // #include "Arduino.h" // String #include "Modem.hpp" // class // // constructors Modem::Modem(PS2Keyboard& kb, SerLCD& display): keyboard(kb), display(display) { } // destructor Modem::~Modem() { } // member functions // String* Modem::readFPGAInput() { // TODO: remove Serial....
#include "terminalColors.hpp" #include <iostream> #include <soci.h> #include <postgresql/soci-postgresql.h> using namespace soci; using namespace std; int main() { cout << "---------------------------\n" << "Hello SOCI developer!\n\n"; try { const string databaseName = "postgres"; co...
#include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/PluginManager/interface/ModuleDef.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FW...
#include<bits/stdc++.h> using namespace std; int main(){ long long int t,a,b; cin>>t; while(t-->0){ cin>>a>>b; if(b>=a){ cout<<((b-a)/10)+((b-a)%10!=0)<<endl; }else{ cout<<((a-b)/10)+((a-b)%10!=0)<<endl; } } }
#include "pch.h" #include "trace.h" #include "lib/ZoneSet.h" #include "lib/Settings.h" #include "lib/FancyZonesData.h" #include "lib/FancyZonesDataTypes.h" TRACELOGGING_DEFINE_PROVIDER( g_hProvider, "Microsoft.PowerToys", // {38e8889b-9731-53f5-e901-e8a7c1753074} (0x38e8889b, 0x9731, 0x53f5, 0xe9, 0x01...
/** * 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...
#include "IrcConnection2.hpp" #include "common/QLogging.hpp" #include "common/Version.hpp" namespace chatterino { namespace { const auto payload = QString("chatterino/" CHATTERINO_VERSION); } // namespace IrcConnection::IrcConnection(QObject *parent) : Communi::IrcConnection(parent) { // Log connecti...
// // Created by Holger on 18.11.2017. // #include "CarController.h" #include <pigpiod_if2.h> #include "Data.h" #include <algorithm> CarController::CarController() { _fd = pigpio_start(nullptr, nullptr); setup(); } CarController::~CarController() { shutdown(); pigpio_stop(_fd); } void CarController...
// graph-tool -- a general graph modification and manipulation thingy // // Copyright (C) 2006-2016 Tiago de Paula Peixoto <tiago@skewed.de> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation;...
/* * Copyright 2010 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...
// Copyright (c) 2014-2019 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "privatesend-server.h" #include "masternode/activemasternode.h" #include "consensus/validation.h" #include "core_i...
// 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: System.Net.Web...
// Boost.Geometry (aka GGL, Generic Geometry Library) // 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. // This file was modified by Oracle on 2015. // Modifications copyright (c) 2015,...
// Generated by esidl 0.2.1. // This file is expected to be modified for the Web IDL interface // implementation. Permission to use, copy, modify and distribute // this file in any software license is hereby granted. #include "TextMetricsImp.h" namespace org { namespace w3c { namespace dom { namespace bootstrap { d...
// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of //...
//! \example ChromaSDKImpl.cpp #include "ChromaSDKImpl.h" #ifdef _WIN64 #define CHROMASDKDLL _T("RzChromaSDK64.dll") #else #define CHROMASDKDLL _T("RzChromaSDK.dll") #endif using namespace ChromaSDK; using namespace ChromaSDK::Keyboard; using namespace ChromaSDK::Keypad; using namespace ChromaSDK::Mouse...
/************************************************************** * * 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...
//***************************************************************************** // Copyright 2017-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 may obtain a copy of the License at // // http://w...
#include <cmath> #include "SemanticParser.h" namespace pbrt { void createSampler(Scene::SP ours, pbrt::syntactic::Scene::SP pbrt) { if (!pbrt->sampler) { std::cout << "pbrt-parser: sampler is missing\n"; return; } ours->sampler = std::make_shared<Sampler>(); if (pbrt->sampler->type =...
/* file: qr_dense_default_online_fpt.cpp */ /******************************************************************************* * Copyright 2014-2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
#include <cc/View> int main() { using namespace cc; View view; return View{sp(500), sp(500)} .associate(&view) .paper(Color::Black) .paint([=]{ Painter painter{view}; painter .translate(view.size() / 2) .rotate(rad(30)) ...
/*- * Copyright (c) 2020-current, Terry Mathew Poulin <BigBoss1964@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 soft...
#include "timer.h" #include <windows.h> using namespace Engine; TimerWin32::TimerWin32() :ITimer() { this->UpdateFreq(); this->UpdateCounter(); this->currentTime = 0.0; } TimerWin32::~TimerWin32() { } void TimerWin32::UpdateFreq() { static __int64 tmp; QueryPerformanceFrequency( ( PLA...
// 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 "extensions/browser/extension_pref_store.h" #include "base/values.h" #include "extensions/browser/extension_pref_value_map.h" ExtensionPrefStor...
#include <vector> #include <cassert> #include "net.h" #include "layer.h" #include "layers/fullyConnectedLayer.h" #include "layers/l2LossLayer.h" #include "layers/negLogLikeliLayer.h" #include "layers/activationLayer.h" namespace TinyML { using std::vector; void MLPnet::buildlayers(shape in_shape, shape target_shape,...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/colonycash-config.h" #endif #include "optionsdialog.h" #include "ui_optionsdialo...
/* * Copyright (c) 2015-2020 The Khronos Group Inc. * Copyright (c) 2015-2020 Valve Corporation * Copyright (c) 2015-2020 LunarG, Inc. * Copyright (c) 2015-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. * Y...
// For MSVC ABI compatibility, all structures returned by value using the // thiscall calling convention must use the hidden parameter. // // RUN: %clang_cc1 -triple i386-PC-Win32 %s -fms-compatibility -O0 -emit-llvm -o - | FileCheck %s // This structure would normally be returned via EAX struct S { int i; }; // Th...
// node.hpp // Copyright (c) 2007-2009 Ben Hanson (http://www.benhanson.net/) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_LEXER_NODE_HPP #define BOOST_LEXER_NODE_HPP #include <assert.h>...
// Copyright (c) 2017-2019 The MEREBEL developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "privacydialog.h" #include "ui_privacydialog.h" #include "addressbookpage.h" #include "addresstablemodel.h" #include "bi...
//=--------------------------------------------------------------------------= // Globals.C //=--------------------------------------------------------------------------= // Copyright 1995-1996 Microsoft Corporation. All Rights Reserved. // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ...
#include "test.h" void testcase_copy::copy_db(const bool with_compaction) { int err = osal_removefile(copy_pathname); if (err != MDBX_SUCCESS && err != MDBX_ENOFILE) failure_perror("mdbx_removefile()", err); err = mdbx_env_copy(db_guard.get(), copy_pathname.c_str(), with_compaction ? M...
//===- X86InstructionSelector.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 // //===---------------------------...
/*========================================================================= * * 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...
/*========================================================================= Program: Advanced Normalization Tools Copyright (c) ConsortiumOfANTS. All rights reserved. See accompanying COPYING.txt or https://github.com/stnava/ANTs/blob/master/ANTSCopyright.txt for details. This software is distributed W...
template <class T> using Vec1D = std::vector<T>; template <class T> using Vec2D = std::vector<Vec1D<T>>; template <class T> using Vec3D = std::vector<Vec2D<T>>; // Helper method to subtract the minimum row from cost_graph void subtract_minimum_row(Vec2D<float> &cost_graph, int nrows, int ncols); // Helper method to s...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2021 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any pers...
#include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.title=tsc("Sardinian locale for Italy"),.source=tsc("Sardinian Translators Team\t\t;\t\tfast_io"),.address=tsc("https://github.com/expnkx/f...
#ifndef POWERAG_HPP #define POWERAG_HPP #include <eigen3/Eigen/Core> #include <vector> #include <iostream> #include <string> #include <utility> #include <functional> #include <random> #include <math.h> #include "arch/AAgent.hpp" #include "bib/Utils.hpp" #include "bib/XMLEngine.hpp" #include <Algo.hpp> #include <Kernel...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "BrowserCorePrivatePCH.h" #include "WebJSStructDeserializerBackend.h" #if WITH_CEF3 /* Internal helpers *****************************************************************************/ namespace { template<typename ValueType, typename ContainerTyp...
#include "File.h" #include <unistd.h> #include <sys/stat.h> using namespace L; bool File::exists() const { return access(_path, F_OK) == 0; } void File::make() const { if(!exists()) System::call("mkdir \""+_path+"\""); } bool File::mtime(const char* path, Date& date) { struct stat buf; if(!stat(path, &bu...
/** * Contact: philipp.rescheneder@gmail.com */ #include "AlignmentBuffer.h" #include <stdio.h> #include <string.h> #include <cmath> #include <vector> #include <float.h> //Eclipse #include <limits.h> #include "Timing.h" #include "SequenceProvider.h" #include "StrippedSW.h" #include "OutputReadBuffe...
/** * @author Jamie (jamie.lim@kakaocorp.com) * @copyright Copyright (C) 2018-, Kakao Corp. All rights reserved. */ #include "khaiii/Trie.hpp" ////////////// // includes // ////////////// #include <algorithm> #include <cstdlib> #include <exception> #include <list> #include <string> #include "boost/lexical_cas...
/*++ Copyright (C) 2021 Autodesk 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 conditions and the ...
//===--- PullbackCloner.cpp - Pullback function generation ---*- C++ -*----===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2019 - 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/** * @file max_pooling_impl.hpp * @author Marcus Edel * @author Nilay Jain * * Implementation of the MaxPooling class. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the * 3-clause BSD license along with ...
#ifndef __PING_CLI_HPP #define __PING_CLI_HPP #include <mutex> // We create a singleton class to store some of the shared state and properties // of our ping-cli application. class PingCliProperties { public: static PingCliProperties *get_properties(); bool is_sending(); void set_sending(b...
/*========================================================================= * * 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...
/* * Copyright (c) 2020, 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 ...
/************************************************************** * * 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 "pointing-device.hpp" wf::pointing_device_t::pointing_device_t(wlr_input_device *dev) : input_device_impl_t(dev) { update_options(); } wf::pointing_device_t::config_t wf::pointing_device_t::config; void wf::pointing_device_t::config_t::load() { middle_emulation.load_option("input/middle_emulation...
#include "Util.h" #include <cmath> #include <sstream> #include <stdexcept> using namespace std; namespace CARLsim_PTI { /*! Take a string representing a decimal point number and convert it to a * float. * * Throws std::invalid_argument if the string does not hold a decimal point * number. *...
// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel // Copyright (C) 2007-2008 Steven Watanabe // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_...