text
stringlengths
7
961k
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/core/utils/Outcome.h> #include <aws/core/auth/AWSAuthSigner.h> #include <aws/core/client/CoreErrors.h> #include <aws/core/client/RetryStrategy.h> #include <aws/core/http/HttpClient.h> #i...
// -*- C++ -*- /* * qsort.cpp * * An implementation of quicksort using Intel(R) Cilk(TM) Plus parallelization. * * Copyright (C) 2009-2010 Intel Corporation. All Rights Reserved. * * The source code contained or described herein and all * documents related to the source code ("Material") are owned by * Intel...
/// @file /// /// Copyright Matus Chochlik. /// 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 EAGINE_MSGBUS_SERVICE_HOST_INFO_HPP #define EAGINE_MSGBUS_SERVICE_HOST_INFO_HPP #include "../service.hpp...
//============================================================================================================================= // // EasyAR Sense 3.1.0-final-7bf6504c6 // Copyright (c) 2015-2020 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved. // EasyAR is the registered trademark or tradem...
#include <Parsers/ASTIdentifier.h> #include <Parsers/TablePropertiesQueriesASTs.h> #include <Parsers/CommonParsers.h> #include <Parsers/ParserTablePropertiesQuery.h> #include <Common/typeid_cast.h> namespace DB { bool ParserTablePropertiesQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { Parse...
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <vector> #include "SDL2/SDL.h" #include "SDL2/SDL_image.h" #include <GLES2/gl2.h> #include <EGL/egl.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif using namespace std; float randomFloat() { return (rand() % 10001) / 10000.0f; } SDL_Win...
/** * 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 "RemoveInterfacePass.h" #include "Creators.h" #include "DexStoreUtil.h" #include "DexUtil.h" #include "Resolver.h" #incl...
// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root dire...
//------------------------------------------------------------------------------ /* This file is part of Beast: https://github.com/vinniefalco/Beast Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without f...
#define CV_CPU_SIMD_FILENAME "C:/Source/opencv_cuda4dnn/modules/core/src/matmul.simd.hpp" #define CV_CPU_DISPATCH_MODE SSE4_1 #include "opencv2/core/private/cv_cpu_include_simd_declarations.hpp" #define CV_CPU_DISPATCH_MODE AVX2 #include "opencv2/core/private/cv_cpu_include_simd_declarations.hpp" #define CV_CPU_DISPA...
#include "/home/dell/huangyaling/MyProject/caffe-android-lib-test/opencv/modules/imgcodecs/src/precomp.hpp" int testfunction(); int testfunction() { return 0; }
/* ***************************************************************************** * The lines 67 and 74 are based on Xitari's code, from Google Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 * as published by the Free So...
#include <OpenGLES/ES2/gl.h> #include <OpenGLES/ES2/glext.h> #include <cmath> #include <iostream> #include "IRenderingEngine.hpp" #include "Ellison/EliShader.h" //#define STRINGIFY(A) #A #include "../Shaders/Simple.vert" #include "../Shaders/Simple.frag" static const float RevolutionsPerSecond = 1; class Rendering...
/* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include <common/Init.h> #include <folly/synchronization/Baton.h> #include <glog/logging.h> #include <gtest/gtest.h> #include <gtest/gtest_prod.h> #include <nebula/client/ConnectionPool.h> #include <...
#include "../../../JString.hpp" #include "./Time.hpp" namespace android::text::format { // Fields jint Time::EPOCH_JULIAN_DAY() { return getStaticField<jint>( "android.text.format.Time", "EPOCH_JULIAN_DAY" ); } jint Time::FRIDAY() { return getStaticField<jint>( "android.text.format.Time", "FRID...
/* Open Tracker License Terms and Conditions Copyright (c) 1991-2000, Be Incorporated. 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...
/** @author Shin'ichiro Nakaoka */ #include "LuaInterpreter.h" #include <cnoid/ExecutablePath> #include <cnoid/FileUtil> #include <cnoid/MessageView> #include <iostream> #include <stack> using namespace std; using namespace cnoid; namespace filesystem = boost::filesystem; namespace cnoid { class LuaInterpreterIm...
// 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...
#include "ip4.h" #include "../base/socket.h" // for platform-specific IPv4-related functions #include <stdexcept> namespace clickhouse { ColumnIPv4::ColumnIPv4() : Column(Type::CreateIPv4()) , data_(std::make_shared<ColumnUInt32>()) { } ColumnIPv4::ColumnIPv4(ColumnRef data) : Column(Type::CreateIPv4())...
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/stdcompat/span.h> #include <lib/zbitl/items/cpu-topology.h> #include <lib/zbitl/storage-traits.h> #include <algorithm> #include <iterator> #...
/* This test purpose is simply to check Standard header independancy that * is to say that the header can be included alone without any previous * include. * Additionnaly, for C Standard headers that STLport expose, it can also be * used to check that files included by those headers are compatible with * pure C co...
/* Copyright 2019 Alain Dargelas 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 writing, softwar...
// Boost checked_delete test program ---------------------------------------// // Copyright Beman Dawes 2001. 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) // See http://www.boost.org/libs/utility for doc...
// Copyright 2017 Till Kolditz // // 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 wri...
#include "sqpch.h" #include "Application.h" #include "Log.h" #include <glad/glad.h> namespace Squirrel { Application* Application::instance = nullptr; Application::Application() { SQ_CORE_ASSERT(!instance, "Application already exists!"); instance = this; window = std::unique_ptr<Window>(Window::Create());...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "wallet.h" #include "walletdb.h" #include...
//===----------------------------------------------------------------------===// // Copyright (c) 2020 Athena. All rights reserved. // https://getathena.ml // // Licensed under MIT license. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "A...
// Copyright James P. McNellis 2011 - 2013. // // 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 "cxxref...
// See the file "COPYING" in the main distribution directory for copyright. #include "zeek/packet_analysis/protocol/udp/UDP.h" #include "zeek/Conn.h" #include "zeek/RunState.h" #include "zeek/analyzer/Manager.h" #include "zeek/analyzer/protocol/conn-size/ConnSize.h" #include "zeek/analyzer/protocol/pia/PIA.h" #includ...
#include "envoy/config/bootstrap/v2/bootstrap.pb.h" #include "envoy/registry/registry.h" #include "common/config/well_known_names.h" #include "common/protobuf/utility.h" #include "extensions/stat_sinks/common/statsd/statsd.h" #include "extensions/stat_sinks/dog_statsd/config.h" #include "extensions/stat_sinks/well_kn...
#include "format.h" #include <iomanip> #include <sstream> #include <string> std::string Format::ElapsedTime(long seconds) { std::ostringstream oss; long hour = seconds / 3600; long minute = (seconds % 3600) / 60; long second = (seconds % 3600) % 60; oss << std::setfill('0') << std::setw(2) << hour << ":";...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "txdb.h" #include "init.h" #include "miner.h...
#include <iostream> using namespace std; void countdown(int number) { if (number < 1) { return; } else { cout << number << '\n'; countdown(number - 1); } } int main() { int number; cin >> number; countdown(number); return 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 "content/test/ppapi/ppapi_test.h" #include "ppapi/shared_impl/test_harness_utils.h" // This file lists tests for Pepper APIs (without NaCl) agai...
// 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/ui/libgtk2ui/x11_input_method_context_impl_gtk2.h" #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include <gdk/gdkx.h> #incl...
// libgp - Gaussian process library for Machine Learning // Copyright (c) 2013, Manuel Blum <mblum@informatik.uni-freiburg.de> // All rights reserved. #include "cov_matern5_iso.h" #include <cmath> namespace libgp { CovMatern5iso::CovMatern5iso() {} CovMatern5iso::~CovMatern5iso() {} bool CovMatern5iso:...
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "realtek-codec.h" #include <ddk/driver.h> #include <ddk/platform-defs.h> #include <dispatcher-pool/dispatcher-thread-pool.h> #include <fbl/auto_l...
/* * Copyright (c) 2017-2019, Intel Corporation * * 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, p...
#define _CRT_SECURE_NO_WARNINGS #include "search.h" #include <stdio.h> #include <time.h> #include <stdlib.h> bool programTest() { const int testArrayLength = 10; const long int mustBeFound = 146; const long int mustNotBeFound = 275; long int testArray[testArrayLength] = {43, -4, 12, 0, 0, 3, 146, 3, -14, 18}; q...
/*MT* MediaTomb - http://www.mediatomb.cc/ upnp_cds_subscriptions.cc - this file is part of MediaTomb. Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>, Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc> Copyright (C) 2006-2010 Gena Batyan <bgeradz@mediatomb.cc>...
/* * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x struct A {}; struct E {}; struct R { operator A*(); operator E*(); // expected-note{{candidate function}} }; struct S { operator A*(); operator E*(); // expected-note{{candidate function}} }; struct B : R { operator A*(); }; struct C : B ...
/// \file ParamGeneration.cpp /// /// \brief Parameter manipulation routines for the Zerocoin cryptographic /// components. /// /// \author Ian Miers, Christina Garman and Matthew Green /// \date June 2013 /// /// \copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green ...
/** * problem : https://leetcode.com/problems/sum-root-to-leaf-numbers/ * time complexity : O(N) */ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(...
// Copyright (c) 2020 vadique // Distributed under the WTFPLv2 software license http://www.wtfpl.net #include "chainparamsutil.h" #include "util.h" #include "utilstr.h" #include "utilhelp.h" void AppendChainParamsHelp( std::string & strUsage, bool debugHelp ) { strUsage += HelpMessageGroup( _("Chain selection op...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
// Copyright (c) 2022 Sapphire's Suite. All Rights Reserved. #pragma once #ifndef SAPPHIRE_LOGGER_CONSOLE_LOG_STREAM_GUARD #define SAPPHIRE_LOGGER_CONSOLE_LOG_STREAM_GUARD #include <SA/Logger/Streams/ALogStream.hpp> #include <SA/Logger/Streams/Console/ConsoleColorTheme.hpp> /** * \file ConsoleLogStream.hpp * * \bri...
/** * @file 23.cpp * @author Michael Otty (michael.otty@gmail.com) * @brief Advent of Code 2021 day 23 * @version 1.0.0 * @date 2021-12-23 * * @copyright Copyright (c) 2021 * */ #include <algorithm> #include <array> #include <functional> #include <iostream> #include <queue> #include <stack> #include <string> ...
/********************************************************************** Audacity: A Digital Audio Editor ToolBar.cpp Dominic Mazzoni Shane T. Mueller Leland Lucius See ToolBar.h for details. *******************************************************************//** \file ToolBar.cpp Implements ToolBar...
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 // // 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 "td/telegram/MessageTtl.h" namespace td { bool Mes...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic...
// 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/webui/chromeos/login/network_dropdown.h" #include <string> #include "base/time.h" #include "base/values.h" #include "chr...
// Copyright 2015 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 <stdlib.h> #include <string.h> #include "src/v8.h" #include "test/cctest/cctest.h" #include "src/tracing/trace-event.h" #define GET_TRACE_OB...
#include "../../template.hpp" int FindMaxAvgSubarray(vi arr, int k) { int n = arr.size(); int sum = 0; int maxsum = 0; int i = 0; int j = 0; while (j < k) { sum += arr[j++]; } maxsum = max(maxsum, sum); for (; j < n; ++j) { sum -= arr[i++]; sum += arr[j]; ...
//===--- InefficientStringConcatenationCheck.cpp - clang-tidy--------------===// // // 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: kzvd4729 created: Nov/19/2017 21:53 * solution_verdict: Wrong answer on hack 1 language: GNU C++14 * run...
/* Copyright 2020 Google LLC. 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...
#include <StringCulture.h> namespace sl { StrayaCulture defaultCulture; StringCulture* StringCulture::current = &defaultCulture; bool StrayaCulture::IsAlpha(int character) { if (character >= 'a' && character <= 'z') return true; if (character >= 'A' && character <= 'Z') ...
#include "FWCore/Framework/src/NumberOfConcurrentIOVs.h" #include "FWCore/Framework/interface/EventSetupProvider.h" #include "FWCore/Framework/interface/HCTypeTag.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Utilities/interface/Ex...
// 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 "flutter/shell/platform/android/android_context_gl.h" #include <utility> namespace shell { template <class T> using EGLResult = std::pair<bool...
#include "Gwen/Util/ControlFactory.h" #include "Gwen/Controls.h" using namespace Gwen; namespace Property { class CycleSpeed: public ControlFactory::Property { GWEN_CONTROL_FACTORY_PROPERTY( CycleSpeed, "" ); UnicodeString GetValue( Controls::Base* ctrl ) { return Utility::Format( L"%f", (float)gwen_cas...
/* ************************************************************** * C++ Mathematical Expression Toolkit Library * * * * Simple Example 15 * * Author: Arash Partow (1999-2020) ...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CTranslatorDXLToExprTest.cpp // // @doc: // Tests translating DXL trees into Expr tree. // //-----------------------------------------------------------------------...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2016, Image Engine Design 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: // // * R...
#include <doctest/doctest.h> #include "list.h" // 203. Remove Linked List Elements class Solution { public: ListNode* removeElements(ListNode* head, int val) { ListNode dummy{0, head}; auto previous = &dummy; auto current = dummy.next; while (current) { if (current->val == val) { prev...
#pragma once #include <map> #include "json.hpp" #include "fhir/datatypes/complex/Coding.hpp" #include "fhir/datatypes/primitive.hpp" using namespace std; using json = nlohmann::json; namespace primitive = LongBall::fhir::datatypes::primitive; namespace complex = LongBall::fhir::datatypes::complex; namespace LongBall...
/* * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
#include <stdio.h> #include <vector> #include <algorithm> using namespace std; class Solution { public: void FindNumsAppearOnce(vector<int> data, int *num1, int *num2) { if (data.size() <= 0) return ; sort(data.begin(), data.end()); vector<int> res; if (data[0] != data[1]) res.push_back(0); for (int ...
// Copyright 2018-2020 Jan Feitsma (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * cDiagnostics.cpp * * Created on: Dec 3, 2018 * Author: Jan Feitsma */ #include "ext/cDiagnostics.hpp" #include <cstdarg> #include <boost/interprocess/sync/scoped_lock.hpp> #include <boost/interprocess/sync/named_mut...
/** ****************************************************************************** * @file stm32f4_discovery_sdio_sd.c * @author MCD Application Team * @version V1.0.0 * @date 30-September-2011 * @brief This file provides a set of functions needed to manage the SDIO SD * Card memory mounted on ...
#include "overviewpage.h" #include "ui_overviewpage.h" #include "clientmodel.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "optionsmodel.h" #include "transactiontablemodel.h" #include "transactionfilterproxy.h" #include "guiutil.h" #include "guiconstants.h" #include <QAbstractItemDelegate> #include <...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2012 Intel 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 noti...
#include "raw-text-config.h" #include "attribute-iterator.h" #include "attribute-default-iterator.h" #include "ns3/global-value.h" #include "ns3/string.h" #include "ns3/log.h" #include "ns3/config.h" NS_LOG_COMPONENT_DEFINE ("RawTextConfig"); namespace ns3 { RawTextConfigSave::RawTextConfigSave () : m_os (0) { } R...
// Copyright (c) 2016 Hartmut Kaiser // Copyright (c) 2021 Srinivas Yadav // // SPDX-License-Identifier: BSL-1.0 // 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) #pragma once #include <pika/local/config.hpp> ...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <openenclave/host.h> #include <openenclave/internal/calls.h> #include <openenclave/internal/error.h> #include <openenclave/internal/tests.h> #include <pthread.h> #include <cassert> #include <cstdio> #include <cstdl...
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Runtime.Serialization.ISeria...
/* Copyright 2014 DataStax 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 writing, softwar...
// Copyright © 2017-2020 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "Ripple/Address.h" #include "Ripple/XAddress.h" #i...
// 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 "mojo/services/view_manager/connection_manager.h" #include "base/logging.h" #include "mojo/public/cpp/application/application_connection.h" #inc...
#include "orwell/com/RawMessage.hpp" #include <zmq.hpp> #include <string> #include "controller.pb.h" #include "server-game.pb.h" #include "robot.pb.h" #include "orwell/support/GlobalLogger.hpp" #include "orwell/support/ISystemProxy.hpp" #include "orwell/com/Sender.hpp" #include "orwell/com/Receiver.hpp" #include "or...
/* The following code example is taken from the book * "C++ Templates - The Complete Guide" * by David Vandevoorde and Nicolai M. Josuttis, Addison-Wesley, 2002 * * (C) Copyright David Vandevoorde and Nicolai M. Josuttis 2002. * Permission to copy, use, modify, sell and distribute this software * is granted provi...
#include <algorithm> #include <random> #include <chrono> #include <numeric> #include "Board.h" Board::Board(unsigned int board_width, unsigned int board_height, unsigned int num_bombs) : board_width(board_width > DIMENSION_MAX ? DIMENSION_MAX : board_width), board_height(board_height > DIMENSION_MAX ? DIMENSION_MAX ...
//===-- SymbolFile.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 // //===---------------------------...
#include "Block.h" Block::Block(int posx, int posy, string tx, RenderContext& renderer, bool trav) : DrawableEntity(posx, posy, renderer, tx), traversable(trav) {} Block::~Block() { } int Block::getX() { return x; } int Block::getY() { return y; } bool Block::getTrav() { return traversable; } void Block::setT...
#include <nano/core_test/testutil.hpp> #include <nano/node/election.hpp> #include <nano/node/testing.hpp> #include <gtest/gtest.h> #include <boost/format.hpp> using namespace std::chrono_literals; namespace { void add_callback_stats (nano::node & node) { node.observers.blocks.add ([& stats = node.stats](nano::elec...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_char_63b.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-63b.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack * Sinks: ...
#include "MotionAvoidWalls.hpp" using namespace crimild; using namespace crimild::behaviors; using namespace crimild::behaviors::actions; MotionAvoidWalls::MotionAvoidWalls( void ) { } MotionAvoidWalls::~MotionAvoidWalls( void ) { } Behavior::State MotionAvoidWalls::step( BehaviorContext *context ) { // TODO ...
// // Created by Shashank Mohabia on 2/6/2018. // #include "User.h" #include <utility> #define system_pause { \ cout << "Press Enter to continue!\n"; \ cin.ignore(numeric_limits<streamsize>::max(),'\n'); \ } map<string, User> Use...
// Copyright (c) 2013 Philip M. Hubbard // // 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, publ...
#include "Unit_King.h" #include "../System/DataManager.h" #include "../Task/TaskFunction.h" UnitBase* King_CreateUnit(void) { return new Unit_King(); } Unit_King::Unit_King(void) { } Unit_King::~Unit_King(void) { } void Unit_King::Shot(float x, float y, bool isEnemy, bool blockHit, bool enemyHit) { if( !m_AttackE...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
#include "../run.h" void kernel_case9(float (&B)[16][32][8], float (&C)[32][32], float (&D)[8][32], float (&A)[16][32]) { float temp1[16][32]; for (int i = 0;i < 16;++i){ for (int j = 0;j < 32;++j){ temp1[i][j] = 0; if (0 <= i && i < 16) { if (0 <= j && j < 32) { temp1[i][j] += A[...
# /* Copyright (C) 2001 # * Housemarque Oy # * http://www.housemarque.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) # */ # # /* Revised by Paul Mensonides (2002) */ # # /* See http://www.boost...
/* * 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 * */ /** * @file RPISystemComponent.cpp * @brief Contains the definition of the RPISystemComponent meth...
/* Sirikata liboh -- Object Host * HostedObject.hpp * * Copyright (c) 2009, Patrick Reiter Horn * 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 cod...
/* 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 ag...
// 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. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "n...