text
stringlengths
5
1.04M
#ifndef _INT_GL_2_1_REM_3_1_HPP #define _INT_GL_2_1_REM_3_1_HPP #ifdef __cplusplus extern "C" { #endif //__cplusplus #ifdef __cplusplus } #endif //__cplusplus namespace gl { enum _int_gl_2_1_rem_3_1 { GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845F, GL_SLUMINANCE_ALPHA = 0x8C4...
int Solution::maximumGap(const vector<int> &A) { int n = A.size(); vector<int> lmin(n,INT_MAX); vector<int> rmax(n,INT_MIN); lmin[0] = A[0]; rmax[n-1] = A[n-1]; for(int i=1;i<n;i++) lmin[i] = min(A[i],lmin[i-1]); for(int i=n-2;i>=0;i--) rmax[i] = max(A[i],rmax...
/** @copyright <pre> Copyright 2018 Infineon Technologies AG This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>. The initial version of this software has been created with the funding support by the German Federal Ministry of Education and Res...
#include "gtest/gtest.h" #include "TBTK/TBTK.h" #include "TBTK/Test/MultiCounter.h" int main(int argc, char **argv){ TBTK::Initialize(); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 <net_processing.h> #include <addrman.h> #include <arith_uint256.h> #inc...
/* SPDX-License-Identifier: MIT */ /** @file ancillarydata_hdr_hlg.cpp @brief Implements the AJAAncillaryData_HDR_HLG class. @copyright (C) 2012-2021 AJA Video Systems, Inc. **/ #include "ancillarydata_hdr_hlg.h" #include <ios> #include <iomanip> using namespace std; #define AJAAncillaryData_HDR_HLG_PayloadSiz...
// Copyright (c) 2011-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 <qt/guiutil.h> #include <qt/utopiacoinaddressvalidator.h> #include <qt/utopiacoinunits.h> #include <qt/qvalidatedli...
class Solution { public: int nthUglyNumber(int n) { vector<int> nums(n); int c2 = 0, c3 = 0, c5 = 0; nums[0] = 1; for (int i = 1; i < n; i++) { nums[i] = min(nums[c2] * 2, min(nums[c3] * 3, nums[c5] * 5)); if (nums[i] == nums[c2...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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 "soundManager.h" #include <iostream> const std::string SoundManager::soundPaths[SoundManager::TOTAL_SOUNDS] = {"Assets/Sound/sound/default/arugh.wav", "Assets/Sound/sound/prt/laser.wav", ...
/*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...
//////////////////////////////////////////////////////////////////////// // // VideoWriter.CPP // // Implementation of the video writer node. // //////////////////////////////////////////////////////////////////////// #include "imagel_.h" #include <stdio.h> // Globals VideoWriter :: VideoWriter ( void ) ...
/* Copyright (c) 2009-2012, 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 notice, this list of conditions and the...
/* Operators Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Authors: Daniil Svyatskiy (dasvyat@lanl.gov) Konstantin Li...
// // window.cpp // MDStudio // // Created by Daniel Cliche on 2017-05-29. // Copyright (c) 2017-2020 Daniel Cliche. All rights reserved. // #include "window.h" #include <platform.h> using namespace MDStudio; // ----------------------------------------------------------------------------------------------------...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include "chinamapwidgetobjectpoint.h" ChinaMapWidgetObjectPoint::ChinaMapWidgetObjectPoint(QObject* parent) : QObject(parent) { } void ChinaMapWidgetObjectPoint::setGeoX(double geoX) { m_geoX = geoX; } void ChinaMapWidgetObjectPoint::setGeoY(double geoY) { m_geoY = geoY; } double ChinaMapWidgetObjectP...
#include "HCISocket.h" namespace WPEFramework { namespace Bluetooth { template <const uint16_t OPCODE, typename OUTBOUND> class ManagementType : public Core::IOutbound { private: ManagementType() = delete; ManagementType(const ManagementType<OPCODE, OUTBOUND>&) = delet...
#include "common.hpp" {% from "mod/batch.cpp" import batch -%} {% from "mod/binary.cpp" import inner, outer -%} {% call(name, shape) batch() -%} {% call(x, y) outer("Pow", name, shape) -%} {% set r = numpy.random.rayleigh(size=x).astype(numpy.float32) -%} {% set a = numpy.random.randn(*y).astype(n...
#include "PositionInvertedIndexTestFixture.h" #include <boost/test/unit_test.hpp> #include <util/ClockTimer.h> NS_IZENELIB_IR_BEGIN using namespace Zambezi; BOOST_AUTO_TEST_SUITE(t_index_search) BOOST_AUTO_TEST_CASE(do_search_BWAND_AND_revserse) { std::cout <<"test case 1: [do_search_BWAND_AND_revserse] ..." << ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_malloc_53b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-53b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management ...
#include "common/router/rds_impl.h" #include "common/common/assert.h" #include "common/json/config_schemas.h" #include "common/router/config_impl.h" namespace Router { RouteConfigProviderPtr RouteConfigProviderUtil::create( const Json::Object& config, Runtime::Loader& runtime, Upstream::ClusterManager& cm, E...
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <pybind11/stl.h> #include <string> #include <vector> #include "nifty/python/converter.hxx" #include "nifty/tools/changable_priority_queue.hxx" namespace py = pybind11; namespace nifty{ namespace tools{ void exportChangeablePriorityQueue(py...
/* Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved. */ #include "benchmark.h" #include <stdexcept> #include <ctime> // #define CALIBR_DBG #ifdef CALIBR_DBG #include <iostream> #endif const unsigned USECS_IN_SEC = 1000000; const unsigned NSECS_IN_USEC = 1000; const unsigned NSEQS_IN_SEC = NSECS_IN_...
#include "PhysicsServerCommandProcessor.h" #include "../CommonInterfaces/CommonRenderInterface.h" #include "plugins/b3PluginCollisionInterface.h" #include "../Importers/ImportURDFDemo/BulletUrdfImporter.h" #include "../Importers/ImportURDFDemo/MyMultiBodyCreator.h" #include "../Importers/ImportURDFDemo/URDF2Bullet.h" #...
// // connect_pair.cpp // ~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2016 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) // #include <iostream> #include <strin...
//***************************************************************************** // 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 2019 Stanford * * 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 wri...
//--------------------------------------------*-C++-*---------------------------------------------// /*! * \file ds++/Release.hh * \author Thomas Evans * \date Thu Jul 15 09:31:44 1999 * \brief Header file for ds++ library release function. * \note Copyright (C) 2016-2020 Triad National Security, LLC., All ...
/********************************************************************* Copyright 2013 Karl Jones All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above c...
// RouteDialog.cpp : implementation file // #include "stdafx.h" #include "CartoTypeDemo.h" #include "RouteDialog.h" IMPLEMENT_DYNAMIC(CRouteDialog,CDialog) CRouteDialog::CRouteDialog(bool aPushPinSelected,CWnd* pParent /*=NULL*/) : CDialog(CRouteDialog::IDD,pParent), iPushPinSelected(aPushPinSelected) { iAdd...
#pragma once // PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "PUBG_Basic.hpp" #include "PUBG_InputHookingWidget_classes.hpp" #include "PUBG_Engine_classes.hpp" #include "PUBG_CoreUObject_classes.hpp" #include "PUBG_UMG_classes.hpp" #inclu...
#include <cstdio> #include <fstream> #include <iostream> #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "MaeBlock.hpp" #include "Reader.hpp" #include "MaeConstants.hpp" using namespace schrodinger::mae; using std::shared_ptr; BOOST_AUTO_TEST_SUITE(ReaderSuite) BOOST_AUTO_TEST_CASE(Reader0...
#include <stdio.h> int a[2][2][2];//w p t int i, j, k, l; void point(int ii, int jj, int kk, int ll){ if(ii==kk&&jj==ll){ face(2); return; } if(ii==ll&&jj==kk){ printf("POINT"); return; } else if(ii!=ll&&jj!=kk){ printf("POINT"); return; } else { ...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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 <iostream> #include <fstream> #include "gtest/gtest.h" #include "json_fixture.h" #include "unittest_core.h" int main(int argc, char **argv) { std::cout << "Executing tests\n"; unittest_core::configuration_json["counter"] = 2; testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
//===-- llvm/MC/WinCOFFObjectWriter.cpp -------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** * Copyright 2020 Huawei Technologies 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...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkUtils.h" /* 0xxxxxxx 1 total 10xxxxxx // never a leading byte 110xxxxx 2 total 1110xxxx 3 total 11110xxx 4 t...
#include "src/logger/deduplicator.h" #include <gtest/gtest.h> namespace pos_logger { TEST(Deduplicator, IsEnabled_) { } TEST(Deduplicator, Enable_) { } TEST(Deduplicator, Disable_) { } TEST(Deduplicator, Sensitivity_) { } TEST(Deduplicator, UpdateSensitivity_) { } TEST(Deduplicator, IsDuplicated_) { } TEST(Dedu...
/** * @file Box_Comp_Test.cpp * @brief Box class tester. * @author zer0 * @date 2020-01-07 */ #include <gtest/gtest.h> #include <libtbag/box/Box.hpp> using namespace libtbag; using namespace libtbag::box; struct Box_Comp_Test_Fixture : public testing::Test { Box src; Box cmp; void SetUp() over...
#include <CGAL/Simple_cartesian.h> #include <CGAL/boost/graph/graph_traits_Linear_cell_complex_for_combinatorial_map.h> #include <CGAL/boost/graph/properties_Linear_cell_complex_for_combinatorial_map.h> #include <CGAL/extract_mean_curvature_flow_skeleton.h> #include <CGAL/boost/graph/split_graph_into_polylines.h> #incl...
#include "headers.h" using namespace std ; string dts( double db ) { ostringstream strs; strs << db; string str = strs.str(); return str ; }
// Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #ifndef LEXY_ACTION_BASE_HPP_INCLUDED #define LEXY_ACTION_BASE_HPP_INCLUDED #include <lexy/_detail/config.hpp> #include ...
// license [ // This file is part of the Phantom project. Copyright 2011-2020 Vivien Millet. // Distributed under the MIT license. Text available here at // https://github.com/vlmillet/phantom // ] #include "UserData.hxx"
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define FAST_IO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define endl "\n" #define pb push_back #define loop(i,n) for(int i=0;i<n;i++) #define iloop(a,i,n) for(int i=a;i<=n;i++) #define bug(i) cout<<"debug at:"<<__LINE__<<" "...
// Copyright (c) 2001-2010 Hartmut Kaiser // Copyright (c) 2001-2010 Joel de Guzman // // 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) #if !defined(SPIRIT_REPOSITORY_QI_DIRECTIVE_APR_28_2009_1258PM) #def...
#include <mettle.hpp> using namespace mettle; #include <mettle/driver/log/xunit.hpp> #include "log_runs.hpp" #define XML "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" struct logger_factory { logger_factory(std::size_t runs) : ss(new std::ostringstream()), logger(std::unique_ptr<std::ostream>(ss), runs)...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2004, 2005 StatPro Italia srl Copyright (C) 2007, 2012 Ferdinando Ametrano Copyright (C) 2007, 2009 Piter Dias This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts an...
/*************************************************************************/ /* animation_player_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// C11 standard // created by cicek on Feb 06, 2021 3:09 PM #include <iostream> #include <string> using namespace std; class Mother { public: Mother() {}; void sayHi() { cout << "Hi"; } }; // This syntax derives the Daughter class from the Mother class. class Daughter : public Mother { public: ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
//----------------------------------------------------------------------------- // Copyright (c) 2020 The Platinum Team // // 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 restricti...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while(t--){ unsigned long long n, k; cin >> n >> k; if(k == 0){ cout << k << " " << n << endl; } else{ cout << n / k << " " << n % k << endl; } } }
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** ** This file is part of Qt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software **...
/* * * 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"); y...
/* inih -- simple .INI file parser inih is released under the New BSD license (see BSD-LICENSE.txt). Go to the project home page for more info: http://code.google.com/p/inih/ Copyright (c) 2009, Ben Hoyt All rights reserved. inih library license: https://raw.githubusercontent.com/benhoyt/inih/master/LICENSE.txt En...
#include "libb.h" std::string hello_libb(void) { return hello_liba() + " Hello from LIBB!"; }
//.............................................................................. // // This file is part of the AXL library. // // AXL is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloads/archive/axl/...
/*ckwg +29 * Copyright 2017 by Kitware, 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 code must retain the above copyright notice, * this list of...
/** * __author__ = anonymized * __date__ = 2019-05 * __copyright__ = Creative Commons CC0 */ #include <stdint.h> #include <gtest/gtest.h> #include "ciphers/small_aes_toy6_sbox.h" #include "utils/utils.h" using ciphers::small_aes_ctx_t; using ciphers::small_aes_key_t; using ciphers::small_aes_state_t; using ut...
#include "driver.h" #include <math.h> #include "vidhrdw/vector.h" #include "dirty.h" dirtygrid grid1; dirtygrid grid2; char *dirty_old=grid1; char *dirty_new=grid2; /* in msdos/sound.c */ int msdos_update_audio(void); /* specialized update_screen functions defined in blit.c */ /* dirty mode 1 (VIDEO_SUPPORTS_DIRTY) ...
#ifndef __TRACYPROTOCOL_HPP__ #define __TRACYPROTOCOL_HPP__ #include <limits> #include <stdint.h> namespace tracy { constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; } enum : uint32_t { ProtocolVersion = 40 }; enum : uint32_t { BroadcastVersion = 1 }; using lz4sz_t = uint...
// // base class to resolve hit ambiguities. This class also interacts with the // simulated annealing. // // Original author: David Brown (LBNL), 2012 // // $Id: AmbigResolver.hh,v 1.4 2014/08/01 18:56:10 gandr Exp $ // $Author: gandr $ // $Date: 2014/08/01 18:56:10 $ // #ifndef AmbigResolver_HH #define AmbigResolver...
/** * 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 (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
#pragma once #include "Sto.hh" #include "TArrayProxy.hh" #include "MVCC.hh" template <typename T, unsigned N> class TMvArray : public TObject { public: class iterator; class const_iterator; typedef T value_type; typedef T get_type; typedef unsigned size_type; typedef int difference_type; t...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: DG.Tweening.DOTweenModuleUtils #inc...
/*Create a class which stores employee name, id and salary Derive two classes from ‘Employee’ class: ‘Regular’ and ‘Part-Time’. The ‘Regular’ class stores DA, HRA and basic salary. The ‘Part-Time’ class stores the number of hours and pay per hour. Calculate the salary of a regular employee and a part-time – use the con...
#include "Beatmap.h" Beatmap::Beatmap(const char* filename, const char* basedir) { fLoadable = false; mFilename = filename; mBaseDir = basedir; mReader = NULL; FileReader r(filename); if (r.Ready()) { //check header before processing char id[4] = { r.ReadInt8(), r.ReadInt8(), r.ReadInt8(), 0 }; if (...
// Copyright (c) 2015-2018 Daniel Cooke // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #ifndef calling_components_hpp #define calling_components_hpp #include <vector> #include <cstddef> #include <functional> #include <memory> #include <boost/optional.hpp> #include <b...
/** * swagger <-> libpacket transmogrify implementation for MPLS * * This file is automatically generated by the transmogrify code generator. * Do not edit this file manually. **/ #include "mpls.hpp" namespace openperf::packet::protocol::transmogrify { std::shared_ptr<swagger::v1::model::PacketProtocolMpls> to_...
/* PICCANTE The hottest HDR imaging library! http://vcg.isti.cnr.it/piccante Copyright (C) 2014 Visual Computing Laboratory - ISTI CNR http://vcg.isti.cnr.it First author: Francesco Banterle 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 ...
// 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 __ENVIRONMENT_COMMANDS_FAKE_ASSETS_RELATER__ #define __ENVIRONMENT_COMMANDS_FAKE_ASSETS_RELATER__ #include "../../../fwd.hpp" namespace Environment { namespace Commands { namespace Rich { namespace Assets { class Relater : public supps::Command<structs::Buffer, const std::string &, const ...
// ------------------------------------------------------------------ // Fast R-CNN // copyright (c) 2015 Microsoft // Licensed under The MIT License [see fast-rcnn/LICENSE for details] // Written by Ross Girshick // Modified by Wei Liu // ------------------------------------------------------------------ #include <ve...
#include <vector> using namespace std; class Solution { public: void rotate(vector<int> &nums, int k) { vector<int> nums2 = nums; int l = size(nums); for (int i = 0; i < l; i++) { nums2[(i + k) % l] = nums[i]; } nums = nums2; } };
#include <pybind11/eigen.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/stl_bind.h> #include <string> #include <extrinsics_calibrator/CheckerboardExtrinsicCalibration.h> namespace py = pybind11; PYBIND11_MODULE(ExtrinsicCalibPyModules, m) { m.doc() = "Pyt...
#ifndef CLIENT_WINDOW_HPP_INCLUDED #define CLIENT_WINDOW_HPP_INCLUDED #include <glm/vec2.hpp> #include <SDL2/SDL.h> namespace Client { class Window { public: Window(); virtual ~Window(); /** * @brief Initialize the window. * * Creates the SDL_Window and all required ...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <istream> #include <memory> #include "ir_frontend/utility.hpp" #include "openvino/core/attribute_visitor.hpp" #include "utils.hpp" namespace ov { class RTInfoDeserializer : public ov::AttributeVisitor { publ...
#pragma once #include "./BaseObj.hpp" namespace android::renderscript { class RenderScript; } namespace android::renderscript { class Script; } namespace android::renderscript { class Script_KernelID : public android::renderscript::BaseObj { public: // Fields // QJniObject forward template<typename ......
#include "GstReStreamer2.h" #include <cassert> #include <gst/gst.h> #include <gst/pbutils/pbutils.h> #include <gst/webrtc/rtptransceiver.h> #include <CxxPtr/GlibPtr.h> #include <CxxPtr/GstPtr.h> #include "Helpers.h" GstReStreamer2::GstReStreamer2( const std::string& sourceUrl, const std::string& forceH264...
/* * Copyright (c) 2016, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Jeongseok Lee <jslee02@gmail.com> * * Georgia Tech Graphics Lab and Humanoid Robotics Lab * * Directed by Prof. C. Karen Liu and Prof. Mike Stilman * <karenliu@cc.gatech.edu> <mstilman@cc.gatech.edu> * * This fil...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "interfaces/iroha_internal/transaction_batch.hpp" #include "interfaces/transaction.hpp" #include "utils/string_builder.hpp" namespace shared_model { namespace interface { std::string TransactionBatch:...
/*****************************************************************************/ /** * @file main.cpp * @author Naohisa Sakamoto * @brief Example program for kvs::StochasticPolygonRenderer class. */ /*****************************************************************************/ #include <kvs/glut/Application> ...
// Copyright 2013 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "browser/vibration/vibration_provider_client.h" VibrationProviderClient* VibrationProviderClient::vibration_provider_client_ = NULL; VibrationPr...
#pragma once #include "search/bookmarks/types.hpp" #include "search/mode.hpp" #include "geometry/point2d.hpp" #include "geometry/rect2d.hpp" #include <chrono> #include <cstddef> #include <functional> #include <memory> #include <optional> #include <string> namespace search { class Results; class Tracer; struct Sea...
// 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/basictypes.h" #include "base/bind.h" #include "base/file_util.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" #in...
#include <Eigen/Eigen> #include <iostream> #ifndef M_PI #define M_PI 3.1415926535897932384626433832795 #endif using namespace Eigen; using namespace std; int main(int, char**) { cout.precision(3); Array3d v(1,-2,-3); cout << v.abs() << endl; return 0; }
////////////////////////////////////////////// // Cai Gwatkin // ////////////////////////////////////////////// // This program reads in numbers from // // text files, sorts adds them to a Heap, // // and sorts them into ascending order // ////////////////////////////////////////////// #include "HeapSort.h" ...
#include <iostream> #include <vector> #include <algorithm> #include <limits> #include <random> #include <string> #include <fstream> #include <chrono> #include <dirent.h> bool finished(std::vector<std::vector<bool>> &striked); void print_table( std::vector<std::vector<int>> &cost_table, std::vector<int> &supply, std...
/* * * Copyright 2019 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/*============================================================================= Library: CppMicroServices Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complia...
// // Created by MarcasRealAccount on 31. Oct. 2020 // #include "Engine/Renderer/Apis/Vulkan/Mesh/VulkanStaticMeshData.h" namespace gp1::renderer::apis::vulkan::mesh { VulkanStaticMeshData::VulkanStaticMeshData(renderer::mesh::StaticMesh* mesh) : VulkanMeshData(mesh) {} } // namespace gp1::renderer::apis::vulk...
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC. // // Produced at the Lawrence Livermore National Laboratory // // LLNL-CODE-716457 // // All rights reserved. // // This file is part of Ascent. // // For details, see:...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/passwords/password_dialog_controller_impl.h" #include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/b...