text
stringlengths
5
1.04M
#include <sys/socket.h> #include <arpa/inet.h> #include <fcntl.h> #include <cstring> #include <ctime> #include <unistd.h> #include "kingpin/AsyncLogger.h" #include "kingpin/Buffer.h" #include "kingpin/Utils.h" #include "kingpin/Exception.h" using namespace std; using namespace kingpin; class Client { public: sta...
/*! * Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. */ #ifndef LIGHTGBM_IO_SPARSE_BIN_HPP_ #define LIGHTGBM_IO_SPARSE_BIN_HPP_ #include <LightGBM/bin.h> #include <LightGBM/utils/log.h> #include <Light...
/* 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 agr...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
// // Created by Administrator on 2019/12/20. // #include "FriendFunc.h" FriendFunc::FriendFunc() { this->name = "Dream"; } char* FriendFunc::getName() { return this->name; }
//+--------------------------------------------------------------------------- // // Microsoft Forms // Copyright (C) Microsoft Corporation, 1994-1996 // // File: rulestyl.hxx // // Contents: Support for Cascading Style Sheets Object Model. // // CRuleStyle // //---------------------...
// Copyright (c) 2018 The Dash Core developers // Copyright (c) 2019 The BitGreen Core developers // Copyright (c) 2019 The PineCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <special/specialdb.h> ...
#pragma once #include <string> #include <sstream> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #include <stdarg.h> #include <cassert> #include <stdexcept> #include <system_error> enum LogLevel { NONE = 0, CRITICAL, // An invariant is breached, ...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Singleton.h> #include <Kernel/Devices/NullDevice.h> #include <Kernel/Sections.h> namespace Kernel { static Singleton<NullDevice> s_the; UNMAP_AFTER_INIT void NullDevice::initialize() { ...
# include <Siv3D.hpp> # include <HamFramework.hpp> # include "GameInfo.hpp" # include "Typing.hpp" # include "CheckBox.hpp" # include "WordFactory.hpp" # include "KeyboardInput.hpp" /////////////////////////////////////////////////////////////////////// // // 間違えた時のエフェクト // struct TypoEffect : IEffect { Vec2 po...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__int_fgets_modulo_72b.cpp Label Definition File: CWE369_Divide_by_Zero__int.label.xml Template File: sources-sinks-72b.tmpl.cpp */ /* * @description * CWE: 369 Divide by Zero * BadSource: fgets Read data from the console using fgets() * Go...
/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman 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) =========================================...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" #include <utility> #include <vector> #include "base/bind.h" #include "base/macros...
#include <iostream> using namespace std; int numeroSecreto = 7; void adivinarNumeroSecreto(int miNumero) { if(miNumero == numeroSecreto) { cout<<"Adivinartes!"; } else { cout<<"Intento fallido con: " << miNumero <<endl; int otroNumero; cout<<"Ingrese otro numero: "; cin>>otroNumero; adivinarNume...
#include <stdio.h> #include <externalComponent122/lib1.h> #include <externalComponent24/lib1.h> #include <externalComponent25/lib1.h> #include <externalComponent26/lib1.h> #include <externalComponent27/lib1.h> #include <externalComponent28/lib1.h> #include <externalComponent29/lib1.h> #include <externalComponent30/li...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/LibTreeSharedVarReferenceName.hpp> namespace RED4ext { namespace aiscript { struct SharedVarName { static constexpr const char* NAME = "aiscriptSh...
// Copyright (c) 2014-2018, The Monero 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 of /...
// Copyright (c) 2016-2020 The ZCash developers // Copyright (c) 2020 The GlobalSalaryCoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sapling/sapling_util.h" #include "sync.h" #include <algorithm> #inc...
/* ========================================================= V:Multiplayer - http://www.vmultiplayer.com -- File: Main.cpp -- Project: Client.Launcher -- Author(s): OrMisicL =============================================================*/ #include "Main.h" // That code belongs to VMultiplayer or LaunchHelper to mo...
/**************************************************** Date: May 19th link: https://leetcode.com/explore/challenge/card/may-leetcoding-challenge-2021/600/week-3-may-15th-may-21st/3744/ ****************************************************/ #include <iostream> #include <vector> #include <list> #include <algorithm> #incl...
/*========================================================================= Program: ParaView Module: pqSpherePropertyWidget.cxx Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of th...
/* * Copyright 2013 Google 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...
//================================================================================== // BSD 2-Clause License // // Copyright (c) 2014-2022, NJIT, Duality Technologies Inc. and other contributors // // All rights reserved. // // Author TPOC: contact@openfhe.org // // Redistribution and use in source and binary forms, wi...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include "c_weapon__stubs.h" #include "basehlcombatweapon_shared.h" #include "c_basehlcombatweapon.h" // memdbgon must be...
/* * 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...
/* * Copyright 2018 Google, Inc. * * 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 following disclaimer; * ...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "common_dyn_batch_regression.hpp" std::vector<CommonDynBatchFuncTestParams> supportedDynBatchValues = { { "GPU", 4, 3 }, { "GPU", 4, 2 }, { "GPU", 4, 1 }, { "GPU", 8, 5 }, { "GPU", 8, 4 }, { "GPU", ...
// Copyright 2018, OpenCensus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
#include "rewriter/cleanup.h" #include "ast/Helpers.h" #include "ast/ast.h" #include "ast/treemap/treemap.h" #include "core/core.h" using namespace std; namespace sorbet::rewriter { // This pass gets rid of some unnecessary nodes that are likely to have gotten created in the course of the rewriter // pass, specifica...
// // Copyright (c) 2008-2019 the Urho3D project. // // 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, m...
#include "indextext.h" #include <memory> #include "core/ft/filters/kblayout.h" #include "core/ft/filters/synonyms.h" #include "core/ft/filters/translit.h" #include "core/rdxcontext.h" #include "estl/smart_lock.h" #include "tools/errors.h" #include "tools/logger.h" namespace reindexer { // Available stemmers for lang...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2017 The PIVX developers // Copyright (c) 2017-2018 The HUZU developers // Copyright (c) 2018 The ZEFIR developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://...
//===-- FindSymbolsTests.cpp -------------------------*- 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) 2019-2021 MicroBitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util.h> #include <amount.h> #include <snapshot.h> #include <util/time.h> #include <util/system.h> #include <util/strenc...
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include "graph/planner/SequentialPlanner.h" #include "graph/planner/plan/Logic.h" #include "graph/planner/plan/Query.h" #include "graph/validator/SequentialValidator.h" #include "parser/Sentence.h"...
#define PUT(x) std::cout << #x << "=" << (x) << std::endl; #include <cybozu/test.hpp> #include <cybozu/benchmark.hpp> #include <cybozu/xorshift.hpp> #include <fstream> #include <time.h> #include <mcl/she.hpp> #include <mcl/ecparam.hpp> // for secp192k1 using namespace mcl::she; SecretKey g_sec; CYBOZU_TEST_AUTO(log)...
/********************************************************************** * File: points.cpp (Formerly coords.c) * Description: Member functions for coordinate classes. * Author: Ray Smith * Created: Fri Mar 15 08:58:17 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Ap...
#ifndef BUILDING_NODE_EXTENSION #define BUILDING_NODE_EXTENSION #endif #include "MediaStream.h" #include <future> // NOLINT #include "lib/json.hpp" #include "ThreadPool.h" using v8::HandleScope; using v8::Function; using v8::FunctionTemplate; using v8::Local; using v8::Persistent; using v8::Exception; using v8::Va...
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -IInputs -emit-llvm %s -o - | FileCheck %s // This test ensures that we don't generate a kernel before we have instantiated // all the kernel declarations, which can change the name of a kernel in the // unnamed kernel case. Previously we would have duplicate manglings...
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s // A type-parameter defines its identifier to be a type-name (if // declared with class or typename) or template-name (if declared with // template) in the scope of ...
// Copyright (c) 2012 The Bitcoin developers // Copyright (c) 2013-2014 Dogecoin Developers // Copyright (c) 2013-2014 Team Mooncoin // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <math.h> #include <stdlib.h> #incl...
// 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/autocomplete/autocomplete_classifier.h" #include "base/auto_reset.h" #include "chrome/browser/autocomplete/autocomplete_cont...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/panorama/model/CreateApplicationInstanceRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Panorama::Model; using namespace Aws::Utils::...
#include <gtest/gtest.h> extern "C" { #include "implement_strstr.h" } TEST(implement_strstr_test, strStr_28_1) { EXPECT_EQ(2, strStr_28_1("hello", "ll")); EXPECT_EQ(-1, strStr_28_1("aaaaa", "bba")); EXPECT_EQ(0, strStr_28_1("", "")); } TEST(implement_strstr_test, strStr_28_2) { EXPECT_EQ(2, strStr_28...
//@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...
/* Proposition.cpp (exercise 4.1.4) Description: * */ #include "Proposition.hpp" /////////////////////////// // Constructors/Destructor: /////////////////////////// Proposition::Proposition() noexcept : data() { } Proposition::Proposition(bool input) noexcept : data(input) { } Proposition::Proposition(const std:...
#ifndef PYTHONIC_INCLUDE_IO__IO_TEXTIOWRAPPER_FILENO_HPP #define PYTHONIC_INCLUDE_IO__IO_TEXTIOWRAPPER_FILENO_HPP #include "pythonic/include/__builtin__/file/fileno.hpp" PYTHONIC_NS_BEGIN namespace io { namespace _io { namespace TextIOWrapper { USING_FUNCTOR(fileno, __builtin__::file::functor::fil...
/* USER CODE BEGIN Header */ /* * Project Name: Library for the LM75A temperature sensor by NXP and Texas Instruments. * File: main.c * Description: test file to show/test library functions * Author: Gavin Lyons. * IC: STM32F303 * IDE: STM32cubeIDE C++ * Created DEC 2021 * Description: See URL for ful...
// // Unit tests for denial-of-service detection/prevention code // #include <algorithm> #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/date_time/posix_time/posix_time_types.hpp> #include <boost/test/unit_test.hpp> #include <boost/foreach.hpp> #include "main.h" #include "wallet.h" #include...
// Formatting library for C++ - time formatting tests // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #include "fmt/chrono.h" #include "gtest-extra.h" // EXPECT_THROW_MSG using fmt::runtime; auto make_tm() -> std::tm { auto time = ...
/* All Paths from Source Lead to Destination https://leetcode.com/problems/all-paths-from-source-lead-to-destination/ Given the edges of a directed graph where edges[i] = [ai, bi] indicates there is an edge between nodes ai and bi, and two nodes source and destination of this graph, determine whether or not all paths ...
// Copyright 2021 Tier IV, 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 i...
// Copyright (c) 2020 The Picacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <script/picacoinconsensus.h> #include <script/interpreter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fu...
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); int n, c, m; cin >> n >> c >> m; bitset<101> b; int x; for (int i = 0; i < c; i++) { cin >> x; b[x] = 1; } for (int i = 0; i < m; i++) { cin >> x; if (b[x]) { b[x] = !b[x]; c--; } } co...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
// Copyright (c) 2018 The PIVX Core Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode-budget.h" #include "tinyformat.h" #include "utilmoneystr.h" #include "test_concrete.h" #include <boost/test...
#include "../inc/MacierzKw.h" //KONSTRUNKTORY template<class TYP, int ROZMIAR> MacierzKw<TYP,ROZMIAR>::MacierzKw() { for(int i=0;i<ROZMIAR;i++) { this->tab[i]=Wektor<TYP,ROZMIAR>(); } } template<class TYP, int ROZMIAR> MacierzKw<TYP,ROZMIAR>::MacierzKw(Wektor<TYP,ROZMIAR> *w) ...
// Copyright 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 in ...
//! //! @author Yue Wang //! @date 01.12.2014 //! //! Exercise 10.3: //! Use accumulate to sum the elements in a vector<int>. //! //! Exercise 10.4: //! Assuming v is a vector<double>, what, if anything, //! is wrong with calling accumulate(v.cbegin(), v.cend(), 0)? // Check below. //! #include <iostream> #include ...
#include <cstring> #include <cerrno> #include <iostream> #include <string> #include <csignal> #include <unordered_map> #include <vector> #include <memory> #include <cstdint> #include <sys/time.h> #include <sys/socket.h> #include <fcntl.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <unistd.h> #include <n...
// MIT Licensed (see LICENSE.md). #include "Precompiled.hpp" namespace Zilch { // To simplify our parsing, we work with generic nodes (and only specific nodes // in specific cases) Because of this, we need to ensure that the sizes always // match static_assert(sizeof(GrammarNode<Character>) == sizeof(GrammarNode<Toke...
// Copyright 2018 The Beam Team // // 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...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "mojo/edk/system/handle.h" #include <utility> #include "mojo/edk/system/dispatcher.h" using mojo::util::RefPtr; namespace mojo { namespace sy...
#include <boost/test/unit_test.hpp> #include <eosio/testing/tester.hpp> #include <eosio/chain/contracts/abi_serializer.hpp> #include <eosio/chain/wasm_eosio_constraints.hpp> #include <eosio/chain/exceptions.hpp> #include <asserter/asserter.wast.hpp> #include <asserter/asserter.abi.hpp> #include <stltest/stltest.wast.h...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE namespace vc_attributes { template<> struct licensedAttribute { }; }; // end namespace vc_attributes EN...
#pragma once #include "z_net_header.h" class ZLWSAInitializer { public: ZLWSAInitializer() { ::WSAStartup(MAKEWORD(2,2), &m_wsadata); } ~ZLWSAInitializer() { ::WSACleanup(); } private: WSADATA m_wsadata; };
/* 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...
#include <iostream> #include <vector> #include <algorithm> #include <functional> using namespace std; class Rectangle { double w; double h; public: Rectangle(double w, double h) : w(w), h(h) {} Rectangle(double s = 1.0) : w(s), h(s) {} bool IsSquare(){ return w == h; } }; struct P2 { double x; double y; P2(...
/* This file is part of: NoahFrame https://github.com/ketoo/NoahGameFrame Copyright 2009 - 2019 NoahFrame(NoahGameFrame) File creator: lvsheng.huang NoahFrame is open-source software and you can redistribute it and/or modify it under the terms of the License; b...
/* * 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 app...
/*! * @section LICENSE * * @copyright * Copyright (c) 2015-2017 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apach...
// Copyright 2013 The Flutter 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 "flutter/shell/platform/android/surface/android_surface_mock.h" namespace flutter { std::unique_ptr<GLContextResult> AndroidSurfaceMock::GLConte...
/* ******************************************************************************* * Copyright (C) 2013-2015, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * collationdatareader.cpp * * created on: 2013feb0...
#if defined(LOCAL) const double _max_double_error = 1e-9; #include "testutils.h" #define L(x...) (debug(x, #x)) #define I(x, ...) (x) #define C(x...) CHECK(x) #else #define L(x, ...) (x) #define I(x, ...) (x) #define C(x, ...) ; #endif #include <math.h> #include <algorithm> #include <bitset> #include <chrono> #include ...
/** * Copyright (C) 2015 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...
// Copyright 2021 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
//////////////////////////////////////////////////////////////////////////////////////////////////////// // November 2017 // Author: Juan Jose Chong <juan.chong@analog.com> //////////////////////////////////////////////////////////////////////////////////////////////////////// // ADIS16470.cpp //////////////////////...
/* * Copyright (c) 2019 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 rights * to use, copy...
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/browser/electron_browser_main_parts.h" #include <memory> #include <utility> #if defined(OS_LINUX) #include <glib.h> // for g_setenv() #endif #include "base/base_sw...
#include <gmock/gmock.h> #include <facter/facts/resolvers/filesystem_resolver.hpp> #include <facter/facts/collection.hpp> #include <facter/facts/fact.hpp> #include <facter/facts/scalar_value.hpp> #include <facter/facts/map_value.hpp> #include <facter/facts/array_value.hpp> using namespace std; using namespace facter::...
/* * Copyright (c) 2010 WiYun Inc. * Author: luma(stubma@gmail.com) * * For all entities this program is free software; you can redistribute * it and/or modify it under the terms of the 'WiEngine' license with * the additional provision that 'WiEngine' must be credited in a manner * that can be be observe...
#include <iostream> #include <verilated_vcd_c.h> #define VL_DEBUG #include "Vtop.h" #include "verilated.h" static vluint64_t main_time = 0; double sc_time_stamp() { return main_time; } int main (int argc, char **argv) { Verilated::commandArgs(argc, argv); Vtop *top = new Vtop(); Verilated::traceEverOn(true...
//===-- AlphaTargetInfo.cpp - Alpha Target Implementation -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * BruteForceClosestPair.cpp * * Created on: Jan 25, 2011 * Author: TF */ #include "BruteForceClosestPair.h" #include "MathTools.h" namespace GEOLIB { BruteForceClosestPair::BruteForceClosestPair( std::vector<GEOLIB::Point*> const & pnts, size_t& id0, size_t& id1) : ClosestPair (pnts, id0, id1) ...
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "common/LLVMWarningsPush.hpp" #include <llvm/Pass.h> #include <llvm/IR/Dat...
/* * Copyright 2010-2016 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" file...
/* Source File : InputFileDriver.h Copyright 2013 Gal Kahana HummusJS 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 re...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_AnimNotifyState_MuteIKLeg_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------...
/* //@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...
/* Description: Pointers homework P7.7 ( QUESTION 3 ) Known bugs: Input must be exactly (number space number space... 'enter') OR youll get bad output */ #include <iostream> #include <string> #include <sstream> using namespace std; double reverse(double *a, int ar_size) { if (ar_size == 0) { return 0.0; } int ...
// 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...
// // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail 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/LICENSE_1_0.txt) // // Test that header file is self-contained. #include <beast/http/string_view_body...
/* * Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. 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 righ...
/* Copyright (c) 2018, MIPI Alliance, Inc. 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 fol...
//***************************************************************************** // 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...
/* * worker.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Annotation.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Annotation.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/stubs/once.h> #inclu...