text
stringlengths
7
961k
#include <nano/lib/config.hpp> #include <nano/lib/tomlconfig.hpp> #include <nano/node/cli.hpp> #include <nano/node/common.hpp> #include <nano/node/daemonconfig.hpp> #include <nano/node/node.hpp> namespace { void reset_confirmation_heights (nano::block_store & store); bool is_using_rocksdb (boost::filesystem::path cons...
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 "cddefines.h" void test(multi_arr<long,3>& arr) { ml3ci p = arr.ptr(0,0,0); *(++p) = 1; }
#include "cdm_sdl2.hpp" #include <ventura/cmake.hpp> #include <ventura/file_operations.hpp> #include <boost/thread/thread.hpp> #include <cdm/operating_system.hpp> namespace CDM_CONFIGURE_NAMESPACE { void configure(ventura::absolute_path const &module_temporaries, ventura::absolute_path const &module_permanent, ...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <string> #include "DataStructures/DataBox/DataBoxTag.hpp" #include "DataStructures/DataBox/Tag.hpp" #include "DataStructures/DataBox/TagName.hpp" #include "DataStructures/DataVector.hpp" #include "DataStructures/Tensor/EagerM...
#include "stdafx.h" #include "HelperFuncs.h" // char* ConvertWidecharToAscii(const wchar_t* pData, unsigned int size) // { // char* Result = new char[size]; // int BytesWritten = WideCharToMultiByte(CP_ACP, 0, pData, size, Result, size, nullptr, nullptr); // return Result; // } // // void ConvertWidecharToAscii(co...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Copyright (c) 2017 The Raptoreum Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "data/base58_encode_decode.json.h" #include...
/*============================================================================= Copyright (c) 2001-2009 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden Copyright (c) 2009-2011 Christopher Schmidt Copyright (c) 2013-2014 Damien Buhl Distributed under the Boost Software License, Version 1.0. (See ...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Xchange Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionrecord.h" #include "base58.h" #include "consensu...
/* Copyright 2013 Research In Motion 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 required by applicable law or a...
#include <iostream> #include <alg.h> #include <fstream> #include <string> #include <list> #include <iterator> using namespace std; const int inf = 200001; list <int> massive_list[inf]; int main() { int n, m, u, v,size, i = 1; ifstream fin("input.txt", ios_base::in); fin >> n; fin >> m; while (!fin.eof() && i <...
// 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 "base/base64.h" #include "base/command_line.h" #include "base/environment.h" #include "base/files/file.h" #include "base/files/file_util.h" #incl...
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restrictio...
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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 "alert.h" #include "checkpoints.h" #include "db.h" #include "net.h" #incl...
// Copyright (c) 2017-2022 Dr. Colin Hirsch and Daniel Frey // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #include <tao/pegtl.hpp> #include <tao/pegtl/contrib/analyze.hpp> using namespace tao::pegtl; struct b...
// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "single_layer_tests/region_yolo.hpp" #include "common_test_utils/test_constants.hpp" using namespace LayerTestsDefinitions; const std::vector<ngraph::Shape> inShapes_caffe = { {1, 125, 13, 13} }; c...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
/* Copyright 2019-2021 Canaan 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 t...
/** * @section License * * The MIT License (MIT) * * Copyright (c) 2014-2017, Erik Moqvist * * 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...
/* <editor-fold desc="MIT License"> Copyright(c) 2018 Robert Osfield 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, mod...
#include "dasi/api/Config.h" #include "dasi/util/Exceptions.h" #include "yaml-cpp/yaml.h" namespace dasi::api { namespace { template <typename Key> bool yamlHas(const YAML::Node& node, const Key& k) { return node[k].IsDefined(); } template <typename T, typename Key> T castedValue(const YAML::Node& node, const...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "DetailLayoutHelpers.h" #include "DetailLayoutBuilderImpl.h" #include "PropertyRowGenerator.h" #include "DetailCategoryBuilderImpl.h" #include "CategoryPropertyNode.h" #include "ObjectEditorUtils.h" #include "DetailPropertyRow.h" #include "IDetailCu...
// Copyright (c) 2009, Whispersoft s.r.l. // 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 cond...
#include "AliAnalysisTaskSE.h" #include "AliAnalysisManager.h" #include "AliAnalysisDataContainer.h" #include "AliESDEvent.h" #include "AliPID.h" #include "AliMCEventHandler.h" #include "AliMCEvent.h" #include "AliMultiplicity.h" #include "AliAnalysisUtils.h" #include "AliMultSelection.h" #include <TParticle.h> #includ...
#include<cstdio> #include<cstring> struct Node{ char name[20], password[20]; bool ischange;//true表示password已修改 }T[1010]; //crypt函数判断t的password是否需要修改,如果需要则对其修改并令计数器cnt加1 void crypt(Node& t, int& cnt){//注意加了引用 int len = strlen(t.password); for (int i = 0; i < len; i++) { if(t.password[i] == '...
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fxfa/parser/cxfa_threshold.h" #include "fxjs/xfa/cjx_node.h" #i...
//================================================================================================== /** Copyright 2017 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //====================================...
/* * 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...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkComposeShader.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkShader.h" #include "SkString.h" #include ...
#include "origin.h" #include <vector> static const std::vector<vec4> vertices = { {0,0,0,1}, {1,0,0,1}, {0,1,0,1}, {0,0,1,1}, }; static const std::vector<vec4> colors = { {0,0,0,1}, {1,0,0,1}, {0,1,0,1}, {0,0,1,1}, }; static const std::vector<u8> indices = { 0,1, 0,2, 0,3, }; Origin::Origin(f32 length, f3...
#include <jni/method.hh>
#include <tesla/base/AsyncLogger.h> #include <tesla/base/FileLogger.h> #include <tesla/base/Timestamp.h> #include <stdio.h> namespace tesla { namespace base { AsyncLogger::AsyncLogger(const string& basename, size_t rollSize, int flushInterval) : flushInterval_(f...
#ifdef _WIN32 #include <glew.h> #endif #ifdef __linux__ #include <GL/glew.h> #endif #include "../includes/GameObject.h" #include "../includes/Renderer.h" ZSpire::Shader* object_shader; void ZSpire::Renderer::RenderScene() { unsigned int objectsCount = getObjectsAmount(); object_shader->Use(); object_shader->up...
// Copyright 2018 IBM. // This code is licensed under the Apache License, Version 2.0. You may // obtain a copy of this license in the LICENSE.txt file in the root // directory of this source tree or at // http://www.apache.org/licenses/LICENSE-2.0. // Any modifications or derivative works of this code must retain t...
#include "main_window.hpp" MainWindow::MainWindow(QWidget *parent) : super(parent) { std::cout<<"MainWindow constructor"<<std::endl; } void MainWindow::init(caf::actor_system& system) { // Initialize actor mix-in super::init(system); // Set message handler set_message_handler([=](caf::actor_companion* self...
#include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/utils/log.h> #include <LightGBM/dataset_loader.h> #include <LightGBM/network.h> namespace LightGBM { DatasetLoader::DatasetLoader(const IOConfig& io_config, const PredictFunction& predict_fun, int num_class, const char* filename) :io_config_(io_config)...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2018 The haroldcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/m...
/* Copyright (c) 2009-2015, Jack Poulson, Lexing Ying, The University of Texas at Austin, Stanford University, and the Georgia Insitute of Technology. All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root direct...
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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/algorithm/string/replace.hpp> #include <boost/filesystem.hpp> #inc...
#include "../core/core.h" #include "debug_server.h" extern "C" EXPORT const char* debug_initialize(int n_args, const char** args) { // Fallback values if called const char* mode = DBG_MODE_NONE; const char* port = DBG_DEFAULT_PORT; // Read from environment, set from shell or from DAP-controlled launch const char...
// Copyright 2014 The Crashpad 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 ...
//============================================================================ // Name : Working.cpp // Author : abu-galala // Version : // Copyright : @bu_galala // Description : Hello World in C++, Ansi-style //============================================================================ #include <b...
/** * This file is part of ORB-SLAM2. * * Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza) * For more information see <https://github.com/raulmur/ORB_SLAM2> * * ORB-SLAM2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
/****************************************************************************** * 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 ...
// Copyright 2019 Zhupengfei and others // Licensed under the MIT License. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHOR...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2019 Ryo Suzuki // Copyright (c) 2016-2019 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Fwd.hpp" namespace s...
#include "InputHandler.h" #include <cmath> #include "starlight/ui/Form.h" using std::string; using starlight::dialog::osk::InputHandler; using starlight::dialog::osk::InputHandlerDirectEdit; using starlight::dialog::osk::InputHandlerBuffered; // DirectEdit std::string& InputHandlerDirectEdit::GetPreviewText() { r...
// 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...
#ifndef __TEST_FFMPEG__ #define __TEST_FFMPEG__ #include <iostream> #include <fstream> #include "WindowRendering.hpp" #include "ResourceLoader.hpp" #include "VideoStream.hpp" #include "VideoControls.hpp" #include "GLIPLib.hpp" #include <QApplication> #include <QTimer> // Namespace : using namespace Glip; ...
/* * Copyright 2018 Google, Inc. * * 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 following disclaimer; * ...
#ifndef PYTHONIC_NUMPY_RANDOM_RANDOM_INTEGERS_HPP #define PYTHONIC_NUMPY_RANDOM_RANDOM_INTEGERS_HPP #include "pythonic/include/numpy/random/random_integers.hpp" #include "pythonic/numpy/random/randint.hpp" #include "pythonic/utils/functor.hpp" PYTHONIC_NS_BEGIN namespace numpy { namespace random { template <...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/audio/input_stream.h" #include <string> #include <utility> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/s...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE typedef unsigned __int64 DBORDINAL; END_ATF_NAMESPACE
#include "mainwindow.hpp" #include "ui_mainwindow.h" #include <QColorDialog> #include <QDebug> #include "Items/descriptionitem.hpp" #include "Items/layeritem.hpp" #include "Items/objectitem.hpp" #include "Items/shapeitem.hpp" #include "Models/definitionmodel.hpp" #include "adddefinitionwizard.hpp" #include "layerdia...
/************************************************************** * * 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...
#define TINYOBJLOADER_IMPLEMENTATION // define this in only *one* .cpp #include "externals/tiny_obj_loader.h"
/** * @file oglplus/context/clear_buffers.hpp * @brief Wrappers for operations clearing the buffers * * @author Matus Chochlik * * Copyright 2010-2014 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICEN...
// // Created by lifujun on 2019/1/13. // #include "CallBooleanMethod.h" #include "JniException.h" CallBooleanMethod::CallBooleanMethod(JNIEnv *pEnv, jobject obj, jmethodID methodId) { if (obj == nullptr || methodId == nullptr) { mResult = static_cast<jboolean>(false); mEnv = nullptr; } el...
/* SWAPCHAIN FRAME.cpp * by Lut99 * * Created: * 08/09/2021, 15:38:52 * Last edited: * 08/09/2021, 15:38:52 * Auto updated? * Yes * * Description: * Contains data needed to draw to a single frame returned by the * swapchain. **/ #include "tools/Logger.hpp" #include "../auxillary/ErrorCodes.hpp"...
#include<bits/stdc++.h> //#define mx 100010 //#define mod 1000000007 //#define pi 2*acos(0.0) //#define ll long long int //#define pp pair<int,int> //#define ull unsigned long long int //#define valid(tx,ty) tx>=0&&tx<r&&ty>=0&&ty<c //#define mem(a...
// Copyright 2019 The Fuchsia 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 "as370-thermal.h" #include <lib/device-protocol/pdev.h> #include <lib/zx/time.h> #include <ddk/binding.h> #include <ddk/device.h> #include <ddk/...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/glue/model/ConnectionType.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Utils; ...
// Copyright 2017 The Ray Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/* This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information. If you do not wish to use NuGet, you can manually download Aspose.Tasks for .NET API from https://www.n...
#include "BtEndpoint.h" #include "Network/BtIOService.h" #include "Network/BtChannel.h" #include "Network/BtAcceptor.h" #include "Common/ByteStream.h" #include "Network/BtSocket.h" #include "Common/Log.h" #include <sstream> namespace bOPRF { //extern std::vector<std::string> split(const std::string &s, char delim)...
#include "graph.hpp" #include <cmath> #include <map> #include <queue> namespace exercise { struct QueueElement { double distance; uint32_t nodeId; QueueElement(double distance_, uint32_t nodeId_) : distance(distance_), nodeId(nodeId_) {} }; double dijkstra(const Graph& graph, uint32_t from, uint32_t to...
#include "CommandBuffer.h" #include "CommandPool.h" #include "Graphics/Device/Device.h" #include "Graphics/Device/Queue.h" #include "Graphics/Image/Framebuffer.h" #include "Graphics/Image/Image.h" #include "Graphics/Memory/Buffer.h" #include "Graphics/Pipeline/Descriptor/DescriptorSet.h" #include "Graphics/Pipeline/Pip...
/* * Copyright (c) 2019, NVIDIA 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
// // detail/reactive_socket_service_base.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2017 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_...
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. See LICENSE in the project root for license information. #include "THSTensor.h" #include <iostream> #include <fstream> Tensor THSTensor_abs(const Tensor tensor) { CATCH_TENSOR(tensor->abs()); } Tensor THSTensor_abs_(const Tensor tensor) { ...
#ifndef UICONSTANTS_HPP #define UICONSTANTS_HPP char const* const RES_UIMESSAGEBOX_MESH = "./ui/uimessagebox.i3d"; char const* const RES_UIMESSAGEBOX_SKIN = "./ui/uimessagebox.png"; char const* const RES_UITEXTINPUT_MESH = "./ui/uitextinput.i3d"; char const* const RES_UITEXTINPUT_SKIN = "./ui/uitextinput.png"; #...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
#include "leetcode.hpp" /* 462. 最少移动次数使数组元素相等 II 给定一个非空整数数组,找到使所有数组元素相等所需的最小移动数,其中每次移动可将选定的一个元素加1或减1。 您可以假设数组的长度最多为10000。 例如: 输入: [1,2,3] 输出: 2 说明: 只有两个动作是必要的(记得每一步仅可使其中一个元素加1或减1): [1,2,3] => [2,2,3] => [2,2,2] */ // 中位数? int minMoves2(vector<int>& nums) { size_t len = nums.size(); if (len < 2) return 0; s...
// (C) Copyright Gennadiy Rozental 2001. // 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) // See http://www.boost.org/libs/test for the library home page. // /// @file /// @brief Defines Unit Test Framework ...
/* * @author Michael Rapp (michael.rapp.ml@gmail.com) */ #pragma once #include "common/iterator/binary_forward_iterator.hpp" /** * Implements row-wise read-only access to binary values that are stored in a pre-allocated matrix in the compressed * sparse row (CSR) format. */ class BinaryCsrConstView { prote...
#include "Core/Camera.h" #include "Core/Renderer.h" int main() { int width = 1920; int height = 1080; RendererOption renderOption; renderOption.width = width; renderOption.height = height; std::unique_ptr<Renderer> renderer = std::make_unique<Renderer>(renderOption); std::shared_ptr<Camera> camera = std::make...
// 引用元 : https://atcoder.jp/contests/agc033/submissions/7715396 // 得点 : 300 // コード長 : 1992 // 実行時間 : 90 #include <algorithm> #include <iostream> #include <vector> #include <queue> #include <set> #include <string> #include <map> #include <cmath> #include <cstring> #define fi first #define se second #define rep(i,n) f...
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * 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...
// 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. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8FontFaceDescriptors.h" #include "bindings/c...
#include "gb-include.h" #include "Msg40Cache.h" // the global cache Msg40Cache g_msg40Cache; // returns true if we found in cache and set "msg40", false otherwise bool Msg40Cache::setFromCache ( Msg40 *msg40 ) { // make the key based on the input parms like # of docs wanted, // start doc #, site clustering on, .....
/** * Copyright (C) 2012 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de) * * This program is free software: you can redistribute it and/or modify * it under the terms of the FreeBSD license as published by the FreeBSD * project. * * This program is distributed in the hope that it will be useful, * b...
/** * @file lcdprint_u8g.cpp * @brief LCD print api for u8glib * @author Yunhui Fu (yhfudev@gmail.com) * @version 1.0 * @date 2016-08-19 * @copyright GPL/BSD */ #include "../../inc/MarlinConfigPre.h" #if HAS_MARLINUI_U8GLIB #include "marlinui_DOGM.h" #include "../marlinui.h" #include "../../MarlinCo...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <string> #include <Windows.h> #include <tchar.h> #include <Shlobj.h> #include <Shlwapi.h> #include <map> namespace Misc { void PlatformStartup() { } void PlatformShutdown() { } std::map<std::string,std::string> keymaps; void InitKeymaps() { HKEY hk = NULL; RegOpenKeyExA( HKEY_LOCA...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef IROHA_MOCK_QUERY_FACTORY_HPP #define IROHA_MOCK_QUERY_FACTORY_HPP #include "module/shared_model/query_mocks.hpp" namespace shared_model { namespace interface { class MockQueryFactory { template <t...
/* Tests of string utilities Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ #include "fmt/string.h" #include "gtest/gtest.h" using fmt::internal::StringBuffer; TEST(StringBufferTest, Empty) { StringBuffer<char> buffer; EXPECT_EQ(0, buffer...
/* Lightmetrica - A modern, research-oriented renderer Copyright (c) 2015 Hisanari Otsu 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 ...
// Copyright (c) 2018, ETH Zurich and UNC Chapel Hill. // 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 // notic...
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include <cstdint> #include <cassert> #include <FreeRTOS.h> template <typename T> struct NonCachedMemAllocator { using value_type = T; T *allocate(std::size_t ...
/* // Copyright (c) 2016 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.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
#ifndef STAN_MATH_PRIM_META_VALUE_TYPE_HPP #define STAN_MATH_PRIM_META_VALUE_TYPE_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/meta/is_eigen.hpp> #include <stan/math/prim/meta/is_vector.hpp> #include <type_traits> #include <vector> namespace stan { /** \ingroup type_trait * Primary templ...
#include "MyThread_obj.h" #include <QtWidgets/QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MyThread_obj w; w.show(); return a.exec(); }
/// \file // Range v3 library // // Copyright Eric Niebler 2014-present // // Use, modification and distribution is 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) // // Project home: https://github.com/ericniebler...
/* Provides future_barrier and future_combining_barrier free factory functions, which create composite futures which becomes ready based on the states of a group of input futures. A future returned by future_barrier becomes ready when all of the input futures become ready or have exceptions. The future_combining_...
///////////////////////////////////////////////////////////////////////////// // // (C) Copyright Olaf Krzikalla 2004-2006. // (C) Copyright Ion Gaztanaga 2006-2007 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/...
/****************************************************************************** * 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 ...
#include "../common/common.hpp" TEST(issue_test, test_issue_76) { // https://github.com/xissburg/edyn/issues/76 entt::registry registry; edyn::init(); edyn::attach(registry); // Create floor auto floor_def = edyn::rigidbody_def(); floor_def.kind = edyn::rigidbody_kind::rb_static; floor_def.shape = edyn::plan...
/* * Copyright 2015-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
// Copyright (c) 2012-2020 The BitcoinCore developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/setup_common.h> #include <util/strencodings.h> #include <util/system.h> #include <string> #include <utili...