text
stringlengths
7
961k
#include "Classes/Library/Private/LibraryData.h" const char* LibraryData::selectedPathProperty = "SelectedPath"; const DAVA::FilePath& LibraryData::GetSelectedPath() const { return selectedPath; }
#include "../../../include/odfaeg/Graphics/boneAnimation.hpp" namespace odfaeg { namespace graphic { BoneAnimation::BoneAnimation(math::Vec3f position, math::Vec3f size, std::string type) : AnimatedEntity(position, size, size * 0.5f, type) { boneIndex = 0; } void BoneAnimation::...
//Optimise #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define MULTI_TEST #ifdef LOCAL #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, typename...
#include "LLVMToSourceMappingPass.h" #include <llvm/IR/LegacyPassManager.h> #include <llvm/Support/CommandLine.h> #include <llvm/Transforms/IPO/PassManagerBuilder.h> #include <llvm-supermutate/Mapping/LLVMToSourceMapping.h> using namespace llvm; static cl::opt<std::string> outputFilename( "mapping-filename", cl...
/* !!!! GENERATED FILE - DO NOT EDIT !!!! * -------------------------------------- * * This file is part of liblcf. Copyright (c) 2017 liblcf authors. * https://github.com/EasyRPG/liblcf - https://easyrpg.org * * liblcf is Free/Libre Open Source Software, released under the MIT License. * For the full copyright ...
// HOG-Man - Hierarchical Optimization for Pose Graphs on Manifolds // Copyright (C) 2010 G. Grisetti, R. Kümmerle, C. Stachniss // // HOG-Man 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 Free Software Foundation, either v...
#include "matriz.h" #include "utilidades.h" #include <iostream> #include <iomanip> using namespace std; int main(){ int filas,columnas; Matriz a,b,amasb,amenosb; cout <<"introduzca el numero de filas "<<endl; cin >> filas; cout <<"introduzca el numero de columnas "<<endl; cin >> columnas; cout <<"introduzca ...
/* * Title: ReadDigitalInput * * Objective: * This example demonstrates how to read the state of a ClearCore digital * input. * * Description: * This example repeatedly reads the state of a defined digital input. During * operation, the state of the input is printed to the USB serial port. * * Re...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018-2021 www.open3d.org // // Perm...
// Copyright (c) 2001-2011 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 <boost/spirit/include/karma_binary.hpp> #include <boost/spirit/include/karma_generate.hpp> #include <boost/...
//////////////////////////////////////////////////////////////////////////////// /// 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...
// ImGui Win32 + DirectX11 binding // In this binding, ImTextureID is used to store a 'ID3D11ShaderResourceView*' texture identifier. Read the FAQ about ImTextureID in imgui.cpp. // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. // If you use this binding...
class Solution { public: bool isSubsequence(string s1, string s2) { int n = s1.size(), m = s2.size(); if (n > m) { return false; } if (n == m) { return s1 == s2; } if (m == 0) { return false; } if (n == 0) { ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Copyright (c) 2009-2013 The Dash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "init.h"...
// Copyright(C) 2019 Intel Corporation // Licensed under the MIT License #include "core/common/common.h" #include "core/common/logging/logging.h" #include "core/framework/compute_capability.h" #include "core/framework/allocatormgr.h" #include "core/framework/kernel_registry.h" #include "core/graph/graph_viewer.h" #inc...
/* Copyright (c) 2008, Arvid Norberg 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 f...
// Copyright 2020 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/******************************************************************************* * Copyright (C) 2020 Olivier Delaneau, University of Lausanne * Copyright (C) 2020 Simone Rubinacci, University of Lausanne * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you 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 appli...
// David Eberly, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2022 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 6.0.2022.01.06 #include <Graphics/GTGraphicsPCH.h> #include <G...
// Copyright (c) 2019 The PIVX developers // Copyright (c) 2020 The CRYPTCORE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/cryptcore/addresslabelrow.h" #include "qt/cryptcore/forms/ui_addresslabelrow.h...
/* * Copyright (C) 2008, 2009 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 condit...
//===- DAGISelMatcherGen.cpp - Matcher generator --------------------------===// // // 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 // //===---------------------------...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
// Copyright (c) 2021 PaddlePaddle 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...
#include <iostream> using std::cin; using std::cout; int main() { int num = 0; cout << "Please enter a Integer between 1 and 100: "; cin >> num; if (num >= 1 && num <=100) { cout <<"OK"; } else { cout << "Out of range!"; } return 0; }
#include <vector> using namespace std; /* some test case integer overflow so I use unsigned int this is permutation not shit combination */ class Solution { public: int combinationSum4(vector<int> &nums, int target) { vector<unsigned int> dp(target + 1); dp[0] = 1; for (int i = 0; i <= target; ++i) { for...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
#include "BoundaryConditions/WarpX_PEC.H" #include "WarpX.H" #include <AMReX_Box.H> #include <AMReX_Geometry.H> #include <AMReX_GpuControl.H> #include <AMReX_GpuLaunch.H> #include <AMReX_IndexType.H> #include <AMReX_MFIter.H> #include <AMReX_MultiFab.H> #include <AMReX_SPACE.H> #include <AMReX_Vector.H> using 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 "chrome/browser/chromeos/extensions/file_manager_util.h" #include "base/bind.h" #include "base/file_util.h" #include "base/json/json_reader.h...
/** \file Directory_Controller.hh * * Auto generated C++ code started by /home/hongyu/gem5-fy/src/mem/slicc/symbols/StateMachine.py:282 * Created by slicc definition of Module "MESI Two Level directory protocol" */ #ifndef __Directory_CONTROLLER_HH__ #define __Directory_CONTROLLER_HH__ #include <iostream> #includ...
#include <iostream> #include <vector> using namespace std; int getMissingNumber(const vector<int> &vec, const int &left, const int &right) { if( left >= right ) return -1; int mid = left + (right-left)/2; if( vec[mid] != mid ) { if( mid == 0 || vec[mid-1] == mid-1 ) { return mid; }else { re...
/* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * 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 * right...
// MIT License // Copyright (c) 2019 Erin Catto // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merg...
#include "InterData.h" #include "Handler.h" namespace { using namespace picmdk; } // anonymous namespace namespace picmdk { void InterData::registerExport(DataSetBase* dataSet, const std::string& name, SynchronizationMode mode, SynchronizerBase* synchronizer, FinalizerBase* finalizer) { ExportDescr...
// Copyright (c) 2014-2016 The Dash developers // Copyright (c) 2016-2020 The PIVX developers // Copyright (c) 2020 The EncoCoin 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 "masternod...
// ROS #include <ros/ros.h> #include <nodelet/nodelet.h> #include "std_msgs/String.h" #include <crane_msgs/CraneState.h> #include <crane_msgs/CraneControl.h> #include <crane_msgs/CraneTrajectoryPoint.h> #include <realtime_tools/realtime_buffer.h> #include <realtime_tools/realtime_publisher.h> // Casadi #include "casad...
#pragma once #include "Features/Tas/TasPlayer.hpp" namespace TasUtils { Vector GetVelocityAngles(const TasPlayerInfo *pi); }
#include "DS2502.h" DS2502::DS2502(uint8_t ID1, uint8_t ID2, uint8_t ID3, uint8_t ID4, uint8_t ID5, uint8_t ID6, uint8_t ID7) : OneWireItem(ID1, ID2, ID3, ID4, ID5, ID6, ID7) { static_assert(MEM_SIZE < 256, "Implementation does not cover the whole address-space"); clearMemory(); clearStatus(); if ((I...
// Colônia de Formigas // https://neps.academy/lesson/220 #include <algorithm> #include <iostream> #include <cstring> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> ii; #define pb push_back #define endl "\n" #define maxn 100100 #define maxh 20 int n, q, h[maxn...
/* Scott's AKE Client/Server testbed See http://www.compapp.dcu.ie/research/CA_Working_Papers/wp02.html#0202 Compile as cl /O2 /GX /DZZNS=16 ake8cpt.cpp zzn8.cpp zzn4.cpp zzn2.cpp ecn4.cpp big.cpp zzn.cpp ecn.cpp miracl.lib Fastest using COMBA build for 512-bit mod-mul Cocks-Pinch Curve - Tate pai...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2020 HPCC Systems®. 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...
// thread_pool.hpp /* * Copyright (c) 2007 Leigh Johnston. * * 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 copyrigh...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinamountfield.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include "qvalidatedlineedit.h" #include "qvaluecombobox.h" #include <QCheckBox> #include <QDir> #include <QIntValidator> #...
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ****************************************************************************** * * Copyright (C) 1998-2016, International Business Machines * Corporation and others. All Rights Reserved. * ***********...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define all(x) (x).begin(), (x).end() #define um unordered_map #define pq priority_queue #define sz(x) ((int)(x).size()) #define x first #define y second typedef vector<int> vi; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int...
/*B 2016/2017, Zadaća 1, Zadatak 1 NAPOMENA: ulaz/izlaz za zadatke je specificiran javnim autotestovima. Zalbe za ne analiziranje testova se ne uvazavaju! NAPOMENA: nece svi (javni) testovi sa zamgera biti dostupni na c9. */ #include <iostream> #include <cmath> #include <vector> using std::cout; using std...
#ifndef BL_ENUMSANDCONSTANTS_HPP #define BL_ENUMSANDCONSTANTS_HPP //------------------------------------------------------------------- // NOTE: These constants and enums are defined within the // blAlgorithmsLIB namespace //------------------------------------------------------------------- namespace blAlgorithmsLI...
/* Copyright 1997, 1998 by Abacus Research and * Development, Inc. All rights reserved. */ /* NOTE: Version 1.2 did things differently and didn't rely on luck to avoid collisions. Unfortunately, it didn't have the property that the same directory would have the same name between runs of Executor */ #include...
/* ----------------------------------------------------------------- * Programmer(s): Slaven Peles @ LLNL * * Based on N_Vector_Parallel by Scott D. Cohen, Alan C. Hindmarsh, * Radu Serban, and Aaron Collier @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * C...
// // detail/select_interrupter.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 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 B...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = { QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpassword in the configuration file:\n" "%s\n" "It is recomme...
// //=======================================================================================================================================// The named class sources like P_...are the Unreal Engine 4.20 full C++ VR template sources written by Sang-bin, Jeon (Ludens VR) |// This VR Template Copyright (C) 2018, Sang-bi...
/* * Copyright (C) 2006 Apple Inc. All rights reserved. * Copyright (C) 2012 Rik Cabanier (cabanier@adobe.com) * Copyright (C) 2014 Adobe Systems Incorporated. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
// Copyright 2013 The Flutter 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 "flutter/shell/platform/linux/fl_keyboard_manager.h" #include <cstring> #include <vector> #include "flutter/shell/platform/linux/testing/mock_te...
// Written/implemented by: J.Y. LU, Southeast University, Nanjing, China // G. LIN (guan.lin@polyu.edu.hk), The Hong Kong Polytechnic University, Hong Kong, China // // Description: This file contains the class definition for Uniaxial material FRPConfinedConcrete02. // FRPConfinedConcrete02.cpp /* ****...
/*ckwg +29 * Copyright 2012-2016 by Kitware, 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 li...
/* WARNING: This is auto-generated file. Do not modify, since changes will * be lost! Modify the generating script instead. */ namespace refdetails { template<> void Deleter<VkDeviceMemory>::operator() (VkDeviceMemory obj) const { m_deviceIface->freeMemory(m_device, obj, m_allocator); } template<> void Deleter<VkF...
#include "il2cpp-config.h" #include "vm/AssemblyName.h" #include "vm/MetadataCache.h" #include "vm/Runtime.h" #include "il2cpp-tabledefs.h" #include "il2cpp-class-internals.h" #include "vm/Array.h" #include "il2cpp-object-internals.h" #include "vm/Reflection.h" #include "vm/Type.h" #include "vm/Object.h" #include "util...
//: C12:ReflexivityInOverloading.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt class Number { int i; public: Number(int ii = 0) : i(ii) {} const Number operator+(const Number& n) const { return Number(i + n.i);...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2015-2017 The ALQO developers // Copyright (c) 2017-2018 The nood developers // Distributed under the MIT/X11 software license, see the accompanying // file C...
#pragma once #include <defines.h> #include "vector4.hpp" namespace math { struct mat4 { union { struct { f32 _11, _12, _13, _14; f32 _21, _22, _23, _24; f32 _31, _32, _33, _34; f32 _41, _42, _43, _44; }; f32 at[16]; }; static mat...
// dsa.cpp - originally written and placed in the public domain by Wei Dai #include "pch.h" #include "config.h" // TODO: fix the C4589 warnings #if CryptoPP_NV_2_MSC_VERSION # pragma warning(disable: 4189 4589) #endif #ifndef CryptoPP_NV_2_IMPORTS #include "gfpcrypt.h" #include "nbtheory.h" #include "modarith.h" #i...
/* * Copyright (C) Research In Motion Limited 2011. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) an...
/* * Copyright (C) 2012 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, t...
#include "FiniteStateMachine.h" //FINITE STATE State::State(void (*updateFunction)()) { userEnter = 0; userUpdate = updateFunction; userExit = 0; } State::State(void (*enterFunction)(), void (*updateFunction)(), void (*exitFunction)()) { userEnter = enterFunction; userUpdate = updateFunction; userExit = exitFun...
/* * Copyright © 2010,2012 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above...
#include "control.hpp" #include <SFML/Window.hpp> void Control::ProcessEvents(const std::vector<sf::Event>& _events) { for (auto&& event : _events) { if (event.type == sf::Event::Closed) { m_running = false; } } }
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #in...
#include "TChain.h" #include "TList.h" #include "TTree.h" #include "TH1F.h" #include "TH2F.h" #include "TH3D.h" #include "TCanvas.h" #include "TParticle.h" #include "TObjArray.h" #include "AliAnalysisTaskSE.h" #include "AliAnalysisTask.h" #include "AliAnalysisManager.h" #include "AliMultSelection.h" #include "AliStac...
/// @ref gtx_type_aligned /// @file glm/gtx/type_aligned.hpp /// /// @see core (dependence) /// @see gtc_quaternion (dependence) /// /// @defgroup gtx_type_aligned GLM_GTX_type_aligned /// @ingroup gtx /// /// Include <glm/gtx/type_aligned.hpp> to use the features of this extension. /// /// Defines aligned types. #pra...
version https://git-lfs.github.com/spec/v1 oid sha256:a734d133d971da57afd5a9c449b934a054bf7a8d947e1dcf72458931bb440f1b size 492
#include <mbgl/map/transform_state.hpp> #include <mbgl/tile/tile_id.hpp> #include <mbgl/util/constants.hpp> #include <mbgl/util/interpolate.hpp> #include <mbgl/math/log2.hpp> #include <mbgl/math/clamp.hpp> namespace mbgl { TransformState::TransformState(ConstrainMode constrainMode_, ViewportMode viewportMode_) : ...
/* Copyright (c) 2015 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S) DI...
/* Copyright (c) 2017 Microsoft Corporation Author: Nikolaj Bjorner */ #include "math/lp/lar_solver.h" #include "math/lp/nra_solver.h" #include "nlsat/nlsat_solver.h" #include "math/polynomial/polynomial.h" #include "math/polynomial/algebraic_numbers.h" #include "util/map.h" #include "math/lp/u_set.h" #include "ma...
#include "Halide.h" #include <cstdio> #include <memory> #include <algorithm> #include "halide_benchmark.h" using namespace Halide; using namespace Halide::Tools; double test_copy(Buffer<uint8_t> src, Buffer<uint8_t> dst) { Var x, y, c; Func f; f(x, y, c) = src(x, y, c); for (int i = 0; i < 3; i++) { ...
#include <iostream> using namespace std; class pointer { public: int a; int *p; pointer() { a = 100; p = new int(10); } pointer(const pointer &tempp)//复制构造函数 { if(this != &tempp)//避免a=a这样的赋值 { a = tempp.a; p = tempp.p; } } }; int main() { pointer p1; //使用默认构造函数 pointer p2(p1);...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/** * \copyright * Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "Process.h" #include "BaseLib/Functional...
#include <lib/file_util.hpp> #include <chain/chain.hpp> #include <iostream> #include <vector> #include <string> #include <map> #include <queue> #include <set> int main(int argc, char* argv[]) { std::vector<std::string> args{argv, argv + argc}; if(args.size() != 2) { std::cout << args[0] << " <inpu...
// // Copyright (C) 2011-2017 Ben Key // 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) // #if (BOOST_OS_SOLARIS) #include <cstdlib> #include <string> #include <boost/filesystem/operations.hpp> #include <boost/...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The Wagerr developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-li...
#include "memory_region.h" #include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> #include "tensorflow/core/lib/core/errors.h" namespace tensorflow { using namespace std; using namespace errors; PosixMappedRegion::PosixMappedRegion(const void* data, uint64 size)...
#include<iostream> #include<stdlib.h> using namespace std; int main() { int x, y; while (x && y != 0) { cin >> x; cin >> y; if (x>0 && y>0) cout << "primeiro" << endl; else if (x<0 && y>0) cout << "segundo" << endl; else if (x<0 && y<0) ...
// Copyright 2018 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 <float.h> #include <limits> #include <math.h> #include <string.h> #include <cobalt-client/cpp/histogram.h> #include <cobalt-client/cpp/histogram...
#include "searchchunkswidget.h" #include "ui_searchchunkswidget.h" #include "./chunkcache.h" #include "./chunkmath.h" #include "./range.h" #include "./rectangleinnertoouteriterator.h" #include <QVariant> #include <QTreeWidgetItem> #include <QtConcurrent/QtConcurrent> SearchChunksWidget::SearchChunksWidget(QSharedPoi...
// SilvervineUE4Lua / devCAT studio // Copyright 2016 - 2020. Nexon Korea Corporation. All rights reserved. #include "SilvervineUE4LuaVirtualMachine.h" #include "Engine/BlueprintGeneratedClass.h" #include "Engine/World.h" #include "Misc/CoreDelegates.h" #include "LuaAPI.h" #include "LuaFunction.h" #include "LuaLog.h...
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
/* $Id: progressbar.cpp 48153 2011-01-01 15:57:50Z mordante $ */ /* Copyright (C) 2003 - 2011 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public ...
/****************************** * Name: Derek Hernandez (djh119) * CS 3339 - Spring 2019 ******************************/ #include "CPU.h" const string CPU::regNames[] = {"$zero","$at","$v0","$v1","$a0","$a1","$a2","$a3", "$t0","$t1","$t2","$t3","$t4","$t5","$t6","$t7", "$s0","$s1","$s2","$s3","$s4","$s5","...
/* * Copyright (c) 2014 Spotify AB * * 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, ...
//--------------------------------------------------------------------------- // E L E N A P r o j e c t: ELENA IDE // Linux-GTK+ program entry // (C)2005-2015, by Alexei Rakov //--------------------------------------------------------------------------- //#include...
// t0442.cc // variation of t0438a.cc with all out-of-line defns template <class T> struct A; template <class T1> struct A { template <class U1> struct C; }; template <class T2> template <class U2> struct A<T2>::C { template <class W2> struct F; }; template <class T3> template <class U3> template <class W3...
#include "DiskCacheWrapper.h" #include <IO/copyData.h> #include <IO/ReadBufferFromFileDecorator.h> #include <IO/WriteBufferFromFileDecorator.h> #include <Common/quoteString.h> #include <condition_variable> namespace DB { /** * Write buffer with possibility to set and invoke callback after 'finalize' call. */ class C...
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
/* Copyright (c) 2006-2008, Universities Space Research Association (USRA). * 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 ...
#include "Drink.h" #include <iostream> #include <string> #include <vector> #include <sstream> #include <fstream> #include <chrono> #include <thread> #include <limits> using namespace std; using namespace std::this_thread; using namespace std::chrono; void diningHallIngredientsPopulate(vector<string> &usersIngredients...
//================================================================================================= /*! // \file src/mathtest/dynamicmatrix/IncludeTest.cpp // \brief Source file for the DynamicMatrix include test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaz...
// Copyright 2002 The Trustees of Indiana University. // 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) // Boost.MultiArray Library // Authors: Ronald Garcia // Jeremy ...