text
stringlengths
7
961k
// Copyright 2020 Glyn Matthews. // 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 <cassert> #define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include <nlohmann/json.hpp> #include <skyr/url.hpp> // ...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel //LIC// //L...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
/************************************************************ * * OPEN TRANSACTIONS * * Financial Cryptography and Digital Cash * Library, Protocol, API, Server, CLI, GUI * * -- Anonymous Numbered Accounts. * -- Untraceable Digital Cash. * -- Triple-Signed Receipts...
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #include <Gwen/Controls/Rectangle.h> using namespace Gwen; using namespace Gwen::Controls; GWEN_CONTROL_CONSTRUCTOR( Rectangle ) { m_Color = Gwen::Color( 255, 255, 255, 255 ); } void Rectangle::Render( Skin::Base* skin ) { skin->GetRender(...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2020 The MANTIS Coin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pubkey.h" #include <sec...
/* * Copyright 2016 WebAssembly Community Group participants * * 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...
// rs_config.cpp /** * Copyright (C) 2008 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 wil...
/// @file funcArgs.hpp /// @copyright /// Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com> /// Copyright 2016, Robin Gareus <robin@gareus.org> /// /// License: The MIT License (http://www.opensource.org/licenses/mit-license.php) /// /// Permission is hereby granted, free of charge, to any person obtaining a copy...
// Copyright (c) 2014-2016 The Dash Developers // Copyright (c) 2016-2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "obfuscationconfig.h" #include "ui_obfuscationconfig.h" #include "bitcoinuni...
/* * 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 <AzCore/Debug/Trace.h> #include <AzCore/std/typetraits/remove_pointer.h> #include <AzCore...
/* * Copyright (C) 2019-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/page_fault_manager/cpu_page_fault_manager.h" #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/helpers/debug_helpers.h" #include "shared/source/helpers/options.h" #i...
#pragma once #include <memory> class MpocQueue; class MpocQueueItem; class MpocQueueProducer { public: using queue_t = std::shared_ptr<MpocQueue>; explicit MpocQueueProducer(queue_t queue) noexcept; MpocQueueProducer(MpocQueueProducer&&) noexcept; MpocQueueProducer& operator=(MpocQueueProducer&&) noexcept; ~...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <...
/* * Copyright (C) 2012-2016 Open Source Robotics Foundation * * 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...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "QtIrbis.h" using irbis::fastParse32; using irbis::maxSplit; //========================================================= QList<TermPosting> TermPo...
class Solution { public: int findKthNumber(int m, int n, int k) { if (m > n) { swap(m, n); } int start = 1, end = m * n; while (start < end) { int mid = start + (end - start) / 2; int count = 0; for (int i = 1; i <= m; ++i) { ...
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; for (int i = 0; i < n.size(); i++) { n[i] = (n[i] == '1') ? '9' : '1'; } cout << n << endl; return 0; }
/* * Copyright (c) 2017-2019, Intel Corporation * * 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, merge, p...
#include "IPlugFaustDSP.h" #include "IPlug_include_in_plug_src.h" IPlugFaustDSP::IPlugFaustDSP(const InstanceInfo& info) : Plugin(info, MakeConfig(kNumParams, 1)) { InitParamRange(0, kNumParams-1, 1, "Param %i", 0., 0., 1., 0.01, "", IParam::kFlagsNone); // initialize kNumParams generic iplug params #if IPLUG_DSP...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef KAGOME_BASIC_WAITABLE_TIMER_HPP #define KAGOME_BASIC_WAITABLE_TIMER_HPP #include <boost/asio/basic_waitable_timer.hpp> #include <boost/asio/io_context.hpp> #include "clock/timer.hpp" namespace kagome::clock {...
#ifdef PEGASUS_OS_AIX #ifndef __UNIX_MULTISTATESENSOR_PRIVATE_H #define __UNIX_MULTISTATESENSOR_PRIVATE_H #endif #endif
/* tag: qt user interface fb class * * Copyright (C) 2003-2004 Stefan Reinauer * * See the file "COPYING" for further information about * the copyright and warranty status of this work. */ #include "gui-qt.h" #include "logo.xpm" #include <iostream> static const int sizex=640; static const int sizey=480; static...
#include "CustomFFmpeg.h" CustomFFmpeg::CustomFFmpeg(CustomPlaystatus *playstatus, CustomCallJava *callJava, const char *url) { this->playstatus = playstatus; this->callJava = callJava; this->url = url; exit = false; pthread_mutex_init(&init_mutex, NULL); pthread_mutex_init(&seek_mutex, NULL); ...
// Copyright 2021 by FORTYSS #include <multithread.hpp> int main(int argc, char *argv[]) { signal(SIGINT, Multith::catch_signal); Multith hasher(argc, argv); hasher.start(); }
/////////////////////////////////////////////////////////////////////// // File: fontinfo.cpp // Description: Font information classes abstracted from intproto.h/cpp. // Author: rays@google.com (Ray Smith) // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"...
/** * @file properties.hpp * * @brief Property Map Implementation for Algorithms */ #ifndef PROPERTIES_HPP #define PROPERTIES_HPP #include <any> #include <iostream> #include <map> #include <memory> #include <string> namespace syrec { /** * @brief Property Map for storing settings and statistical informat...
/* $Id: hash_set.hpp 556955 2018-02-07 14:11:31Z ivanov $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * _______ _ * * ( ____ \ ( \ |\ /| * * | ( \/ | ( ( \ / ) * * | (__ ...
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2011,2013 ARM Limited * Copyright (c) 2013 Advanced Micro Devices, Inc. * 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 prope...
/*============================================================================= Copyright (c) 2011 RiSK (sscrisk) https://github.com/sscrisk/CEL---ConstExpr-Library Copyright (c) 2011-2017 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (S...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_w32_execvp_84_bad.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-84_bad.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data u...
/** * @file * @brief Travel and exclusions. **/ #include "AppHdr.h" #include "l_libs.h" #include "branch.h" #include "cluautil.h" #include "coord.h" #include "terrain.h" #include "travel.h" LUAFN(l_set_exclude) { coord_def s; s.x = luaL_checkint(ls, 1); s.y = luaL_checkint(ls, 2); const coord_def ...
#include "toolbox_maya/utils/maya_attributes.hpp" #include <maya/MFnDependencyNode.h> #include <maya/MDagModifier.h> #include <toolbox_maya/utils/maya_error.hpp> // ----------------------------------------------------------------------------- MPlug get_plug(const MObject& node, const MString& attribute) { MStatu...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// ConjuntosView.cpp : implementation of the CConjuntosView class // #include "stdafx.h" #include "Conjuntos.h" #include "ConjuntosDoc.h" #include "ConjuntosView.h" #include <time.h> #include "Set.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ////////////////////...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/components/quick_answers/utils/unit_converter.h" #include <memory> #include <string> #include "ash/constants/ash_features.h" #include...
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild #include "heaps_pak.h" #include "kaitai/exceptions.h" heaps_pak_t::heaps_pak_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, heaps_pak_t* p__root) : kaitai::kstruct(p__io) { m__parent = p__parent; m__root...
#include "pch.h" #include "logging/Log.h" #include "Application.h" //Hide console window #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") int main() { Graphics::Utils::Log::Init(); Graphics::Application().Start(); return 0; }
#include "WorldSimApi.h" #include "common/common_utils/Utils.hpp" #include "AirBlueprintLib.h" #include "TextureShuffleActor.h" #include "common/common_utils/Utils.hpp" #include "Weather/WeatherLib.h" #include "DrawDebugHelpers.h" #include "Runtime/Engine/Classes/Engine/Engine.h" #include <cstdlib> #include <ctime> Wo...
#include "cpu_info.h" quint8 CpuInfo::getCpuCoreCount() const { static quint8 count = 0; if (! count) { QStringList cpuinfo = FileUtil::readListFromFile(PROC_CPUINFO); if (! cpuinfo.isEmpty()) count = cpuinfo.filter(QRegExp("^processor")).count(); } return count; } QList...
#include "switching.hpp" namespace switching { //******************************************************************************* //*********************************USER HANDLING********************************* //******************************************************************************* uint3...
#include <stack> #include <string> #include <iostream> using namespace std; string isBalance(string s) { stack<char> st; for (char c: s) { switch (c) { case '{': case '(': case '[': st.push(c); break; case '}': ...
// Copyright (c) 2018 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 "a.h" #include "b.h" #include "c.h" int main() { hello_a("main function"); hello_b("main function"); hello_c("main function"); }
#include <iostream> #include <iomanip> #include <string> #include <unordered_map> #include <fstream> #include <vector> #include <utility> #include <algorithm> using namespace std; // Number of most common words to display const size_t DISPLAY_COUNT = 10; // A word/count pair typedef pair<string, int> WordCountPair;...
// 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 <zircon/status.h> #include <iterator> #include <ddk/debug.h> #include <fbl/algorithm.h> #include "input.h" #include "src/devices/bus/lib/virtio...
/** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 b...
/* * Copyright (c) 2014 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...
#include <Arduino.h> #include "engine.h" #include "storage.h" #ifdef ESP8266 #include <ESP8266WiFi.h> #else #include <WiFi.h> #endif #define MILLISEC 1000 Engine::Engine(StatusBar &sb, Pzem &pzem, Mqtt &mqtt, Http &http) : _statusBar(sb), _pzem(pzem), _mqtt(mqtt), _http(http), ...
/*! @file fddb/FDDB.cpp @author David Hirvonen @brief FDDB dataset parsing. \copyright Copyright 2015-2017 Elucideye, Inc. All rights reserved. \license{This project is released under the 3 Clause BSD License.} */ #include "FDDB.h" #include <iterator> // clang-format off BOOST_FUSION_ADAPT_STRUCT( ...
#include <bits/stdc++.h> #define IOS std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); // #define __DEBUG__ #ifdef __DEBUG__ #define DEBUG(...) printf(__VA_ARGS__) #else #define DEBUG(...) #endif #define filename "" #define setfile() freopen(filename".in", "r", stdin); freopen(fi...
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2014 Intel Corporation. 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 noti...
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: ModelComparison.cpp // Authors: Chris Lovett // //////////////////////////////////////////////////////////////////////////////////////////////////// #inc...
#ifndef CARROT_BOID_HPP #define CARROT_BOID_HPP #include "RootedBoid.hpp" #include "BoidType.hpp" /** * @class Carrot * @brief This class is a rooted boid to represent a carrot */ class Carrot : public RootedBoid { public: /** * @brief Constructor of a class carrot * @param[in] location Position of the o...
/* Copyright 2009 Tatham Johnson 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...
//================================================================================================= /*! // \file src/mathtest/dvecdvecmax/VHaV6b.cpp // \brief Source file for the VHaV6b dense vector/dense vector maximum math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is...
#include "software/test_util/test_util.h" #include <gtest/gtest.h> #include <algorithm> /* * Unit tests for the unit test utilities */ TEST(TestUtilsTest, create_testing_world) { World world = ::TestUtil::createBlankTestingWorld(); EXPECT_EQ(Field::createSSLDivisionBField(), world.field()); EXPECT_EQ...
#include "StdAfx.h" #include "PropertyAnimationCtrl.h" #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QLabel> #include <QtWidgets/QToolButton> #include <AzQtComponents/Utilities/QtWindowUtilities.h> #include <LmbrCentral/Animation/CharacterAnimationBus.h> #include "CharacterEditor/AnimationBrowser.h" #include "...
#pragma once #include "resources/TextureManager.hpp" #include "util/Matrices.hpp" #include "map/chunk/ChunkSection.hpp" class ChunkRenderer { public: ChunkRenderer(); void addChunk(const ChunkSection& chunk); void renderSolid(); void renderLiquid(); private: std::vector<const Mesh*> m_solidMeshes, m_liquidMeshe...
/////////////////////////////////////////////////////////////////////// // File: intsimdmatrix_test.cc // Author: rays@google.com (Ray Smith) // // Copyright 2017 Google Inc. All Rights Reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compli...
#include "FlareMenuManager.h" #include "../Flare.h" #include "../UI/Components/FlareTooltip.h" #include "../UI/Components/FlareNotifier.h" #include "../UI/Components/FlareMainOverlay.h" #include "../UI/Components/FlareSpacecraftOrderOverlay.h" #include "../UI/Components/FlareShipyardOverlay.h" #include "../UI/Componen...
/* * gpio-server.cpp * * Created on: 5 Nov 2018 * Author: dwd */ #include "gpio-server.hpp" #include "gpio-client.hpp" #include <arpa/inet.h> #include <errno.h> #include <netdb.h> #include <netinet/in.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <shared_test_classes/single_layer/activation.hpp> #include "shared_test_classes/base/ov_subgraph.hpp" #include "functional_test_utils/ov_tensor_utils.hpp" #include "test_utils/cpu_test_utils.hpp" using namespace InferenceE...
// Copyright (c) 2012-2017 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/scriptnum10.h> #include <script/script.h> #include <test/test_xsn.h> #include <boost/test/unit_test.hpp> #inc...
// Autor: Rubén Abrante Delgado. Fecha: 31/10/2020 #include <iostream> #include <string> #include <vector> #include <fstream> int binarioStringAEntero(std::string binario) { int entero = 0; int b = binario.size() - 1; for (std::size_t i = 0; i < binario.size(); i++) { if (binario.at(i) == '1') { enter...
#include <iostream> class A { int a; public: int b; A(int x, int y) { a = x; b = y; std::cout << "A(x,y)" << std::endl; } }; class B : public A { public: int &c; B(int &r) : A(1,1), c(r) { // member init list c = 0; std::cout << b << " " << c << std::endl; } }; int main() { int x = ...
/* * Go Beaver Go, a puzzle game based on a variant of the 2L programming language * * Copyright 2019, Erwin Bonsma */ #include "Computer.h" #include "SharedMemory.h" const int8_t dx[numDirections] = { 0, 1, 0, -1 }; const int8_t dy[numDirections] = { 1, 0, -1, 0 }; /* Rescale visit counts to avoid overflows. T...
class Solution { public: int minPatches(vector<int>& nums, int n) { long miss = 1, cnt = 0, i = 0; while (miss <= n) { if (i < nums.size() && nums[i] <= miss) miss += nums[i++]; else { cnt++; miss += miss; ...
bool isOperator(char x); std::string preToInfix(std::string pre_exp); bool isPreFix(std::string exp); bool isParen(char x); bool isInfix(std::string exp);
// Copyright 2015, The max 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 MAX_COMPILING_CONFIGURATION_COMPILER_GCC_HPP #define MAX_COMPILING_CONFIGURATION_COMPILER_GCC_HPP #include <max/Compiling/Macros.hpp> #define ...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/es/model/UpgradeStatus.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Utils; nam...
#include <ppl.h> #include <ppltasks.h> #include <collection.h> #include <map> #include <regex> #include <assert.h> #include "Database.h" #include "Statement.h" #include <iostream> using Windows::UI::Core::CoreDispatcher; using Windows::UI::Core::CoreDispatcherPriority; using Windows::UI::Core::CoreWindow; using Win...
//================================================================================================= /*! // \file src/mathtest/dmatdmatmult/MDaM4x4b.cpp // \brief Source file for the MDaM4x4b dense matrix/dense matrix multiplication math test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // ...
#include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <utility> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make_pair #define pi 2*acos(0.0) #define eps 1e-9 #de...
/* MIT License Copyright (c) 2020, Alexey Dynda 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, ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <i...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo...
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
#include "pch.h" #include "Graphics/ImGui/Widgets/SceneGraph.h" #include "ECS/Components/BaseComponent.h" #include "ECS/Components/TransformComponent.h" #include <imgui.h> using namespace IceSDK; using namespace IceSDK::ImGuiWidgets; void SceneGraph::Frame(const Memory::WeakPtr<Scene> pScene) { ImGui::Begin("S...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "lpt_ngraph_functions/precision_propagation_function.hpp" #include <ngraph/opsets/opset1.hpp> #include "ngraph_ops/type_relaxed.hpp" #include "low_precision/network_helper.hpp" #include "low_precision/rt_info/precision_pre...
/********************************************************** DO NOT EDIT This file was generated from stone specification "files" Part of "Ardi - the organizer" project. osoft4ardi@gmail.com www.prokarpaty.net ***********************************************************/ #include "dropbox/files/FilesSaveCopyReferen...
// // Created by Tianyuan Fu on 14/3/21. // #include "FedTree/DP/differential_privacy.h" #include "FedTree/Tree/GBDTparam.h" #include <numeric> #include <random> #include <math.h> void DifferentialPrivacy::init(FLParam flparam) { GBDTParam gbdt_param = flparam.gbdt_param; this->lambda = gbdt_param.lambda; ...
/* Copyright 2013 Juan Rada-Vilela 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, soft...
#include <iostream> #define STACK_MAX_SIZE 1000 class Stack { public: int pop(); void push(int value); public: Stack(); ~Stack(); private: int data[STACK_MAX_SIZE]; size_t size; }; int Stack::pop() { if (size == 0) return -101; size--; return data[size]; } void Stack::pus...
#include<iostream> using namespace std; class date{ private: int D,M,Y; public: bool nhuan();//kiem tra ngay nhuan int ngaythang();//tra ve so ngay trong thang void nhap(); void xuat(); date cong1();//cong 1 ngay vao date congk(int k); int ngaynam(); int khoangcach(date d2); }; bool date::nhuan()...
/*---------------------------------------------------------------------------*\ Copyright (C) 2012-2013 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of Caelus. Caelus is free software: you can redistribute it and/or modify it ...
// 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 <fidl/tables_generator.h> #include <zxtest/zxtest.h> #include "error_test.h" #include "fidl/coded_ast.h" #include "fidl/coded_types_generator.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/browsing_data/browsing_data_remover.h" #include <map> #include <set> #include "base/bind.h" #include "base/bind_helpers.h" ...
#include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include <QDataWidgetMapper> #include <QMessageBox> EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mo...
//===-- MipsTargetObjectFile.cpp - Mips Object Files ----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// 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/views/extensions/browser_action_overflow_menu_controller.h" #include "base/message_loop.h" #include "base/utf_string_conv...
/* -*- mode: C++; indent-tabs-mode: nil; -*- * * This file is a part of LEMON, a generic C++ optimization library. * * Copyright (C) 2003-2010 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * * Permission to use, modify and distribut...
/* * Copyright 2018, Jérôme Duval, jerome.duval@gmail.com. * Copyright 2012, Alex Smith, alex@alex-smith.me.uk. * Copyright 2002-2008, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. * * Copyright 2001, Travis Geiselbrecht. All rights reserved. * Distributed under the term...
// PHZ // 2018-5-15 #include "SelectTaskScheduler.h" #include "Logger.h" #include "Timer.h" #include <cstring> #include <forward_list> using namespace xop; #define SELECT_CTL_ADD 0 #define SELECT_CTL_MOD 1 #define SELECT_CTL_DEL 2 SelectTaskScheduler::SelectTaskScheduler(int id) : TaskScheduler(id) { FD_ZERO...
#include "stream_base.h" // NOLINT(build/include_inline) #include "stream_base-inl.h" #include "stream_wrap.h" #include "node.h" #include "node_buffer.h" #include "node_errors.h" #include "env-inl.h" #include "js_stream.h" #include "string_bytes.h" #include "util-inl.h" #include "v8.h" #include <climits> // INT_MAX...