text
stringlengths
7
961k
/****************************************************************************** Copyright (c) 2017, Alexander W. Winkler, ETH Zurich. 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...
/* Copyright (c) 2005-2016, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
/* * Copyright (c) 2020 Samsung Electronics 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...
/*============================================================================= Copyright (c) 2002-2003 Hartmut Kaiser http://spirit.sourceforge.net/ 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 (c) 2009-2017 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018-2019 The GIANT 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...
/* * Copyright (C) 2017-2019 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017 The KONG Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coincontroltreewidget.h" #include "coincontroldialog.h" CoinControlTreeW...
#pragma once #include <string> #include <crucible/Texture.hpp> #include <map> struct Character { Texture tex; vec2i size; // Size of glyph vec2i bearing; // Offset from baseline to left/top of glyph int advance; // Offset to advance to next glyph }; class Font { private: unsigned int...
#pragma once #include <graphene/plugins/database_api/plugin.hpp> #include <graphene/plugins/database_api/forward.hpp> #include <graphene/plugins/database_api/state.hpp> #include <graphene/plugins/operation_history/applied_operation.hpp> #include <fc/api.hpp> #include <graphene/plugins/network_broadcast_api/network_bro...
// Copyright 2019 Uber Technologies, Inc. All Rights Reserved. // Modifications copyright Microsoft // Modifications copyright (C) 2020, NVIDIA CORPORATION. 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. // Y...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/chromeos/edu_account_login_handler_chromeos.h" #include <memory> #include "base/callback_helpers.h" #include "base/jso...
// Copyright (C) 2019. Huawei Technologies 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 rights to use,...
#ifndef TIKPP_COMMANDS_SET_HPP #define TIKPP_COMMANDS_SET_HPP #include "tikpp/data/converters/dissolver.hpp" #include "tikpp/request.hpp" #include <cstdint> namespace tikpp::commands { template <typename Model> struct set : tikpp::request { set(std::uint32_t tag, Model model) : request {std::string {Mod...
/* Flattening a Linked List Medium Accuracy: 33.91% Submissions: 67762 Points: 4 Given a Linked List of size N, where every node represents a sub-linked-list and contains two pointers: (i) a next pointer to the next node, (ii) a bottom pointer to a linked list where this node is head. Each of the sub-linked-list is in...
/*************************************************************************** # 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...
/** * @file * @copyright defined in eos/LICENSE.txt */ #include <eosiolib/asset.hpp> #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> #include <string> #include <ctime> #include <eosiolib/types.h> #include <eosiolib/crypto.h> #include <utility> #include <vector> #include <queue> #include <string> #inc...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkDebuggerGUI.h" #include <QApplication> static void usage(const char * argv0) { SkDebugf("%s <input> \n", argv0); SkDebugf(" [--help|-h]: show this help...
/* * This source file is part of RmlUi, the HTML/CSS Interface Middleware * * For the latest information, see http://github.com/mikke89/RmlUi * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * Copyright (c) 2019 The RmlUi Team, and contributors * * Permission is hereby granted, free of charge, to...
/* * This code is from projectM a 2D side scroller using SFML. * It was made using the help of the SFML Game Development Book * * If you have any questions, please contact me at * pridexs.com * * For more information visit the repo for this project at: * github.com/pridexs * * Alexandre Maros - 2016 */ ...
#ifndef __XF_EXTRA_UTILITY_HPP__ #define __XF_EXTRA_UTILITY_HPP__ #include "common/xf_common.hpp" #include "common/xf_video_mem.hpp" #include "ap_axi_sdata.h" namespace xf { namespace cv { /* // ====================================================================================== // Function to split hls::...
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2012 Tatsuhiro Tsujikawa * * 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 Lice...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <boost/uuid/uuid_io.hpp> #include <boost/lexical_cast.hpp> #include <cmn/agent_cmn.h> #include <route/route.h> #include <vnc_cfg_types.h> #include <agent_types.h> #include <oper/peer.h> #include <oper/vrf.h> #include <oper/interface_co...
/* Loot Houses A thief wants to loot houses. He knows the amount of money in each house. He cannot loot two consecutive houses. Find the maximum amount of money he can loot. Input Format Line 1 : An integer N Line 2 : N spaced integers denoting money in each house Output Format Line 1 : Maximum amount of money looted...
/* Copyright [2008] [Trevor Hogan] 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 ...
// -*- c++ -*- // // michael a.g. aïvázis <michael.aivazis@para-sim.com> // (c) 1998-2022 all rights reserved // get the journal #include <pyre/journal.h> // support #include <cassert> // type aliases using csi_t = pyre::journal::csi_t; using ansi_t = pyre::journal::ansi_t; // verify that the colors in the ANSI p...
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinamountfield.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include "qvalidatedlineedit.h" #include "qvaluecombobox.h" #include <QCheckBox> #include <QDir> #include <QIntValidator> #...
#define COMPONENT medical #define COMPONENT_BEAUTIFIED Medical #include "\x\keko\addons\main\script_mod.hpp" // #define DEBUG_MODE_FULL // #define DISABLE_COMPILE_CACHE // #define ENABLE_PERFORMANCE_COUNTERS #ifdef DEBUG_ENABLED_MEDICAL #define DEBUG_MODE_FULL #endif #ifdef DEBUG_SETTINGS_MEDICAL #define DEB...
/* * Catch v2.9.1 * Generated: 2019-06-17 11:59:24.363643 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it * directly Copyright (c) 2019 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software Licen...
/* Copyright (c) 2012, 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 in the hop...
// 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 "chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h" #include <string> #include "base/memory/weak_ptr.h" #include "chrome/br...
/****************************************************************************** * 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 ...
#include<iostream> using namespace std; int main(){ cout.fill('<'); cout.precision(4); for(int i=1;i<=6;i++){ cout.width(5); cout << i; cout.width(10); cout << 1.0/(float)i << "\n"; if(i==3){cout.fill('>');} } cout <<"\nPadding changed \n\n"; cout.fill('...
/** * * StaticFileRouter.cc * An Tao * * Copyright 2018, An Tao. All rights reserved. * https://github.com/an-tao/drogon * Use of this source code is governed by a MIT license * that can be found in the License file. * * Drogon * */ #include "StaticFileRouter.h" #include "HttpAppFrameworkImpl.h" #i...
// Copyright (C) 2018-2020 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include <config.h> #include <testutils/io_u...
#include "mvModule_DearPyGui.h" #include "mvAppItemCommons.h" #include "mvViewportOps.h" #include "mvFontManager.h" #include "mvItemRegistry.h" #include <ImGuiFileDialog.h> #include <cstdlib> #include "mvToolManager.h" #include "mvBuffer.h" #include "mvVec4Type.h" #include "mvMat4Type.h" namespace Marvel { mv_intern...
// // 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. // * Redistributions in bin...
// This file is part of the uSTL library, an STL implementation. // // Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net> // This file is free software, distributed under the MIT License. #include "stdtest.h" using namespace tm; static void Print (int v) { cout.format ("PrintInt %d\n", v); } static...
/** * Copyright 2021 Huawei Technologies 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...
#include "mouse_input.h" MouseInput* MouseInput::GetInstance() { static MouseInput *instance = new MouseInput(); return instance; } void MouseInput::ClearInputFlags() { isMouseLeftButtonJustPressed = false; isMouseRightButtonJustPressed = false; isMouseLeftButtonJustReleased = false; isMouseRi...
#include "edittext.hpp" #include <libapt/apt.hpp> #include "../util.hpp" using namespace libapt; void Edittext::Parse(uint8_t *&iter) { m_bounds = read<glm::vec4>(iter); m_font = read<uint32_t>(iter); m_alignment = read<uint32_t>(iter); m_color = read<glm::u8vec4>(iter); m_fontheight = read<float>(iter); m_read...
/* * File: AddEmptyRootOperation.hpp * * Author: ABSEHER Michael (abseher@dbai.tuwien.ac.at) * * Copyright 2015-2017, Michael Abseher * E-Mail: <abseher@dbai.tuwien.ac.at> * * This file is part of htd. * * htd is free software: you can redistribute it and/or modify it under * the terms of the GNU Ge...
#include <tuple> #include <queue> #include <vector> #include <gtest/gtest.h> #include <entt/entity/registry.hpp> template<typename Storage> struct OutputArchive { OutputArchive(Storage &storage) : storage{storage} {} template<typename... Value> void operator()(const Value &... value) { ...
// license:BSD-3-Clause // copyright-holders:Brad Oliver, Eric Smith, Juergen Buchmueller /***************************************************************************** * * POKEY chip emulator 4.6 * * Based on original info found in Ron Fries' Pokey emulator, * with additions by Brad Oliver, Eric Smith and Juer...
// ------------------------------------------------------------------------------------------------- // Copyright 2016 - NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // ...
/* * RFC 6979 Deterministic Nonce Generator * (C) 2014,2015 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/rfc6979.h> #include <botan/hmac_drbg.h> #include <botan/mac.h> #include <botan/scan_name.h> namespace Botan { std::string hash_for_deterministic_signature...
#include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <iostream> using namespace cv; using namespace std; static void help() { cout << "\nThis program demonstrates circle finding with the Hough transform.\n" "Usage:\n" "./houghcircles <ima...
// includes #include <LibAudio/WavLoader.h> #include <stddef.h> #include <stdint.h> // exetern c function extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { auto wav_data = ByteBuffer::copy(data, size); auto wav = make<Audio::WavLoaderPlugin>(wav_data); if (!wav->sniff()) re...
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/source_report.h" #include "vm/dart_api_impl.h" #include "vm/unit_test.h" namespace dart {...
#include <Parsers/ParserOptimizeQuery.h> #include <Parsers/ParserPartition.h> #include <Parsers/CommonParsers.h> #include <Parsers/ASTOptimizeQuery.h> #include <Parsers/ASTIdentifier.h> namespace DB { bool ParserOptimizeQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { ParserKeyword s_optimize_...
#ifndef __atom_dag_DagCallbacks__ #define __atom_dag_DagCallbacks__ #include <functional> #include <set> #include <string> #include <maya/MMatrix.h> namespace atom { namespace dag { class Node; enum class DagCallback { kInvalid, // generic kNameChanged, /**< A node has changed its name. */ kTranslated, /**< A...
/** \unpacker for gem * \author J. Lee - UoS */ #include "DataFormats/Common/interface/Handle.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/Run.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Utilities/int...
/********************************************************************* * COPYRIGHT: * Copyright (c) 2010-2014, International Business Machines Corporation and * others. All Rights Reserved. *********************************************************************/ #include "locnmtst.h" #include "cstring.h" /* Usage:...
/****************************************************************/ /** @file scxip.cpp * @brief Helper functions for IP Addresses * * @detailed Has unctions to check if an ip address is valid, * to check if a hex value is valid, * and to handle conversion from hex to quad dotted ip f...
#include "source/extensions/filters/network/thrift_proxy/router/config.h" #include "envoy/extensions/filters/network/thrift_proxy/router/v3/router.pb.h" #include "envoy/extensions/filters/network/thrift_proxy/router/v3/router.pb.validate.h" #include "envoy/registry/registry.h" #include "source/extensions/filters/netw...
/* This is an implementation of the ECB mode of the AES algorithm, based on the tiny AES implementation found at: https://github.com/kokke/tiny-AES-c This version has been made synthesisable and optimised for implementation on a Zynq FPGA The implementation is verified against the test vectors in: National Institu...
/* * rotation.c - Calculate position of each filter in the scale, based on rotation, spread, rotation CV, and scale CV * * Author: Dan Green (danngreen1@gmail.com), Hugo Paris (hugoplho@gmail.com) * 2015 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
// ======================================================================== // // Copyright 2009-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
class ACE_SelfActions: ACE_SelfActions { class HMDOn { displayName = "HMD"; condition = "(player in [driver this, this turretUnit [0]]) && (alive this)"; statement = QUOTE(call FUNC(toggleHMD)); icon = ""; }; class skin { displayName = "Nose Art"; condition = "driver (vehicle _player) == _player"; stat...
/** * @file uart_serial.hpp * @author WCJ (1767851382@qq.com) * XX (2796393320@qq.com) * HZK * RCX * @brief 串口通讯 * @date 2021-08-27 * * @copyright Copyright (c) 2021 GUCROBOT_WOLF * */ #pragma once #include <string> #include <fcntl.h> #include <termios.h> #include <unistd.h> ...
// Copyright (c) 2009-2010 Vote Nakamoto // Copyright (c) 2009-2018 The Democoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> /** * CChain implementation */ void CChain::SetTip(CBlockInde...
////////////////////////////////////////////////////// // INCLUDES ////////////////////////////////////////////////////// #include "common/engine/system/variablefloat.hpp" ////////////////////////////////////////////////////// // CLASS METHODS ////////////////////////////////////////////////////// VariableFloat::Var...
/* Copyright (c) 2018 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "meta/processors/partsMan/ListHostsProcessor.h" #include "meta/ActiveHostsMan.h" #include "meta/processors/admi...
#include "com_neoqee_jnidemo_JniUtil.h" //#include "jni.h" //Java_com_neoqee_jnidemo_JniUtil_printStringByJni //JNIEXPORT jstring JNICALL Jave_com_neoqee_jnidemo_JniUtil_printStringByJni( // JNIEnv *env, jclass jclass){ // return env->NewStringUTF("来自jni的字符串"); //} extern "C" JNIEXPORT jstring JNICALL Java_...
//===- mlir-opt.cpp - MLIR Optimizer Driver -------------------------------===// // // 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 // //===---------------------------...
/*============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 10608.cpp # Description: UVa Online Judge - 10608 =============================================================================*/ #include <a...
/** * This file is part of the "clip" project * Copyright (c) 2018 Paul Asmuth * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the ...
#include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{3}; } } #include"../main.h"
void filea() { }
// Copyright (c) 2017 The Bitcoin Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/test/bitcoinaddressvalidatortests.h" #include "chainparams.h" #include "qt/bitcoinaddressvalidator.h" #include <QValidator...
/* Copyright (C) 2015-present The DotCpp Authors. This file is part of .C++, a native C++ implementation of popular .NET class library APIs developed to facilitate code reuse between C# and C++. http://github.com/dotcpp/dotcpp (source) http://dotcpp.org (documentation) Licensed under the Apache License, Vers...
#include <Poco/Util/AbstractConfiguration.h> #include <Core/Field.h> #include <IO/ReadHelpers.h> #include <IO/WriteHelpers.h> #include <Interpreters/Settings.h> #include <Columns/ColumnArray.h> #include <Common/typeid_cast.h> #include <string.h> namespace DB { namespace ErrorCodes { extern const int UNKNOWN_SETT...
#include "vapor/VAssert.h" #include <sstream> #include <algorithm> #include <set> #include <vapor/UDUnitsClass.h> #include <vapor/NetCDFCollection.h> #include <vapor/utils.h> #include <vapor/WASP.h> #include <vapor/DerivedVar.h> #include <vapor/GeoUtil.h> using namespace VAPoR; using namespace Wasp; namespace { #ifd...
#ifndef ARGOS_DELPHI_AST_DELPHISYNTAXTREE_H #define ARGOS_DELPHI_AST_DELPHISYNTAXTREE_H #include <string> #include <argos-Core/LanguageKind.hpp> #include <argos-Core/Types.hpp> #include "argos-Delphi/AST/IDelphiSyntaxTree.hpp" #include "AST/Data/DelphiSyntaxTreeData.hpp" namespace argos::Core::Parser { class Conte...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ABI42_0_0Touch.h" namespace ABI42_0_0facebook { namespace ABI42_0_0React { #if ABI42_0_0RN_DEBUG_STRING_CONVERTIBLE st...
// 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/ui/browser_navigator.h" #include <algorithm> #include "base/command_line.h" #include "base/stringprintf.h" #include "base/u...
// =============================================================================== // Authors: AFRL/RQQA // Organization: Air Force Research Laboratory, Aerospace Systems Directorate, Power and Control Division // // Copyright (c) 2017 Government of the United State of America, as represented by // the Secretary of th...
// 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 "net/base/isolation_info.h" #include "base/unguessable_token.h" #include "net/base/network_isolation_key.h" #include "net/base/schemeful_site.h"...
/* * 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...
#include <iostream> #include <string.h> #include<stdio.h> #include<stdlib.h> #include<fstream> using namespace std; typedef struct Node { char name[20],email[30],address[50]; int ncode, number; Node *next; }Contact; class AddressBook { private: Contact *head=NULL; public: void Add(Contact *c) {...
// // Copyright 2019 DreamWorks Animation // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with...
#include "stdafx.h" #include "Object.h" #include "ClassRegistrator.h" void XRay::Object::shedule_update(UInt32 deltaTime) { } XRay::Object::Object(IntPtr InNativeObject) : NativeObject(InNativeObject) { CAST_TO_NATIVE_OBJECT(CObject, InNativeObject); AddVirtualMethod("shedule_update"); } XRay::Object::Object(...
// Copyright (c) 2001-2009 Hartmut Kaiser // // 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) #if !defined(BOOST_PP_IS_ITERATING) #if !defined(BOOST_SPIRIT_KARMA_FORMAT_MANIP_ATTR_APR_24_2009_0734AM) #define B...
/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable la...
#include "Life/AI/Considerations/UtilityAiConstConsideration.h"
/* * Copyright (c) 2016 Renat R. Dusaev <crank@qcrypt.org> * Author: Renat R. Dusaev <crank@qcrypt.org> * * 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...
/*============================================================================= Boost.Wave: A Standard compliant C++ preprocessor library http://www.boost.org/ Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt o...
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
// Copyright 2004-present Facebook. All Rights Reserved. #include "src/FrameTransport.h" #include <folly/ExceptionWrapper.h> #include "src/DuplexConnection.h" #include "src/Frame.h" namespace reactivesocket { FrameTransport::FrameTransport(std::unique_ptr<DuplexConnection> connection) : connection_(std::move(con...
/* Copyright (c) 2021 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 by applicable law or...
/* 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...
#pragma once #include "../syntaxtree.hpp" namespace littl { class Call : public SyntaxTree{ public: Call(SyntaxTree* name,SyntaxTree* args){ this->name = name; this->args = args; } virtual ~Call(){ delete name; ...
#include "AddImageChecks.h" #include "IRVisitor.h" #include "IRMutator.h" #include "Simplify.h" #include "Substitute.h" #include "Target.h" namespace Halide { namespace Internal { using std::map; using std::pair; using std::string; using std::vector; /* Find all the externally referenced buffers in a stmt */ class F...
// Copyright 2022 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...
#include "MyPermutation.h" #include <sstream> #include <unordered_set> IndexPair::IndexPair(size_t a, size_t b) : a(a), b(b) { } size_t IndexPair::first() const { return a; } size_t IndexPair::second() const { return b; } void IndexPair::Sort() { if (a <= b) return; std::swap(a, b); return; } bool IndexPair::opera...
#include "Vector2.h" Vector2::Vector2(float x, float y) { this->x = x; this->y = y; } Vector2::~Vector2() { } Vector2 Vector2::operator+(Vector2& rhsVector) { return Vector2(this->x + rhsVector.x, this->y + rhsVector.y); } void Vector2::operator+=(Vector2& rhsVector) { this->y += rhsVector.y; this->x += rhsVe...
/* Copyright 2022 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 <random> #include <mutex> #include <list> #include <thread> #include <condition_variable> #include "config.h" #include "tensor.h" #include "blas.h" #include "lapl_rect.h" #include "matrix_plot.h" #include "asp_misc.h" using namespace fdm; using namespace std; using namespace asp; template<typename T,bool ch...
// Copyright (c) 2014-2017 The AceD Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "privatesend-server.h" #include "activemasternode.h" #include "consensus/validation.h" #include "core_io.h" #includ...
int AT,w ,s7 , zLd , Tqw ,S6 /*ii*/, Nob , // HuyyB , yF , oKw,Pqr5,/*f9hJ*//*I*/VnS , /*4p2*/ef2 , om6 , tjbYt,uws/**/, X, BzU , igB4, mkY , lPB,FkF , Hezf , o5S,//Hq IxC , DVy , t , cEurA,y ,ZJj,ia,d4 //mQ ,f7V , mR, bZ, eiNrMD, //Xpo7 OO6v//j ,Rhjw ,/*d2*/mv4y,bF , C,kF/*XBj*/,AEona,//viGE...
#include "BreakStatement.h" void BreakStatement::parse() { labelInfo = decoders::d_line_info(reader); jmpLocation = decoders::d_sid(reader); breakStatement = reader.getBoolean(); } string BreakStatement::to_string() { string result = labelInfo.lbl_statement(); if (breakStatement) result +...