text
stringlengths
7
961k
/* Copyright 2017 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...
// material.hpp // defines a PBR material #pragma once #include "texture.hpp" struct material { texture albedoMap; texture normalMap; texture metallicMap; texture roughnessMap; texture ambientOcclusionMap; };
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2017 The SIQS developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactiondescdialog.h" #inclu...
/** * \file FEMCondition.cpp * 25/11/2010 KR initial implementation * * \copyright * Copyright (c) 2015, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/li...
// 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 "walletdb.h" #include "base58.h" #include "protocol.h" #include "seriali...
#ifndef Board_hpp #define Board_hpp #include "Param.hpp" #include "Point.hpp" #include "Line.hpp" #include "WeightQueue.hpp" #include <string> #define LOG_NOTHING 0 //什么都不输出 #define LOG_RESULT 1 //只输出结果 #define LOG_PROGRESS 2 //输出进度 #define LOG_TRY 3 //输出每一次尝试 #define LOG_ROUND 4 //输出每一轮的情况 #def...
#ifdef PEGASUS_OS_TRU64 #ifndef __UNIX_HEADTAILDROPPER_PRIVATE_H #define __UNIX_HEADTAILDROPPER_PRIVATE_H #endif #endif
//$Id$ //------------------------------------------------------------------------------ // OrbitRaisingPathObject //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Copyright (c) 2002 - 2020 United States Government as r...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
#pragma once #include <memory> #include <string> #include <vector> #include <list> #include <map> #include <cassert> #include <CL/cl.h> #include "include.hpp" namespace cl { class Context { private: cl_context context; public: Context(cl_device_id device); ~Context(); ...
#pragma once #include "SessionId.hpp" #include <boost/uuid/uuid.hpp> #include <iostream> namespace arepa::networking { /** * A token representing a unique session ID and secret. * * The session ID is intended to be public, shared knowledge. * The session secret is intended to be used for re-establishing the ses...
/* Copyright (c) 2016 Baidu, Inc. All Rights Reserve. 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 ...
//===-- asan_rtl.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 // //===---------------------------...
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
/***************************************************************************** * * Copyright (c) 2003-2018 by The University of Queensland * http://www.uq.edu.au * * Primary Business: Queensland, Australia * Licensed under the Apache License, version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Development unti...
/* Copyright 2017 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...
#include "processor.h" #include "linux_parser.h" #include <unistd.h> #include <fstream> #include <sstream> using namespace LinuxParser; // TODO: Return the aggregate CPU utilization //returns 0 if the file is unable to be open float Processor::Utilization() { std::ifstream file(kProcDirectory + kStatFilename...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
#pragma once #include <websocketpp/transport/base/endpoint.hpp> #include <websocketpp/transport/asio/connection.hpp> #include <websocketpp/transport/asio/security/none.hpp> #include <websocketpp/uri.hpp> #include <websocketpp/logger/levels.hpp> #include <websocketpp/common/functional.hpp> #include <sstream> #includ...
#include "PID.h" #include <iostream> using namespace std; /* * TODO: Complete the PID class. */ PID::PID() {} PID::~PID() {} void PID::Init(double Kp, double Ki, double Kd) { this->Kp = Kp; this->Ki = Ki; this->Kd = Kd; p_error = 0; i_error = 0; d_error = 0; t_cte = 0; prev_cte = ...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <map> #include <memory> #include <set> #include <string> #include "platform/globals.h" #incl...
// nnet0/nnet-train-frmshuff-parallel.cc // Copyright 2015-2016 Shanghai Jiao Tong University (author: Wei Deng) // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License....
#include <iostream> using namespace std; int main() { int n; cin>>n; int a[1000]; for(int i=0;i<n;i++) { cin>>a[i]; } //Generating Subarrays for(int i=0;i<n;i++) { for(int j=i;j<n;j++) { for(int k=i;k<=j;k++)...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
#include "Framework.h" #include <omp.h> #include <iostream> #include <unistd.h> using namespace std; template<class TParams, class TResult> TResult BaseProblemSolver<TParams, TResult>::process(TParams params) { omp_set_num_threads(this->numThreads); TResult finalResult; bool work = true; // create i...
//===-------- cfi.cc ------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file collisionHandlerHighest...
// // Copyright (c) 2008-2015 the Urho3D project. // // 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, m...
/* Copyright (c) 2017-2021, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "gtest/gtest.h" #ifdef _MSC_VER # pragma warning(push, 0)...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include <memory> #include "ngraph_functions/builders.hpp" namespace ngraph { namespace builder { std::shared_ptr<Node> makePooling(const ngraph::Output<Node> &in, const std::ve...
// This file is part of VCPP, Visual C++ porting tool for QMake projects // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU General // Public License (GPL). See the gpl.licence file for details or // see http://www.gnu.org/copyleft/gpl.html // file-header-ends-her...
/**************************************************************************** ** ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. ** ** This file is part of $PRODUCT$. ** ** $CPP_LICENSE$ ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY A...
// Copyright (c) 2014 The BitCore Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/ripemd160.h" #include "crypto/common.h" #include <string.h> // Internal implementation code. namespace { /// I...
#include "MainMenu.hpp" MainMenu::MainMenu() { }
// $Id$ /* Copyright (c) 2007-2015, Trustees of The Leland Stanford Junior University 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...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Covers ranges::push_heap, ranges::pop_heap, ranges::make_heap, ranges::is_heap, ranges::is_heap_until, and // ranges::sort_heap #include <algorithm> #include <array> #include <cassert> #include <concepts> #include <r...
// // CPUBatchMatMul.hpp // MNN // // Created by MNN on 2019/03/25. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef CPUBatchMatMul_hpp #define CPUBatchMatMul_hpp #include "CPUMatMul.hpp" namespace MNN { class CPUBatchMatMul : public Execution { public: CPUBatchMatMul(Backend *backend, bool adj...
#ifndef ENGINE_GUIDANCE_POST_PROCESSING_HPP #define ENGINE_GUIDANCE_POST_PROCESSING_HPP #include "engine/guidance/leg_geometry.hpp" #include "engine/guidance/route_step.hpp" #include "engine/phantom_node.hpp" #include "util/attributes.hpp" #include <vector> namespace osrm { namespace engine { namespace guidance { //...
// Autogenerated from CppSourceCreator // Created by Sc2ad // ========================================================================= // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions #include "Unity...
#include "yondergui.h" #include "ui_yondergui.h" extern QString NAME; extern QString VERSION; extern QString ACTION_KEY; extern QString AUTHOR; extern QString WEBADDRESS; extern QString ACCEPTED_MIMETYPES; YonderGui::YonderGui(QSplashScreen *splash_screen, QWidget *parent) : QMainWindow(parent), ui(new Ui::YonderGui)...
/* * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #ifndef KONAN_NO_EXTERNAL_CALLS_CHECKER #include <string_view> #include <cstring> #include "KAssert.h" #include "Memory.h" #include "Porting.h" #include "ThreadData.hp...
/* SoLoud audio engine Copyright (c) 2020 Jari Komppa 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 software for any purpose, including commercia...
#ifndef BOOST_MPL_AT_FWD_HPP_INCLUDED #define BOOST_MPL_AT_FWD_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/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl fo...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include "timeline.h" #include <QGraphicsSceneMouseEvent> #include <QPainter> #include <QTimer> #include <QDebug> TimeLine::TimeLine(Timers *t, QGraphicsItem *parent) : QGraphicsRectItem(parent) { timer = t; timeLineWidth = 200000; setRect(QRectF(0, 0, timeLineWidth, 18)); timeLineScale = 0.1; } void Ti...
#include "PlayerHistory.h" uint8_t PlayerHistory::getSubgroup() const { return subgroup; } bool PlayerHistory::isSelf() const { return self; } Prof PlayerHistory::getProfession() const { return prof; } ImVec4 PlayerHistory::getColor() const { ImVec4* arc_colors[5]; arc_export_e5(arc_colors); return arc...
/************************************************************************* * MediPy - Copyright (C) Universite de Strasbourg * Distributed under the terms of the CeCILL-B license, as published by * the CEA-CNRS-INRIA. Refer to the LICENSE file or to * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html * f...
// ioctlizer.cpp : Defines the entry point for the console application. // #include "stdafx.h" NTSTATUS TryOpenDevice(TCHAR* deviceName, PHANDLE deviceHandle, PBYTE accessGranted); NTSTATUS OpenDeviceTryNamespace(TCHAR* deviceName, DWORD requiredAccess, PHANDLE deviceHandle); NTSTATUS OpenDevice(TCHAR* deviceName, DW...
#include "transactiontablemodel.h" #include "guiutil.h" #include "transactionrecord.h" #include "guiconstants.h" #include "transactiondesc.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include "bitcoinunits.h" #include "wallet.h" #include "ui_interface.h" #include <QLocale> #in...
// // main.cpp // C Plus Plus Tutorial // // Created by Sonar Systems on 14/06/2014. // Copyright (c) 2014 Sonar Systems. All rights reserved. // #include <iostream> #include <string> int main(int argc, const char * argv[]) { // insert code here... std::string s("Hello this is a string"); s...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. #include "GUI_utils.h" #include <iomanip> #include <pwd.h> #include <fstream> bool GUI_utils::init_GUI(cv::String window_name) { m_rect_thickness = 3; m_rect_line_type = 8; m_rect_shift = 0; ...
// Copyright 2020 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/ui/passwords/bubble_controllers/items_bubble_controller.h" #include "base/strings/utf_string_conversions.h" #include "base/test/...
/** * This file is part of the ExaHyPE project. * Copyright (c) 2016 http://exahype.eu All rights reserved. * * The project has received funding from the European Union's Horizon * 2020 research and innovation programme under grant agreement * No 671698. For copyrights and licensing, please consult the webpage...
#include <bits/stdc++.h> using namespace std; using Freq=array<int,26>; map<Freq, int> mp[111]; Freq f(string s){ Freq a = {}; for (char x: s)a[x-'a']++; return a; } void solve() { int n; cin >> n; cout << "? 1 " << n << endl; string s; for (int _ = 0; _ < (n)*(n+1)/2; _++) { cin >...
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2020 Fetch.AI 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 Licen...
#include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{3}; } } #include"../main.h"
#include<iostream> using namespace std; int ArrayisSorted(int arr[],int n) { for(int i=0;i<n;i++) { for(int j=i+1;j<n;j++) { if (arr[j]<arr[i]) { return false; } } } return true; } int main() { int arr[]={5,12,30,2,35}; int n=sizeof(arr)/sizeof(arr[0]); cout<<ArrayisSorted(arr,n)...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; n*=2; int ara[n], i, x=0, y=0; for(i=0; i<n; i++) scanf("%d", &ara[i]); sort(ara, ara+n); for(i=0; i<n/2; i++) x+=ara[i]; for(; i<n; i++) y+=ara[i]; if(x!=y) { for(i=0; i<n...
#include "ApiClient.h" #include "MultipartFormData.h" #include "ModelBase.h" namespace swagger { namespace petshop { namespace api { using namespace swagger::petshop::model; ApiClient::ApiClient(std::shared_ptr<ApiConfiguration> configuration ) : m_Configuration(configuration) { } ApiClient::~ApiClient() { }...
#include "AppHdr.h" #ifdef USE_TILE_LOCAL #include "tilereg-text.h" #include "tilefont.h" #include "unicode.h" int TextRegion::print_x; int TextRegion::print_y; TextRegion *TextRegion::text_mode = nullptr; int TextRegion::text_col = 0; TextRegion *TextRegion::cursor_region= nullptr; int TextRegion::cursor_flag = 0...
#ifndef CPPDNN_HEADER_ACTIVATION_DETAILS_SIGMOID_LAYER_HPP #define CPPDNN_HEADER_ACTIVATION_DETAILS_SIGMOID_LAYER_HPP #include <cmath> namespace cppdnn { template<typename Ty_> void basic_sigmoid_layer<Ty_>::function(const basic_object_ptr<Ty_>& input) const { input->apply([](const basic_object_ptr<Ty_>& value) ...
#include <nestedtensor/csrc/nested_tensor_impl.h> #include <nestedtensor/csrc/python_args.h> #include <nestedtensor/csrc/python_functions.h> #include <pybind11/stl.h> #include <torch/extension.h> using namespace torch::nn; namespace F = torch::nn::functional; namespace torch { namespace nested_tensor { at::Tensor cr...
/* Copyright 2020 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 (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/helpers/basic_math.h" #include "level_zero/tools/source/sysman/ras/ras_imp.h" namespace L0 { void RasHandleContext::releaseRasHandles() { for (Ras *pRas : handleList) { delete pRas; } ...
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. #if defined(TARGET_ARCH_ARM) #include ...
/*********************************************************************************** ** MIT License ** ** ** ** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ...
#include <one/ping/internal/site_information.h> namespace i3d { namespace ping { SiteInformation::SiteInformation() : _continent_id(0), _dc_location_id(0) {} I3dPingError SiteInformation::set_continent_id(int continent_id) { _continent_id = continent_id; return I3D_PING_ERROR_NONE; } I3dPingError SiteInform...
#include "Stabilizer.h" #include "quadCopter/Drone.h" #include "Accelerometer.h" namespace quad { double Stabilizer::computePwm(const std::vector<Motor*>& motors, double dt) { readSensorsData(); if (_flightMode == STAB_HEIGHT) { computeHoverMode(dt); } rp3d::Vector3 cu...
#include <iostream> using namespace std; class Solution { public: int lengthOfLastWord(const char *s) { string ss(s); for(int i = ss.size()-1; i >= 0 && ss[i] == ' '; i--) { ss.erase(i,1); } size_t index_of_space = ss.find_last_of(' '); if (index_of_space == str...
/************************************************************************/ /* */ /* Copyright 2011 by Ullrich Koethe */ /* */ /* This file is p...
/* * Repast for High Performance Computing (Repast HPC) * * Copyright (c) 2010 Argonne National Laboratory * All rights reserved. * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the following * conditions are met: * * Redistrib...
#include "drape/oglcontext.hpp" #include "drape/gl_functions.hpp" #include "base/macros.hpp" namespace dp { namespace { glConst DecodeTestFunction(TestFunction depthFunction) { switch (depthFunction) { case TestFunction::Never: return gl_const::GLNever; case TestFunction::Less: return gl_const::GLLess; case...
/** \file * * \author M. Maggi - INFN Bari */ #include "Geometry/GEMGeometryBuilder/plugins/GEMGeometryESModule.h" #include "Geometry/GEMGeometryBuilder/src/GEMGeometryBuilderFromDDD.h" #include "Geometry/GEMGeometryBuilder/src/GEMGeometryBuilderFromCondDB.h" #include "Geometry/Records/interface/IdealGeometryReco...
#include "lower_scatter_workspace.h" #include <vector> #include <set> #include <map> #include <string> #include "loops.h" #include "lower_tensor_utils.h" #include "indexvar.h" #include "ir.h" #include "ir_visitor.h" #include "ir_printer.h" #include "ir_codegen.h" #include "substitute.h" #include "path_expressions.h"...
/* * * 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...
/* * PROGRAM: JRD Access Method * MODULE: why.cpp * DESCRIPTION: Universal Y-valve * * The contents of this file are subject to the Interbase Public * License Version 1.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.Inp...
/**************************************************************************/ /* */ /* WWIV Version 5 */ /* Copyright (C)2018-2020, WWIV Software Services */ /* ...
#pragma once #include "Outline.hpp" namespace pf { struct DashState { bool isOn() const noexcept; Contour output; std::size_t currentIndex; float distanceLeft; }; struct Dash { Outline output; }; struct OutlineDash { Outline output; DashState state; }; struct ContourDash { }; };
#include <memory> #include <iostream> #include "CondTools/SiPixel/test/SiPixelCondObjOfflineBuilder.h" #include "FWCore/ServiceRegistry/interface/Service.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h" #include "Geometry/CommonDetUnit...
// Copyright (c) 2019 The Chromium Embedded Framework 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 was generated by the CEF translato...
/**************************************************************************************** * @author: kzvd4729 created: Feb/02/2021 16:32 * solution_verdict: Accepted language: GNU C++14 * run...
#include "cpu.h" #include "gtest/gtest.h" #include "utils.h" class StackTest : public ::testing::Test { protected: StackTest() {} ~StackTest() {} }; TEST(StackTest, PushPop16) { const uint16_t EXPECTED_HL = 0x1234; CPU* cpu = getTestingCPU(); cpu->Set16Bit(Register_HL, EXPECTED_HL); cpu->Push16Bit(cpu->...
// Copyright (c) 2019, QuantStack and Mamba Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #include "mamba/version.hpp" #include "mamba/core/fetch.hpp" #include "mamba/core/context.hpp" #include "mamba/core/thre...
/***************************************************//** * @file OBPIntegrationTimeExchange.cpp * @date January 2011 * @author Ocean Optics, Inc. * * LICENSE: * * SeaBreeze Copyright (C) 2014, Ocean Optics Inc * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this so...
//%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...
// Copyright (c) 2013 The Chromium Embedded Framework 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 "include/base/cef_bind.h" #include "include/cef_task.h" #include "include/cef_v8.h" #include "include/...
// Copyright (c) 2018-2019 The BIGKEYCOIN 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/bitcoin-config.h> #endif #include <cstdio> // for fileno(), stdin #ifd...
#include <cstdio> int main(){ int t; scanf("%d", &t); while(t--){ int n, p; scanf("%d %d", &n, &p); int m = 2 * n + p; for(int a = 1; a <= n; a++){ for(int b = a + 1; b <= n; b++){ printf("%d %d\n", a, b); --m; if(m <= 0){brea...
#include "ray.hpp" Ray::Ray(const Vec2& p, const Vec2& v) : origin(p), direction(v) { direction.normalize(); } Vec2 Ray::getOrigin() const { return origin; } Vec2 Ray::getDirection() const { return direction; } void Ray::setOrigin(const Vec2& p) { origin = p; } void Ray::setDirection(const Vec2& v)...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Handle.hpp> #include <RED4ext/ISerializable.hpp> #include <RED4ext/Scripting/Natives/Generated/anim/FloatLink.hpp> #include <RED4ext/Scripting/Natives/Generated/anim/NamedTrackInde...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
// system includes #include <map> #include <vector> #include <algorithm> // user includes #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Parame...
//================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file apCLEvent.cpp /// //================================================================================== //----...
/* Copyright (c) 2015, Advanced Micro Devices, 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 and ...
#include "stdafx.h" #include "CustomZone.h" //#include "xrRender/KinematicsAnimated.h" #include "xrRender/KinematicsAnimated.h" #include "ZoneVisual.h" #include "xrServer_Objects_ALife_Monsters.h" //#include "xrRender/KinematicsAnimated.h" #include "xrRender/RenderVisual.h" CVisualZone::CVisualZone() {} CVisualZone::~C...
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi f...
#include "game.h" #include "menu.h" Menu::Menu() { _activeMenu = 0; _gameTypeMenu = new MenuSet(43, 100, 90, 5, 1, 0, "Game Type"); _gameTypeMenu->addOption("Practice", Game::GAME_TYPE_PRACTICE); _gameTypeMenu->addOption("Easy", Game::GAME_TYPE_EASY); _gameTypeMenu->addOption("Medium" , Game::GAME_TYPE_MEDIUM); ...
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // //********************************************************* #include "pch.h" #include "Scenario2_OvenClientWRL.xaml.h" #include "MainPage.xaml.h" #include "..\Server\Microsoft.SDKSamples.Kitchen.h" usin...
// Copyright 2019, The maxGUI Contributors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MAXGUI_FORM_HPP #define MAXGUI_FORM_HPP #include <max/Compiling/Bitmask.hpp> #include <maxGUI/Control.hpp> #include <memory> #include <string...