text
stringlengths
7
961k
//////////////////////////////////////////////////////////////////////////////// // Common/GraphicsReferenceState.cpp (Leggiero/Modules - Graphics) // // Implementation related to Graphics Module's Reference States //////////////////////////////////////////////////////////////////////////////// // My Header #include ...
/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info.com) ** ** This file is part of a Qt Solutions component. ** ** Commercial Usage ** Licensees holding valid Qt Solutions lice...
/* * * Copyright (C) 2015-2022, Open Connections GmbH * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation are maintained by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmseg * * Author:...
#include <matrix/math.hpp> #include <gtest/gtest.h> using namespace matrix; TEST(MatrixUnwrapTest, UnwrapFloats) { const float M_TWO_PI_F = float(M_PI * 2); float unwrapped_angles[6] = {0.0, 0.25, 0.5, 0.75, 1.0, 1.25}; float wrapped_angles[6] = {0.0, 0.25, 0.5, -0.25, 0.0, 0.25}; for (int i = 0; i < 6; i++) { ...
#include <stdio.h> int main() { char s[15]; while (scanf("%s", s) == 1) { if (s[0] == s[6] && s[5] == s[11] && s[1] == s[7] && s[2] == s[8] && s[4] == s[10] && s[3] == s[9] || s[0] == s[6] && s[5] == s[11] && s[1] == s[8] && s[2] == s[10] && s[4] == s[9] && s[3] == s[7] || s[0] == s[6] && s[5] == s[11] && s[...
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT AN...
#include <unistd.h> #include <cstring> #include <fmpi/Pinning.hpp> #include <fmpi/concurrency/Dispatcher.hpp> #include <fmpi/concurrency/Future.hpp> #include <fmpi/mpi/Environment.hpp> #include <iostream> #include <rtlx/ScopedLambda.hpp> #include <sstream> #include "osu.hpp" char *s_buf, *r_buf; auto irecv( voi...
#include <ctime> #include <fstream> #include <iostream> #include <string> #include <oqs/oqs.h> /* algorithm: What algorithm the instance of the class is using public_key_length: Bytes of the public key private_key_length: Bytes of the private key signature_length: Bytes of the signature length generate_keypair()...
// Copyright (c) 2010 Satoshi Nakamoto // 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 zyte developers // Distributed under the MIT software license, see the accompanying // file COPYING or htt...
//$Id$ //------------------------------------------------------------------------------ // ObjectWrapper //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2018 United States Government as re...
/* Copyright 2016 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...
//===--- swift-ide-test.cpp - IDE functionality testing application -------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
// // MessageOut.hh // // Copyright (c) 2017 Couchbase, Inc 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 // // Unl...
/* By: facug91 From: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1256 Name: Poker Hands Number: 10315 */ #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <cstring> #include <cmath> #include <algorithm> #include <vector> #include ...
// Copyright (c) 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 "content/browser/renderer_host/close_listener_host.h" #include "content/browser/web_contents/web_contents_impl.h" #include "content/public/c...
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers // // This file is part of Urbancash. // // Urbancash 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 version 3 of...
#include <boost/python.hpp> #include <boost/cstdint.hpp> #include <Magick++/Drawable.h> #include <Magick++.h> using namespace boost::python; namespace { struct Magick_PathClosePath_Wrapper: Magick::PathClosePath { Magick_PathClosePath_Wrapper(PyObject* py_self_): Magick::PathClosePath(), py_self(py_sel...
// Copyright 2019 CryptoGarage /** * @file cfdapi_address.cpp * * @brief \~english implementation of address operation that uses cfd-api * \~japanese cfd-apiで利用するAddress操作の実装ファイル */ #ifndef CFD_DISABLE_ELEMENTS #include "cfd/cfdapi_elements_address.h" #include <string> #include <vector> #include "cfd/cfd_eleme...
// Time: O(nlogn) // Space: O(n) /** * Definition for an interval. * struct Interval { * int start; * int end; * Interval() : start(0), end(0) {} * Interval(int s, int e) : start(s), end(e) {} * }; */ class Solution { public: vector<int> findRightInterval(vector<Interval>& intervals) { ...
#include <curl/curl.h> #include <stdio.h> #include <fstream> #include <string> #include "cppcodec/base64_default_rfc4648.hpp" #include "json.hpp" using json = nlohmann::json; struct MemoryStruct { char *memory; size_t size; }; static size_t writeMemoryCallback(void *contents, size_t size, size_t nmemb, ...
class Solution { public: vector<int> searchRange(vector<int>& nums, int target) { if (nums.size() == 0) return {-1, -1}; int l = 0, r = nums.size(); while (l + 1 < r) { int mid = (l + r) >> 1; if (nums[mid] <= target) l = mid; else r = mid; ...
/*! @file @brief CViewCommanderクラスのコマンド(編集系 高度な操作(除単語/行操作))関数群 2012/12/17 CViewCommander.cpp,CViewCommander_New.cppから分離 */ /* Copyright (C) 1998-2001, Norio Nakatani Copyright (C) 2000-2001, jepro, genta, みつ Copyright (C) 2001, MIK, Stonee, Misaka, asa-o, novice, hor, YAZAKI Copyright (C) 2002, hor, YAZAKI, novi...
/* * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. 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 Foundat...
// 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 "net/quic/test_tools/mock_crypto_client_stream_factory.h" #include "base/lazy_instance.h" #include "net/quic/quic_crypto_client_stream.h" #i...
#include "qchartviewer.h" #include <time.h> #include <QMouseEvent> #include <QToolTip> #include <QCursor> #include <QBitmap> ///////////////////////////////////////////////////////////////////////////// // QChartViewer // // Build in mouse cursors for zooming and scrolling support // static QCursor &getZoomInCursor()...
// // FILE NAME: CIDWUtils_TextOut.hpp // // AUTHOR: Dean Roddey // // CREATED: 05/27/2015 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opensou...
#include <iostream> #include <stdexcept> #include "Database.h" #include "Record.h" using namespace std; namespace Inventory { Record& Database::addRecord(const string& name, const string& countryOfOrigin) { Record theRecord(name, countryOfOrigin); theRecord.setRecordNumber(mNextRecordNumber++); theRecord....
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "lexico.h" #include "tabela_simbolos.h" #include "simbolos.h" escopo::escopo(escopo* _pai, const char* _nome) { pai = _pai; nome = _nome; tab_variaveis = new tabela_simbolos(); tab_registros = new tabela_simbolos();...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2009-2013, Image Engine Design 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: // // ...
#ifndef BOOST_MPL_SET_SET0_HPP_INCLUDED #define BOOST_MPL_SET_SET0_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2003-2004 // Copyright David Abrahams 2003-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) ...
#include <bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 10; long long seg[4 * MAXN]; long long lz[4 *MAXN]; void shift(int id, int b, int e) { lz[id << 1] += lz[id]; lz[id << 1 | 1] += lz[id]; int mid = (b+e) >> 1; seg[id << 1] += lz[id] * (mid - b); seg[id << 1 | 1] += lz[id] * (e - ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2014-2015, Oracle and/or its affiliates. // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle #include <iostream> #ifndef ...
// 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 "nacl_io/real_pepper_interface.h" #include <assert.h> #include <stdio.h> #include <ppapi/c/pp_errors.h> namespace nacl_io { #include "nacl...
#include "MBTB_MoreauJeanOSI.hpp" #define DEBUG_STDOUT //#define DEBUG_MESSAGES //#define DEBUG_WHERE_MESSAGES #include "siconos_debug.h" //#define STANDARD_ACTIVATION #define FIRSTWAY_ACTIVATION MBTB_MoreauJeanOSI::MBTB_MoreauJeanOSI(double theta, double gamma): MoreauJeanOSI(theta, gamma), _deactivateYPosThresho...
#include "vulkan_render/vulkan_shader_effect.h" #include "vulkan_render/render_device.h" #include "vulkan_render/vulkan_shader_data.h" #include "core/vk_initializers.h" #include "core/vk_engine.h" #include "utils/file_utils.h" #include <spirv_reflect.h> #include <fstream> #include <vector> #include <algorithm> #in...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/eventbridge/model/UpdateConnectionApiKeyAuthRequestParameters.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aw...
// 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 "V8FontFaceSetForEachCallback.h" #include "bin...
/* * 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 2003-2016 Joaquin M Lopez Munoz. * 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/multi_index for library home page. */ #pragma once #include <type_traits> name...
/* * Copyright 2004-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) 2020 Massachusetts Institute of Technology // SPDX short identifier: BSD-2-Clause // // File Name: // Program: Common Evaluation Platform (CEP) // Description: // Notes: // //**************************...
// 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 "ui/gfx/win/window_impl.h" #include <list> #include "base/bind.h" #include "base/debug/alias.h" #include "base/macros.h" #include "base/mem...
/* * 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 <iostream> using namespace std; void soma(int *a, int b){ *a=*a+b; } void vec(int *v,int tam){ int i; for(i=0;i<tam;i++) v[i]=0; } int main() { int var = 1; int *ponteiro = NULL; //DECLARAÇÃO DE UM PONTEIRO ponteiro = &var; //ASSOCIAÇÃO DE UM P...
// // @ClassName 2003 // @Description TODO // @Date 19-3-9 下午11:03 // @Created by Insomnia // #include <iostream> using namespace std; int main() { double num; while (cin >> num) { printf("%.2f\n", num >= 0 ? num : -num); } return 0; }
// Copyright (c) 2018 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...
#include <istream> #include <iostream> #include "header/power_system_database.h" #include "header/steps_namespace.h" #include "header/toolkit/dynamic_simulator/dynamic_simulator.h" #include "header/toolkit/powerflow_solver/powerflow_solver.h" #include "header/basic/utility.h" #include "header/data_imexporter/psse_imexp...
// 2005-12-20 Paolo Carlini <pcarlini@suse.de> // Copyright (C) 2005 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software...
#include <memory> #include <sajson.h> #include <vector> const char* default_files[] = { "testdata/apache_builds.json", "testdata/github_events.json", "testdata/instruments.json", "testdata/mesh.json", "testdata/mesh.pretty.json", "testdata/nested.json", "testdata/svg_menu.json", "testdata/true...
#include <memory> #include "envoy/admin/v3/config_dump.pb.h" #include "envoy/common/exception.h" #include "envoy/config/core/v3/config_source.pb.h" #include "envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.h" #include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h" #include "common/common/base64.h" ...
//----------------------------------------------------------------------------- // 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...
/** * @file * @copyright This code is licensed under the 3-clause BSD license.\n * Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n * See LICENSE.txt for details. */ #include <Core/Interfaces/Calculator.h> #include <Utils/CalculatorBasics.h> #include <Utils/IO/Chemical...
// Copyright (c) 2011-2014 The Bitcoin Core developers // Copyright (c) 2017-2019 The ECODOLLAR developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "data/tx_invalid.json.h" #include "data/tx_valid.json.h" #in...
/* * Learning Vulkan - ISBN: 9781786469809 * * Author: Parminder Singh, parminder.vulkan@gmail.com * Linkedin: https://www.linkedin.com/in/parmindersingh18 * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal i...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 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 <bits/stdc++.h> using namespace std; /* * El objetivo es encontrar el mayor número que se pueda obtener * multiplicando dos números de esta secuencia. * * 10 * 8 1 6 3 4 10 3 9 14 2 */ int main() { vector<int> mtx; int n, x, m; cin >> n; m = n; while (n--) { cin >> x; ...
#include "../include/StringArray.h" //在类外实现函数 - 构造函数 StringArray::StringArray() { cout << "StringArray()构造函数" << endl; } //在类外实现函数 - 析构函数 StringArray::~StringArray() { cout << "~StringArray()析构函数" << endl; } //在类外实现函数 - input1()函数 void StringArray::input1() { cout << "input1()::" << endl; cout << "请输...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bip38.h" #include "init.h"...
/* * Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved * 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 ...
#include <bits/stdc++.h> using namespace std; // #include <atcoder/all> // using namespace atcoder; #define rep(i,n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int,int>; void chmin(int& x, int y){x = min(x,y);} void chmax(int& x, int y){x = max(x,y);} int main() { int a, b, w; cin >> a >> b...
#include "bitstream_archive_writer.h" #include "archive_int_compression.h" #include "solar/math/unit_convert.h" #include "solar/utility/type_convert.h" #include "solar/utility/trace.h" #include "solar/utility/unused_parameter.h" #include "solar/archiving/archivable.h" #include "solar/colors/color.h" namespace solar {...
/* * Copyright (C) 2008-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ // Sample usage: // pin -mt -t thread_callback -- thread_wait #include <stdio.h> #include <iostream> #include "pin.H" FILE* out; PIN_LOCK pinLock; int numThreads; typedef int (*FUNCPTR_ADD)(int, int); AFUNPTR pf_Add = 0; VOID T...
//-------------------------------------------------------------------------------------------------- // Copyright (c) YugaByte, 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 // // ht...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
#include "zrtp.hh" #include "zrtp/commit.hh" #include "zrtp/confack.hh" #include "zrtp/confirm.hh" #include "zrtp/dh_kxchng.hh" #include "zrtp/hello.hh" #include "zrtp/hello_ack.hh" #include "socket.hh" #include "debug.hh" #include "crypto.hh" #include "random.hh" #include <cstring> #include <thread> using namespac...
#pragma once #ifndef _PONGREINFORCEMENTEXAMPLE_H_ #define _PONGREINFORCEMENTEXAMPLE_H_ #include "LightBulbApp/TrainingPlans/AbstractReinforcementTrainingPlan.hpp" class PongReinforcementEnvironment; class PongPolicyGradientExample : public LightBulb::AbstractReinforcementTrainingPlan { private: protected: LightBul...
#include "MacroExpanderAction.h" #include <clang/Basic/SourceManager.h> #include <clang/Lex/Preprocessor.h> #include <clang/Lex/PreprocessorOptions.h> #include <clang/Rewrite/Core/Rewriter.h> #include <clang/Rewrite/Frontend/Rewriters.h> #include <llvm/Support/Path.h> #include <llvm/Support/raw_ostream.h> #include <un...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "perfectcoingui.h" #include "perfectcoinunits.h" #include "clientmodel.h" #include "guiconstants.h" #include "guiut...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal_config.h" #include "pal_io.h" #include "pal_utilities.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <fnmatch.h> #include <poll.h>...
/* * Copyright (c) 2010-2014 OTClient <https://github.com/edubart/otclient> * * 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...
/************************************************************************************************ * myImageViewer.cxx * * Created by: Michael Kuczynski * Created on: 19/01/2019 * Description: VTK based program to display DICOM or NIfTI images. * Allows for adjustment of zoom, window...
#include "TypeChecker.h" #include "Error.h" #include "Scope.h" using namespace std; using namespace common; using namespace semantics; TypeChecker::TypeChecker(Scope *Scp) : CurScope(Scp), GlobalScope(Scp) {} void TypeChecker::visit(Program &Node) { // Visit children for (auto &Decl : Node.Decls) { D...
/* cppcryptfs : user-mode cryptographic virtual overlay filesystem. Copyright (C) 2016-2019 Bailey Brown (github.com/bailey27/cppcryptfs) cppcryptfs is based on the design of gocryptfs (github.com/rfjakob/gocryptfs) The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy o...
#include "geo.h" #include <chrono> #include <cstdint> #include <functional> #include <limits> #include <regex> #include <iostream> #include <fstream> #include "ncode/map_util.h" #include "ncode/strutil.h" namespace nc { namespace geo { static constexpr size_t kEntriesPerRow = 19; static constexpr size_t kNameIndex ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The LogisCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYI...
#include <bits/stdc++.h> using namespace std; int main() { int n, d, m, p; cin >> n >> d >> m >> p; if (n*d > m *p) cout << "NERF" << endl; else cout << "BUFF" << endl; return 0; }
// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "RefBaseWorkload.hpp" #include <armnn/backends/WorkloadData.hpp> namespace armnn { class RefResizeWorkload : public RefBaseWorkload<ResizeQueueDescriptor> { public: using RefBaseWorkload<ResizeQueueDesc...
// fstconnect.cc // 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, softwa...
#ifndef DUSK_UTILITY_STRINGS_HPP #define DUSK_UTILITY_STRINGS_HPP #include <Dusk/Config.hpp> #include <iostream> #include <string> using std::string; namespace dusk { string Basename(const string& filename); string Dirname(const string& filename); } // namespace dusk #endif // DUSK_UTILITY_STRINGS_HPP
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
/* * Copyright (c) 2018 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2023-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an MIT-style License that can be foun...
// Copyright 2020-2021 CesiumGS, Inc. and Contributors #include "CesiumCreditSystem.h" #include "Cesium3DTilesSelection/CreditSystem.h" #include "CesiumCreditSystemBPLoader.h" #include "CesiumRuntime.h" #include "Engine/World.h" #include <string> #include <vector> /*static*/ UClass* ACesiumCreditSystem::CesiumCreditS...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "api.h" /** @file api_map_objects.cc exports all map-objects. */ #include "api_obj_desc_base.h" #include "api_simple.h" #include "../api_class.h" #include "../api_function.h" #include "../../simobj.h" #inc...
// TODO: Add copyright #include <SmartPeak/test_config.h> #include <SmartPeak/pipelines/LCMS_MRM_Unknown_example.h> #include <SmartPeak/core/Filenames.h> #include <SmartPeak/core/Utilities.h> using namespace SmartPeak; using namespace std; void test_main_LCMS_MRM_QCs() { const std::string main_dir = SMARTPEAK_GET...
#include "TentacleAnimInstanceProxy.h" FTentacleAnimInstanceProxy::FTentacleAnimInstanceProxy() { }
/* * MIT License * * Copyright (c) 2021 Robert Grupp * * 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 <bits/stdc++.h> #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 first #define se second #define pb push_back #define mp make_pair #define foreach(it, v) for(__typeof((v).begin()) it=(v).begin(); it != (v).end(); ++it) #define meta __FUN...
/** * 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 2018-2021 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once // // Local declaration of the device batch vector. // template <typename T, size_t PAD, typename U...
#include <iostream> #include <cstdlib> #include "Controller.h" Controller::Controller(QObject * parent) :QObject(parent),referee(0){ // Instantiate a referee referee = new Referee(3, this); // Connect this->slots with Angelina's signals connect(referee, SIGNAL(disconnected()), this, SLOT(slotDisconne...
#include <unordered_map> #include <unordered_set> #include <functional> #include <iterator> #include <memory> #include <type_traits> #include <gtest/gtest.h> #include <entt/entity/entt_traits.hpp> #include <entt/entity/registry.hpp> ENTT_SHARED_TYPE(int) struct listener { template<typename Component> void inc...
#include "game.h" #include <iostream> #include "renderer.h" #ifdef OP_UNIX #include <unistd.h> #endif #include <stdint.h> #include <array> #include <cstdlib> #include <unordered_map> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/matrix_access.hpp> #include <glm/gtc/quaternion.hpp> #include <glm/gtx/pr...
/*========================================================================= Program: Visualization Toolkit Module: vtkXMLPolyDataWriter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This soft...
/* * Copyright 2004-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...
/* core_mesh.cpp - Copyright 2019/2020 Utrecht University 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 l...
// 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...
/************************************************************************/ /* */ /* Copyright 2008-2009 by Ullrich Koethe and Rahul Nair */ /* */ /* This file is p...