text
stringlengths
7
961k
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include <Switch/System/Drawing/Brush.hpp> #include <gtest/gtest.h> using namespace System; using namespace System::Drawing; namespace SwitchUnitTests { class Brush1 : public Brush { public: Brush1() : Brush() {this->SetNativeBrush(IntPtr::Zero);} Brush1(const Brush1&) = default; Brush1& operator=(con...
/* * nghttp2 - HTTP/2 C Library * * Copyright (c) 2015 Tatsuhiro Tsujikawa * * 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 ri...
/* * Copyright (c) 2021, 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 ...
// Copyright (c) 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 "skia/ext/benchmarking_canvas.h" #include <memory> #include <sstream> #include <utility> #include "base/check_op.h" #include "base/memory/p...
#include <iostream> #include "Dr3D_gnuplot_api.hh" #include "Wektor.hh" #include "Macierz.hh" #include "MacierzRot.hh" #include "Prostopadloscian.hh" #include "GraniastoslupSzesc.hh" #include "Dron.hh" #include "Sruba.hh" #include "Plaszczyzna.hh" #include "Dno.hh" #include "Woda.hh" #include "Bryla.hh" #include "Dron...
// Problem: B. Social Distance // Contest: Codeforces Round #783 (Div. 2) // URL: https://codeforces.com/contest/1668/problem/B // Memory Limit: 256 MB // Time Limit: 1500 ms // // Author: chrisann // Date: 2022-04-19 22:36:57 #include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i+...
/* * * Copyright (c) 2022 Project CHIP 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 requir...
/** * prEmitter.cpp * * Copyright 2014 Paul Michael McNab * * 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 requir...
// Copyright saberuster. All Rights Reserved. #include "GridElement.h" void UGridElement::Reset() { GridElementID = FGridElementID::Invalid_ID; GridSystemComponent.Reset(); } void UGridElement::PossessedBy(UGridSystemComponent* InGridSystemComponent) { GridSystemComponent = InGridSystemComponent; } bo...
#pragma once #include <string> #include "../../../common.hpp" #include "../IParsable.hpp" #include "../MSExcel.common.hpp" namespace oless { namespace excel { namespace structures { // see: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-xls/714e951c-ff5a-4876-9e01-bdfa1b548141 cl...
#pragma once #include <rlpbr/utils.hpp> #include <glm/glm.hpp> #include <optional> #include <string_view> namespace RLpbr { struct PreprocessData; class ScenePreprocessor { public: ScenePreprocessor(std::string_view gltf_path, const glm::mat4 &base_txfm, std::optiona...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
/********************************************************************** Audacity: A Digital Audio Editor ToolBar.cpp Dominic Mazzoni Shane T. Mueller Leland Lucius *******************************************************************//** \file ToolDock.cpp Implements ToolDock *//***********************...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. */ #include <cstdint> #include <cstring> #include <iostream> #include <stdexcept> #include <adios2.h> #include <hdf5.h> #include <gtest/gtest.h> #include "../adios2/engine/SmallTestData.h" #i...
#pragma region template 2.4 #include <bits/stdc++.h> using namespace std; template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll, ll> ii; typedef vector<ii> vii; typedef vector<string> vs; #define REP(i, n) for ...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/GrProgramDesc.h" #include "include/private/SkChecksum.h" #include "include/private/SkTo.h" #include "src/gpu/GrFragmentProcessor.h" #include "src/gpu/GrGeom...
/*========================================================================= * * 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...
// NetworkingUtilities.cpp #include "NetworkingUtilities.hpp" #include "PreprocessorOptions.hpp" #include "OutputOptions.hpp" #include <stdlib.h> #include <iostream> #include <vector> namespace { struct MemoryStruct { char *memory; size_t size; }; static size_t writeMemoryCallbac...
/* * * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
#ifndef _GLCSINGLECONFIGTESTPACKAGE_HPP #define _GLCSINGLECONFIGTESTPACKAGE_HPP /*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2016 Google Inc. * Copyright (c) 2016-2019 The Khronos Group Inc. * Copyrigh...
/**************************************************************************** * ==> PSS_Network ---------------------------------------------------------* **************************************************************************** * Description : Provides a network manager * * Devel...
// Copyright (c) 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 "rpcserver.h" #include "base58.h" #include "init.h" #include "util.h" #includ...
#include <iostream> #include <string> #include "CodeGen_C.h" #include "Module.h" #include "PythonExtensionGen.h" #include "Util.h" namespace Halide { namespace Internal { using std::ostream; using std::ostringstream; using std::string; static string sanitize_name(const string &name) { ostringstream oss; for...
// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium Authors // // 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...
/*! * Copyright 2019 Breda University of Applied Sciences and Team Wisp (Viktor Zoutman, Emilio Laiso, Jens Hagen, Meine Zeinstra, Tahar Meijs, Koen Buitenhuis, Niels Brunekreef, Darius Bouma, Florian Schut) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
#include <stdio.h> int main() { int p[10],bt[10],wt[10],tat[10]; int n,i,j,temp; float aw=0, at=0; printf("Enter the number of process: "); scanf("%d",&n); for(i=0; i<n;i++) { p[i] = i; printf("burst time of p[%d] ",p[i]); scanf("%d",&bt[i]); } printf("process \t burst time\n"); for(i=0; i<n;i++) { p...
// // detail/posix_tss_ptr.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef ASIO_DETAIL...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/********************************************************************** Audacity: A Digital Audio Editor FreqWindow.cpp Dominic Mazzoni *******************************************************************//** \class FrequencyPlotDialog \brief Displays a spectrum plot of the waveform. Has options for selecting...
 #include <Base.h> /** @brief 文字列を表示するサンプル。 */ void TextObject2D_Basic() { // Altseedを初期化する。 asd::Engine::Initialize(u"TextObject2D_Basic", 640, 480, asd::EngineOption()); { // フォントを生成する。 auto font = asd::Engine::GetGraphics()->CreateFont(u"Data/Font/Font1.aff"); // 文字描画オブジェクトを生成する auto obj = std::make_s...
// 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 writing, software // distributed und...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "TestContext.h" #include "GpuTimer.h" #include "GrContext.h" namespace sk_gpu_test { TestContext::TestContext() : fFenceSync(nullptr) , fGpuTimer(nullptr) ...
#include "caffe2/operators/zero_gradient_op.h" namespace caffe2 { namespace { REGISTER_CPU_OPERATOR(ZeroGradient, ZeroGradientOp<CPUContext>); OPERATOR_SCHEMA(ZeroGradient).NumInputs(1).NumOutputs(0).SetDoc(R"DOC( ZeroGradient operators doesn't produce any output blobs. One can use this operat...
#include "PhysicsMaterial.h"
// Copyright (c) 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 "rpcserver.h" #include "base58.h" #include "init.h" #include "util.h" #includ...
#ifndef Scale_hpp #define Scale_hpp #include <HX711.h> //TODO: share with CO2 scale codebase struct ScaleHardware { /** The data and clock pins that are wired to the HX711. */ const int dataPin, clockPin; /** The gain value to use (32 for channel B, 64 or 128 for channel A). */ const byte gain; }; struct Scale...
/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2017 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
#include <cmath> #include <vector> #include <iostream> #include <algorithm> #include "DataFormats/MuonDetId/interface/CSCDetId.h" #include "DataFormats/MuonDetId/interface/RPCDetId.h" #include "DataFormats/MuonDetId/interface/DTChamberId.h" #include "DataFormats/MuonDetId/interface/MuonSubdetId.h" #include "L1Trigger...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "externslobrokpolicy.h" #include <vespa/messagebus/routing/routingcontext.h> #include <vespa/config/common/configcontext.h> #include <vespa/vespalib/text/stringtokenizer.h> #include <vespa/sl...
// 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 <sstream> #include "tools/gn/ninja_action_target_writer.h" #include "tools/gn/ninja_target_writer.h" #include "tools/gn/target.h" #include "tool...
/* * Copyright (C) 2011 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
//==-------------- esimd_types.hpp - DPC++ Explicit SIMD API ---------------==// // // 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 // //===---------------------------...
#include "RigidBody.h" #include "Quat.h" namespace dyno { IMPLEMENT_TCLASS(RigidBody, TDataType) template<typename TDataType> RigidBody<TDataType>::RigidBody(std::string name) : Node(name) { } template<typename TDataType> RigidBody<TDataType>::~RigidBody() { } DEFINE_CLASS(RigidBody); }
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <gmock/gmock.h> #include <mariana-trench/CallPositionFrames.h> #include <mariana-trench/Redex.h> #include <mariana-tren...
// Copyright (c) 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 "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
// Copyright (c) 2020-2021, 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 la...
/******************************************************************************************* * * raylib [textures] example - Image loading and drawing on it * * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM) * * This example has been created using raylib 1.4 (www.raylib.com)...
#ifndef GODOT_CPP_VSEPARATOR_HPP #define GODOT_CPP_VSEPARATOR_HPP #include <gdnative_api_struct.gen.h> #include <stdint.h> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include "Separator.hpp" namespace godot { class VSeparator : public Separator { struct ___method_bindings { }; static ___method_bindi...
//===-- CommandInterpreter.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 // //===---------------------------...
#include <stan/math/rev/scal.hpp> #include <gtest/gtest.h> #include <test/unit/math/rev/scal/fun/nan_util.hpp> #include <test/unit/math/rev/scal/util.hpp> #include <vector> void test_log_inv_logit(const double x) { using stan::math::var; using stan::math::log_inv_logit; using std::log; using stan::math::inv_lo...
// // MCNetService.cpp // mailcore2 // // Created by Robert Widmann on 4/28/13. // Copyright (c) 2013 MailCore. All rights reserved. // #include "MCNetService.h" using namespace mailcore; void NetService::init() { mHostname = NULL; mPort = 0; mConnectionType = ConnectionTypeClear; } NetService::NetS...
/* This file is a part of QVGE - Qt Visual Graph Editor (c) 2016-2018 Ars L. Masiuk (ars.masiuk@gmail.com) It can be used freely, maintaining the information above. */ #include "CFileSerializerGraphML.h" #include "CAttribute.h" #include "CNode.h" #include "CDirectConnection.h" #include <QFile> #include <QDebug> /...
/** * * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fi...
#include <boost/test/unit_test.hpp> #include <qtumtests/test_utils.h> const std::vector<valtype> code = { /* contract Sender1 { address sender2; address sender3; function Sender1() { } function setSenders(address senderx, address send...
// Copyright 2014 BitPay Inc. // Copyright (c) 2021 The Mobolith developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <iomanip> #include <sstream> #include <stdio.h> #include "univalue.h" #include "univalue_escape...
/** * Copyright 2011-2015 Quickstep Technologies LLC. * Copyright 2015 Pivotal Software, 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...
// 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...
#include "mvTable.h" #include "mvApp.h" #include "mvLog.h" #include "mvItemRegistry.h" #include "mvTableColumn.h" #include "mvPyObject.h" namespace Marvel { void mvTable::InsertParser(std::map<std::string, mvPythonParser>* parsers) { mvPythonParser parser(mvPyDataType::UUID, "Undocumented function", { "Tables", ...
const int MAXN = ; typedef int num; const num inf = 100000000; int N, MA[MAXN], MB[MAXN], PB[MAXN], mn[MAXN]; num c[MAXN][MAXN], d[MAXN]; bool S[MAXN], T[MAXN]; int st[MAXN], sn; num y[MAXN], z[MAXN]; void reset_all() { // need to be changed for costs < 0 for(int i = 0; i < MAXN; i++) y[i] = z[i] = nu...
// Copyright 2021 RoboMaster-OSS // // 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 ...
#include <gtest/gtest.h> #include <errno.h> // errno #include "flare/files/temp_file.h" namespace { class TempFileTest : public ::testing::Test{ protected: TempFileTest(){}; virtual ~TempFileTest(){}; virtual void SetUp() { }; virtual void TearDown() { }; }; TEST_F(TempFil...
#include<stdio.h> #include<iostream> #include<string> #include<string.h> #include<string> #include<signal.h> #include<dirent.h> #include<stdlib.h> #include<unistd.h> #include<sqlite3.h> #include"ListFileRecursively_DateAfterRemove.h" #include"HandleSigint.h" using namespace std; /*this function list all files for date...
/// @ref gtc_type_ptr /// @file glm/gtc/type_ptr.hpp /// /// @see core (dependence) /// @see gtc_quaternion (dependence) /// /// @defgroup gtc_type_ptr GLM_GTC_type_ptr /// @ingroup gtc /// /// Include <glm/gtc/type_ptr.hpp> to use the features of this extension. /// /// Handles the interaction between pointers and vec...
#pragma once #include <FAST/Visualization/Window.hpp> class QHBoxLayout; class QVBoxLayout; class QComboBox; class QSlider; class QPushButton; namespace fast { class UFFStreamer; class UFFViewerWindow : public Window { FAST_OBJECT(UFFViewerWindow) public: void setFilename(std::string filename); //void start(...
///////////////////////////////////////////////////////////////////////////// // Purpose: Load wxUiEditor project // Author: Ralph Walden // Copyright: Copyright (c) 2020-2022 KeyWorks Software (Ralph Walden) // License: Apache License -- see ../../LICENSE ////////////////////////////////////////////////////////...
// Copyright (c) 2019 The PIVX developers // Copyright (c) 2020 The EROS developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/eros/welcomecontentwidget.h" #include "qt/eros/forms/ui_welcomecontentwidget.h" #i...
// // dllmain.cpp // // DllMain module entry point. // #include "globals.h" //+--------------------------------------------------------------------------- // // DllMain // //---------------------------------------------------------------------------- BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID pv...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com> // // 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 htt...
#include "SousVide.h" #include "helper.h" // ************************************************ // Save any parameter changes to EEPROM // ************************************************ void Cooker::save_parameters() { if (Setpoint != EEPROM_readDouble(SpAddress)) { EEPROM_writeDouble(SpAddress, Setpoint);...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "random_normal_stable_feature.h" #include "utils.h" #include <vespa/searchlib/fef/properties.h> #include <vespa/fastos/time.h> #include <vespa/log/log.h> LOG_SETUP(".features.randomnormalsta...
// ================================================================================================= // Copyright Adobe // Copyright 2015 Adobe // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe license agreement accompanying it....
#include "Shader.h" #include "ShaderDefinitions.h" #include <cstring> #include <cassert> #include <iostream> #include <sstream> using namespace std::literals; namespace ge::gl4 { Shader::Shader(Type type, std::experimental::string_view source) { type_ = type; programID_ = glCreateProgram(); switch(type) { case...
/** * Copyright 2018, University of Freiburg * Optophysiology Lab. * Thomas Leyh <thomas.leyh@mailbox.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
#include "CelestialBody.hpp" #include <glm/gtc/matrix_transform.hpp> #include <glm/trigonometric.hpp> #include "core/helpers.hpp" #include "core/Log.h" CelestialBody::CelestialBody(bonobo::mesh_data const& shape, GLuint const* program, GLuint diffuse_texture_...
#include <cmath> #include <cstdio> #include <iostream> #include "EBProto.H" #include "Chombo_EBLevelBoxData.H" #include "Chombo_LevelData.H" #include "Chombo_BaseFab.H" #include "Chombo_ParmParse.H" #include "Chombo_LoadBalance.H" #include "Chombo_ProtoInterface.H" #include "Chombo_BRMeshRefine.H" #include "Chombo_G...
// // format-hex.cpp // // Copyright © 2020 by Blockchain Commons, LLC // Licensed under the "BSD-2-Clause Plus Patent License" // #include "format-hex.hpp" #include <iostream> #include <vector> #include <stdexcept> #include <set> #include "params.hpp" #include "utils.hpp" #include "cbor.hpp" #include "cbor-lite...
/** * @file DecalCursor.h * @author Jesse Wright - www.cutthroatstudios.com * @note Modified from Brocan's example on the Ogre forums * @note Modifications by BloodyFanatic: Decal pass removing and Ogre Shoggoth fix added, parameter changed to reference, setPosition 'optimization' removed...
/* Generated by Cython 0.29.12 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython...
// Copyright (c) 2017-2018 The Popchain Core Developers #include "httpserver.h" #include "chainparamsbase.h" #include "compat.h" #include "util.h" #include "netbase.h" #include "rpcprotocol.h" // For HTTP status codes #include "sync.h" #include "ui_interface.h" #include <stdio.h> #include <stdlib.h> #include <string...
#if !defined(BOOST_PP_IS_ITERATING) ///// header body #ifndef BOOST_MPL_APPLY_HPP_INCLUDED #define BOOST_MPL_APPLY_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICEN...
//================================================================================================= /*! // \file src/mathtest/smatsmatsub/MCaMCa.cpp // \brief Source file for the MCaMCa sparse matrix/sparse matrix subtraction math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // This f...
/******************************************************************************* * 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...
#include <libjson/Json.h> #include <libsystem/io/Stream.h> int main(int argc, char const *argv[]) { if (argc > 1) { JsonValue *json_object = json_parse_file(argv[1]); char *json_string = json_prettify(json_object); printf("%s", json_string); } return 0; }
/** * 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...
// Copyright (c) 2011-2018 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/romance-config.h> #endif #include <fs.h> #include <qt/intro.h> #include <qt/form...
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #include "thrift/compiler/test/fixtures/lean_mean_meta_machine/gen-cpp2/service2.h" #include "thrift/compiler/test/fixtures/lean_mean_meta_machine/gen-cpp2/service2.tcc" namespace test_cpp2 { names...
#include "common/leak_detection.h" #include "TimexUtils.h" #include <string> #include <vector> #include <locale> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include "boost/date_time/gregorian/gregorian.hpp" #include "Generic/common/SessionLogger.h" #include "Generic/common/UnicodeUtil.h" ...
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. #include "Event/CsStatusEffectEventImpl.h" const FName NCsStatusEffect::NEvent::FImpl::Name = FName("NCsStatusEffect::NEvent::FImpl");; namespace NCsStatusEffect { namespace NEvent { FImpl::FImpl() : InterfaceMap(), // NCsStatusEffect::NEven...
/* * Copyright 2020 Tadashi G. Takaoka * * 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 agr...
/********************************************************************** * 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 t...
/* * BSD 3-Clause License * * Copyright (c) 2022, Norbert Schulz * 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 n...
// 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 <stddef.h> #include <limits> #include "base/memory/scoped_vector.h" #include "cc/animation/transform_operations.h" #include "cc/test/geometry_t...
// Copyright (c) 2007-2012 Hartmut Kaiser // // 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) #include <hpx/hpx_fwd.hpp> #include <hpx/runtime/components/derived_component_factory.hpp> #include <hpx/runtime/actio...
// Copyright 2021 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 <vector> #include "base/android/jni_android.h" #include "base/android/jni_array.h" #include "chrome/browser/commerce/shopping_list/jni_headers/S...
/*******************************************************************\ Module: Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include "java_entry_point.h" #include <util/config.h> #include <util/expr_initializer.h> #include <util/string_constant...
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 yinc13@mails.tsinghua.edu.cn //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 //版权所有(c)2011至今,Facebook,Inc.保留所有权利。 //此源代码在两个gplv2下都获得了许可(在 //复制根目录中的文件)和Apache2.0许可证 //(在根目录的license.apache文件中找到)。 // //版...
#include<iostream> #include<vector> using namespace std; int main() { int n,c[55],i,j,a[55][55],x[2505],y[2505],k=1; vector<int> v[5]; cin>>n; for(i=1;i<=n;i++) { cin>>c[i]; } for(i=1;i<=n;i++) { for(j=1;j<=c[i];j++) cin>>a[i][j],x[a[i][j]]=i,y[a[i][j]]=j; } for(i=1;i<=n;...
// 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/formats/webm/webm_cluster_parser.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <cstdlib> #include <memory> #i...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2019 Baldur Karlsson * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...