text
stringlengths
7
961k
#ifndef BOOST_GEOMETRY_PROJECTIONS_EQC_HPP #define BOOST_GEOMETRY_PROJECTIONS_EQC_HPP // Boost.Geometry - extensions-gis-projections (based on PROJ4) // This file is automatically generated. DO NOT EDIT. // Copyright (c) 2008-2015 Barend Gehrels, Amsterdam, the Netherlands. // Use, modification and distribution is s...
// // Created by berth on 12/08/2021. // Copyright (c) 2021 Tudor Oancea & Mattéo Berthet. All rights reserved. // Licensed under the MIT license (see https://github.com/tudoroancea/quetzalcoatl/blob/develop/LICENSE) // #include "MainWindow.hpp" #include <QApplication> int main(int argc, char* argv[]) { QApplic...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
#include <GUI\Responsive.hpp> Responsive::Responsive(AssetManager* _assets) { EXP::log("[Info]Constructing Responsive... " + utils::tostring(this)); assets = _assets; EXP::log("[Info]Responsive has been constructed: " + utils::tostring(this)); } Responsive::~Responsive() { EXP::log("[Info]Destructing Responsive......
#include <libsystem/core/CString.h> #include <libsystem/eventloop/Timer.h> #include <libsystem/process/Process.h> #include <libsystem/system/System.h> #include <libutils/Path.h> #include <libwidget/Application.h> #include <libwidget/Menu.h> #include <libwidget/Screen.h> #include <libwidget/Widgets.h> static constexpr ...
/* nsls2Main.cpp */ /* Author: Marty Kraimer Date: 17MAR2000 */ #include <stddef.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include "epicsExit.h" #include "epicsThread.h" #include "iocsh.h" int main(int argc,char *argv[]) { if(argc>=2) { iocsh(argv[1]); ...
// // ITextUtils.hpp // G3M // // Created by Diego Gomez Deck on 1/10/13. // // #ifndef __G3M__ITextUtils__ #define __G3M__ITextUtils__ #include <string> class IImage; class Color; class IImageListener; #include "LabelPosition.h" class ITextUtils { private: static ITextUtils* _instance; public: static void...
// Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University of // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and Th...
#ifndef MOJO_CLIENT_CONFIGURATION_HPP #define MOJO_CLIENT_CONFIGURATION_HPP #include "Mojo/Configuration/GameConfiguration.hpp" #include "Mojo/Configuration/WindowConfiguration.hpp" #include <nlohmann/json.hpp> namespace mojo { /** @brief Model for the configuration that can be defined by applications that...
// Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <base/at_exit.h> #include <base/command_line.h> #include <base/threading/thread_task_runner_handle.h> #include <brillo/flag_helper.h> #include...
#include "CnpxAnalysisResult.h" using namespace std; CnpxAnalysisResult::CnpxAnalysisResult() { analysis.clear(); id = 0; } void CnpxAnalysisResult::write(FILE* f, int tabs) { int t = tabs; if (t>-1) t++; NPXprintTabs(f, tabs); fprintf(f, "<analysis_result analysis=\"%s\"", analysis.c_str()); if (id >...
/* Copyright 2015 Samsung Electronics Co., LTD * * 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...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CXformSelect2Filter.cpp // // @doc: // Implementation of transform //--------------------------------------------------------------------------- #include "gpos/base....
#include "vm/FilePool.h"
// 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/ui/webui/ntp/new_tab_ui.h" #include <memory> #include <string> #include "base/bind.h" #include "base/feature_list.h" #inclu...
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Atom/Feature/Utils/GpuBufferHandler.h> #include <Atom/RHI/Buffer.h> #include <Atom/RHI/Fac...
// copyright defined in LICENSE.txt // todo: remove or replace everything in this file #include <eosio/name.hpp> #include <eosio/temp_placeholders.hpp> #include <memory> extern "C" void prints(const char* cstr) { print_range(cstr, cstr + strlen(cstr)); } extern "C" void prints_l(const char* cstr, uint32_t len) { pri...
#include "data.h" Data::Data(QObject *parent) :QObject(parent){ } Data::~Data(){ } QVariant Data::parameter(QString key){ return parameters.value(key); } void Data::setParameter(QString key, QVariant value){ parameters.insert(key,value); } QList<QString> Data::parameterList(){ return parameters.keys();...
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // Copyright 2020 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. // // Auto-generated file. Do not edit! // Specification: test/f16-avgpool-...
#include <algorithm> #include <cassert> #include <climits> #include <iostream> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> struct Edge { int from, to; int capacity; int capacity_cur; int flow; bool CanGo() { return flow < capacity_cur; } int Re...
// Copyright (C) 2004, 2009 International Business Machines and others. // All Rights Reserved. // This code is published under the Eclipse Public License. // // $Id: IpIpoptData.hpp 2706 2018-01-15 04:11:56Z stefan $ // // Authors: Carl Laird, Andreas Waechter IBM 2004-08-13 #ifndef __IPIPOPTDATA_HPP__ #defin...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "AdaptiveSubmitAction.h" #include "Util.h" using namespace Microsoft::WRL; using namespace ABI::AdaptiveNamespace; using namespace ABI::Windows::Data::Json; namespace AdaptiveNamespace { HRESU...
#define CATCH_CONFIG_MAIN #define VECTOR_QUEUE_HAS_SSE #include <catch.hpp> #include <vector_queue.h> template <class T> bool equals(const vector_queue<T>& q, std::initializer_list<T> l) { return std::equal(q.begin(), q.end(), l.begin(), l.end()); } TEST_CASE("push_pop") { vector_queue<int> q{1,2,3,4}; REQUIRE(equ...
// 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 requir...
#include "ChOgreCamera.h" namespace ChOgre { ChOgreCamera::ChOgreCamera(Ogre::Camera* Camera) : m_pCamera(Camera) {} ChOgreCamera::ChOgreCamera(const ChOgreCamera& rhs) { if (this != &rhs) { m_pCamera = rhs.m_pCamera; } } ChOgreCamera::ChOgreCamera(ChOgreCamera&& lhs) { if (this != &lhs) { ...
#include "vars.h" #include<iostream> using std::cout; int main() { cout<<"Echo value: "<< echo_variable(5)<<"\n"; return 0; }
// // License type: BSD 3-Clause License // License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE // // Created by Stephane Bourque on 2021-03-04. // Arilia Wireless Inc. // #include "uDeviceRegistry.h" #include "uCentralWebSocketServer.h" #include "RESTAPI_handler.h" #includ...
/* * 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 ...
#include "stdafx.h" #include <string> #include <map> #include <vector> #include <list> #include "../Application.h" #include "../ModuleScripting.h" #include "../ModuleInput.h" #include "../ModuleWindow.h" #include "../ModuleGOManager.h" #include "../GameObject.h" #include "../ComponentScript.h" #include "../ComponentTr...
// Copyright 2021 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 w...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2018 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...
/////////////////////////////////////////////////////////////////////////////// // Copyright Christopher Kormanyos 2013 - 2020. // 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 <chrono> #include <...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Gaon Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "signverifym...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2011. 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/interpr...
// 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 "src/identity/lib/oauth/oauth_response.h" #include "lib/fsl/socket/strings.h" #include "rapidjson/error/en.h" #include "src/lib/fxl/logging.h" #i...
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-filecheck-ir-name _ // RUN: %clang_cc1 -DCHECK -verify -fopenmp -x c++...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
#include <iostream> #include <iomanip> #include "color/color.hpp" int main( int argc, char *argv[] ) { ::color::cmy< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double ::color::hsi< std::uint8_t > c1; //!< Instead of std...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_calloc_05.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-05.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines ...
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
/*! * Copyright 2015-2019 by Contributors. * \brief XGBoost Amalgamation. * This offers an alternative way to compile the entire library from this single file. * * Example usage command. * - $(CXX) -std=c++0x -fopenmp -o -shared libxgboost.so xgboost-all0.cc -ldmlc -lrabit * * \author Tianqi Chen. */ // me...
#include "ros/ros.h" #include "std_msgs/Float64.h" // Total number of Joints const int Joints = 6; // Loop Rate const int loop_rate_val = 100; int main(int argc, char **argv) { ROS_INFO("Initialising sin_mover Node....."); // Initialise Sine-Mover Node ros::init(argc, argv, "sin_mover"); ROS_INFO("Initialised ...
#include "core/mm.h" #include <arch.h> #include <assert.h> #include <stdbool.h> #include <stddef.h> #include <algorithm> #include <utility> #include "core/addr-mgr.h" #include "core/cleanup.h" #include "core/macros.h" #include "libc/macros.h" #include "libc/malloc.h" namespace mm { namespace { AddrMgr g_kernel_va_...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist...
#include <catch.hpp> #include <csari/observer.hpp> TEST_CASE("pipeSubject") { auto superSubject1 = csari::Subject<double, double>{}; auto superSubject2 = csari::Subject<double>{}; auto pipe = csari::Pipe<double>{}; pipe.createPipe(superSubject1.asObservable(), [](csari::Subject<double>& pipe...
#include "leetcode.hpp" /* 523. 连续的子数组和 给定一个包含非负数的数组和一个目标整数 k,编写一个函数来判断该数组是否含有连续的子数组,其大小至少为 2,总和为 k 的倍数,即总和为 n*k,其中 n 也是一个整数。 示例 1: 输入: [23,2,4,6,7], k = 6 输出: True 解释: [2,4] 是一个大小为 2 的子数组,并且和为 6。 示例 2: 输入: [23,2,6,4,7], k = 6 输出: True 解释: [23,2,6,4,7]是大小为 5 的子数组,并且和为 42。 说明: 数组的长度不会超过10,000。 你可以认为所有数字总和在 32 ...
//************************************************************************************************** // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Description: Implementation of ossim2dTo2dTransformFactory. // //******************************************************...
// 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. #include <test/test_bitcoin.h> #include <banman.h> #include <chainparams.h> #include <consensus/consensus.h> #include <conse...
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2013 Google Inc. All rights reserved. // http://code.google.com/p/ceres-solver/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistr...
#include "extra_extra.h" #include <iostream> void ExtraExtra() { std::cout << "ExtraExtra" << "\n"; }
#include <iostream> #include <sys/sysinfo.h> int main() { struct sysinfo info; while(true) { sysinfo(&info); system("clear"); std::cout << "CPU: " << info.bufferram << '\n'; std::cout << "Ram: " << info.totalram - info.freeram << '\n'; } }
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "gtest/gtest.h" #include "ngraph/ngraph.hpp" #include "util/type_prop.hpp" using namespace std; using namespace ngraph; TEST(type_prop, param_partial_rank_dynamic) { auto a = make_shared<op::Parameter>(element::f32, P...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2012,2013,2014,2015,2019, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory a...
// MIT Licensed (see LICENSE.md). #pragma once namespace Plasma { template <typename ResourceList> class ResourceListOperation : public Operation { public: UndoHandle mObjectHandle; // Storing a pointer to this is safe because it only ever points to native // types, which never get destructed BoundTypeHandle...
#include<bits/stdc++.h> using namespace std; int main() { int t=1; cin>>t; while(t--) { int n; cin>>n; if(n%7==0) { cout<<n<<endl; continue; } int rem = n%10; int y = 9-rem; int x=n, flag=0; while(y--) ...
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
/** * * @file State.cpp * * This file implements class State. */ /* * $Author: dggoodwin $ * $Date: 2006/11/07 13:47:47 $ * $Revision: 1.16 $ * * Copyright 2003-2004 California Institute of Technology * See file License.txt for licensing information * */ #include "utilities.h" #include "ctexceptio...
#include <queue> #include <vector> using namespace std; class Solution { public: vector<vector<int>> highestPeak(vector<vector<int>> &isWater) { int M = isWater.size(), N = isWater[0].size(); vector<vector<int>> res(M, vector<int>(N, -1)); queue<pair<int, int>> q; for (int i = 0; i < M; ++i) { for (int ...
#include "saber/core/context.h" #include "saber/funcs/reverse_sequence.h" #include "saber/core/tensor_op.h" #include "saber/saber_types.h" #include "test_saber_base.h" #include "test_saber_func.h" #include <vector> using namespace anakin::saber; //native cpu version template <typename dtype, typename TargetType_D, ...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2018 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...
#pragma once // bit_functions.hpp: definitions of helper functions for bit operations on integers and floats // // Copyright (C) 2017-2020 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <sstream> #include <iomanip> ...
#include "../host/typedefs.h" void bc2_gen_1(hls::stream< bit32 > & Input_1, hls::stream< bit32 > & Output_1){ #pragma HLS INTERFACE ap_hs port=Input_1 #pragma HLS INTERFACE ap_hs port=Output_1 #include "../host/bc2_par_1.h" Word in_tmp; bit32 out_tmp; loop_redir: for(int i=0; i<20480; i++){ #pragma HLS PIPELINE II=...
#include <sofa/core/PluginManager.h> #include <sofa/core/Plugin.h> #include <gtest/gtest.h> #include <sofa/helper/system/FileSystem.h> #include "PluginMonitor/PluginMonitor.h" using namespace sofa::helper::system; using sofa::core::PluginManager; const std::string testPluginsDir(std::string(SOFA_TEST_PLUGINS_DIR)+"/...
/* ============================================================================== ConfigControls.cpp Created: 22 Jul 2017 10:24:22pm Author: Brian Williams ============================================================================== */ #include "../JuceLibraryCode/JuceHeader.h" #include "ConfigCon...
#include "scoreboard.h" Scoreboard::Scoreboard() :_p1(0), _p2(0) {} void Scoreboard::update_p1(int score) { _p1 = score; } void Scoreboard::increment_p1() { _p1++; } void Scoreboard::decrement_p1() { _p1--; } int Scoreboard::p1() { return _p1; } void Scoreboard::update_p2(int score) { _p2 ...
// Copyright 2017 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 <memory> #include <utility> #include <vector> #include "ash/public/cpp/app_list/app_list_config.h" #include "base/bind.h" #include "base/run_loo...
/* * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) * Copyright (C) 2004-2020 Apple Inc. All rights reserved. * Copyright (C) 2008, 2009 Torch Mobile, Inc. All rights reserved. * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. * * This library is free software; you can redistri...
#include "gpCore/PCH.h" #include "gpCore/Rendering/AsyncRendering.h" #include "gpCore/Rendering/RenderExtractor.h" #include "gpCore/Rendering/Renderer.h" gpRenderExtractor* gpRenderExtractor::s_pInstance = nullptr; EZ_BEGIN_SUBSYSTEM_DECLARATION(GamePhysics, RenderExtractor) BEGIN_SUBSYSTEM_DEPENDENCIES "...
// Copyright Louis Dionne 2013-2016 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <boost/hana/tuple.hpp> #include <utility> namespace hana = boost::hana; // Make sure that the tuple(Yn&&...) is not preferred o...
// fstbin/fstaddselfloops.cc // Copyright 2009-2011 Microsoft Corporation // 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. // You may obtain a copy of the License...
#include "TrackingModelMath.h" #include "TrackerMath.h" #include "DeviceInterface.h" #include "MathAlignment.h" #include "opencv2/opencv.hpp" bool compute_all_possible_tri_index_combinations( std::size_t point_count, std::vector<t_tri_index_tuple> &out_triangle_indices) { out_triangle_indices.clear(); if ...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "ocl_common.hpp" #include "ocl_engine.hpp" #include "ocl_stream.hpp" #include "cldnn/runtime/memory.hpp" #include <cassert> #include <iterator> #include <mutex> #include <memory> namespace cldnn { namespace ...
#ifndef BRIGHTNESSDEMOVIEW_HPP #define BRIGHTNESSDEMOVIEW_HPP #include <gui_generated/brightnessdemo_screen/brightnessDemoViewBase.hpp> #include <gui/brightnessdemo_screen/brightnessDemoPresenter.hpp> class brightnessDemoView : public brightnessDemoViewBase { public: brightnessDemoView(); virtual ~brightnessD...
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct Node { int Id, Left, Right, Index, Level; } treeNode[11]; int hasParent[11] = { 0 }; vector<int> inOrder; void dfs(int root, int index, int level) { if (treeNode[root].Right != -1) dfs(treeNode[root].Right, 2 * index + 2, lev...
#include "leetcode.hpp" /* 833. 字符串中的查找与替换 对于某些字符串 S,我们将执行一些替换操作,用新的字母组替换原有的字母组(不一定大小相同)。 每个替换操作具有 3 个参数:起始索引 i,源字 x 和目标字 y。规则是如果 x 从原始字符串 S 中的位置 i 开始,那么我们将用 y 替换出现的 x。如果没有,我们什么都不做。 举个例子,如果我们有 S = “abcd” 并且我们有一些替换操作 i = 2,x = “cd”,y = “ffff”,那么因为 “cd” 从原始字符串 S 中的位置 2 开始,我们将用 “ffff” 替换它。 再来看 S = “abcd” 上的另一个例子,如果我...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
#ifndef BASEPAGE_HPP_ #define BASEPAGE_HPP_ #include "MiniPlayer.hpp" #include "src/parser/YoutubeClient.hpp" #include "GlobalPlayerContext.hpp" #include "src/parser/YoutubeClient.hpp" #include "src/parser/models/StorageData.hpp" #include "src/parser/models/VideoMetadata.hpp" #include <bb/cascades/Page> #include <bb/...
#include "huaweicloud/ocr/v1/model/IdCardRequestBody.h" namespace HuaweiCloud { namespace Sdk { namespace Ocr { namespace V1 { namespace Model { IdCardRequestBody::IdCardRequestBody() { image_ = ""; imageIsSet_ = false; url_ = ""; urlIsSet_ = false; side_ = ""; sideIsSet_ = false; retur...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode *reverseList...
/* * Copyright (c) 2015 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
// // Created by superbob on 2020-06-03. // #include "shader.hpp" // based on https://learnopengl.com/code_viewer_gh.php?code=includes/learnopengl/shader.h std::string Shader::shader_path {"../shaders/"}; void Shader::checkCompileErrors( GLuint shader, std::string type ){ GLint success; GLchar infoLog[1024]; if ( ...
/* * Copyright (c) 2020 Nobuyuki Umetani * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #if defined(_WIN32) // windows # define NOMINMAX // to remove min,max macro # include <windows.h> // should be before glfw3.h #endif #defin...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_struct_realloc_62a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-62a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Manage...
/* ************************************************************************ * Copyright 2016 Advanced Micro Devices, Inc. * ************************************************************************ */ #include <hip/hip_runtime.h> #include "rocblas.h" #include "status.h" #include "definitions.h" #include "device_temp...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__twoIntsStruct_calloc_62b.cpp Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: calloc Allocate data using calloc() * GoodSource: Allocate data on t...
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * 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; either version 2 of the License, or * (at your option) any l...
//---------------------------------------------------------------------------------- // File : asdxOnb.inl // Desc : Asura Orthonormal Basis Module. // Copyright(c) Project Asura. All right reserved. //---------------------------------------------------------------------------------- namespace asdx { //////////////...
#include <iostream> #include <memory> using namespace std; #include "Destroyable.h" // Let's suppose you have legacy code that uses plain pointers to track resources static bool legacy1() { Destroyable * ptr = new Destroyable; bool rc = ptr->init(); rc = rc && ptr->doStuff(); if (ptr != NULL) { ptr->destroy...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/*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...
/* * N2 * * https://github.com/draede/n2 * * Copyright (C) 2018 draede * * Released under the MIT License. * * 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,...
#include <iostream> #include <cstdlib> #include <new> #include <string> #include <fstream> using namespace std; int memory[5000]; int pnt = 0; int cnt = 0; int c; string temp; int open = 0; int close = 0; int prg; unsigned int Max; ifstream inFile; string fileName; string program; string str; void collectInput(){ ...
/** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful...
#include <ios> #include <fstream> #include <iostream> #include "headers/addressbus.hpp" #include "headers/cpu.hpp" #include "headers/screen.hpp" #include "headers/ppu.hpp" #include "headers/screen.hpp" #include "headers/controller.hpp" using namespace std; int main(int argc, const char *argv[]){ const char *arq...
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
#include "stdafx.h" #include <memory> #include "CppUnitTest.h" #include "Aquarium.h" #include "FishBeta.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace std; namespace Testing { TEST_CLASS(CAquariumTest) { public: TEST_METHOD_INITIALIZE(methodName) { extern wchar_t g_dir[];...
#include "duckdb/function/scalar/string_functions.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/common/vector_operations/vector_operations.hpp" #include "duckdb/planner/expression/bound_function_expression.hpp" #include "duckdb/storage/statistics/string_statistics.hpp" #include "utf8proc.hpp" namespace...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemStructure_AnvilBench_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //------------------------------------------...
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * 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 * ...