text
stringlengths
5
1.04M
/** * * ADTF Template Project * * @file * Copyright © Audi Electronics Venture GmbH. All rights reserved * * $Author: belkera $ * $Date: 2011-06-30 16:51:21 +0200 (Thu, 30 Jun 2011) $ * $Revision: 26514 $ * * @remarks * */ #include "stdafx.h" #include "filter.h" //#define DEBUG_OUTPU...
/* * Copyright (c) 2021 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 * * Unless...
#include "pch.h" #include "AdaptiveSubmitAction.h" #include "Util.h" using namespace Microsoft::WRL; using namespace ABI::AdaptiveNamespace; using namespace ABI::Windows::Data::Json; namespace AdaptiveNamespace { HRESULT AdaptiveSubmitAction::RuntimeClassInitialize() noexcept try { std::shared_ptr<Ada...
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // TGUI - Texus' Graphical User Interface // Copyright (C) 2012-2021 Bruno Van de Velde (vdv_b@tgui.eu) // // This software is provided 'as-is', without any express or implied warranty. /...
#include<iostream> #include<cstring> long long mod=1e9+7; using namespace std; long long mmi_1[(long long)(1e5+7)]; long long mmi_2[(long long)(1e5+7)];//inverse factorial long long fac[(long long )(1e5+7)]; long long mmi(long long n,long long pow){ if(pow==0){ return 1; } if(pow==1){ return n; } l...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ // LY Editor Crashpad Upload Handler Extension #include <handler/handler_main.h> #include <tools/...
// Copyright 2014 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 "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h" #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include "base/basictypes...
// MIT License // // MEL - Mechatronics Engine & Library // Copyright (c) 2019 Mechatronics and Haptic Interfaces Lab - Rice University // // 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 w...
#include "ByteReader.h" #include <byteswap.h> uint8_t readUInt8(const uint8_t* addr, std::size_t& pos) { const uint8_t val = *(uint8_t*)(&(addr[pos])); ++pos; return val; } int32_t readInt32(const uint8_t* addr, std::size_t& pos) { const int32_t val = __bswap_32(*(int32_t*)(&(addr[pos]))); pos += ...
// Copyright Nathaniel Christen 2019. // 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 "phr-minimal-evaluator.h" #include "kop-base.h" #include "kops/add.h" #include "kops/su...
#ifndef KFTG_ARRAY #define KFTG_ARRAY #include "types.hpp" #include "Memory/MemoryManager.hpp" #include <cstring> #define ARRAY_BLOCK_SIZE 50 namespace KFTG { // dynamic array (append only) template <typename T> class array { public: class iterator { public: iterator (u32 ind, array<T> *a) : index (ind), arr ...
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
// Copyright 2020 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/webui/settings/hats_handler.h" #include <memory> #include <string> #include "base/values.h" #include "chrome/browser/ui/hats...
//----------------------------------*-C++-*----------------------------------// // Copyright 2020 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
#include <chrono> #include <memory> #include "rclcpp/rclcpp.hpp" #include "tutorial_interfaces/msg/num.hpp" // CHANGE using namespace std::chrono_literals; class MinimalPublisher : public rclcpp::Node { public: MinimalPublisher() : Node("minimal_publisher"), count_(0) { publisher_ = this->create_publis...
/******************************************************************************* * 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...
/* =========================================================================== GWEN Copyright (c) 2010 Facepunch Studios Copyright (c) 2017-2018 Cristiano Beato MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
/*------------------------------------------------------------------------- * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2018 Advanced Micro Devices, Inc. * Copyright (c) 2018 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
#include "stdafx.h" #include "UIComboBox.h" namespace UiLib { CComboBoxUI::CComboBoxUI() { m_nArrowWidth = 0; } LPCTSTR CComboBoxUI::GetClass() const { return _T("ComboBoxUI"); } void CComboBoxUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue) { if (_tcscmp(pstrName, _T("arrowimage")) == 0) m_sA...
#include <vector> #include "wayfire/debug.hpp" #include <string> #include <wayfire/config/file.hpp> #include <wayfire/config-backend.hpp> #include <wayfire/plugin.hpp> #include <wayfire/core.hpp> #include <sys/inotify.h> #include <unistd.h> #define INOT_BUF_SIZE (1024 * sizeof(inotify_event)) static char buf[INOT_BUF...
#include <Framework/Controls/UserControl.h> namespace suic { ImplementRTTIOfClass(UserControl, suic::ContentControl) bool UserControl::StaticInit() { return true; } UserControl::UserControl() { } UserControl::~UserControl() { } }
#ifndef BOOST_ARCHIVE_BASIC_STREAMBUF_LOCALE_SAVER_HPP #define BOOST_ARCHIVE_BASIC_STREAMBUF_LOCALE_SAVER_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) # pragma once #endif /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_streambuf_local_sa...
/* 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...
// tagged pointer, for aba prevention // // Copyright (C) 2008 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) // Disclaimer: Not a Boost library. #ifndef BOOST_LOCKFREE_TAGGED_...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #include "include/pika_ser...
#pragma once #include <seqan3/std/filesystem> #include <fstream> #include <queue> #include <random> #include <omp.h> #include <robin_hood.h> #include <chopper/sketch/hyperloglog.hpp> namespace chopper::sketch { class user_bin_sequence { protected: //!\brief type for a node in the clustering tree when for the ...
// // bind/mem_fn_template.hpp // // Do not include this header directly // // Copyright (c) 2001 Peter Dimov and Multi Media Ltd. // // 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) // // See http://www.boost...
/* Copyright 2015-2022 Igor Petrovic Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright (c) 2009-2014 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/phase-config.h" #endif #include <cstring> #if HAVE_DECL_STRNLEN == 0 size_t str...
#include <fc/rpc/websocket_api.hpp> namespace fc { namespace rpc { websocket_api_connection::~websocket_api_connection() { } websocket_api_connection::websocket_api_connection( fc::http::websocket_connection& c ) : _connection(c) { _rpc_state.add_method( "call", [this]( const variants& args ) -> v...
#include "caffe2/operators/h_softmax_op.h" #include <queue> #include <stack> namespace caffe2 { template <> float HSoftmaxOp<float, CPUContext>::RunForwardSingle(const float* X, const float* W, const float* b, int target, float* int_output, const float* bias_multiplier, int dim_out, int dim_in, int& int_output...
/* file: svm_train_v1.cpp */ /******************************************************************************* * Copyright 2014-2021 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 Lice...
/* Copyright 2015-2017 Philippe Tillet * * 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,...
//@HEADER // ************************************************************************ // // Kokkos v. 2.0 // Copyright (2014) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this software...
// utility.cc // Debugging routines. Allows users to control whether to // print DEBUG statements, based on a command line argument. // // Copyright (c) 1992-1993 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer ...
// Copyright 2014 BVLC and contributors. #include <stdint.h> #include <fcntl.h> #include <google/protobuf/text_format.h> #include <google/protobuf/io/zero_copy_stream_impl.h> #include <google/protobuf/io/coded_stream.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/highgui/h...
/* * Copyright 2021 OmniSci, 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 agreed t...
// Copyright (c) 2018 Douglas Lassance. All rights reserved. #include "ShakerComponent.h" #include "Shaker.h" #include "ShakerShake.h" UShakerComponent::UShakerComponent(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { PrimaryComponentTick.bCanEverTick = true; PrimaryComponentTick.TickGrou...
/* * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> * Copyright (C) 2005 Eric Seidel <eric@webkit.org> * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> * Copyright (C) 2013 Google Inc. All rights reserved. * * This library is fre...
#include "bullet.hpp" #include "stepfunc.hpp" #include "gameengine.hpp" const BulletStepFunc StepFunc::nullStepFuncList[] = { NULL, NULL, }; const BulletStepFunc StepFunc::effectHitStepFuncList[] = { StepFunc::effectHit, ListBullets::stepFuncDrop, NULL, }; const BulletStepFunc StepFunc::effectBonusStepFun...
#include "ziggurat.hpp" #include <fstream> #include <string> StampList::StampList(const std::filesystem::path& stampFilePath) : dataPath(stampFilePath) { std::ifstream stampFile(dataPath, std::ios::in); if (stampFile.good()) { std::string filePath, timestamp; while (stampFile >> filePath >> timestamp) { ...
#include "zrandom.h" #include <QThreadStorage> #include "QsLog.h" #include <algorithm> #if defined(_WIN32) || defined(_WIN64) #include <intrin.h> #define rdtsc __rdtsc #else // For everything else static unsigned long long rdtsc() { unsigned int lo,hi; __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/extensions/file_browser_private_custom_bindings.h" #include <string> #include "base/basictypes.h" #include "base/logging.h...
//Insertoion sort presumes the the array till curr index is sorted and places the curr element in the sort part at its correct place #include<iostream> using namespace std; void insertionsort(int arr[],int len){ for(int curr=1;curr<len;curr++){ //starting curr from 1 because we assumes that 0th element i...
/* Author: Zachary Kingston */ #include <boost/format.hpp> #include <dart/dynamics/InverseKinematics.hpp> #include <dart/dynamics/SimpleFrame.hpp> #include <robowflex_library/constants.h> #include <robowflex_library/log.h> #include <robowflex_library/tf.h> #include <robowflex_dart/robot.h> #include <robowflex_dart/...
#include "DazToUnrealMaterials.h" #include "DazToUnrealSettings.h" #include "DazToUnrealTextures.h" #include "Materials/MaterialInstanceConstant.h" #include "Factories/MaterialInstanceConstantFactoryNew.h" #include "Factories/SubsurfaceProfileFactory.h" #include "Engine/SubsurfaceProfile.h" #include "AssetRegistryModu...
/* * Copyright (C) 2018-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "opencl/test/unit_test/program/program_tests.h" #include "shared/source/command_stream/command_stream_receiver_hw.h" #include "shared/source/compiler_interface/compiler_warnings/compiler_warnings.h" #include "shared/sou...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "URealisticGraspingEditor.h" #include "UGraspingEditorStyle.h" #include "UGraspingEditorCommands.h" #include "UGraspingEditorCallback.h" #include "Engine.h" #include "LevelEditor.h" #include "ISkeletalMeshEditor.h" #include "ISkeletalMeshEditorMod...
/* * sample_app.hpp * This file is a part of Kaptivate * https://github.com/FunkyTownEnterprises/Kaptivate * * Copyright (c) 2011 Ben Cable, Chris Eberle * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
// Ouzel by Elviss Strazdins #ifndef OUZEL_CORE_SYSTEMLINUX_HPP #define OUZEL_CORE_SYSTEMLINUX_HPP #include "../System.hpp" namespace ouzel::core::linux { class System final: public core::System { public: System(int argc, char* argv[]); ~System() override = default; }; } #endif // OU...
// Copyright 2014 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/compiler.h" #include "src/zone.h" #include "src/compiler/common-operator.h" #include "src/compiler/generic-node-inl....
#include <FoundationPCH.h> #include <Foundation/IO/ChunkStream.h> ezChunkStreamWriter::ezChunkStreamWriter(ezStreamWriter& pStream) : m_Stream(pStream) { m_bWritingFile = false; m_bWritingChunk = false; } void ezChunkStreamWriter::BeginStream(ezUInt16 uiVersion) { EZ_ASSERT_DEV(!m_bWritingFile, "Already writ...
// Copyright (c) 2017 Intel Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pub...
//===-- ProfiledBinary.cpp - Binary decoder ---------------------*- C++ -*-===// // // 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 // //===---------------------------...
// Copyright (c) 2012-2020 FRC Team 3512. All Rights Reserved. /* ===== Hammer ===== * There are two parts to switching the state of this mechanism. * * 1) The first device is moved into position and out of the other one's way. * 2) The second device is moved after a delay to avoid a mechanical lock-up. * * When...
// 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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <i...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/searchcore/proton/persistenceengine/ipersistencehandler.h> #include <vespa/searchcore/proton/persistenceengine/persistence_handler_map.h> #include <vespa/document/fieldvalue/document.h> #include <ve...
#include <stdio.h> #include <iostream> #include <fstream> #define DEV 1 using std::cin; using std::cout; using std::endl; using std::terminate; void solve(int x) { int N; cin >> N; int V[N + 2]; V[0] = -1; for (int i = 1; i <= N; ++i) { cin >> V[i]; } V[N + 1] = -1; int y = 0; ...
// std::codecvt implementation details, generic version -*- C++ -*- // Copyright (C) 2002 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by t...
#include <cassert> #include <cstring> #include <algorithm> #include "lct.h" using std::swap; static struct Node { int val, mx, pos; int fa, lch, rch; bool rev; } m[NMAX + 1]; inline void push(int x) { if (m[x].rev) { swap(m[x].lch, m[x].rch); m[m[x].lch].rev ^= 1; m[m[x].rch...
#include <chrono> // for high_resolution_clock #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> #include <ros/ros.h> #include <eigen_matrix_utils/eigen_matrix_utils.h> #include <state_space_filters/common_filters.h> #include <gtest/gtest.h> using namespace eigen_control_toolbox; Eigen::I...
// // Created by Martin Blicha on 15.07.20. // #include <engine/TPA.h> #include <engine/Bmc.h> #include <engine/Lawi.h> #include <engine/Spacer.h> #include <engine/ReverseWrapper.h> #include <engine/LoopAccelerator.h> #include "ChcInterpreter.h" #include "ChcGraph.h" #include "Validator.h" #include "Normalizer.h" nam...
//===--- SwiftSourceDocInfo.cpp -------------------------------------------===// // // 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...
// (a) Who goes with fergus? // (b) 3.14e1L --> long double // (c) 1024f --> floating point // (d) 3.14L --> long double
#include "../TensorShaderAvxBackend.h" using namespace System; void zero_padding_1d(unsigned int channels, unsigned int inwidth, unsigned int outwidth, unsigned int th, unsigned int pad_left, unsigned int pad_right, ...
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. // This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2022 Datadog, Inc. #include "ManagedThreadList.h" #include "Log.h" #include "OpSysTools.h" ManagedThreadList* Manag...
/////////////////////////////////////////////////////////////////////////////// // // // DxilAddPixelHitInstrumentation.cpp // // Copyright (C) Microsoft Corporation. All rights reserved. // ...
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
#include <stddef.h> #include <string> #include <filesystem> #include "../mtlpp.hpp" const unsigned int arrayLength = 10; //1 << 24; const unsigned int bufferSize = arrayLength * sizeof(float); //xcrun -sdk macosx metal -c add.metal -o add.air //xcrun -sdk macosx metallib add.air -o add.metallib //xcrun -sdk macosx m...
/*******************************************************************\ Module: Memory Analyzer Author: Malte Mues <mail.mues@gmail.com> Daniel Poetzl \*******************************************************************/ /// \file /// Commandline parser for the memory analyzer executing main work. #include "...
#include "kindyn/controller/cardsflow_command_interface.hpp" namespace hardware_interface { CardsflowHandle::CardsflowHandle() : CardsflowStateHandle(){} /** * @param js This joint's state handle * @param cmd A pointer to the storage for this joint's output command */ CardsflowHandle::Car...
#include <iostream> #include <sstream> #include "doctest.h" // テスト対象 #include "counter.cpp" TEST_SUITE("counter.cpp") { TEST_CASE("calcTime") { SUBCASE("shows error message.") { std::stringbuf buf; std::streambuf* prev = std::cout.rdbuf(&buf); Counter* c = new Counter(...
#pragma once #include <boost/asio/ip/address.hpp> #include <string> namespace redfish { namespace ip_util { /** * @brief Converts boost::asio::ip::address to string * Will automatically convert IPv4-mapped IPv6 address back to IPv4. * * @param[in] ipAddr IP address to convert * * @return IP address string */...
#include <stdint.h> #include <string> #include <sstream> #include <vector> #include <list> #include <map> #include <unordered_map> #include <fstream> #include "zlib.h" #include "debug.hpp" #include "defines.hpp" #include "Config.hpp" #include "Request.hpp" #include "Response.hpp" #include "Mem_Interface.hpp" #include "...
/* Copyright (c) 2009-2015, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #pragma once #ifndef EL_TRTRMM_UNBLOCKED_HPP #define EL...
#include "SceneTest.h" namespace test { TEST_F(SceneTest, CheckConstructorMatrixTest) { EXPECT_FALSE(scene_); sgl::matrix test; scene_ = std::make_shared<sgl::SceneMatrix>(test); EXPECT_TRUE(scene_); } TEST_F(SceneTest, CheckConstructorMeshTest) { EXPECT_FALSE(scene_); auto mesh = std::make_shared<s...
/*************************************************************************** copyright : (C) 2006 by Lukáš Lalinský email : lalinsky@gmail.com copyright : (C) 2004 by Allan Sandfeld Jensen email : kde@carewolf.org (original ...
#include <gtest/gtest.h> #include "hydrogen.hpp" //#include <unsupported/Eigen/MatrixFunctions> // Given the function, return the graidents // w.r.t. the coordinates template<typename T, typename Fn> Eigen::Matrix<T, 1, 3> gradient(const Eigen::Matrix<T, 1, 3>& p, Fn func) { const T eps = 1e-6; // +2h +h -h ...
/** Copyright 2009-2018 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
/********************************************************************* * This file is distributed as part of the C++ port of the APRIL tags * library. The code is licensed under GPLv2. * * Original author: Edwin Olson <ebolson@umich.edu> * C++ port and modifications: Matt Zucker <mzucker1@swarthmore.edu> ********...
#ifdef _WIN32 #include "platform/win32/win32.h" #include "resource.h" namespace util { WindowsPlatform::WindowsPlatform() { // Get the icon directory PBYTE iconDirectory = getIconDirectory(WIN32_ICON_MAIN); // Get the default device info m_screenScalingFactor = getScreenScalingFactor(nullptr); m_refreshRat...
// // VulkanBackend.cpp // MNN // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #include "VulkanBackend.hpp" #include <mutex> #include "Execution.hpp" #include "Macro.h" #include "Tensor.hpp" #include "TensorUtils.hpp" #include "VulkanDevice.hpp" #include "VulkanImageConver...
#include "systems/RenderSystem.h" #include "components/Position.h" #include "components/Display.h" #include "components/Background.h" #include "ScreenSize.h" #include "ResourcePath.hpp" using namespace entityx; RenderSystem::RenderSystem(sf::RenderWindow& window, const std::shared_ptr<sf::T...
#ifndef AV_SPEECH_IN_NOISE_TESTS_TASKCONTROLLEROBSERVERSTUB_HPP_ #define AV_SPEECH_IN_NOISE_TESTS_TASKCONTROLLEROBSERVERSTUB_HPP_ #include <av-speech-in-noise/ui/Task.hpp> namespace av_speech_in_noise { class TaskControllerObserverStub : public TaskController::Observer { public: void notifyThatTaskHasStarted() ...
// Copyright 2016 Stellar Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "util/BitsetEnumerator.h" #include <cassert> namespace stellar { ///////////////////...
//===--- SwiftEditor.cpp --------------------------------------------------===// // // 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...
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: DelayNode.tcc (nodes) // Authors: Chuck Jacobs // //////////////////////////////////////////////////////////////////////////////////////////////////// na...
// Copyright Ali Can Demiralp 2016 - 2021. // 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) #ifndef GL_SYNC_HPP #define GL_SYNC_HPP #include <gl/opengl.hpp> namespace gl { class sync { publ...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
#include "AnalyticsBlocker.h" #include "Debug.h" #include "Assertion.h" #include "../Managers/Hook.h" #include <algorithm> bool AnalyticsBlocker::ShouldDAB = false; const char* AnalyticsBlocker::BlockedList[] = { new char[29] { 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x75, 0x63, 0x61, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0...
/*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...
/* Copyright (C) 2003-2013 by David White <davewx7@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version....
#include "Goldfish/libGoldfish.h" #include <ctime> [[maybe_unused]] Goldfish::Log::Log(const std::string &filename) { this->fileName = filename + ".md"; this->startTime = std::time(nullptr); this->endTime = std::time(nullptr); } [[maybe_unused]] void Goldfish::Log::start() { this->log.open(this->fileN...
// Copyright (c) 2020 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 ...
#include <string.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <esp_log.h> #include "include/i2c.hh" static const char *TAG = "I2C_DEV"; xSemaphoreHandle *I2C::locks ={0}; esp_err_t I2C::Init() { I2C::locks = new xSemaphoreHandle[I2C_NUM_MAX]; for (int i = 0; i < I2C_NUM_MAX; i++) ...
#include "clang/Analysis/Analyses/LiveVariables.h" #include "clang/Analysis/Analyses/PostOrderCFGView.h" #include "clang/AST/Stmt.h" #include "clang/Analysis/CFG.h" #include "clang/Analysis/AnalysisContext.h" #include "clang/AST/StmtVisitor.h" #include "llvm/ADT/PostOrderIterator.h" #include "llvm/ADT/DenseMap.h" #i...
#include "Stdafx.h" #include "..\MarshalCollections.h" #using <System.Core.dll> using namespace msclr::interop; using namespace System; using namespace System::Text; using namespace System::Collections::Generic; using namespace NUnit::Framework; namespace WebRtcInterop { namespace Marshaling { namespace UnitTests {...
/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docum...