text
stringlengths
5
1.04M
// (C) Copyright John Maddock 2001 - 2003. // (C) Copyright Darin Adler 2001 - 2002. // (C) Copyright Peter Dimov 2001. // (C) Copyright Aleksey Gurtovoy 2002. // (C) Copyright David Abrahams 2002 - 2003. // (C) Copyright Beman Dawes 2002 - 2003. // Use, modification and distribution are subject to t...
// Copyright 2015, Tobias Hermann and the FunctionalPlus contributors. // https://github.com/Dobiasd/FunctionalPlus // 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) #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #in...
// Copyright (c) YugaByte, 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 to in writ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The BASE developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "utilitydialog.h" #inc...
/* * Copyright (c) 2019, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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/LICE...
// 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 "http2/decoder/payload_decoders/priority_update_payload_decoder.h" #include <stddef.h> #include "absl/base/macros.h" #include "http2/decoder/de...
#include "i18n.hpp" #include <fstream> #include <memory> #include "config.hpp" #include "defines.hpp" #include "elona.hpp" #include "filesystem.hpp" #include "lua_env/mod_manager.hpp" #include "random.hpp" #include "variables.hpp" namespace elona { namespace i18n { void Store::init() { for (const auto& mod_id...
/** * \file DrmControllerDataConverter.cpp * \version 3.2.2.0 * \date May 2019 * \brief Class DrmController is used as a top level component in the user application. * It provides top level procedures related to the DRM Controller component. * \copyright Licensed under the Apache Licen...
//================================================================================================== /*! Copyright 2015 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //====================================...
/*There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves. The move sequence is represented by a string, and the character moves[i] represents its ith move. Valid moves are R (right), L (left), U (up), an...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
/****************************************************************************/ /* */ /* Projet : Reconstruction 3D */ /* */ /* D...
#include "MaxDataModel.h" #include <QtCore/QJsonValue> #include <QtGui/QDoubleValidator> #include "DataFloat.h" #include "DataVector2.h" #include "DataVector3.h" #include "DataVector4.h" #include "DataInvalid.h" #include "ShaderScene.h" #include "OperationRules.h" namespace DataFlowProgramming { MaxDataModel::MaxData...
#include <iostream> #include "stackInt.h" using namespace std; void stackTest() { Stack* stack = createStack(); push(5, stack); push(9, stack); TypeElement elem = pop(stack); cout << elem << endl; cout << "isEmpty: " << isEmpty(stack) << endl; cout << top(stack) << endl; bool flag = tr...
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
// // Rvalues should not implicitly convert to a reference_wrapper // // Copyright 2014 Peter Dimov // // 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/ref.hpp> void f( boost::reference_wrapper<...
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" // System.Func`4<System.String,System.String,Microsoft.Extensions.Logging.LogLevel,System.Boolean> struct Func_4_t56452C46E14D7...
#if !defined(BOOST_PP_IS_ITERATING) ///// header body #ifndef BOOST_MPL_AUX_TEMPLATE_ARITY_HPP_INCLUDED #define BOOST_MPL_AUX_TEMPLATE_ARITY_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2001-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at //...
#include <iostream> #include<stdio.h> #include <climits> using namespace std; void swap(int *x, int *y); class MinHeap { int *harr; int capacity; int heap_size; public: MinHeap(int capacity); void MinHeapify(int ); int parent(int i) { return (i-1)/2; } int left(int i) { return (2*i + 1); } ...
// Copyright (c) 2019 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE Namescope0LogicalIf #include <../test_runner.hpp> #include <boost/test/unit_test.hpp> #include <filereader.hpp> #include <popart/builder.hpp> #include <popart/inputshapeinfo.hpp> #include <popart/tensorinfo.hpp> #include <popart/tensor...
#ifndef _ZCPROOF_H_ #define _ZCPROOF_H_ #include "../serialize.h" #include "../uint256.h" namespace libzcash { const unsigned char G1_PREFIX_MASK = 0x02; const unsigned char G2_PREFIX_MASK = 0x0a; // Element in the base field class Fq { private: base_blob<256> data; public: Fq() : data() { } template<t...
/** * @author Jacob Schloss <jacob.schloss@suburbanmarine.io> * @copyright Copyright (c) 2021 Suburban Marine, Inc. All rights reserved. * @license Licensed under the 3-Clause BSD LICENSE. See LICENSE.txt for details. */ #pragma once #include "pipeline/GST_element_base.hpp" #include <gstreamermm/caps.h> #include ...
/* 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...
/* WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY. This file was generated from AddDiagnostics_Response_.idl using "rtiddsgen". The rtiddsgen tool is part of the RTI Connext distribution. For more information, type 'rtiddsgen -help' at a command shell or consult the RTI Connext manual. */ #ifndef NDDS_STANDALO...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #include "phase.h" //----------------------------------...
/************************************************************** * * 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 y...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2020, the Ginkgo authors 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 co...
#include "bus/math_copro.h" #include <gtest/gtest.h> #include "cpu.h" class MathCoprocessorTest : public ::testing::Test { protected: void SetUp() override { bus.SetIo( [this](uint32_t addr) -> uint8_t { return copro.ReadByte(addr); }, [this](uint32_t addr, uint8_t val) { copro.StoreByte(addr,...
/* Copyright (c) 2019, Lawrence Livermore National Security, LLC; See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "test.hpp" #include "units/units.hpp" using namespace units; TEST(logUnits, nonEquality) { auto u1 = precise::log::bel; EXP...
/* * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibGUI/GMLLexer.h> #include <LibGUI/GMLSyntaxHighlighter.h> #include <LibGfx/Palette.h> namespace GUI { static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, GMLToken::Ty...
// Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved // CJobObjLimitInfoProps.cpp //#define _WIN32_WINNT 0x0500 #include "precomp.h" #include <wbemprov.h> #include "FRQueryEx.h" #include <vector> #include "helpers.h" #include "CVARIANT.h" #include "CObjProps.h" #include "CJobObjLimit...
//Hudson Soft HuC6280 struct CPU : Processor::HuC6280, Thread { static auto Enter() -> void; auto main() -> void; auto step(uint clocks) -> void override; auto power() -> void; auto lastCycle() -> void override; //memory.cpp auto load() -> void; auto save() -> void; //io.cpp auto read(uint8 bank,...
/* //@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 softw...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // File: daccess.cpp // // // ClrDataAccess implementation. // //*************************************...
#include "Halide.h" #include <stdio.h> #include <math.h> using std::vector; using namespace Halide; using namespace Halide::Internal; class CountInterleaves : public IRVisitor { public: int result; CountInterleaves() : result(0) {} using IRVisitor::visit; void visit(const Call *op) { if (op-...
#include "brainclouds2s.h" #include <curl/curl.h> #include <json/json.h> #include <atomic> #include <chrono> #include <condition_variable> #include <mutex> #include <queue> #include <thread> #define s2s_log(...) {printf(__VA_ARGS__); fflush(stdout);} using AuthenticateCallback = std::function<void(const Json::Value...
#include "parserDriver.h" #include <cerrno> #include <cstdio> #include <iostream> #include <sstream> #include <boost/algorithm/string/predicate.hpp> #include <boost/format.hpp> #include "frontends/common/options.h" #include "frontends/common/constantFolding.h" #include "frontends/parsers/p4/p4lexer.hpp" #include "f...
/** * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * * License Agreement * For Open Source Computer Vision Library * ...
//begin #include <Core> /* * Package: StandardCodeLibrary.Core * Last Update: 2012-1-4 * */ #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <utility> #include <vector> #include <list> #include <string> #include <stack> #include <queue> #include <deque> #include <...
#include "blackhole/filter/severity.hpp" #include <boost/optional/optional.hpp> #include "blackhole/config/node.hpp" #include "blackhole/config/option.hpp" #include "blackhole/filter.hpp" #include "blackhole/record.hpp" #include "../memory.hpp" namespace blackhole { inline namespace v1 { namespace filter { class s...
/*############################################################################## 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...
/* * This file is a part of the TChecker project. * * See files AUTHORS and LICENSE for copyright details. * */ #ifndef TCHECKER_EXPRESSION_STATIC_ANALYSIS_HH #define TCHECKER_EXPRESSION_STATIC_ANALYSIS_HH #include <unordered_set> #include "tchecker/basictypes.hh" #include "tchecker/expression/expression.hh" #i...
// Copyright (c) Microsoft. All rights reserved. #include "pch.h" #include "Scenario7_DeviceInformationKind.xaml.h" using namespace SDKTemplate; using namespace Platform; using namespace Platform::Collections; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using nam...
// Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved. #include "GraphViewWidget.h" #include <QDebug> #include <QPainter> #include <QGLWidget> #include <QMimeData> #include <QRect> #include <QGraphicsSceneEvent> #include <FabricUI/GraphView/MainPanel.h> #include <FabricUI/GraphView/SidePanel.h> #includ...
#include <bits/stdc++.h> using namespace std; int main() { int sum=0,max_s=0,n,x; cin>>n; vector <int>v; for (int i=0;i<n;i++) { cin>>x; v.push_back(x); } for(int i=0;i<v.size();i++) { sum=sum+v[i]; max_s=max(sum,max_s); ...
#include "dynet/dynet.h" #include "dynet/exec.h" #include "dynet/nodes.h" #include "dynet/param-nodes.h" #include "dynet/aligned-mem-pool.h" #include "dynet/dynet-helper.h" #include "dynet/expr.h" using namespace std; namespace dynet { float* kSCALAR_MINUSONE; float* kSCALAR_ONE; float* kSCALAR_ZERO; int n_hgs = 0;...
#include <symengine/printers/strprinter.h> namespace SymEngine { namespace detail { std::string poly_print(const Expression &x) { Precedence prec; if (prec.getPrecedence(x.get_basic()) == PrecedenceEnum::Add) { return "(" + x.get_basic()->__str__() + ")"; } return x.get_basic()->__str__(); } }...
/* * TextFieldMultiLineString.cpp * * This file is part of the "TypographiaLib" project (Copyright (c) 2015 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include <Typo/TextFieldMultiLineString.h> #include <algorithm> namespace Tg { TextFieldMultiLineString::TextFieldMultiLineString(cons...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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. #if defined(HAVE_CONFIG_H) #include "config/ruxcrypto-config.h" #endif #include ...
#include <fstream> #include "ortools_utils.h" #include "ortools/lp_data/mps_reader.h" #include "ortools/lp_data/proto_utils.h" #include "ortools/linear_solver/linear_solver.pb.h" #include "ortools/linear_solver/model_exporter.h" namespace { //convert ortools status into an XPRSgetbasis like result value /** * row s...
/* Copyright (C) 2003 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT AN...
/*===============================================================*/ /* */ /* check_result.cpp */ /* */ /* Software evaluation of training and test...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/***************************************************************************** * var_list.hpp ***************************************************************************** * Copyright (C) 2003 the VideoLAN team * $Id: 9ece48c7c3e6b75f8d07dacaed8a8a86b6697f0e $ * * Authors: Cyril Deguet <asmax@via.ecp.fr> * ...
/* * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2015 SAP SE. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Pu...
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
#include "chanspreadsheet.h" #include <QtWidgets/QApplication> #include <qsplashscreen.h> int main(int argc, char* argv[]) { QApplication a(argc, argv); QSplashScreen* splash = new QSplashScreen; splash->setPixmap(QPixmap(srcFileName::pSplash)); splash->show(); splash->showMessage(QObject::tr("loading resource...
// 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/test_extension_registry_observer.h" #include "content/public/test/test_utils.h" #include "extensions/browser/extension_regis...
 #include <LuminoPlatform/PlatformWindow.hpp> #include <Workspace.hpp> #include "../Project/Project.hpp" #include "../Project/AssetDatabase.hpp" #include "../App/Application.hpp" #include "../App/MainWindow.hpp" #include "../App/DocumentManager.hpp" #include "AssetBrowserNavigator.hpp" #include "LevelEditor.h...
// Copyright (c) 2015 Elements of Programming Interviews. All rights reserved. #include <algorithm> #include <cassert> #include <iostream> #include <random> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> #include "./GCD2.h" using std::cout; using std::default_random_engine; us...
#include<bits/stdc++.h> using namespace std; void nextGreater(int a[], int n)//time comp. O(n^2) ; space comp. O(1) { for (int i = 0; i < n; i++) { int j = 0; for (j = i + 1; j < n; j++) { if (a[j] > a[i]) { cout << a[j] << " "; break; } } if (j == n) { cout << -1 << " "; } } } in...
#include "mandel.hpp" #include <omp.h> void mandelbrot_omp(unsigned num_threads, int d = D) { omp_set_num_threads(num_threads); int i,j ; # pragma omp parallel shared (d) private (i, j) { # pragma omp for schedule(dynamic, 1) for(i=0; i<H ;i ++) { for(j=0; j<W; j++) { auto xy = scale...
/* * Copyright © 2018 Adobe Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copyrig...
/* Copyright (c) 2015-2017 Advanced Micro Devices, Inc. All rights reserved. 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, cop...
#include <catch.hpp> #include <Camera.h> #include <World.h> #include <Canvas.h> static const double PI = 3.14159265; static const double EPSILON = 0.00001; TEST_CASE("Camera working properly", "[camera]") { SECTION("Constructing a camera") { int hsize = 160; int vsize = 120; double fieldOf...
#include<iostream> #include<vector> using namespace std; class Solution { public: int search(vector<int>& nums, int target) { int left=0; int right = nums.size()-1; //得到旋转点 while(left<right){ int mid=(left+right)/2; if(nums[mid]>nums[right]) left = mid+1; ...
/* * Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req...
/**************************************************************************** * * Copyright (C) 2013-2016 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. Red...
// // Created by juan.castellanos on 9/07/20. // #ifndef STARTER_CPP_FOO_HPP #define STARTER_CPP_FOO_HPP // Cross-platform #include "IFoo.hpp" struct Foo : IFoo { void doSomething() override; ~Foo() override = default; }; struct Bar { IFoo& _iFoo; bool _done{}; explicit Bar(IFoo& iFoo); bool runDoSome...
/* Simple Obj viewer for Windows using OpenGL and SDL Can only read triangular faces, not polygonal, and does not draw textures Modified code based on frank253's OpenGl Glut OBJ Loader sample openglsamples.sourceforge.net/projects/index.pho/blog/index/ Wavefront loader is built on Ricardo Rendon Cepeda's OpenGL ES t...
#include <gainput/gainput.h> #include "../samplefw/SampleFramework.h" enum Button { ButtonConfirm, ButtonConfirmDouble, ButtonConfirmExtra, ButtonHoldGesture, ButtonTapGesture, ButtonPinching, ButtonPinchScale, ButtonRotating, ButtonRotateAngle, }; const unsigned TouchPointCount = 8; const unsigned Touch...
#pragma once namespace qnt{ class QBit; void adamar(QBit& qb); }
// RUN: %check_clang_tidy %s readability-uppercase-literal-suffix %t -- -config="{CheckOptions: [{key: readability-uppercase-literal-suffix.NewSuffixes, value: 'L;uL'}]}" -- -I %S // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp // RUN: clang-tidy %t.cpp -checks='-*,readability-uppercase-literal-suffix' -fix -config="{Check...
// Copyright 2017 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/connectivity/network/mdns/service/host_name_resolver.h" #include "src/connectivity/network/mdns/service/mdns_names.h" #include "src/lib/fxl/...
/*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...
#include <stdlib.h> #include <malloc.h> #include "Messages.h" #include "GRMain.h" extern "C" int GET_MW(int argc, void **argv) { #define InSize 30 #define RLSize 7 if (argc<3) { IDLmsg("GET_MW error: not enough parameters."); return -1; } else { int NSteps=*((short*)argv[0]); if (NSteps<1) { IDLm...
/* * Copyright 2019 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 ...
// Copyright (c) 2016-2019, The MKEcoin Project // // 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 notice, this list ...
/* Copyright (c) 2016, 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...
#include <scope/scope.hpp> namespace { void example_deleter(int&){} } int main() { { auto scope = ::scope::make_scope_exit([]{ }); (void) scope; } { auto scope = ::scope::make_scope_fail([]{ }); (void) scope; } { auto scope = ::scope::make_scope_success([]{ }); (voi...
/* * @file OrthographicCamera.cpp * @author Adriel Marchena Santos * * Camera System * * Implementation File */ #include "pch.h" #include "OrthographicCamera.h" #include "glm/gtc/matrix_transform.hpp" namespace Base { OrthographicCamera::OrthographicCamera(float_t left, float_t right, float_t bottom, float_t top) ...
// 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 "content/common/android/address_parser_internal.h" #include <bitset> #include "base/logging.h" #include "base/string_util.h" namespace { ...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #if SK_SUPPORT_GPU #include "GrContext.h" #include "GrContextFactory.h" #include "GrRenderTarget.h" #include "GrTexture.h" #include "SkTypes.h" #include "Test.h" DEF_GPUTEST...
/* 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...
/**************************************************************************** * * (c) 2009-2019 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * * @file * @brief Camera Controller ...
//===--- OverloadedUnaryAndCheck.cpp - clang-tidy ---------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <FunctionalSim/RegisterFile.hpp> #include <ShISA/Inst.hpp> #include <exceptions.hpp> #include <cstdlib> #include <iostream> #include <limits> #include <string> using shisa::fsim::RegisterFile; using Reg = RegisterFile::Reg; void test_r0() { constexpr auto test_name = __FUNCTION__; RegisterFile RF; ...
// // Created by tim on 31-1-18. // #include <chrono> #include "Program.h" using namespace std; void maze() { cout << ":MAZE:" << endl; auto start = chrono::system_clock::now(); Maze *maze = new Maze(15, 15); maze->ToString(); auto end = chrono::system_clock::now(); chrono::duration<double> e...
/* Copyright 2020 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...
#include "client.h" #include "dataset.h" #include "client_test_utils.h" #include "dataset_test_utils.h" void rename_dataset(std::string keyout) { std::vector<size_t> dims({10,10,2}); SmartRedis::Client client(use_cluster()); client.use_tensor_ensemble_prefix(true); double*** t_send_1 = alloca...
#include <vector> using namespace std; class Solution { public: void rotate(vector<int>& nums, int k) { int n = nums.size(), t, offset = n - k % n; if (offset == 0) return; while (offset) { t = nums[0]; offset -= 1; for (int i = 0; i < n - 1; i++) nums[i] = nums[i + 1]; nu...
#pragma once #include "common/ChatterinoSetting.hpp" #include "common/Singleton.hpp" #include <QFont> #include <QFontDatabase> #include <QFontMetrics> #include <boost/noncopyable.hpp> #include <pajlada/signals/signal.hpp> #include <array> #include <unordered_map> namespace AB_NAMESPACE { class Settings; class Path...
/* * Copyright (c) 2013 - 2016 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of th...
/*------------------------------------------------------------------------------------------*\ This file contains material supporting chapter 7 of the book: OpenCV3 Computer Vision Application Programming Cookbook Third Edition by Robert Laganiere, Packt Publishing, 2016. This program is free software; permission is h...
//https://atcoder.jp/contests/abc203/tasks/abc203_b #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0); int N, K, sum = 0; cin >> N >> K; for (int i = 1; i <= N; ++i) { for (int j = 1; j <= K; ++j) { sum += i * 100 + j...
// Copyright (c) 2009-2017 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The Ion developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "key.h" #include "uint256.h" #in...
// Copyright (c) 2014 The Bitcoin Core developers // 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 "primitives/transaction...
/* Copyright 2007-2015 QReal Research Group * * 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...
#include "CubismFrameWorkAllocator.h" using namespace Csm; void* CubismFrameWorkAllocator::Allocate(const csmSizeType size) { return malloc(size); } void CubismFrameWorkAllocator::Deallocate(void* memory) { free(memory); } void* CubismFrameWorkAllocator::AllocateAligned(const csmSizeType size, const csmUin...