text
stringlengths
7
961k
/* * Copyright 2019 Google * * 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 DSES/ExecutionConfiguration.hh @ingroup DSES @brief Definition of the TrickHLA DSES Execution Configuration Object (ExCO). @copyright Copyright 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. No copyright is claimed in the United States ...
/// @file /// @author David Pilger <dpilger26@gmail.com> /// [GitHub Repository](https://github.com/dpilger26/NumCpp) /// @version 1.3 /// /// @section License /// Copyright 2020 David Pilger /// /// Permission is hereby granted, free of charge, to any person obtaining a copy of this /// software and associated documen...
// Copyright (c) 2017, 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 "lib/stacktrace.h" #include "vm/heap/safepoint.h" #include "vm/object.h" #include "vm/stack_fr...
// Copyright 2016 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 <dirent.h> #include <fcntl.h> #include <lib/fdio/fdio.h> #include <lib/fdio/io.h> #include <lib/fdio/namespace.h> #include <lib/fdio/private.h> #i...
//===--- MetadataLookup.cpp - Swift Language Type Name Lookup -------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Copyright 2017-2018 Csaba Molnar, Daniel Butum #include "DlgSystemModule.h" #include "Modules/ModuleManager.h" #include "AssetRegistryModule.h" #include "Framework/Docking/TabManager.h" #include "Widgets/Docking/SDockTab.h" #include "HAL/IConsoleManager.h" #include "HAL/FileManager.h" #include "GameFramework/Actor....
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * Vincent Barichard <Vincent.Barichard@univ-angers.fr> * * Copyright: * Christian Schulte, 2003 * Vincent Barichard, 2012 * * Last modified: * $Date$ by $Author$...
/* Copyright (c) 2005-2016, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> #include <tuple> #include <cassert> #include <map> #include <cmath> #include <algorithm> #include <array> #include "vector_adds.h" #include "string_adds.h" #include "map_adds.h" using namespace std; typedef struct point_t {...
#include <log4cplus/logger.h> #include <log4cplus/loggingmacros.h> #include <log4cplus/configurator.h> #include <log4cplus/helpers/loglog.h> #include <log4cplus/helpers/stringhelper.h> #include <log4cplus/helpers/timehelper.h> #include <log4cplus/helpers/fileinfo.h> #include <log4cplus/spi/loggingevent.h> #include <log...
/** * \file src/serialization/impl/file.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "A...
/// \author Kyungjoo Kim (kyukim@sandia.gov) #include "gtest/gtest.h" #include "Kokkos_Core.hpp" #include "Kokkos_Random.hpp" #include "KokkosBatched_Set_Decl.hpp" #include "KokkosBatched_Set_Impl.hpp" #include "KokkosBatched_Scale_Decl.hpp" #include "KokkosBatched_Scale_Impl.hpp" #include "KokkosKernels_TestUtils....
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Vladimír Vondruš <mosra@centrum.cz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwa...
class Solution { public: void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) { if(m == 0 )swap(nums1,nums2); else { int i = m - 1; //i指向nums1中还未处理的最大数字 int k = m + n - 1; /*k指向nums1、nums2中最大数字在nums1中的插入位置. 因题目描述中“nums1空间可...
/* * 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 "map.h" Map::Map(const std::string& data_path) { } Map::~Map() { }
/****************************************************************** Copyright © Deng Zhimao Co., Ltd. 1990-2021. All rights reserved. * @projectName audiorecorder * @brief audiorecorder.cpp * @author Deng Zhimao * @email 1252699831@qq.com * @net www.openedv.com * @date 2021-0...
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // LSDShapeTools // Land Surface Dynamics Shapefile tools // // A collection of routines for maipulating the binary ESRI shapefile format // for use within the Edinburgh Land Surface Dynamics group topographic toolbox // // Developed by:...
/** * Copyright (C) 2013 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
#include <DataTypes/Serializations/SerializationWrapper.h> #include <Columns/IColumn.h> namespace DB { void SerializationWrapper::enumerateStreams(const StreamCallback & callback, SubstreamPath & path) const { nested_serialization->enumerateStreams(callback, path); } void SerializationWrapper::serializeBinaryBul...
/** * \file * \copyright * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license */ #include <tclap/CmdLine.h> #include <algori...
#include <stdio.h> #include <string.h> #include <math.h> #include <chrono> #include <functional> #include <memory> #include <string> #include <bcm2835.h> #include "../include/imu_interface/I2Cdev.h" #include "../include/imu_interface/MPU6050.h" #include "../include/imu_interface/MPU6050_6Axis_MotionApps_V6_12.h" #in...
/* Copyright (c) 2017, ARM Limited and Contributors * * SPDX-License-Identifier: MIT * * 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 ...
// Copyright (C) 2017 Electronic Arts Inc. All rights reserved. #pragma once #include <string> #include <map> #include <deque> #include <memory> #include <mutex> #include "json.hpp" #include "color_correction.hpp" #include "audio.hpp" #include <opencv2/highgui.hpp> #include <boost/thread/thread.hpp> class Record...
//===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// // // The Subzero Code Generator // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------...
/**** *@PoloShen *Title:A */ //#pragma comment(linker, "/STACK:1024000000,1024000000") #include <iostream> #include <algorithm> #include <iomanip> #include <cstdio> #include <string> #include <cstring> #include <cmath> using namespace std; #include <vector> #include <list> #include <stack> #include <deque> #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...
#include "meson.hpp" #include "../makers/ninja.hpp" #include <bunsan/config/cast.hpp> #include <bunsan/process/execute.hpp> #include <bunsan/static_initializer.hpp> #include <boost/filesystem/operations.hpp> #include <algorithm> using namespace bunsan::utility; BUNSAN_STATIC_INITIALIZER(bunsan_utility_builders_mes...
/* * @file rotation3DEvents.cpp * * formerly catoms3DEvents.cpp * * Created on: 18/07/2016 * Author: Benoit Piranda, Pierre Thalamy */ #include "rotation3DEvents.h" #include "catoms3DWorld.h" using namespace BaseSimulator::utils; const int ANIMATION_DELAY=100000; const int COM_DELAY=2000; //=========...
#include "device.h" #include <iostream> namespace Drivers{ using namespace std; struct Impl { unsigned int counter; }; static Impl imp; Device::Device() { cout << "ctor Device::Device()" << endl; pImpl = &imp; pImpl->counter = 0; } Device::~Device() { cout << "dtor Device::~Device()" << endl; ...
#include "libpax_helpers.h" // Local logging tag static const char TAG[] = __FILE__; // libpax payload struct count_payload_t count_from_libpax; uint16_t volatile libpax_macs_ble, libpax_macs_wifi; void process_count(void) { ESP_LOGD(TAG, "pax: %d / %d / %d", count_from_libpax.pax, count_from_libpax.wif...
//#define USE_OPENGL2 #ifdef USE_OPENGL2 #include "OpenGLWindow/SimpleOpenGL2App.h" typedef SimpleOpenGL2App SimpleOpenGLApp; #else #include "OpenGLWindow/SimpleOpenGL3App.h" typedef SimpleOpenGL3App SimpleOpenGLApp; #endif //USE_OPENGL2 #include "Bullet3Common/b3Quaternion.h" #include "Bullet3Common/b3CommandLineA...
#include "pch.h" #include "Converters.h" #if __has_include("Converters.g.cpp") #include "Converters.g.cpp" #endif namespace winrt::Microsoft::Terminal::Settings::Editor::implementation { winrt::hstring Converters::AppendPercentageSign(double value) { const auto number{ value }; return to_hstrin...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 "policy/fees.h" #include "policy/policy.h" #include "amount.h" #include...
// Copyright (c) 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 "base/debug/proc_maps_linux.h" #include <fcntl.h> #include <stddef.h> #include "base/files/file_util.h" #include "base/files/scoped_file.h"...
/*! * Copyright (c) 2015 by Contributors * \file kvstore.cc * \brief implement kv_store */ #include <mxnet/kvstore.h> #include <stdlib.h> #include <dmlc/logging.h> #include "./kvstore_local.h" // #include "./kvstore_device.h" #if MXNET_USE_DIST_KVSTORE #include "./kvstore_dist.h" #endif // MXNET_USE_DIST_KVSTORE ...
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: Larger string functions go here. // // $Header: $ // $NoKeywords: $ //=============================================================================// #ifndef _XBOX #pragma warning (disable:4514) #endif #include "utl...
/* This file is part of VROOM. Copyright (c) 2015-2022, Julien Coupey. All rights reserved (see LICENSE). */ #include "problems/cvrp/operators/or_opt.h" namespace vroom { namespace cvrp { OrOpt::OrOpt(const Input& input, const utils::SolutionState& sol_state, RawRoute& s_route, ...
// Copyright (c) 2019 The PIVX developers // Copyright (c) 2020 The QUISH developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/QUISH/myaddressrow.h" #include "qt/QUISH/forms/ui_myaddressrow.h" MyAddressRow::M...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/profiler/tfprof_output.proto #include "tensorflow/core/profiler/tfprof_output.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format...
/* * Copyright (c) 2013 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...
#include "heap.h" #include <vector> #include <iostream> using namespace binaryheap; void printHeap(MaxBinaryHeap<int> &h) { std::cout << std::endl; while (h.size() > 0) { std::cout << h.top() << std::endl; h.pop(); } } void printHeap(MinBinaryHeap<int> &h) { std::cout << std::endl; while (h.size() > ...
#include <string> #include <future> int main() { }
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2022 The Suda developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-lice...
// C++ code to implement Fibonacci series #include <bits/stdc++.h> using namespace std; // Function for fibonacci int fib(int N) { // Stop condition if (N == 0) return 0; // Stop condition if (N == 1 || N == 2) return 1; // Recursion function else return (fib(N - ...
/* $Id: PubMedId.hpp 609821 2020-06-08 15:52:13Z grichenk $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Wor...
version https://git-lfs.github.com/spec/v1 oid sha256:e5b52f615b129991dd151f11f56c8bf1aafe36707637312b5669518f51355586 size 3154
/* Copyright 2021-2022 NVIDIA 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/*++ Copyright (c) Microsoft Corporation Licensed under the MIT license. Module Name: - renderData.hpp Abstract: - This method provides an interface for rendering the final display based on the current console state Author(s): - Michael Niksa (miniksa) Nov 2015 --*/ #pragma once #include "../renderer/inc/IRenderDa...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The DIGIWAGE 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) #incl...
#include "Vector.hpp" Vector::Vector() {} Vector::Vector(float x_, float y_) { x = x_; y = y_; } Vector::Vector(pair<float, float> v) { x = v.first, y = v.second; } Vector operator+(const Vector &u, const Vector &v) { return Vector(u.x + v.x, u.y + v.y); } Vector operator-(const Vector &u, const Vector &v) { r...
void bind_HitForcePickup([[maybe_unused]] v8::Isolate* isolate, v8pp::module& module) { v8pp::class_<HitForcePickup> cl_HitForcePickup(isolate); cl_HitForcePickup.inherit<RumblePickupComponentWrapper>(); cl_HitForcePickup.ctor<uintptr_t>(); cl_HitForcePickup.set<long unsigned int(HitForcePickup::*)()>("GetbBallFor...
// // Resources.cpp // GameEngineX // // Created by George Hanna on 26/05/16. // Copyright © 2016 George Hanna. All rights reserved. // #include "Resources.hpp" namespace Resources { std::string _root; //Graphics Handlers ShaderProgramHandler* _shaderprogramhandler; TextureHandler* _texturehandler; MeshHandler*...
// Copyright (C) 2011 Tim Blechmann // // 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/lockfree/queue.hpp> #define BOOST_TEST_MAIN #ifdef BOOST_LOCKFREE_INCLUDE_TESTS #include <boost/test/in...
#include <bits/stdc++.h> #define ll long long int using namespace std; void print_vec(vector<int> v) { for (auto i : v) { cout << i << " "; } cout << "\n"; } int main() { ll t; cin >> t; while (t--) { ll n; cin >> n; vector<int> a; vector<int> b; ...
/* Copyright 2016 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...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
#include "dzplugin.h" #include "dzapp.h" #include <qstring.h> #include "version.h" #include "MDMyWidget.h" DZ_PLUGIN_DEFINITION("DazWidget2Script"); DZ_PLUGIN_AUTHOR("plugin author"); DZ_PLUGIN_VERSION(PLUGIN_MAJOR, PLUGIN_MINOR, PLUGIN_REV, PLUGIN_BUILD); DZ_PLUGIN_DESCRIPTION(QString( "DazPluginBase Documentat...
/*++ Copyright (c) 2015 Microsoft Corporation Module Name: seq_rewriter.cpp Abstract: Basic rewriting rules for sequences constraints. Author: Nikolaj Bjorner (nbjorner) 2015-12-5 Murphy Berzish 2017-02-21 Caleb Stanford 2020-07-07 Margus Veanes 2021 --*/ #include "util/uint_set.h" #incl...
int source() { return 0; } // dummy source void sink(int p) {} // dummy sink int main(int argc, char **argv) { int a = source(); sink(a); return 0; }
/* * Copyright (C) 2018 by Author: Aroudj, Samir * TU Darmstadt - Graphics, Capture and Massively Parallel Computing * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the License.txt file for details. */ #include "Platform/Storage/File.h"...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "CustomActionWrapper.h" namespace AdaptiveCards::ObjectModel::Uwp { CustomActionWrapper::CustomActionWrapper(_In_ winrt::AdaptiveCards::ObjectModel::Uwp::IAdaptiveActionElement const& actionEle...
/* * Copyright (c) 2006-2016, Visualization and Multimedia Lab, * University of Zurich <http://vmml.ifi.uzh.ch>, * Eyescale Software GmbH, * Blue Brain Project, EPFL * * This file is part of VMMLib <https://github.com/VMML/vmmlib/> * * R...
// 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/memory/ref_counted.h" #include "base/test/opaque_ref_counted.h" #include "testing/gtest/include/gtest/gtest.h" namespace { class Sel...
/*========================================================================= Program: ParaView Module: vtkMPIMToNSocketConnection.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Ruben Zorrilla // // // System includes // Ext...
/* * 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 ...
#include "ckpch.h" #include "SceneCamera.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> namespace Cherenkov { SceneCamera::SceneCamera() { recalculate(); } void SceneCamera::recalculate() { if (m_Type == ProjectionType::Orthographic) { m_Projection = glm::ortho( (m_AspectRatio * m_O...
// ConsoleApplication.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <iostream> #include <string> #include"Hoge.h" int main() { auto message = std::string("Hello World!\n"); std::cout << message.; //Hoge h;h. return 0; }
/* font.cc -- Copyright (c) 2013 Noel Cower. All rights reserved. See COPYING under the project root for the source code license. If this file is not present, refer to <https://raw.github.com/nilium/snow/master/COPYING>. */ #include "font.hh" #include "../data/database.hh" #include "draw_2d.hh" #include <algorith...
#pragma once #include "chain_complex.hpp" #include <filtration/filtration.hpp> namespace bats { // template over filtration and matrix type template <typename FT, typename MT> struct FilteredChainComplex { std::vector<std::vector<FT>> val; // stored in original order ChainComplex<MT> C; // stored in permutation or...
#include <QApplication> #include "mylib.hh" #include "easylogging++.h" _INITIALIZE_EASYLOGGINGPP int main(int argc, char *argv[]) { QApplication a(argc, argv); Mylib l; LOG(INFO) << "1 + 2 = " << l.add(1, 2); LOG(INFO) << "1 / 2 = " << l.div(1, 2); LOG(DEBUG) << "1 * 2 = " << l.mul(1, 2); /...
#include <iostream> #include <chrono> #include <string> #include <ctime> #include "concurrencpp/concurrencpp.h" int example_job(int task_num, int dummy_value, int sleeping_time_ms) { const auto msg0 = std::string("task num: ") + std::to_string(task_num) + " is going to sleep for " + std::to_string(sleepi...
// Copyright (c) 2011 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 "net/base/dns_util.h" #include <cstring> namespace net { // Based on DJB's public domain code. bool DNSDomainFromDot(const base::StringPie...
// Copyright (c) 2019 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...
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers // // This file is part of Bitcoinphantom. // // Bitcoinphantom 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 ve...
#include <moveit_planning_helper/MoveItPlanner.h> #include <convenience_ros_functions/RobotInfo.h> #include <geometric_shapes/solid_primitive_dims.h> #define ALLOWED_PLANNING_TIME 3 #define ALLOWED_PLANNING_TIME_PATH_CONSTRAINTS 60 #define ALLOWED_PLANNING_ATTEMPTS 10 using moveit_planning_helper::MoveItPlanner; usin...
#include<bits/stdc++.h> #define int uint64_t #define tses int testcases; cin >> testcases; while(testcases--) #define fio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); // pcode : ADDNDIV // question_link: https://www.codechef.com/START13A/problems/ADDNDIV using namespace std; int32_t main(void){ ...
/* Copyright 2019 Diligent Graphics 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 * * THE SOFTWARE IS PROVIDED "AS...
#include "BoardConfig.h" #include "Scheduler.h" #include <EEPROM.h> CBoardConfig CBoardConfig::Inst; CBoardConfig::CBoardConfig() { LoadFromEEPROM(); if (Volume > 255) { Volume = 255; } if (LightThresholdBack > 1023) { LightThresholdBack = 1000; } } CBoardConfig::~CBoardConfig() { } void CBoardConfig:...
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless req...
/*! @file TrickHLA/OpaqueBuffer.hh @ingroup TrickHLA @brief This class provides a generic opaque buffer that is in the Trick managed memory space. This is useful for sending a fixed record of data that includes byte padding to ensure a byte alignment. @copyright Copyright 2019 United States Government as represented b...
// Copyright (C) 2020, Aktiv-Soft JSC. All rights reserved. // This file is part of rtuart project licensed under the terms of the 2-clause // BSD license. See the LICENSE file found in the top-level directory of this // distribution. #include <rtuartscreader/iso7816_3/atr.h> #include <initializer_list> #include <mem...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the...
#ifndef GFX_HPP #define GFX_HPP #define _USE_MATH_DEFINES #include <vector> #include <random> #include <SDL2/SDL.h> #include <GL/glew.h> #include <Eigen/Core> #include <Eigen/Geometry> namespace fox { class counter; } class physics; class gfx { public: gfx(); void init(); void deinit(); void render(); void ...
#include <catch2/catch.hpp> #include <deque> #include "buffer/buffer_queue.hpp" static int default_ctor_count = 0; static int copy_ctor_count = 0; static int user_ctor_count = 0; TEST_CASE("buffer_queue has consistent accessors/modifiers", "[buffer][buffer_queue]") { struct dummy { dummy() { ++default_ctor...
class Solution { public: string longestCommonPrefix(const vector<string> &strs) { std::string result; if (strs.empty()) { return result; } int length = 0; while (true) { if (length >= strs[0].size()) { ...
#pragma once #include "Graniastoslup.hh" /*! * \brief Klasa Prostopadloscian. * Deklaracja klasy prostopadłościan. Zawiera ona elementy i metody potrzebne do wykonywania różnych operacji na prostopadłościanie, które są w większości dziedziczone z klasy Gransiatoslup. * Sama w sobie posiada swój konstruktor parametry...
//================================================================================================= /*! // \file src/mathtest/dvecdvecinner/V6bVHa.cpp // \brief Source file for the V6bVHa dense vector/dense vector inner product math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This...
// Copyright 2020 the deepx authors. // Author: Shuting Guo (tinkleguo@tencent.com) // #include "cse.h" #include <algorithm> // std::sort #include <unordered_set> #include <vector> namespace deepx_core { namespace { bool IsInputCommutative(const GraphNode* node) noexcept { return node->type_index() == typeid(MulN...
/* Copyright (c) 2013 Aerys 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, publish, distribute, sublicens...
//last change: by Hanchuan Peng. 2012-12-30, 2013-06-05 #include "vn_app2.h" #include "fastmarching_tree.h" #include "fastmarching_dt.h" #include "hierarchy_prune.h" #include "marker_radius.h" #include "basic_surf_objs.h" #include "swc_convert.h" #include "vn_imgpreprocess.h" #include "volimg_proc.h" bool saveSWC_fil...
/** @file jsobj.cpp - BSON implementation http://dochub.mongodb.org/core/bson */ /* Copyright 2009 10gen 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 * * htt...
/* * Copyright (C) 2015 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 applicable l...
#include "matrices.h" #ifdef Z_24 unsigned int wimax_576_0_83_D = 20; unsigned int wimax_576_0_83_X = 1; int16_t wimax_576_0_83[96][20] = { {0, 30, 61, 107, 121, 190, 213, 218, 261, 277, 308, 320, 337, 360, 393, 413, 433, 475, 500, 504}, {1, 31, 62, 108, 122, 191, 214, 219, 262, 278, 309, 321, 338, 361, 394,...
#include "Leaf.h" #include <iostream> using namespace std; Leaf::Leaf() { } Leaf::~Leaf() { } void Leaf::Operation() { cout << "Leaf operation....." << endl; }
/* * Copyright 2014-present Facebook, 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 applicable law or a...
#include "helpers.h" #include <string> unsigned iconWeapon[WeaponTypes::Enum::MAX] = { 323, 323, 324, 324, 325, 325, 364, 326, 327, 326, 327, 328, 328, 329, 330, 331, 332, 331, 332, 333, 334, 333, 334, 333, 334, 335, 335, 336, 336, 337, 251, 311, 240, 241, 241, 338, 338, 338, 339, 339, 340, 340, 341, 342, 342, 343, 3...
// // detail/impl/winrt_ssocket_service_base.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 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/LICE...