text
stringlengths
5
1.04M
// Copyright 2020 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/storage/minfs/lazy_reader.h" namespace minfs { zx_status_t LazyReader::Read(ByteRange range, ReaderInterface* reader) { if (range.Length(...
#include <pybind11/pybind11.h> #include <osmium/geom/mercator_projection.hpp> #include <osmium/geom/coordinates.hpp> #include <osmium/geom/haversine.hpp> #include <osmium/geom/factory.hpp> #include <osmium/geom/wkb.hpp> #include <osmium/geom/wkt.hpp> #include <osmium/geom/geojson.hpp> namespace py = pybind11; namespa...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "UnicodeStorage.hpp" #include "CharRow.hpp" // Routine Description: // - assignment operator. will store extended glyph data in a separate storage location // Arguments: // - chars - the glyph data to st...
/**************************************************************************** * * Copyright (c) 2021 PX4 Development Team. 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. Redistri...
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "base/Base.h" #include "utils/NebulaKeyUtils.h" #include <gtest/gtest.h> #include <rocksdb/db.h> #include <limi...
// license:BSD-3-Clause // copyright-holders:Aaron Giles /*************************************************************************** Venture Line Super Rider driver ***************************************************************************/ #include "emu.h" #include "includes/suprridr.h" #include "screen.h" ...
/*========================================================================= Program: Visualization Toolkit Module: vtkSurfaceLICPainter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This soft...
// Copyright (c) 2019-2023 The PIVXL developers // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2011-2013 The PPCoin developers // Copyright (c) 2013-2014 The NovaCoin Developers // Copyright (c) 2014-2018 The ...
/*========================================================================= Program: ParaView Module: pqApplyBehavior.cxx Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the ParaV...
/* example/example-operator-overloading.cpp -- operator overloading Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "example.h" #include <pybind11/operators.h> cl...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" extern "C" IMAGE_DOS_HEADER __ImageBase; using namespace WEX::Logging; using namespace WEX::Common; // This class is intended to test boundary conditions for: // SetConsoleActiveScreenBuffer class BufferTests...
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. 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 * * Unle...
// Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function Frontend.FrontEnd_C.OnMatchS...
// lm/lm-lib-test.cc // // Copyright 2009-2011 Gilles Boulianne. // // 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 at // ...
// // page_table.hpp // #ifndef _PAGE_TABLE_HPP #define _PAGE_TABLE_HPP #include "bits.hpp" #include "debug.hpp" #include "dx/status.h" #include "dx/types.h" #include "hal/page_table_entry.hpp" #include "new.hpp" // // Every page table has exactly 1024 entries. See the Intel documentation // const uint32_t ENTRIE...
#include "face.hpp" #include "face_types.hpp" extern "C" { Result<cv::Ptr<cv::face::BIF>*> cv_face_createBIF_int_int(int num_bands, int num_rotations) { try { cv::Ptr<cv::face::BIF> ret = cv::face::createBIF(num_bands, num_rotations); return Ok(new cv::Ptr<cv::face::BIF>(ret)); } OCVRS_CATCH(OCVRS_TYPE(Resu...
//==----- accessor_property_list.hpp --- SYCL accessor property list -------==// // // 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 // //===---------------------------...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// =========================================================================== // This is an open source non-commercial project. // Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: // http://www.viva64.c...
#include "simit-test.h" #include "init.h" #include "graph.h" using namespace std; using namespace simit; TEST(system, add) { Set V; FieldRef<simit_float> a = V.addField<simit_float>("a"); FieldRef<simit_float> b = V.addField<simit_float>("b"); ElementRef v0 = V.add(); ElementRef v1 = V.add(); ElementRef ...
// Created on: 1995-03-09 // Created by: Laurent PAINNOT // Copyright (c) 1995-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GN...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2020 The PIVX developers // Copyright (c) 2021 The DECENOMY Core Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses...
#define DEBUG 1 /** * File : B.cpp * Author : Kazune Takahashi * Created : 5/19/2020, 3:28:47 PM * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdio> #include <cs...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode.h" #include "addrman.h" #include "masternodeman.h" #include "...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
// Copyright 2016 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 "services/ui/ws/window_server_test_impl.h" #include "services/ui/public/interfaces/window_tree.mojom.h" #include "services/ui/ws/server_window.h...
/* Copyright (c) 2011, Arvid Norberg 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 f...
/**************************************************************************************** * @author: kzvd4729 created: Dec/05/2019 13:44 * solution_verdict: Wrong answer on test 1 language: GNU C++14 * run...
#include "lstm_unit_dnnlowp_op.h" #include "caffe2/core/tensor_int8.h" #include "caffe2/quantization/server/dnnlowp.h" #include "caffe2/quantization/server/sigmoid.h" #include "caffe2/quantization/server/tanh.h" namespace caffe2 { using namespace std; using namespace dnnlowp; template <typename T> LSTM...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" #include "base/macros.h" #include "base/memory/ref_counted_memory.h" #include "ba...
// named_write.hpp // Boost Logging library // // Author: John Torjo, www.torjo.com // // Copyright (C) 2007 John Torjo (see www.torjo.com for email) // // 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 // ...
// Copyright 2015 the V8 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. #include "src/v8.h" #include "src/interpreter/bytecode-array-builder.h" #include "src/interpreter/bytecode-array-iterator.h" #include "test/unittests/t...
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2017-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
// // Generators.hpp // Homework4 // // Created by Zander Nickle on 6/12/18. // Copyright © 2018 Zander Nickle. All rights reserved. // #ifndef Generators_h #define Generators_h #pragma once #include "Point.hpp" #include <random> /* These generators just have 1 method: generate point. They take a template par...
#include <iostream> #include <stack> #include <map> using namespace std; class Solution { public: map<char,uint8_t> embrace_class; Solution(){ embrace_class['('] = 0; embrace_class['['] = 1; embrace_class['{'] = 2; embrace_class[')'] = 3; embrace_class[']'] = 4; ...
/////////////////////////////////////////////////////////////////////////////// // Name: stefindr.cpp // Purpose: wxSTEditorFindReplaceData // Author: John Labenski, parts taken from wxGuide by Otto Wyss // Modified by: // Created: 11/05/2002 // RCS-ID: // Copyright: (c) John Labenski, Otto Wyss /...
#include <algorithm> #include <assert.h> #include <siar_plugins/plugin_siar_wheels_piston.h> #include <gazebo/math/gzmath.hh> #include <sdf/sdf.hh> #include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <tf/transform_listener.h> #include <geometry_msgs/Twist.h> #include <geometry_msgs/Vector3.h> #includ...
#ifndef BOOST_QVM_GEN_VEC_OPERATIONS4_HPP_INCLUDED #define BOOST_QVM_GEN_VEC_OPERATIONS4_HPP_INCLUDED // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc. // 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 "framework/framework.h" #include "framework/trace.h" #include "version.h" using namespace OpenApoc; int main(int argc, char *argv[]) { bool enable_trace = false; LogInfo("Starting OpenApoc \"%s\"", OPENAPOC_VERSION); std::vector<UString> cmdline; for (int i = 1; i < argc; i++) { // Special handling of...
// Copyright (c) 2017-2020 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "blocksignature.h" #include "main.h" #include "zddrchain.h" bool SignBlockWithKey(CBlock& block, const CKey& key) { if ...
#ifndef DISK_HPP_ #define DISK_HPP_ #include "TriangleMesh.hpp" #include "Primitive.hpp" namespace Tungsten { class Disk : public Primitive { float _coneAngle; Vec3f _center; float _r; Vec3f _n; float _area; float _invArea; TangentFrame _frame; float _cosApex; Vec3f _coneBase; ...
// MIT Licensed (see LICENSE.md). #pragma once #ifndef ZILCH_CODE_LOCATION_HPP # define ZILCH_CODE_LOCATION_HPP namespace Zilch { // We can print Zilch messages in many different formats // This is used for printing errors, exceptions, and general code location // information namespace MessageFormat { enum Enum { ...
//===-- Hexagon.cpp -------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
// RUN: rm -rf %t // RUN: mkdir %t // RUN: cd %t // RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" // RUN: echo '// CHECK: {{qwerty}}' > %t/cclog-check // RUN: clang-check -p "%t" "%t/test...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are perm...
#include "viewer.h" #include <stdio.h> #include <cmath> #include <vector> #include <iostream> #include <algorithm> #include "GL/glew.h" #include "console.h" using namespace std; using namespace chrono; #define DEFAULT_W 800 #define DEFAULT_H 600 namespace CGL { // HDPI display bool Viewer::HDPI; // framecount &...
/* Copyright 2018 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 ...
// Copyright Michael Shepanski 2014. // 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 <assert.h> #include <queue> #include <string> #include <sstream> #include <vector> #include <...
/** * Code adapted from Marek Majkowski's blog post * https://blog.cloudflare.com/every-7-8us-your-computers-memory-has-a-hiccup */ #include <iostream> #include <chrono> #include <vector> #include <memory> #include <immintrin.h> #include <cassert> #ifndef REPETITIONS #define REPETITIONS 512 * 1024 #endif stru...
// <Snippet1> #using <System.Xml.dll> #using <System.Transactions.dll> #using <System.EnterpriseServices.dll> #using <System.dll> #using <System.Data.dll> using namespace System; using namespace System::Data; using namespace System::Xml; using namespace System::Data::SqlClient; int main() { DataSet^ ...
#include "../../RStein.AsyncCpp/Schedulers/Scheduler.h" #include "../../RStein.AsyncCpp/Threading/SynchronizationContext.h" #include "../../RStein.AsyncCpp/Threading/SynchronizationContextScope.h" #include "../Mocks/SynchronizationContextMock.h" #include <gtest/gtest.h> namespace RStein::AsyncCpp::SchedulersTest { ...
/* * Copyright (c) 2018, The bitcoin2network developers. * Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers. * * This file is part of bitcoin2network. * * This file is subject to the terms and conditions defined in the * file 'LICENSE', which is part of this source code...
#include <iostream> using namespace std; template <typename T> T maxn(T[], int); int main(int argc, char const *argv[]) { int ints[6] = { 2, 3, 9, 5, 7, 4 }; cout << "Max is : " << maxn(ints, 6) << endl; double ds[4] = { 2.0, 3.0, 9.0, 5.0 }; cout << "Max is : " << maxn(ds, 4) << endl; char const...
#include <iostream> #include <cstring> #include <cctype> #include <cassert> #include <map> #include <string> using namespace std; #include "sonnet.h" /* PRE-SUPPLIED HELPER FUNCTIONS START HERE */ /* NOTE: It is much more important to understand the interface to and the "black-box" operation of these functions (...
// Copyright (c) 2009 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/process_util.h" #include <ctype.h> #include <dirent.h> #include <dlfcn.h> #include <errno.h> #include <fcntl.h> #include <sys/time.h> ...
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Dirk Mueller (mueller@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. * (C) 2006 Alexey Proskuryakov (ap@nypop.com) * Copyright (C) 2007 Sa...
//////////////////////////////////////////////////////////////////////////////// // // // Name: SigParam.cxx // // ...
/* * Copyright (c) 2004-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. * */ #inc...
/* * Copyright (C) 2013 The Libphonenumber 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 la...
#include <bts/blockchain/packet_record.hpp> #include <bts/blockchain/chain_interface.hpp> namespace bts { namespace blockchain { // Using next_available_claim_index() >= claim_statuses.size() claim that the packet is out uint32_t packet_record::next_available_claim_index() const { uint32_t in...
/**************************************************************************** ** Meta object code from reading C++ file 'infowidget.h' ** ** Created: Tue May 5 10:34:44 2009 ** by: The Qt Meta Object Compiler version 61 (Qt 4.5.1) ** ** WARNING! All changes made in this file will be lost! *************************...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include "../../src/algorithms_data_structs/phone_numbers_transform.h" namespace { using namespace testing; using cppchallenge::algorithms_data_structs::phone_numbers_transform; using cppchallenge::algorithms_data_structs::phone_number_transform; TEST...
#pragma once #include "vertex.hpp" #include "camera3d.hpp" #include "transform.hpp" #include <SFML/Graphics/RenderTarget.hpp> #include <SFML/Graphics/Color.hpp> class Renderer; class Renderable; struct RenderStackState { public: RenderStackState(Renderer& renderer); RenderStackState(sf::RenderTarget& target); ~R...
#define BZ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/detail/standard_policies.hpp> using ll = int64_t; using ld = long double; using ull = uint64_t; using namespace std; using namespace __gnu_pbds; typedef vector <int> vi; typedef pair <int, int> ii; const int INF = 1 << 30; ...
//===-LTOCodeGenerator.cpp - LLVM Link Time Optimizer ---------------------===// // // 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 // //===---------------------------...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are perm...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
#include <glt/shader.hpp> #include <glt/fileutils.hpp> #include <utility> #include <sstream> namespace glt { bool compileSource(const Shader& shader, const char * source, GLenum shadertype, std::ostream& out) { gl::ShaderSource(shader, 1, static_cast<const GLchar * const *>(&source), nullptr); gl::CompileShad...
// // Created by Bradley Austin Davis on 2017-01-11 // Copyright 2013-2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "OffscreenQmlSurfaceCache.h" #include <QtGui/QOpenGLContext> #i...
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -triple spir64-unknown-unknown -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s #include "sycl.hpp" using namespace cl::sycl; queue q; class Functor { public: [[intel::reqd_sub_group_size(4), cl::reqd_work_group_size(32, 16, 16)]]...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "proposaltablemodel.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include "proposalr...
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/compiler/relocation.h" #include "vm/code_patcher.h" #include "vm/heap/pages.h" #include "...
#include "sync.h" #include <fcntl.h> #include <sys/stat.h> #include <cerrno> #include "names.h" Sync::Sync(const char *name, bool open) : ISync(), name(name) { } Sync::~Sync() { } ISync* Sync::create(const char *name) { //sem_open(name, //O_CREAT | O_EXCL, //S_IRUSR | S_IWUSR | S_IRGR...
// Supported with union (c) 2020 Union team // User API for zCView // Add your methods here
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/svg/SkSVGDevice.h" #include <memory> #include "include/core/SkBitmap.h" #include "include/core/SkBlendMode.h" #include "include/core/SkColorFilter.h" #include ...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include <stdarg.h> #include "dt_send.h" #include "dt.h" #include "dt_recv.h" #include "dt_encode.h" #include "convar.h" #...
#include <network/ping_handler.hpp> PingHandler::PingHandler(): last_ping_date(microsec_clock::universal_time()), latency(0, 0, 0, 0) { } PingHandler::~PingHandler() { } void PingHandler::ping_sent() { this->last_ping_date = microsec_clock::universal_time(); } void PingHandler::pong_received() { ptime curre...
#include <Klein/Render/PBRInstancedMaterial.h> #include <Klein/Render/ResourceManager.h> #include <Klein/Render/ShaderProgram.h> #include <QString> #include <Qt3DRender/QEffect> namespace Klein { PBRInstancedMaterial::PBRInstancedMaterial(Qt3DCore::QNode* parent) : BasePBRMaterial(parent) { m_useInstanceColo...
#pragma once #include <xcb/xcb_icccm.h> #include "common.hpp" POLYBAR_NS namespace icccm_util { string get_wm_name(xcb_connection_t* conn, xcb_window_t win); string get_reply_string(xcb_icccm_get_text_property_reply_t* reply); } POLYBAR_NS_END
#include <iostream> #include <set> using namespace std; set<int> online; int a[200000]; int main(){ ios::sync_with_stdio(false); int n, k,k1 = 0, q, tmp1,tmp2; cin >> n >> k >> q; for(int i = 1; i<=n; i++) cin >> a[i]; for(int i = 0; i<q; i++) { cin >> tmp1 >> tmp2; tmp2 = a[tmp2]; if(tm...
// generated from // rosidl_typesupport_fastrtps_cpp/resource/msg__rosidl_typesupport_fastrtps_cpp.hpp.em // generated code does not contain a copyright notice #ifndef MAP_MSGS__SRV__PROJECTED_MAPS_INFO__REQUEST__ROSIDL_TYPESUPPORT_FASTRTPS_CPP_HPP_ #define MAP_MSGS__SRV__PROJECTED_MAPS_INFO__REQUEST__ROSIDL_TYPESUPPO...
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with...
/**************************************************************************** * * Copyright (c) 2014 PX4 Development Team. 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. Redistri...
#include "list.h" #include "exception.h" #include <sstream> namespace Bencode { List::List() { } List::~List() { } Element* List::clone() { // Deep copy list List* list = new List(); for (std::shared_ptr<Element> const& element : this->elements) { list->addEle...
/** Copyright (c) 2017, Philip Deegan. 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 follow...
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from varnames.djinni #include "NativeVarnameInterface.hpp" // my header #include "NativeVarnameRecord.hpp" namespace djinni_generated { NativeVarnameInterface::NativeVarnameInterface() : ::djinni::JniInterface<::testsuite::VarnameInterface, Nat...
#include "openvslam/feature/orb_extractor_node.h" namespace openvslam { namespace feature { std::array<orb_extractor_node, 4> orb_extractor_node::divide_node() { // Half width/height of the allocated patch area const unsigned int half_x = cvCeil((pt_end_.x - pt_begin_.x) / 2.0); const unsigned int half_y = cvCe...
/* * box2dmousejoint.cpp * Copyright (c) 2011 Joonas Erkinheimo <joonas.erkinheimo@nokia.com> * * This file is part of the Box2D QML plugin. * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of thi...
#include "lobster/stdafx.h" #include "script_interface.h" #include "lobster/vmdata.h" #include "lobster/natreg.h" #include "lobster/compiler.h" #include "lobster/vm.h" using namespace lobster; namespace script { ScriptInterface *si = nullptr; void AddTreeSheets() { STARTDECL(ts_goto_root) () { si->GoToRoot(...
/** ****************************************************************************** * * @file mapgraphicitem.cpp * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. * @brief The main graphicsItem used on the widget, contains the map and map logic * @see The GNU Public License...
// Copyright (C) 2009-2012 Lorenzo Caminiti // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE_1_0.txt or a copy at // http://www.boost.org/LICENSE_1_0.txt) // Home at http://www.boost.org/libs/local_function #ifndef BOOST_LOCAL_FUNCTION_AUX_MEMBER_HPP_ #define BOOST_LOCAL_...
// // Created by andgel on 31/01/2020 // #include "Warrior.hpp" namespace DungeonIntern { Warrior::Warrior(Rendering::Screen &screen, Map &map, float maxSpeed, float x, float y, unsigned sx, unsigned sy, unsigned maxHealth) : Enemy({screen, "assets/entities/warrior.json", map}, <#initializer#>, maxSpeed, x...
/*********************************************************************** created: 20/8/2005 author: Paul D Turner *************************************************************************/ /*************************************************************************** * Copyright (C) 2004 - 2006 Paul D T...
#pragma once #include "./abs_recv_allocator.hh" namespace rdmaio { namespace qp { /*! helper data struture for two-sided QP recv */ template <usize N> struct RecvEntries { /*! internal data structure used for send/recv verbs */ struct ibv_recv_wr rs[N]; struct ibv_sge sges[N]; struct ibv_wc wcs[N]; ...
/*============================================================================= Copyright (c) 2011-2017 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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.tx...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <qpdf/QPDFTokenizer.hh> // DO NOT USE ctype -- it is locale dependent for some things, and // it's not worth the risk of including it in case it may accidentally // be used. #include <qpdf/QTC.hh> #include <qpdf/QPDFExc.hh> #include <qpdf/QUtil.hh> #include <qpdf/QPDFObjectHandle.hh> #include <stdexcept> #i...