text
stringlengths
7
961k
/* * Copyright (c) 2008, Maxim Likhachev * 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 ...
/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across * ...
// 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 "base/files/memory_mapped_file.h" #include <stddef.h> #include <stdint.h> #include <utility> #include "base/files/file_path.h" #include "base/...
#pragma once #include "enum_hash.hpp" namespace kumori { enum class http_status_code : std::uint32_t { continue_ = 100, ok = 200, moved_permanently = 301, found = 302, not_modified = 304, bad_request = 400, unauthorized = 401, forbidden = 403, not_found = 404, method_not_allowed = 405, req...
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// intx: extended precision integer library. // Copyright 2019-2020 Pawel Bylica. // Licensed under the Apache License, Version 2.0. #include <intx/int128.hpp> #include "../utils/gmp.hpp" #include "../utils/random.hpp" #include <benchmark/benchmark.h> using namespace intx; uint128 div_gcc(uint128 x, uint128 y) noex...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "TerminalPage.h" #include "Utils.h" #include "../../types/inc/utils.hpp" #include <LibraryResources.h> #include "TerminalPage.g.cpp" #include <winrt/Windows.Storage.h> #include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h...
#ifndef DISJOINT_SET_HPP #define DISJOINT_SET_HPP #include <vector> class DisjointSet { public: DisjointSet(int n); void merge(int i, int j); int find(int i); int get_size(int i); private: std::vector<int> parent...
#include "FsSpineSprite.h" #include "FsTextureAttachment.h" #include "graphics/FsRender.h" #include "FsGlobal.h" #include "mgr/FsProgramMgr.h" NS_FS_BEGIN const char* SpineSprite::className() { return "SpineSprite"; } SpineSprite* SpineSprite::create(const char* filename) { SpineSprite* ret=new SpineSprite; if(!...
# /* Copyright (C) 2001 # * Housemarque Oy # * http://www.housemarque.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) # */ # # /* Revised by Paul Mensonides (2002) */ # # /* See http://www.boost...
// Copyright 2016-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. template <typename T> void cuda_UnPooling_ForwardPass(T *input_features, T *output_features, ...
/******************************************************************************* * Copyright 2016-2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
// Copyright (c) 2011-2017 The Bytcoyn 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/arcana-config.h> #endif #include <qt/arcanagui.h> #include <chainparams.h> #inc...
#include "duckdb/common/string_util.hpp" #include "duckdb/common/to_string.hpp" #include "duckdb/parser/expression/case_expression.hpp" #include "duckdb/parser/expression/cast_expression.hpp" #include "duckdb/parser/expression/function_expression.hpp" #include "duckdb/parser/expression/operator_expression.hpp" #includ...
#pragma once #include "Build/Namespace.hpp" #include "Meta/IsBaseOfTemplate.hpp" #include "ECS/Safety/ComponentType.hpp" BEGIN_RUKEN_NAMESPACE template <ComponentType... TComponents> class System; /** * \brief Checks if the passed type is a system * \tparam TType Type to check */ template <typename TType> struct...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 copyright noti...
#include "downtimer.h" #include <EEPROM.h> #define GAME_LENGTH_ADDRESS 0 #define SHOT_CLOCK_TIME 60000L #include "defines.h" void DownTimer::init() { _gameLengthDivide5s = EEPROM.read(GAME_LENGTH_ADDRESS); //test: _gameLengthDivide5s = 4; reset(); } unsigned long DownTimer::elapsed() const { if (_fastTime)...
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2018-2019, The DeployCoin Developers // // Please see the included LICENSE file for more information. #include "ErrorMessage.h" #ifndef NOMINMAX #define NOMINMAX #endif #include <cstddef> #include <windows.h> namespace S...
// Copyright 2014-2017 Insight Software Consortium. // Copyright 2004-2009 Roman Yakovenko. // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt #ifndef __declarations_enums_hpp__ #define __declarations_enums_hpp__ namespace declarations{ namespace enums{ enum ENu...
#include <Bibim/Config.h> #include <Bibim/EasingCurves.h> namespace Bibim { EasingCurve::EasingCurve() { } EasingCurve::~EasingCurve() { } void EasingCurve::OnRead(Bibim::ComponentStreamReader& reader) { Base::OnRead(reader); } void EasingCurve::OnCopy(const Bibim::G...
/* Copyright 2019 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...
/** * @file four_int_values.cpp * @author Vincent Berenz * @license License BSD-3-Clause * @copyright Copyright (c) 2019, New York University and Max Planck * Gesellschaft. * @date 2019-05-22 * * @brief Demonstrate how to create a message with the exchange manager */ #include "shared_memory/demos/four_int_valu...
/* stdsoap2.c[pp] 2.7.15 gSOAP runtime engine gSOAP XML Web services tools Copyright (C) 2000-2009, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under ONE of the following licenses: GPL, or the gSOAP public license, or Genivia's license for commercial use. -----------...
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "MatchStateComponent.h" #include "UnrealNetwork.h" #include "GameFramework/Actor.h" UMatchStateComponent::UMatchStateComponent() { PrimaryComponentTick.bCanEverTick = false; bReplicates = true; } void UMatchStateComponent::GetLifetimeReplicatedPr...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 The NovaCoin 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 "miner.h"...
// 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 "base/basictypes.h" #include "base/compiler_specific.h" #include "ui/compositor/compositor_setup.h" #include "ui/compositor/test/compositor_test_...
/*_______ _____ ______ ______ |__ __| __ \| ____| ____| Tree data structure for C++ | | | |__) | |__ | |__ version 0.1.0 | | | _ /| __| | __| https://github.com/FrancoisCarouge/Tree | | | | \ \| |____| |____ |_| |_| \_\______|______| SPDX-License-Identifier: Unlicense This is ...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// 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: UnityEngine.MonoBehaviour #include ...
/////////////////////////////////////////////////////////////////////////////// /// /// Authors: Joshua Davis /// Copyright 2011, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #pragma once namespace Zero { namespace Physics { //Templated functio...
// Copyright (c) 2011-2016 The Jobecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/addresstablemodel.h> #include <qt/guiutil.h> #include <qt/walletmodel.h> #include <base58.h> #include <wallet...
#ifndef SPAN_SRC_SPAN_IO_IOMANAGER_HH_ #define SPAN_SRC_SPAN_IO_IOMANAGER_HH_ #include "span/Common.hh" #if PLATFORM == PLATFORM_WIN32 #error "Yell at someone to add windows support for IOManager." #elif PLATFORM == PLATFORM_UNIX #if UNIX_FLAVOUR != UNIX_FLAVOUR_BSD && UNIX_FLAVOUR != UNIX_FLAVOUR_OSX #include "span/...
/* Problem Statement: https://leetcode.com/problems/lucky-numbers-in-a-matrix/ */ class Solution { public: vector<int> luckyNumbers (vector<vector<int>>& matrix) { int m, n, mn, pos; m = matrix.size(); n = matrix[0].size(); vector<int> lucky; for (int i = 0; i < m; i++) { pos = distance(matrix[i].begin(...
// Copyright (c) 2011-2013 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 <QApplication> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #...
// // NYStyleCheesePizza.cpp // DesignPatternsCPP // // Created by Konrad Werys on 5/01/17. // Copyright © 2017 Konrad Werys. All rights reserved. // #include "NYStyleCheesePizza.h" NYStyleCheesePizza::NYStyleCheesePizza(){ _name = "NY Style Sauce and Cheese Pizza"; _dough = "Thin Crust Dough"; _sauc...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <string.h> #include <math.h> #include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" #include <dirent.h> #include <iostream> #include <filesystem> #include <sys/stat.h> #include <sys/timeb.h> #include <sys/time.h> #include <wiri...
// ---------------------------------------------------------------------- // BLProfStats.cpp // ---------------------------------------------------------------------- #include <cstdio> #include <iostream> #include <fstream> #include <string> #include <utility> #include <map> #include <unordered_map> #include <vector> ...
//----------------------------------*-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) //-------------------------------------------------------------------------...
// 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 "extensions/browser/api/power/power_api.h" #include "base/bind.h" #include "base/lazy_instance.h" #include "content/public/browser/browser_threa...
// 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/browser/extensions/extension_uninstall_dialog.h" #include "base/logging.h" #include "base/message_loop.h" #include "chrome/browser/e...
/// \class AliTPCclusterFast /// /// Code for the fast MC simulation of the TPC response /// /// Microscopic simulation includes all features from the FULL MC simulation: /// - primary ionization /// - secondary inization /// - diffusion /// - gas gain with fluctuation /// - pad and time response fucnt...
/*! * Title ---- km/lua/BufferWrapper.cpp * Author --- Giacomo Trudu aka `Wicker25` - wicker25[at]gmail[dot]com * * Copyright (C) 2017 by Giacomo Trudu. * All rights reserved. * * This file is part of KeyMaker software. */ #include <km/lua/BufferWrapper.hpp> namespace km { // Begin main namespace namespace l...
/** * Simple API to gather and rank questions during talks * This is a simple API * * OpenAPI spec version: 1.0.0 * Contact: antony.guinard@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manual...
/* CatenaStm32L0_ReadAnalog.cpp Wed Mar 27 2019 11:06:04 chwon */ /* Module: CatenaStm32L0_ReadAnalog.cpp Function: CatenaStm32L0::ReadAnalog() Version: V0.14.0 Wed Mar 27 2019 11:06:04 chwon Edit level 3 Copyright notice: This file copyright (C) 2018-2019 by MCCI Corporation 3520 Krums Corners Road Ith...
// Copyright 2016 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 <limits.h> #include <stddef.h> #include <stdint.h> #include <cctype> #include <list> #include "include/v8-context.h" #include "include/v8-exc...
/* Given a array of integer and group size, reverse array by group size, example as follows: [1, 2, 3, 4, 5, 6], 1 -> [1, 2, 3, 4, 5, 6] [1, 2, 3, 4, 5, 6], 2 -> [2, 1, 4, 3, 6, 5] [1, 2, 3, 4, 5, 6], 3 -> [3, 2, 1, 6, 5, 4] [1, 2, 3, 4, 5, 6, 7, 8], 3 -> [3, 2, 1, 6, 5, 4, 8, 7] Design test cases for you API */ ...
/* file: gbt_reg_traversed_model_builder.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...
#include "ghidra_disasm.h"
/*========================================================================= Program: Visualization Toolkit Module: TestGradientAndVorticity.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 ...
#include "Frame.h" #include <utility/BytesConverter.h> using namespace std; using namespace utility; using namespace communication; Frame::Frame(FrameType frameTypeIn, uint16_t dataSizeIn) : systemVersion_(1), frameType_(frameTypeIn), packetNumber_(0), dataSize_(dataSizeIn) { } Frame::~Frame() ...
/** * @file posix/fs.cpp * @brief POSIX filesystem/directory access/notification * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set fo...
#include <iostream> #include <vector> using std::vector; int main(int argc, char const *argv[]) { vector<int> ivec; int num; while (std::cin >> num) { ivec.push_back(num); } for (auto i : ivec) { std::cout << i << " "; } std::cout << std::endl; return 0; }
#include <stdio.h> #include <iostream> #include "dbscan.h" using std::cout; using std::endl; #define MINIMUM_POINTS 4 // minimum number of cluster #define EPSILON (0.75*0.75) // distance for clustering, metre^2 void readBenchmarkData(vector<Point>& points) { Point p; p.x = 5; p.y = 5; p.z = 5...
// Test host codegen. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=pow...
/* =========================================================================== Copyright (c) 2010-2015 Darkstar Dev Teams 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 3 of...
#include "MessageHandler.h" MessageHandler::MessageHandler() { } MessageHandler::~MessageHandler() { }
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/execution/operator/scan/physical_table_scan.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/execution/physical_operat...
#pragma once #ifndef UITSL_POLYFILL_IMPL_BARRIER_HPP_INCLUDE #define UITSL_POLYFILL_IMPL_BARRIER_HPP_INCLUDE #include <condition_variable> #include <cstddef> // polyfill until C++20 barrier becomes available // TODO C++20 cpp20 switch to std::barrier namespace std { // adapted from // https://github.com/llvm/llvm-p...
/******************************************************************************* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ /** * @date 11.2.2018 * @brief Bad argument tests for @ref qpl_op_compress opera...
/* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found in the RakNet Patents.txt file...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkColorPriv.h" #include "SkPaint.h" #include "SkRandom.h" #include "SkString.h" #include "sk_tool_...
/* agent_context_switch_test.cc Jeremy Barnes, 15 June 2014 Copyright (c) 2014 Datacratic Inc. All rights reserved. Test for the context switches for the bidding agent. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "rtbkit/core/router/router.h" #includ...
#define CATCH_CONFIG_MAIN #include "../../vendor/catch/catch.hpp" #include "boost_defs.hpp" #include "grabbable_state_queues_manager.hpp" #include <boost/optional/optional_io.hpp> namespace { auto device_id1 = krbn::device_id::zero; auto device_id2 = krbn::device_id::zero; auto registry_entry_id1 = krbn::registry_en...
//===- IndexTypes.hpp ----------------------------------------------- C++ -===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// /// /// \file ///...
#ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_W32_HPP_INCLUDED #define BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_W32_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // // detail/sp_counted_base_w32.hpp // // Copyright (c) 2001, 2002, 2003 ...
#include "common/http/header_map_impl.h" #include "extensions/filters/http/header_to_metadata/header_to_metadata_filter.h" #include "test/mocks/http/mocks.h" #include "test/mocks/stream_info/mocks.h" #include "test/test_common/utility.h" #include "gmock/gmock.h" #include "gtest/gtest.h" using testing::_; using test...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "stdafx.h" #include "TokenType.h" HRESULT MicrosoftInstrumentationEngine::CTokenType::GetToken(_Out_ mdToken * token) { IfNullRetPointer(token); *token = m_token; return S_OK; } HRESULT MicrosoftInstr...
//===----------------------------------------------------------------------===// // DuckDB // // test/include/test_helper_extension.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/main/extension.hpp" namespace duckdb { ...
// Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_JSON_PEGTL_INTERNAL_DISABLE_HPP #define TAO_JSON_PEGTL_INTERNAL_DISABLE_HPP #include "../config.hpp" #include "duseltronik.hpp" #include "seq.hpp" #include "skip_control...
/* ---------------------------------------------------------------------------- * Copyright 2017, Massachusetts Institute of Technology, * Cambridge, MA 02139 * All Rights Reserved * Authors: Luca Carlone, et al. (see THANKS for the full author list) * See LICENSE for the license information * -------------------...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2016-2017 The ADSPLACE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "wallet_ismine.h" #includ...
// This file is a part of Julia. License is MIT: https://julialang.org/license #include "llvm-version.h" #include "platform.h" #if defined(_OS_WINDOWS_) // use ELF because RuntimeDyld COFF i686 support didn't exist // use ELF because RuntimeDyld COFF X86_64 doesn't seem to work (fails to generate function pointers)? #...
#include <string.h> #include "sam.h" #include "RenderTabs.h" // TODO: put these in SAM void SAM::Init(struct SamState *s) { state = s; //standard sam sound state->speed = 72; state->speedcounter = 72; state->phase1 = 0; state->phase2 = 0; state->phase3 = 0; state->mem66 = 0; } void ...
// ******************************************************** // This C++ code was automatically generated by ml2cpp (development version). // Copyright 2020 // https://github.com/antoinecarme/ml2cpp // Model : LGBMClassifier // Dataset : iris_str_tgt // This CPP code can be compiled using any C++-17 compiler. // g++...
// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Zebna Test Suite #include <net.h> #include <memory> #include <boost/test/unit_test.hpp> std::un...
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * obje...
// // SMCBatteryManager.cpp // SMCBatteryManager // // Copyright © 2018 usrsse2. All rights reserved. // #include <VirtualSMCSDK/kern_vsmcapi.hpp> #include <stdatomic.h> #include "SMCBatteryManager.hpp" #include "KeyImplementations.hpp" #include <IOKit/battery/AppleSmartBatteryCommands.h> #include <Headers/kern_ve...
//================================================================================================= /*! // \file src/mathtest/operations/smatdmatadd/LCbHDa.cpp // \brief Source file for the LCbHDa sparse matrix/dense matrix addition math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // ...
/* * * Copyright (C) 2000-2012, OFFIS e.V. * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation were developed by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmsr * * Author: Joerg Ries...
// 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. // This is a small utility that watches for and logs network changes. #include <string> #include "base/at_exit.h" #include "base/basictypes.h" #incl...
#include <random> #include <vector> #include <iostream> #include <algorithm> #include <iterator> #include <numeric> #include <execution> int main() { // define a pseudo-random number generator engine and seed it using an actual // random device std::random_device rd; std::mt19937 eng{rd()}; int const MAX_N ...
#include <cstdio> #include <iostream> #include <queue> #include <algorithm> #define maxN 203 #define maxA 500 #define maxR 1001 #define delta 1 #define start 0 #define N n + 2 #define des N - 1 #define get_le(x) x + chan typedef int maxn, maxa, maxf; maxn le, chan, n, trace[maxN], res; bool c[maxN][maxN], snt[maxR];...
//===-test_reduce_sum_keepdims_example_eigen.cc-----------------------------------------------------------===// // // Copyright (C) 2019-2020 Alibaba Group Holding Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ma...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/utils/SkLuaCanvas.h" #include "include/private/SkTo.h" #include "include/utils/SkLua.h" #include "src/core/SkStringUtils.h" extern "C" { #include "lua....
#include "Halide.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #include "mkl_cblas.h" #include "axpy_wrapper.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } // extern "C" #endif int main(int, char **) { Halide::Buffer<float> a(1, "a"); Halide::Buffer<float> x(SIZE, ...
//===- Parsing and selection of pass pipelines ----------------------------===// // // 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 // //===---------------------------...
/// @ref ext_matrix_int4x2 /// @file glm/ext/matrix_int4x2.hpp /// /// @see core (dependence) /// /// @defgroup ext_matrix_int4x2 GLM_EXT_matrix_int4x2 /// @ingroup ext /// /// Include <glm/ext/matrix_int4x2.hpp> to use the features of this extension. /// /// Defines a number of matrices with integer types. #pragma on...
// 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/http/http_auth_handler_basic.h" #include <string> #include "base/base64.h" #include "base/strings/string_util.h" #include "base/string...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 The Litecoin Developers // Copyright (c) 2013 GoldCoin (GLD) Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-li...
/* * Testing OpenGL pixel transfer - we want to send pixel data to OpenGL shaders as fast as possible. * We simply want to send a LUMA buffer (i.e. just a grayscale 8-bit pixels) that is later on used by the shader program. * * (C) 2018 Sampsa Riikonen * License : MIT * */ /* compile & link with: * * c++ ...
// (c) Copyright 1995-2020 Xilinx, Inc. All rights reserved. // // This file contains confidential and proprietary information // of Xilinx, Inc. and is protected under U.S. and // international copyright and other intellectual property // laws. // // DISCLAIMER // This disclaimer is not a license and does not grant ...
// Copyright (c) 2021, Justin Kim // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #ifndef SAPPHIRE_NN_CONV2D_HPP #define SAPPHIRE_NN_CONV2D_HPP #include <Sapphire/operations/Unit.hp...
/* * ========================= VAOVBO.cpp ========================== * -- tpr -- * CREATE -- 2018.12.24 * MODIFY -- * ---------------------------------------------------------- */ #include "VAOVBO.h" #include "...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrCCPRGeometry.h" #include "GrTypes.h" #include "SkPoint.h" #include "SkNx.h" #include <algorithm> #include <cmath> #include <cstdlib> // We convert between SkPoin...
/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2021, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "helpers/commandlineparser.h" #include "models/common/indexedimage.h" #include "models/snes/image2tileset.h" #i...
// Copyright (c) Martin Schweiger // Licensed under the MIT License // ============================================================== // ORBITER MODULE: DeltaGlider // Part of the ORBITER SDK // // RcsSubsys.cpp // Reaction control subsystem: lin/rot selection, attitude programs // ====...
/* * Copyright (c) 2020, Peter Elliott <pelliott@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Base64.h> #include <AK/Random.h> #include <AK/ScopeGuard.h> #include <LibCore/Account.h> #include <LibCore/System.h> #include <LibCore/UmaskScope.h> #include <errno.h> #include <grp.h> #includ...
#include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <BlynkSimpleEsp8266.h> #define BLYNK_PRINT Serial const char* ssid = "Doentes"; const char* pass = "maisdoentesainda"; #define UMIDADE_PIN A0 //Chave Blynk char auth[] = "c3f7b291c33c4c61bf0558b5917fd9e7"; //Chave Thingspeak char ...
/* SurfaceCurve.cpp * BRL-CAD * * Copyright (c) 1994-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as publis...