text
stringlengths
5
1.04M
/** * \file RadPropsEvaluator.cc * \date Jun 6, 2013 * \author "James C. Sutherland" * * * The MIT License * * Copyright (c) 2013-2018 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
#include "point_cat.h" void point_cat_forward_kernel(at::Tensor in_features, at::Tensor key, int n_cat, at::Tensor out_features); at::Tensor point_cat_forward(at::Tensor in_features, at::Tensor key, int n_cat) { CHECK_INPUT_CUDA_DIM(in_features, 2); c...
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #include <iostream> #include <string> #include <sstream> #include <thread> int main(int argc, char **argv) { std::stringstream ss; ...
#include <PnC/DracoPnC/TestSet/TestSet.hpp> #include <PnC/DracoPnC/CtrlSet/CtrlSet.hpp> #include <PnC/RobotSystem/RobotSystem.hpp> #include <PnC/DracoPnC/DracoStateProvider.hpp> DCMWalkTest::DCMWalkTest(RobotSystem* robot) : Test(robot) { myUtils::pretty_constructor(1, "DCM Walk Test"); cfg_ = YAML::LoadFile(...
// Copyright 2017 Open Source Robotics Foundation, 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 appli...
/** * @file oivs_init.hpp * @author Marcus Edel * * Definition and implementation of the Optimal Initial Value Setting method * (OIVS). This initialization rule is based on geometrical considerations as * described by H. Shimodaira. * * For more information, see the following paper. * * @code * @inproceeding...
#include "Tweener.h" #define LOCTEXT_NAMESPACE "FTweenerModule" void FTweenerModule::StartupModule() { // This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module } void FTweenerModule::ShutdownModule() { // This function may be called during shu...
#include <assert.h> #include <stdexcept> #include <string> #include <vector> #include <llvm-abi/ABI.hpp> #include <llvm-abi/ABITypeInfo.hpp> #include <llvm-abi/Type.hpp> #include <llvm-abi/TypeBuilder.hpp> #include <locic/CodeGen/ArgInfo.hpp> #include <locic/CodeGen/ConstantGenerator.hpp> #include <locic/CodeGen/Deb...
/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.o...
/* * Test.cpp * * Created by Martin on 13 October 2012. * Copyright 2012 Universiteit Leiden. All rights reserved. * * 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) */ /* * These tests use the Catch test fra...
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <pybind11/eigen.h> #include <pybind11/functional.h> #include <boost/filesystem.hpp> #include <fast_gicp/gicp/fast_gicp.hpp> #include <fast_gicp/gicp/fast_vgicp.hpp> #ifdef USE_VGICP_CUDA #include <fast_gicp/ndt/ndt_cuda.hpp> #include <fast_gicp/gicp/...
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. #include "storage/lake/tablet.h" #include "storage/lake/metadata_iterator.h" #include "storage/lake/tablet_manager.h" #include "storage/lake/txn_log.h" namespace starrocks::lake { Status Tablet::put_metadata(const Tab...
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
#include <iostream> #include "matrix.h" #define check(cond) do { if (!(cond)) std::cout << "line " << __LINE__ << ": " << #cond << '\n'; } while(0) // void do_testing() { // Matrix A(3, 4); // A[0][0] = 1; A[0][1] = 2; A[0][2] = 3; A[0][3] = 4; // A[1][0] = 5; A[1][1] = 6; A[1][2] = 7; A[1][3] = 8; // A[2]...
#include "programfiletab.h" #include "ui_programfiletab.h" #include "parser.h" #include "pipeline.h" ProgramfileTab::ProgramfileTab(QWidget* parent) : QWidget(parent), m_ui(new Ui::ProgramfileTab) { m_ui->setupUi(this); // Only add syntax highlighter for code edit view - not for translated code. This is assu...
/* 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 required by applicable law or...
/* * Copyright (c) 2008, Willow Garage, Inc. * Copyright (c) 2017, Open Source Robotics Foundation, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source...
/* * 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...
// Copyright 2017 The Ray 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 agreed to i...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
#include <iostream> #include <vector> #include <fcntl.h> #include <io.h> #include <conio.h> #include <windows.h> // headers? using namespace std; void gotoxy(int x, int y); void pushX(int num); void setLanguage(); void printTitleScreen(); void characterSelect(); void setScreenResolution(int x, int y); void printLin...
#include "StateAnalyzer.hpp" #include "GameState.hpp" #include "Board.hpp" namespace Logic { StateAnalyzer::StateAnalyzer(const Model::GameState* gameState) : gameState(gameState) {} Util::Rect StateAnalyzer::getBoundingRect(const Model::PieceColor& color) const { int maxX = INT_MIN; int minX...
#include <math.h> #include "mex.h" #include <string.h> #include "logistic_functions_sparse.h" #include "logistic_functions_dense.h" #include "utilities_dense.h" #include "utilities_sparse.h" /* USAGE: hist = SGD(w, Xt, y, lambda, stepsize, iVals); =======================================================...
// // coroutine.cpp // ~~~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Disable autolinking for unit...
#include <stan/math/prim/mat.hpp> #include <gtest/gtest.h> #include <stdexcept> TEST(ErrorHandlingMatrix, checkNotNanEigenRow) { stan::math::vector_d y; y.resize(3); EXPECT_NO_THROW(stan::math::check_not_nan("checkNotNanEigenRow(%1)", "y", y)); EXPECT_NO_THROW(sta...
/** * @file SerialNumberSignatureOfKnowledge.cpp * * @brief SerialNumberSignatureOfKnowledge class for the Zerocoin library. * * @author Ian Miers, Christina Garman and Matthew Green * @date June 2013 * * @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green * @license This pr...
#include <cmath> #include <catch/catch.hpp> #include <Eigen/Dense> #include "configure.h" #include "factory.h" #include "normal_multivar.h" #include "numeric_utils.h" TEST_CASE("Test generation of random numbers", "[RandomNumbers]") { // Initialize the factories config::initialize(); // Seed value for repeatabil...
#include "widgets/helper/NotebookTab.hpp" #include "Application.hpp" #include "common/Common.hpp" #include "debug/Log.hpp" #include "singletons/SettingsManager.hpp" #include "singletons/ThemeManager.hpp" #include "util/Clamp.hpp" #include "util/Helpers.hpp" #include "widgets/Notebook.hpp" #include "widgets/dialogs/Set...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2018, ITU/ISO/IEC * All rights reserve...
// Copyright © 2011, Université catholique de Louvain // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this...
/* 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...
/* 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 ...
class Solution { public: /** * @param matrix: the given matrix * @return: The list of grid coordinates */ vector<vector<int>> pacificAtlantic(vector<vector<int>> &matrix) { // write your code here int m = matrix.size(); if (m == 0) { return {}; } ...
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
// Copyright 2017 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // +build #define SYZ_EXECUTOR #include "common_akaros.h" #include "executor_posix.h" #include "executor.h" #include "syscalls_akaros.h" uint32_t outp...
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "Profile.hpp" namespace audio { class ProfileRoutingBluetoothHSP : public Profile { public: ProfileRoutingBluetoothHSP(Volume volume, Gain...
// Copyright (c) 2014 Grant Mercer // // 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) /// \file parallel/algorithms/count.hpp #if !defined(HPX_PARALLEL_DETAIL_COUNT_JUNE_17_2014_1154AM) #define HPX_PARALLEL_DET...
#include "luavmstate.h" #include "cgt/assert.h" #include "cgt/logmanager.h" #include "core/tools/stringutils.h" namespace campvis { MetatableLuaTable::MetatableLuaTable(std::shared_ptr<LuaTable> parent, std::string fieldName) : LuaTable(parent->_luaVmState) , _parent(parent) , _fieldName(...
//------------------------------------------------------------------------------ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. //-----------------------------------------------------------------------------...
// Copyright (c) 2016, Tom Honermann // // This file is distributed under the MIT License. See the accompanying file // LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms // and conditions. #ifndef TEXT_VIEW_TEXT_VIEW_HPP // { #define TEXT_VIEW_TEXT_VIEW_HPP #include <iterator> #include <str...
#include <iostream> using namespace std; int main() { cout << 123 << endl; return 0; }
// // IDownloader.hpp // G3M // // Created by Diego Gomez Deck on 27/07/12. // #ifndef G3M_IDownloader #define G3M_IDownloader class URL; class G3MContext; class IBufferDownloadListener; class IImageDownloadListener; class TimeInterval; class FrameTasksExecutor; #include <string> class IDownloader { public: vi...
#include "re2/re2.h" #include "Foundational/data_source/iwstring_data_source.h" #include "gfp.h" int count_tdts_in_file(iwstring_data_source & input, const IWString & identifier_tag) { IWString tmp; tmp << '^' << identifier_tag; re2::StringPiece string_piece(tmp.data(), tmp.length()); r...
#include "builtin/thread.hpp" #include "builtin/lookuptable.hpp" #include "builtin/tuple.hpp" #include "builtin/list.hpp" #include "builtin/class.hpp" #include "builtin/fixnum.hpp" #include "builtin/symbol.hpp" #include "builtin/float.hpp" #include "builtin/channel.hpp" #include "builtin/nativemethod.hpp" #include "bui...
#ifndef CAFFE_CLASS_BALANCED_SIGMOID_CROSS_ENTROPY_ATTENTION_LOSS_LAYER_HPP_ #define CAFFE_CLASS_BALANCED_SIGMOID_CROSS_ENTROPY_ATTENTION_LOSS_LAYER_HPP_ #include <vector> #include "caffe/blob.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/layers/loss_layer.hpp" #include "caffe/lay...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2020, the Ginkgo authors 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 co...
// Given a string, find the length of the longest substring without repeating characters. // Example 1: // Input: "abcabcbb" // Output: 3 // Explanation: The answer is "abc", with the length of 3. // Example 2: // Input: "bbbbb" // Output: 1 // Explanation: The answer is "b", with the length of 1. // Example 3: /...
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The Easynodecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #include "masternode.h" #include "masternod...
#include <malloc.h> #include <string.h> #include "texheap.h" void TexHeap::Create(int page_cap_x, int page_cap_y, int numtex, const TexDesc* texdesc, int page_user_bytes) { allocs = 0; cap_x = page_cap_x; cap_y = page_cap_y; user = page_user_bytes; head = 0; tail = 0; // item_w = alloc_w; // item_h = alloc_h...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2019 The MktCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-l...
//-------------------------------------------------------------------------- // Code generated by the SmartSoft MDSD Toolchain // The SmartSoft Toolchain has been developed by: // // Service Robotics Research Center // University of Applied Sciences Ulm // Prittwitzstr. 10 // 89075 Ulm (Germany) // // Information abo...
// TC: O(N) SC: O(N) #include<bits/stdc++.h> using namespace std; // } Driver Code Ends //User function template for C++ class Solution { public: //Function to find if there is a celebrity in the party or not. int celebrity(vector<vector<int> >& M, int n) { stack<int> s; // push a...
// Copyright (c) 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 "init.h" #include "util.h" #include "sync.h" #include "ui_interface.h" #includ...
/*! This program is an example of steps to allow embedded database connectivity to a C++ program. A database containing simple notes with logging function was implemented. */ #include <iostream> #include <map> #include "Poco/Data/Session.h" #include "Poco/Data/SQLite/Connector.h" #include "note.h" using namespace Poco...
#ifndef ODEPLUS_INCLUDE_ODEPLUS_VIZ_VIEW_HPP_ #define ODEPLUS_INCLUDE_ODEPLUS_VIZ_VIEW_HPP_ #include <memory> namespace odeplus { namespace viz { class View { public: explicit View(float x, float y, float z, float roll, float pitch, float yaw); private: float xyz_[3]; float rpy...
// 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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <qt/utilitydialog.h> #include <qt/forms/ui_he...
/* * Copyright 2014-2015 Matus Chochlik. 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) */ //[oglplus_dsa_vertex_array_1 template <> class __ObjectOps<__tag_DirectState, __tag_VertexArray> : public __ObjZer...
// Copyright (c) 2014 Thomas Heller // // SPDX-License-Identifier: BSL-1.0 // 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 <hpx/memory/serialization/intrusive_ptr.hpp> #include <hpx/modules/memory.hpp>...
#include "hilite/hilite.hh" #include "hilite/hilite_impl.hh" #include <algorithm> namespace hl { namespace { template <typename Vector> void sort_uniq(Vector& v) { std::sort(std::begin(v), std::end(v)); auto last = std::unique(std::begin(v), std::end(v)); v.erase(last, std::end(v)); } void break_to...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
#include <realm/list.hpp> #include <realm/table.hpp> #include <realm/group.hpp> #include <realm/sync/noinst/server/server_legacy_migration.hpp> #include <realm/sync/noinst/server/server_history.hpp> #include <realm/sync/noinst/client_history_impl.hpp> #include <realm/sync/history.hpp> #include "test.hpp" using namesp...
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "shared_test_classes/single_layer/rnn_sequence.hpp" #include "ngraph/pass/visualize_tree.hpp" #include "test_utils/cpu_test_utils.hpp" #include "transformations/op_conversions/bidirectional_sequences_decomposition.hpp" #include ...
#include "ItemShells.h" ItemShells::ItemShells(int _x, int _y): x(_x), y(_y) { sprite = new cgf::Sprite(); sprite->load("data/img/buckshot.png"); sprite->scale(1.2, 1.2); sf::Vector2f vpos = sf::Vector2f(); vpos.x = x; vpos.y = y; sprite->setPosition(vpos); } ItemShells::~ItemShells(){ ...
#ifdef PEGASUS_OS_LINUX #ifndef __UNIX_AUTHENTICATEFORUSE_PRIVATE_H #define __UNIX_AUTHENTICATEFORUSE_PRIVATE_H #endif #endif
// Copyright (c) 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 <script/descriptor.h> #include <chainparams.h> // For Params() #include <config.h> #include <key_io.h> #include <pubkey....
#include "AknOt_Tests.h" #include <cryptoTools/Common/Defines.h> #include <cryptoTools/Network/IOService.h> #include <cryptoTools/Network/Session.h> #include <cryptoTools/Common/Log.h> #include "libOTe/NChooseK/AknOtReceiver.h" #include "libOTe/NChooseK/AknOtSender.h" #include "libOTe/TwoChooseOne/KosOtExtReceiv...
// (C) Copyright R.W. Grosse-Kunstleve 2002. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/python/make_function.hpp> #include <boost/python/object/class.hpp> #include <boost/python/tuple.hp...
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boos...
// // Created by Jakub Gert on 20/06/2020. // #include <QtTest/QtTest> #include <QtTest/QSignalSpy> #include "tests/TestSuite.h" #include "src/grbl/Message.h" class MessageTests : public TestSuite { Q_OBJECT private slots: void testCustom() { auto message = Message::custom("ABC"); QCOMPARE(messa...
#include "source/extensions/matching/input_matchers/consistent_hashing/config.h" #include "test/mocks/server/factory_context.h" #include "gtest/gtest.h" namespace Envoy { namespace Extensions { namespace Matching { namespace InputMatchers { namespace ConsistentHashing { TEST(ConfigTest, TestConfig) { NiceMock<Ser...
#include "DataFormats/Common/interface/Handle.h" #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h" #include "DataFormats/HLTReco/interface/TriggerRefsCollections.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DataFormats/TrackReco/interface/Track.h" #include "DataFormats/...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-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 "paymentserver.h" #include...
// 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...
#ifndef IDOCP_UNCONSTR_STATE_EQUATION_HPP_ #define IDOCP_UNCONSTR_STATE_EQUATION_HPP_ #include "Eigen/Core" #include "idocp/ocp/split_solution.hpp" #include "idocp/ocp/split_kkt_residual.hpp" #include "idocp/ocp/split_kkt_matrix.hpp" namespace idocp { namespace unconstr { namespace stateequation { /// /// @brief L...
/* * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/command_container/command_encoder.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/test_macros/tes...
/* Transportation You are making a program for a bus service. A bus can transport 50 passengers at once. Given the number of passengers waiting in the bus station as input, you need to calculate and output how many empty seats the last bus will have. Sample Input: 126 Sample Output: 24 Explanation: The first bus ...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
/* Copyright 2020 The OneFlow 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 agre...
// 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...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_ModernBed_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //---------------------------------------------------------------...
class Solution { public: int furthestBuilding(vector<int>& heights, int bricks, int ladders) { const int N = heights.size(); priority_queue<int, vector<int>, greater<int>> minHeap; for(int i = 0; i + 1 < N; ++i){ int diff = (heights[i + 1] - heights[i]); ...
#include "CondCore/PopCon/interface/PopConAnalyzer.h" #include "CondTools/Hcal/interface/HcalLUTCorrsHandler.h" #include "FWCore/Framework/interface/MakerMacros.h" //typedef popcon::PopConAnalyzer<HcalLUTCorrsHandler> HcalLUTCorrsPopConAnalyzer; class HcalLUTCorrsPopConAnalyzer : public popcon::PopConAnalyzer<HcalLUT...
#include <iostream> #include <list> #include <memory> #include <sstream> struct Foo { Foo() : m_path_(new std::list<std::string>()) {} Foo(Foo const& other) : m_path_(new std::list<std::string>(*other.m_path_)) { std::cout << "Copy construct " << str() << std::endl; }; Foo(Foo&& other) :...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Copyright (c) 2021 The eTitanium Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <txdb.h> #include <...
#include <stdio.h> int main(){ int matriz[4][7], soma=0, maiorValor=0; int somaP; int binario[50]; for(int i = 0; i<4; i++){ for(int j = 0; j < 7; j++){ scanf("%d", &matriz[i][j]); soma = soma + matriz[i][j]; } if(soma>maiorValor){ maiorValor...
// 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 "base/message_pump_libevent.h" #include <errno.h> #include <fcntl.h> #include <unistd.h> #include "base/auto_reset.h" #include "base/compil...
/******************************************************************************* * Copyright 2017-2018 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://www.apa...
// Copyright 2016, Tobias Hermann. // https://github.com/Dobiasd/frugally-deep // Distributed under the MIT License. // (See accompanying LICENSE file or at // https://opensource.org/licenses/MIT) #pragma once #include "fdeep/convolution.hpp" #include "fdeep/filter.hpp" #include "fdeep/shape2.hpp" #include "fdeep/te...
extern "C" { #include "sai.h" #include "saistatus.h" } #include <fstream> #include <iostream> #include <unordered_map> #include <map> #include <memory> #include <thread> #include <chrono> #include <getopt.h> #include <unistd.h> #include <sys/time.h> #include "timestamp.h" #include <sairedis.h> #include <logger.h> #...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2017, PickNik LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
/******************************************************************************* * Copyright 2019-2022 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://www.apa...
// 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...
/* * 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 belo...
/******************************************************************************* * Copyright 2018-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://www.apa...
template<class T,class IT=int> struct segtree{ const IT l,r;IT mid; T fadd,fmul,fsum; unique_ptr<segtree> ch[2]; segtree(const int l,const int r):l(l),r(r),mid(0),fadd(0),fmul(1),fsum(0){} void wake(){ if (mid==0){ mid=(l+r)/2; ch[0].reset(new segtree(l,mid)); ch[1].reset(new segtree(mid+1,r...
//Language: MS C++ #pragma comment(linker, "/STACK:66777216") #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #inclu...
/** * \file groom.cpp * * Defines an algorithm to remove spurious inverting links from the graph * by exploring the graph from the orientation supported by the most paths. */ #include "groom.hpp" namespace odgi { namespace algorithms { std::vector<handle_t>groom(const handlegraph::MutablePathDeletableHa...
/*! * This is a subset and simplified version of Adafruit's * "LED Backpack library for Arduino" adapted for the * Raspberry Pi Pico. * * Author: Bernhard Bablok * * https://github.com/bablokb/pico-24bargraph * * Original source: https://github.com/adafruit/Adafruit_LED_Backpack * * @file Adafruit_LEDBackpac...
/* * TS Elements * Copyright 2015-2018 M. Newhouse * Released under the MIT license. */ #pragma once #include "server_message_dispatcher.hpp" #include "client_message.hpp" #include "stage/stage_regulator.hpp" #include "world/world_message_fwd.hpp" #include "client/client_message_fwd.hpp" namespace ts { namespace...