text
stringlengths
5
1.04M
// Copyright (c) 2006-2008 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 <string> #include "base/string_piece.h" #include "testing/gtest/include/gtest/gtest.h" TEST(StringPieceTest, CheckComparisonOperators...
#include "vistor.h" void CEOVisitor::visit(Engineer *engineer) { cout << "工程师: "<< engineer->name<< ", KPI: "<< engineer->kpi << endl; } void CEOVisitor::visit(Manager *manager) { cout << "经理: " << manager->name << ", KPI: " << manager->kpi<<", 新产品数量: " << manager->getProducts() << endl; } void CTOVisitor::v...
/* * ServoControl.cpp * * Created on: Sep 14, 2013 * Author: sk */ #include "ServoControl.h" void ServoControl::setSerial(ofSerial *serial) { this->serial = serial; } void ServoControl::setNumber(unsigned char number) { this->number = number; } bool ServoControl::sendTarget(ofSerial *serial) { uint32...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (C) 2008-2016 Ryo Suzuki // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "String.hpp" # pragma warning (disable: 4127) # include "../ThirdPa...
#include "refill/system_models/system_model_base.h" using std::size_t; namespace refill { /** * Use this constructor if your system does not have an input. * The constructor clones the system noise, so it can be used again. * * @param state_dim The systems state dimension. * @param system_noise The system nois...
/* $Id: edit_label.hpp 48877 2011-03-13 07:49:35Z mordante $ */ /* Copyright (C) 2010 - 2011 by Ignacio Riquelme Morelle <shadowm2006@gmail.com> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of th...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
/* Source File : PDFParsingOptions.h Copyright 2011 Gal Kahana PDFWriter 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...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved. #include <ivp_physics.hxx> #if !defined(SUN) && !defined(SUN4) # include <string.h> #endif #include <ivu_types.hxx> // WIN32 --------------------------------------------------------------------- static int IVP_RAND_SEED = 1; // returns 0 .. 1....
// // native_encoder.cc // // Copyright (c) 2017 Couchbase, 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 // //...
#include <Processors/Transforms/WindowTransform.h> #include <AggregateFunctions/AggregateFunctionFactory.h> #include <Common/Arena.h> #include <Common/FieldVisitorsAccurateComparison.h> #include <common/arithmeticOverflow.h> #include <Columns/ColumnConst.h> #include <DataTypes/DataTypesNumber.h> #include <DataTypes/ge...
/* * Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Software * Fou...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2016-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
/******************************************************************************* * Copyright 2016-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
#include <iostream> #include <vector> #include <algorithm> using namespace std; /* 한번만 뒤집으면 해결되는지 여부를 리턴하는 one_time함수 이후 앞에 맞춰 뒤집어보고 one_time에서 true가 리턴되는지 확인 뒤에 맞춰 뒤집어보고 one_time에서 true가 리턴된느지 화인 one_time함수는 한번 뒤집어야 하는 위치를 a,b에 저장합니다. */ int a, b; bool one_time(vector<int> v){ int i; ...
// SusyCouplings.cc is a part of the PYTHIA event generator. // Copyright (C) 2015 Torbjorn Sjostrand. // Main authors of this file: N. Desai, P. Skands // PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // Function definition...
/*************************************************************************/ /* matrix3.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include <torch/script.h> // One-stop header. #include <iostream> #include <memory> using namespace torch; int main(int argc, const char* argv[]) { torch::Device device = torch::kCUDA; // Deserialize the ScriptModule from a file using torch::jit::load(). std::shared_ptr<torch::jit::script::Module> modu...
#include <stdio.h> #include "../math/vector.h" #include "../math/matrix.h" #include <stdlib.h> #include <time.h> constexpr vec3_t rotation = vec3_t(0, M_PI / 2, 0); constexpr matrix<3, 4> rotationMatrix = matrix<3, 4>::GetMatrix(rotation); constexpr vec3_t rotatedVec = rotationMatrix.Vector3Rotate(vec3_t(1, 0, 0)); co...
/******************************************************************** * 2014 - * open source under Apache License Version 2.0 ********************************************************************/ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOT...
/** @file movecreator.cpp*/ #include "movecreator.h" #include <iomanip> #ifdef ENABLE_MPI # include <mpi.h> extern MPI_Datatype MPI_vector, MPI_Particle, MPI_exchange; #endif double MoveCreator::particleMove() { double edriftchanges =0.0; long target; /*=== This is a particle move step ===...
/** * MBeatBoxChannelControl (C)2001-2003 MRoc hifiShock */ #include "MBeatBoxChannelControl.h" MBeatBoxChannelControl::MBeatBoxChannelControl() : MDCControl() { } MBeatBoxChannelControl::~MBeatBoxChannelControl() { } void MBeatBoxChannelControl::paintControl( IGraphics* pDC ) { if( getSelected...
#ifndef SERVER_HPP # define SERVER_HPP # include "common.hpp" class server { private: std::vector<bool> _cnct; int _opt; size_t _nbClients; size_t _minClients; int _listen_s...
/* * Copyright (c) 2022 NVIDIA CORPORATION. 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, copy, ...
/** * TemplateConverter.cpp * * Created on: 2015/08/01 * Author: vagrant */ #include "boost/regex.hpp" #include "TemplateConverter.h" TemplateConverter::TemplateConverter() : className_("") { } TemplateConverter::TemplateConverter(std::string className) : className_(className){ } TemplateConverter::~Temp...
/* * 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 "SkMipMap.h" #include "SkBitmap.h" #include "SkColorPriv.h" static void downsampleby2_proc32(SkBitmap* dst, int x, int y, const SkBi...
//===========================================================================// // Purpose : Method definitions for the TOS_RouteOptions class. // // Public methods include: // - TOS_RouteOptions_c, ~TOS_RouteOptions_c // - Print // //=======================================================...
#include "static_assert.h" #include "nodemurmurhash.h" #include "MurmurHash2.h" #include "PMurHash.h" #include "PMurHash128.h" #include "murmurhashutils.h" #include "inputdata.h" #include "asyncworker.h" NAN_INLINE void MurmurHash2_x64_64 ( const void * key, int len, uint32_t seed, void * out) { *(uint64_t *)out...
/* ** ClanLib SDK ** Copyright (c) 1997-2005 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
// CSS Preprocessor -- Test Suite // Copyright (C) 2015-2017 Made to Order Software Corp. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your o...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_char_fscanf_82_goodB2G.cpp Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml Template File: sources-sinks-82_goodB2G.tmpl.cpp */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource: fs...
/* Copyright 2012 10gen 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 useful, * ...
#include <QtWidgets> #include <QtMath> #include "ma_jpeg_codec.h" #define BYTECLIP(v) Clip8[(uint)(v) & 0x3FF] #define JPEG_MARKER_SOF0 0xFFC0 #define JPEG_MARKER_SOF1 0xFFC1 #define JPEG_MARKER_SOF2 0xFFC2 #define JPEG_MARKER_SOF3 0xFFC3 #define JPEG_MARKER_SOF5 0xFFC5 #define JPEG_MARKER_SOF6 0xFFC6 #d...
//================================================================================================= /*! // \file src/mathtest/operations/smatsmatsub/DCaMIb.cpp // \brief Source file for the DCaMIb sparse matrix/sparse matrix subtraction math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved //...
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Carla.h" #include "CarlaGameModeBase.h" #include "Game/CarlaGameInstance.h" #include...
/* * Copyright (c) 2021, Krisna Pranav * * SPDX-License-Identifier: BSD-2-Clause */ // includes #include <base/ByteReader.h> #include <base/Optional.h> #include <base/StringView.h> #include <kernel/arch/x86/InterruptDisabler.h> #include <kernel/bus/pci/WindowedMMIOAccess.h> #include <kernel/Debug.h> #include <kerne...
// 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 "extensions/browser/api/web_request/upload_data_presenter.h" #include <utility> #include "base/files/file_path.h" #include "base/memory/ptr...
#include <cstdlib> #include <iostream> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { use_io_optimizations(); unsigned int test_cases; cin >> test_cases; for (unsigned int i {0}; i < test_cases; ++i) { ...
/* * 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 "SkBitmapDevice.h" #include "SkConfig8888.h" #include "SkDraw.h" #include "SkPixelRef.h" #include "SkRasterClip.h" #include "SkShader.h" #include "SkSurface.h" #defi...
/* * Pearson.cpp * * Created on: Jul 14, 2010 * Author: jbard,wklai2 */ #include <math.h> #include "Pearson.h" /** * Concrete implemenatation of this Metrix. MUST TAKE IN THESE VARIABLES, AND RETURN A DOUBLE */ double Pearson::Correlation(const double *x, const double *y, int length) { double xmean = 0,...
// Copyright 2020 Thomas Schöps // This file is part of CIDE, licensed under the new BSD license. // See the COPYING file in the project root for the license text. #include "cide/create_class.h" #include <QBoxLayout> #include <QCheckBox> #include <QComboBox> #include <QDebug> #include <QDialogButtonBox> #include <QIc...
#include <bits/stdc++.h> #include <time.h> #define int long long int #define pb push_back #define all(a) a.begin(), a.end() #define scnarr(a, n) for (int i = 0; i < n; ++i) cin >> a[i] #define vi vector<int> #define si set<int> #define pii pair <int, int> #define sii set<pii> #define vii vector<pii> #define mii map <in...
#include "shared.h" using namespace scene_graph; using detail::ISceneAttachment; /* Описание реализации контекста сцены */ namespace { typedef xtl::shared_ptr<ISceneAttachment> AttachmentPtr; typedef stl::hash_map<stl::hash_key<const char*>, AttachmentPtr> AttachmentMap; ///...
//===-- crtbegin.c - Start of constructors and destructors ----------------===// // // 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 // //===---------------------------...
// make sure the average includes decimal digits #include <iostream> int main() { // TODO#1: use the "static_cast" operator to cast the character to a short // then print both the char and the short char my_char1 = 'J'; short my_short1 = 74; std::cout << "The ASCII value for " << my_char1 << " i...
#include "Stdafx.h" #include "YaraExceptions.h" namespace YaraSharp { // Code 1 is handled by OutOfMemoryException // Code 2 YaraAttachToProcessFailure::YaraAttachToProcessFailure() : Exception(String::Format("{0} - Code {1}", "ERROR_COULD_NOT_ATTACH_TO_PROCESS", ERROR_COULD_NOT_ATTACH_TO_PROCESS)) {} // Code 3 ...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzCore/Math/Matrix3x4.h> #include <RHI/RayTracingTlas.h> #include <RHI/RayTracingBlas.h>...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
// Copyright 2018 The Chromium OS 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 "smbprovider/read_dir_progress.h" #include <algorithm> #include <base/logging.h> #include <dbus/smbprovider/dbus-constants.h> #include "smb...
/******************************************************************************* * Copyright 2016-2018 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...
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
// (C) Copyright Beman Dawes 2008 // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/config for more information. // MACRO: B...
/******************************************************************************* * Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II * Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI * * Distributed under the Boost Software License, Version 1.0. * ...
// 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h" #include <stddef.h> #include <stdint.h> #include <vector> #incl...
#include "curl_easy.h" #include "curl_form.h" #include "curl_header.h" using curl::curl_header; using curl::curl_easy; using curl::curl_easy_exception; using curl::curlcpp_traceback; /* * This example shows how to add custom headers to a simple * curl request. */ int main() { // Let's create an object which w...
#include <eve/function/diff/sub.hpp> #include <eve/wide.hpp> #include <eve/constant/inf.hpp> #include <eve/constant/minf.hpp> #include <eve/constant/nan.hpp> #include <iostream> using wide_ft = eve::wide<float, eve::fixed<8>>; int main() { wide_ft pf = {2.0f, 3.0f, -4.0f, 2.0f, 2.0f, eve::inf(eve::a...
// Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* Define those macros _before_ you include the utc_blink_ewk.h header file. */ #include "utc_blink_ewk_base.h" class utc_blink_ewk_context_web_storage_o...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 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 i...
// Copyright 2008-present Contributors to the OpenImageIO project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/OpenImageIO/oiio #include <cmath> #include <cstdio> #include <cstdlib> #include <memory> #include <vector> #include <OpenImageIO/dassert.h> #include <OpenImageIO/deepdata.h> #include <Open...
/****************************************************************************** * Copyright (c) 2020, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception. * *****************************************************************************/ #include "sct_assert.h" #include ...
/*************************************************************************** # Copyright (c) 2015-21, NVIDIA CORPORATION. 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...
// // basic_io_object.hpp // ~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_ASIO_BASIC_IO_O...
// Test with PCH // RUN: %clang_cc1 -std=c++11 -x c++-header -emit-pch -o %t %s // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s // expected-no-diagnostics // PR10847 #ifndef HEADER #define HEADER struct NSSize { double width; double height; }; typedef struct NSSize NSSize; static inline NSSize NSMakeSize...
#ifndef STAN_MATH_FWD_FUN_COLUMNS_DOT_SELF_HPP #define STAN_MATH_FWD_FUN_COLUMNS_DOT_SELF_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/fwd/core.hpp> #include <stan/math/fwd/fun/dot_self.hpp> namespace stan { namespace math { template <typename T, int R, int C> inline Eigen::Matrix<fvar<T>, 1, ...
/*========================================================================= Program: Visualization Toolkit Module: vtkPointSetAlgorithm.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
#include "selfdrive/camerad/cameras/camera_webcam.h" #include <unistd.h> #include <cassert> #include <cstring> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wundefined-inline" #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/opencv.hpp> #include <opencv2/videoio.hpp> #p...
/** @file ***************************************************************************** Implementation of interfaces for wNAF ("weighted Non-Adjacent Form") exponentiation routines. See wnaf.hpp . ***************************************************************************** * @author This file is part of li...
#include "RotationAnimator.h" #include "ITransformable.h" RotationAnimator::RotationAnimator(core::vector3df speed) { this->speedRadians = speed * core::DEGTORAD; } void RotationAnimator::Animate(ITransformable *target, f32 dt) { core::quaternion rot( target->GetRotation() * core::DEGTORAD ); core::quaternion del...
#include "vrclient_private.h" #include "vrclient_defs.h" #include "openvr_v1.16.8/ivrclientcore.h" using namespace vr; extern "C" { #include "struct_converters.h" } #include "cppIVRNotifications_IVRNotifications_002.h" #ifdef __cplusplus extern "C" { #endif vr::EVRNotificationError cppIVRNotifications_IVRNotifications_...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
#include "selfdrive/camerad/cameras/camera_replay.h" #include <cassert> #include <thread> #include "selfdrive/common/clutil.h" #include "selfdrive/common/util.h" extern ExitHandler do_exit; void camera_autoexposure(CameraState *s, float grey_frac) {} namespace { const char *BASE_URL = "https://commadataci.blob.co...
#include "opae_sim.h" #include <verilated.h> #include "Vvortex_afu_shim.h" #include "Vvortex_afu_shim__Syms.h" #ifdef VCD_OUTPUT #include <verilated_vcd_c.h> #endif #include <iostream> #include <fstream> #include <iomanip> #include <mem.h> #define RAMULATOR #include <ramulator/src/Gem5Wrapper.h> #include <ramulator...
// The YukinoDB Unit Test Suite // // db_impl_test.cc // // Created by Niko Bellic. // // #include "balance/db_impl.h" #include "yukino/options.h" #include "yukino/env.h" #include "yukino/write_batch.h" #include "gtest/gtest.h" #include <stdio.h> namespace yukino { namespace balance { class BalanceDBImplTest : pub...
// MyTrace.cpp #include "stdafx.h" #include "MyTrace.h" #ifdef _DEBUG static LPCTSTR MyLevel[10] = { _T("|"), _T("| |"), _T("| | |"), _T("| | |"), _T("| | | |"), _T("| | | | |"), _T("| | | | | |"), _T("| | | | | | |"), _T("| | | | | | | |"), _T("| | | | | | | |"), }; static TCHAR MyTraceBuffer[512]; stati...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cstddef> #include <memory> #include <unordered_set> #include <utility> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" #include "DataStructures/IdPair.hpp" #include "DataStructures/VariablesTag.hpp" #include ...
/******************************************************************************* * * MIT License * * Copyright (c) 2021 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
// Copyright (c) 2012-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientversion.h" #include "tinyformat.h" #include <string> /** * Name of client reported in the 'version' messa...
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include <fstream> #include <sstream> #include <float.h> #ifdef _WIN32 #include <WinSock2.h> #else #include <netdb.h> #endif ...
#include "catch.hpp" #include "irods_linked_list_iterator.hpp" #include "objInfo.h" #include "dataObjOpr.hpp" #include <memory> #include <iterator> #include <functional> using deleter_t = std::function<void(dataObjInfo_t*)>; auto make_c_linked_list(int _list_length) noexcept -> std::unique_ptr<dataObjInfo_t, delete...
// Copyright (c) 2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcnestedtests.h" #include "chainparams.h" #include "consensus/validation.h" #include "fs.h" #include "validation.h" #i...
/** * \file abstractDessin.cc * \author {Clement Caumes Doudouh Yassin} * \date 9 janvier 2018 * \brief contient la defintion des methodes de AbstractDessin */ #include "../head/abstractDessin.hh" #include "../head/types.hh" using namespace std; /** * \fn AbstractDessin::AbstractDessin() * Constructeur Abstra...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Cpacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "signverifymessagedialog.h" #include "ui_signverifymessagedia...
/**************************************************************************** ** ** Copyright (p) 2009-2015 C.B. Barber. All rights reserved. ** $Id: //main/2015/qhull/src/qhulltest/QhullPointSet_test.cpp#3 $$Change: 2062 $ ** $DateTime: 2016/01/17 13:13:18 $$Author: bbarber $ ** ***************************************...
// // Created by 王耀 on 2017/10/7. // #include <new> #include "funcnode.h" FuncNode::FuncNode(int entryPoint, unsigned int paramCount, unsigned int localDataSize) { new (this)FuncNode(-1, entryPoint, paramCount, localDataSize); } FuncNode::FuncNode(int index, int entryPoint, unsigned int paramCount, unsigned int ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "validation.h" #include "arith_uint256.h" #include "chain.h" #include "...
/* file: linear_regression_train_dense_normeq_helper_fpt_cpu.cpp */ /******************************************************************************* * Copyright 2014-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
// Copyright 2016 The Draco 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...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/document/bucket/fixed_bucket_spaces.h> #include "cluster_state_bundle.h" #include "clusterstate.h" #include <iostream> #include <sstream> namespace storage::lib { ClusterStateBundle:...
/* * Copyright 2017 Sony Corporation */ #include "gtest/gtest.h" #include "Poco/ThreadPool.h" #include "easyhttpcpp/common/CommonMacros.h" #include "easyhttpcpp/common/FileUtil.h" namespace easyhttpcpp { namespace common { namespace test { namespace { const Poco::Path TestRootPath(EASYHTTPCPP_STRINGIFY_MACRO(RUNT...
/****************************************************************************** * Copyright 2020 The Apollo 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 ...
// SQL Notebook // Copyright (C) 2016 Brian Luft // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge...
#include <AMReX_Vector.H> #include <AMReX_AmrCore.H> #include <AMReX_ParallelDescriptor.H> #include <AMReX_ParmParse.H> #include <AMReX_MultiFabUtil.H> #include <AMReX_FillPatchUtil.H> #include <AMReX_PlotFileUtil.H> #include <AMReX_VisMF.H> #include <AMReX_PhysBCFunct.H> #include <AMReX_EB_utils.H> #include <AMReX_EB...
// Copyright 2016 The Native Client 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 <pthread.h> #include "native_client/src/include/nacl_assert.h" #include "native_client/src/untrusted/pll_loader/pll_loader.h" namespace {...
/* $Id: Simple_replace.hpp 549711 2017-10-26 18:03:18Z gotvyans $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Governme...
#include "widget.h" #include "ui_widget.h" #include <QFileDialog> #include <QColorDialog> #ifdef Q_OS_LINUX #include <QUuid> #include <QDir> #include <QFile> #include <QStandardPaths> #endif Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget), taskbar(new QTaskbarControl(this)) { ui->setupUi(this...
//======================================================================= // Copyright 1997, 1998, 1999, 2000 University of Notre Dame. // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...