text
stringlengths
5
1.04M
// 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 <vector> #include "content/browser/browser_thread_impl.h" #include "content/browser/speech/google_one_shot_remote_engine.h" #include "conten...
/************************************************************************ NxN Matrix class Copyright (C) 1998 Michael Garland. See "COPYING.txt" for details. $Id: mixmops.cxx,v 1.7 1998/10/26 21:09:38 garland Exp $ ************************************************************************/ #include...
// Copyright (c) 2009 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/installer/util/google_update_settings.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #inclu...
/* * Copyright (c) 2019 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...
#include "Sum.h" /** * Constructor. * @param a The first value to add. * @param b The second value to add. */ Sum::Sum(int a, int b) : value1(a), value2(b) { } /** * Destructor. */ Sum::~Sum() {} /** * Getter for getting the value of the variable value1. */ int Sum::getValue1() { return value1; } /** * Getter for...
#include "DictionaryBlockInputStreamBase.h" namespace DB { DictionaryBlockInputStreamBase::DictionaryBlockInputStreamBase(size_t rows_count, UInt64 max_block_size) : rows_count(rows_count), max_block_size(max_block_size) { } Block DictionaryBlockInputStreamBase::readImpl() { if (next_row == rows_count) ...
// 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 <memory> #include "base/macros.h" #include "chrome/browser/ui/views/reader_mode/reader_mode_icon_view.h" #include "base/test/scoped_feature_list...
// Copyright (c) 2011-2019 The Bitcoin Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/perbug-config.h> #endif #include <qt/sendcoinsdialog.h> #include <qt/forms/ui_se...
/* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "unified_image.h" #include "core/execution_environment/execution_environment.h" #include "core/gmm_helper/gmm.h" #include "core/gmm_helper/resource_info.h" #include "core/helpers/get_info.h" #include "core/helpers/hw_he...
#include <stdlib.h> #include "LATfield2.hpp" using namespace LATfield2; int main(int argc, char **argv) { int n,m; int io_groupe_size,io_size; string str_filename; int npts = 64; int numparts = 64; Real latresolution =0.1; for (int i=1 ; i < argc ; i++ ){ if ( argv[i][0] != '-...
/**************************************************************/ /* */ /* Copyright Mentor Graphics Corporation 2006 - 2015 */ /* All Rights Reserved */ /* ...
// generated from rosidl_generator_cpp/resource/msg__struct.hpp.em // generated code does not contain a copyright notice #ifndef TEST_MSGS__MSG__STATIC_ARRAY_PRIMITIVES__STRUCT_HPP_ #define TEST_MSGS__MSG__STATIC_ARRAY_PRIMITIVES__STRUCT_HPP_ // Protect against ERROR being predefined on Windows, in case somebody defi...
// Copyright (c) 2012-2018 The Pyeongtaekcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <streams.h> #include <support/allocators/zeroafterfree.h> #include <test/test_pyeongtaekcoin.h> #include <bo...
/* R E N D E R _ S V C . C P P * BRL-CAD * * Copyright (c) 2012-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2...
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a ...
#ifndef QUITEXCEPTION_HPP #define QUITEXCEPTION_HPP class QuitException { }; #endif
#include "Derivative.hh" void Derivative::calcDerivative(FunctionArgs fargs) { auto& args = fargs.args; auto& arg = args[0].x; auto& ret = fargs.rets[0].x; auto x0 = m_x->value(); auto reldelta_corrected = m_reldelta*m_x->step(); double f1 = 4.0/(3.0*reldelta_corrected); double f2 = 1.0/...
// // main.cpp // arrays-lists // // Created by Eric on 7/8/19. // Copyright © 2019 Eric. All rights reserved. // #include <stdio.h> #include <iostream> using namespace std; int main(){ cout << "Array of integers" << endl; cout << "=================" << endl; int values[3]; values[0] =...
#include <game/move.h> #include <base58.h> #include <consensus/validation.h> #include <game/db.h> #include <game/map.h> #include <game/state.h> #include <key_io.h> #include <names/common.h> #include <names/main.h> #include <primitives/block.h> #include <primitives/transaction.h> #include <script/names.h> #include <scr...
#pragma once #include "../../interfaces/core_serialization_new/ISerializerNew.hpp" #include "../../lib/core_generic_plugin/interfaces/i_component_context.hpp" #include <memory> namespace wgt { /** *The implementation of the ISerializer class. Allows de/serialization of objects using either IDataStreams or ISerializat...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: cartographer/mapping/proto/pose_graph_options.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "cartographer/mapping/proto/pose_graph_options.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google...
// Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2018-2018 The SHIELD Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <merkleblock.h> #include <uint256.h> #include <test/test_shiel...
#include <pamix_ui.hpp> #include <pamix.hpp> void pamix_ui::reset() { m_Entries = nullptr; m_VolumeBarLineNums.clear(); m_EntrySizes.clear(); m_NumDrawnEntries = 0; m_NumSkippedEntries = 0; m_SelectedEntry = m_SelectedChannel = 0; } void pamix_ui::drawVolumeBar(int y, int x, int width, double fill, double maxF...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
/* * Copyright 2012 Rolando Martins, CRACS & INESC-TEC, DCC/FCUP * * 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 * * Unle...
// Copyright (c) 2017-2020 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "denomination_functions.h" // --------------------------------------------------------------------------------------------...
//0 tic_key_escape, tic_key_escape, tic_key_f1, tic_key_f1, tic_key_f2, tic_key_f2, tic_key_f3, tic_key_f3, tic_key_f4, tic_key_f4, tic_key_f5, tic_key_f5, tic_key_f6, tic_key_f6, tic_key_f7, tic_key_f7, tic_key_f8, tic_key_f8, tic_key_f9, tic_key_f9, tic_key_f10, tic_key_f10, //1 tic_key_esca...
///////////////////////////////////////////////////////////////////////////// // Name: src/gtk/toolbar.cpp // Purpose: GTK toolbar // Author: Robert Roebling // Modified: 13.12.99 by VZ to derive from wxToolBarBase // Copyright: (c) Robert Roebling // Licence: wxWindows licence ////////////////...
#ifndef _RIVE_CUBIC_MIRRORED_VERTEX_BASE_HPP_ #define _RIVE_CUBIC_MIRRORED_VERTEX_BASE_HPP_ #include "rive/core/field_types/core_double_type.hpp" #include "rive/shapes/cubic_vertex.hpp" namespace rive { class CubicMirroredVertexBase : public CubicVertex { protected: typedef CubicVertex Super; public: static co...
#include <iomanip> #include <prjxray/bit_ops.h> #include <prjxray/xilinx/spartan6/frame_address.h> namespace prjxray { namespace xilinx { namespace spartan6 { // According to UG380 pg. 101 the Frame Address Register (FAR) // consists of two 16-bit registers (FAR MAJOR and FAR MINOR). // We construct the 32-bit frame...
/* Copyright (c) 2013, 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...
/* * ----------------- BEGIN LICENSE BLOCK --------------------------------- * * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * * ----------------- END LICENSE BLOCK ----------------------------------- */ /** * Generated file * @file * * Generator Version : 11.0.0-1997 */ #p...
/*++ Copyright (C) 2015 Microsoft Corporation Copyright (C) 2015 netfabb GmbH (Original Author) 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 (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 <string> #include "base/basictypes.h" #include "base/file_util.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #...
/* Copyright (c) 2014-2016, Arvid Norberg, Steven Siloti 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 ...
#pragma once #include "element.hpp" #include <string> class String : public Element { std::string string; public: String(const std::string&); void print(size_t indent = 0) override; bool find(char); };
#ifdef RD_WG_SIZE_0_0 #define BLOCK_SIZE RD_WG_SIZE_0_0 #elif defined(RD_WG_SIZE_0) #define BLOCK_SIZE RD_WG_SIZE_0 #elif defined(RD_WG_SIZE) #define BLOCK_SIZE RD_WG_SIZE #else #define BLOCK_SIZE 16 #endif #define LIMIT -999 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <iostream> #include <str...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *londinium_strings[] = { QT_TRANSLATE_NOOP("londinium-core", "" "(1 = keep tx meta data e.g. account owner and payment request information, ...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
// Copyright (c) 2001-2010 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) // This example is the equivalent to the following lex program: /* //[wcl_flex_version %{ int c = 0, w = ...
// Copyright (C) 2011 - 2014 David Reid. See included LICENCE. #include <GTGE/Components/ProximityComponent.hpp> #include <GTGE/SceneNode.hpp> namespace GT { GTENGINE_IMPL_COMPONENT_ATTRIBS(ProximityComponent, "Proximity") ProximityComponent::ProximityComponent(SceneNode &node) : CollisionShapeCompon...
#include <iostream> #include <memory> #include <array> #include <allocators/wrappers/allocator_wrapper.h> #include <allocators/wrappers/allocator_singleton.h> #include <allocators/wrappers/smart_allocator.h> #include <allocators/malloc_allocator.h> #include <allocators/bitmapped_block.h> #include <allocators/free_lis...
// // composed_4.cpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 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) // #include <asio/io_context.hpp> #include...
/* Copyright (c) 2009-2016, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include <El-lite.hpp> #ifdef EL_HAVE_MPC namespace E...
#include "DeviceContext.h" #include "SwapChain.h" #include "VertexBuffer.h" #include "VertexShader.h" #include "PixelShader.h" DeviceContext::DeviceContext(ID3D11DeviceContext* device_context):m_device_context(device_context) { } void DeviceContext::clearRenderTargetColor(SwapChain* swap_chain, float red, float gree...
//данный тест проверяет наличие ошибки в функции hashtable::erase #include <stl/hash_map> int main () { try { printf ("Results of hmap4_test:\n"); stl::hash_map<size_t, int> m; m [1u] = 5; m [2u] = 5; m [3u] = 5; m.erase (1u); m.erase (2u); m [1u] = 5; printf ("before dele...
#include <iostream> // -------------------------------------------------------------------- int main() { return 0; }
/* * $Id$ * * Author: David Fournier * Copyright (c) 2008-2012 Regents of the University of California */ /** * \file * Description not yet available. */ #include <df1b2fun.h> /** * Description not yet available. * \param */ df1b2variable t_deviate(const df1b2variable& _x,const df1b2variable& _a) { ...
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <fcppt/string.hpp> #include <fcppt/text.hpp> #include <fcppt/enum/array_init.hpp> #includ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint256.h" #include "chain.h" #include "chainpa...
// license:BSD-3-Clause // copyright-holders:Aaron Giles /*************************************************************************** Sega System 32/Multi 32 hardware **************************************************************************** Still to do: * fix protection * fix jpark correct...
// 20 may 2015 #include "uipriv_windows.hpp" // TODO // - is there extra space on the bottom? // we as Common Controls 6 users don't need to worry about the height of comboboxes; see http://blogs.msdn.com/b/oldnewthing/archive/2006/03/10/548537.aspx struct uiCombobox { uiWindowsControl c; HWND hwnd; void (*onSele...
/* * TextureCubeMap.cpp * Virtual Vision * * Created by Abdallah Dib Abdallah.dib@virtual-vison.net * Copyright 2011 Virtual Vision. All rights reserved. * */ #include "TextureCubeMap.h" namespace vvision { CTextureCubeMap::CTextureCubeMap() { m_uID = 0; } CTextureCubeMap::~CTexture...
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <map> #include <set> #include <tuple> #include <stdbool.h> #include <bitset> #include <string> #include <boost/multiprecision/cpp_int.hpp> namespace mp = boost::multiprecision; using namespace std; // label: a=0, b=1, c=2 void inser...
#ifndef EMB_NET_ASYNC_CORE_HPP #define EMB_NET_ASYNC_CORE_HPP #include <emb/net/socket.hpp> #include <emb/callback.hpp> #include <emb/flags.hpp> #include <functional> #include <vector> #include <sys/epoll.h> namespace emb::net { enum class async_watch : std::uint32_t { invalid = 0, in = 1 << 0, out = 1 ...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; class EggCartons { public: int minCartons(int n) { int sol = 1234567; for (int i=0; i<1000; ++i) { for...
/* * Copyright 2017 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 contributing ...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Tencent is pleased to support the open source community by making WeChat QRCode available. // Copyright (C) 2020 THL A29...
/* TODO: only really acts as a counter, perhaps we can make a real * inactive thread pool? */ #ifndef PJ_INACTIVE_POOL_HPP #define PJ_INACTIVE_POOL_HPP #include <iostream> #include <atomic> #include <sys/types.h> namespace pj_runtime { class pj_inactive_pool { public: pj_inactive_pool() ...
#include "caffe2/mpi/mpi_common.h" #include <thread> #include "caffe2/core/typeid.h" #include "caffe2/utils/proto_utils.h" namespace caffe2 { CAFFE_KNOWN_TYPE(MPICommonWorldWrapper); static std::mutex gCaffe2MPIMutex; std::mutex& MPIMutex() { return gCaffe2MPIMutex; } static MPI_Comm gCaffe2MPIComm = MPI_COMM_...
//// Copyright 2020 Egorov Kirill #include <gtest-mpi-listener.hpp> #include <gtest/gtest.h> #include <vector> #include "./batcher_sort.h" TEST(basic_functions_tests, shuffle_test) { int rank, numtasks; MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &numtasks); if (rank...
// Copyright (c) 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 <vector> #include "base/command_line.h" #include "gpu/config/gpu_driver_bug_list.h" #include "gpu/config/gpu_driver_bug_workaround_type.h" #...
/* * Copyright 2012 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkMagnifierImageFilter.h" #include "SkBitmap.h" #include "SkColorData.h" #include "SkColorSpaceXformer.h" #include "SkImageFilterPriv.h" #includ...
// Copyright (c) 2014-2019 The Dash 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/activemasternode.h" #include "init.h" #include "instantsend.h" #include "key.h" #include "validation.h"...
/* * 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...
// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <errno.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <algorithm> #include <fstream> #include <unordered_map> #incl...
/* * 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...
#include <iostream> #include <set> int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; std::cin >> n; std::set<int> ng; for (int i = 0; i < 3; i++) { int x; std::cin >> x; ng.insert(x); } if (ng.count(n)) { std::cout << "NO" << '\n'; return 0; } for (int...
///////////////////////////////////////////////////////////////////////////// // Name: src/html/helpdlg.cpp // Purpose: wxHtmlHelpDialog // Notes: Based on htmlhelp.cpp, implementing a monolithic // HTML Help controller class, by Vaclav Slavik // Author: Harm van der Heijden, Vaclav ...
#ifndef _ML_STANDARD_HPP_ #define _ML_STANDARD_HPP_ #include <modus_core/Preprocessor.hpp> static_assert(ML_has_cxx14); #include <cassert> #include <chrono> #include <cwchar> #include <fstream> #include <functional> #include <iostream> #include <map> #include <sstream> #include <unordered_map> #include <stdarg.h> #in...
/********************************************************************** * File: search_node.cpp * Description: Implementation of the Beam Search Node Class * Author: Ahmad Abdulkader * Created: 2008 * * (C) Copyright 2008, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License");...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <float.h> #include <math.h> #include "common.h" // Copyright 2004-present Facebook. All Rights Reserved. // Constructs a rounding factor used to truncate elements in a sum // such that the sum of the truncated elements is the same no matter // what t...
// // Created by juan.castellanos on 10/01/20. // #include "OCP/Specification.h" #include "OCP/Product.h" bool ColorSpecification::is_satisfied(Product* item) { return item->color == _color; } bool SizeSpecification::is_satisfied(Product* item) { return item->size == _size; }
// Copyright (c) 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. // // This file implements the common entry point shared by all Chromoting Host // processes. #include "remoting/host/host_main.h" #include <string> ...
/* Copyright 2015 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...
//@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...
/* * Brian R Taylor * brian.taylor@bolderflight.com * * Copyright (c) 2021 Bolder Flight Systems 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 in the Software without restriction, including without ...
#pragma once #include <index>
//===----------------- LoopRotationUtils.cpp -----------------------------===// // // 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) 1999 Lars Knoll (knoll@kde.org) * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. * Copyright (C) 2007 Alexey P...
// license:BSD-3-Clause // copyright-holders:Curt Coder /***************************************************************************** * * video/abc802.c * ****************************************************************************/ #include "emu.h" #include "includes/abc80x.h" #include "screen.h" //----------...
// Physics_GravityForce.cpp: implementation of the Physics_GravityForce class. // ////////////////////////////////////////////////////////////////////// #include "DRGShell.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////...
/* * Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO> * * 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 * ...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#pragma once #include <mi.h> #include "CIMitar.hpp" #ifndef CIMITAR_VALUE_H_INCLUDED #define CIMITAR_VALUE_H_INCLUDED const MI_Type CIMTypeIDTranslator(const CIMitar::CIMTypes Type) noexcept; const CIMitar::CIMTypes CIMTypeIDTranslator(const MI_Type Type) noexcept; #endif CIMITAR_VALUE_H_INCLUDED
/* Copyright (c) 2016 InternetWide.org and the ARPA2.net project All rights reserved. See file LICENSE for exact terms (2-clause BSD license). Adriaan de Groot <groot@kde.org> */ #include "verb.h" #include <sys/select.h> void VerbDispatcher::poll() { }
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/codedeploy/model/DeploymentReadyOption.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aw...
#include "engine.hpp" #include <iostream> static int NUM(0); static std::pair<int, Chromosome> oneBatch() { std::cout << "\n==========================================" << std::endl; std::cout << "run " << NUM << std::endl; ++NUM; std::cout << "==========================================" << std::endl; Engine ...
/* * Copyright (c) 2009-2011, 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 of source code must retain the above copyright * ...
// Copyright (c) 2012-2016 The Bitcoin Core developers // Copyright (c) 2017 The AmlBitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "serialize.h" #include "streams.h" #include "hash.h" #include "...
#ifndef PLAYER_HPP #define PLAYER_HPP #include<iostream> #include<vector> #include<string> #include<algorithm> #include<fstream> #include<sstream> #include<assert.h> #include<exception> class player { private: std::string name; int hp; int attack_points; int defence_points; int max_hp; int num...
/** * @file */ #include "AggroTableModel.h" #include <QColor> namespace ai { namespace debug { AggroTableModel::AggroTableModel(const AIDebugger& debugger, QTableView *tableView) : QAbstractTableModel(nullptr), _debugger(debugger), _parent(tableView) { } AggroTableModel::~AggroTableModel() { } void AggroTableMo...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
// Copyright 2019 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 <base/gserrors.h> #include <psi/iapi.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <stdint.h> static const unsigned...
#include "MSIM_ProgressFeedback.h" #include <sstream> #include <iomanip> #include <IBK_Time.h> #include <IBK_messages.h> namespace MASTER_SIM { void ProgressFeedback::setup(std::ostream * progressLog, double t0, double tEnd, const std::string & interimMessage, double elapsedSecondsAtStart, double elapsedSimTimeAt...
//++ BulliT #include "extdll.h" #include "util.h" #include "cbase.h" #include "player.h" #include "weapons.h" #include "gamerules.h" extern int gmsgTeamInfo; extern int gmsgSetFOV; extern int gmsgSplash; extern int gmsgGamemode; extern int g_teamplay; void CBasePlayer::Spectate_Init() { m_fSpectateTime = AgTime()...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_fscanf_multiply_82_goodG2B.cpp Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-82_goodG2B.tmpl.cpp */ /* * @description * CWE: 191 Integer Underflow * BadSource: fscanf Read data from the c...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#include <iostream> #include <string> using namespace std; int main() { string s, r; cin >> s; for (char c : s) { if (c >= 'A' && c <= 'Z') { c += 'a' - 'A'; } if (c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u' && c != 'y') { r....
/* Copyright 2007-2015 QReal Research Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...