text
stringlengths
5
1.04M
// Copyright (c) 2006-2020, Universities Space Research Association (USRA). // 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 copyr...
#include "rm_test_util.h" RC TEST_RM_PRIVATE_8(const string &tableName) { // Functions tested // 1. Delete Tuples // 2. Scan Empty table // 3. Delete Table cout << endl << "***** In RM Test Case Private 8 *****" << endl; RC rc; RID rid; int numTuples = 100000; void *returnedData ...
// 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: MultiplayerLocalActivePlayerInGameM...
version https://git-lfs.github.com/spec/v1 oid sha256:520e0c5ba24b6381c2ec0ac6f8810c6ca408680b1026cd82d2f4330a8d92cf82 size 12891
#ifndef GRID_H #define GRID_H #include <fstream> #include <iostream> #include <eigen3/Eigen/Core> class Grid { public: Grid(unsigned, unsigned); //~Grid(); void loadFile(); Eigen::MatrixXi * step(); private: unsigned m_width; unsigned m_height; Eigen::MatrixXi m_currentCells; Eigen::MatrixXi m_nextCe...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017, John Haddon. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributio...
// Copyright (c) 2012-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 <bench/bench.h> #include <wallet/wallet.h> #include <set> static void addCoin(const CAmount& nValue, const CWallet...
#include <ros/ros.h> #include "ros/package.h" #include <tf/tf.h> #include <tf/transform_listener.h> #include <pcl/point_cloud.h> #include <pcl_ros/transforms.h> #include <pcl_conversions/pcl_conversions.h> #include <sensor_msgs/PointCloud.h> #include <sensor_msgs/point_cloud_conversion.h> #include <ssd_ros_msgs/Bou...
/************************************************************************* > File Name: 1005.cpp > Author: sudoku.huang > Mail: sudoku.huang@gmail.com > Created Time: Mon May 6 10:30:35 2019 ************************************************************************/ #include <stdio.h> #include <math.h...
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include <httpClient/httpClient.h> #include "android_http_request.h" #include "android_platform_context.h" extern "C" { JNIEXPORT void JNICALL Java_com_xbox_htt...
#include <memory> #include "../base_test.hpp" #include "gtest/gtest.h" #include "../lib/resolve_type.hpp" #include "../lib/storage/base_segment.hpp" #include "../lib/storage/chunk.hpp" #include "../lib/types.hpp" namespace opossum { class StorageChunkTest : public BaseTest { protected: void SetUp() override { ...
#include "RecoTauTag/HLTProducers/interface/VertexFromTrackProducer.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/E...
/* * Filebox * Nana C++ Library(http://www.nanapro.org) * Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.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) * * @file: nana/gui/filebox.cpp */ #include <nana/gui....
/* * 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 option) any later version. * * This program is distributed in the hope that it will be use...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Lightmap only shader // // $Header: $ // $NoKeywords: $ //=============================================================================// #include "BaseVSShader.h" #include "ShatteredGlass_ps20.inc" #include "ShatteredGlass_p...
//===--- SemaExprMember.cpp - Semantic Analysis for Expressions -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright Jim Bosch 2010-2012. // Copyright Stefan Seefeld 2016. // 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_python_numpy_matrix_hpp_ #define boost_python_numpy_matrix_hpp_ /** *...
// Copyright 2021 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 <utility> #include <vector> #include "base/memory/raw_ptr.h" #include "base/test/scoped_feature_list.h" #include "build/chromeos_buildflags.h" #...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2020 Baldur Karlsson * * 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...
/** * simplebridge API generated from simplebridge.yang * * NOTE: This file is auto generated by polycube-codegen * https://github.com/polycube-network/polycube-codegen */ /* Do not edit this file manually */ #include "SimplebridgeApi.h" #include "SimplebridgeApiImpl.h" using namespace polycube::service::model; us...
// Software License Agreement (BSD-3-Clause) // // Copyright 2018 The University of North Carolina at Chapel Hill // // 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...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* oddEvenList...
/********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publ...
// // PollSet.cpp // // Library: Net // Package: Sockets // Module: PollSet // // Copyright (c) 2016, Applied Informatics Software Engineering GmbH. // All rights reserved. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/Net/PollSet.h" #include "Poco/Net/SocketImpl.h" #include "Poco/Mutex.h" #include <set> ...
// Copyright (c) 2014-2016 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2020 The PIVX developers // Copyright (c) 2020 The BTCU developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php....
#include "ageControl.h" #include <math.h> static double babyHeadDownFactor = 0.6; static double babyBodyDownFactor = 0.75; static double oldHeadDownFactor = 0.35; static double oldHeadForwardFactor = 2; #include "minorGems/util/SettingsManager.h" float lifespan_multiplier = 1.0f; int age_baby = 5; int age_fert...
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
// Copyright Microsoft and Project Verona Contributors. // SPDX-License-Identifier: MIT #include "compiler/ast.h" #include "compiler/format.h" #include "compiler/instantiation.h" #include "compiler/intern.h" #include "compiler/printing.h" #include "compiler/zip.h" namespace verona::compiler { using pegmatite::ASTCo...
/** -------------------------------------------------------------------------------------------------------------------- * <copyright company="Aspose" file="GetDocumentPropertiesRequest.cpp"> * Copyright (c) 2020 Aspose.Words for Cloud * </copyright> * <summary> * Permission is hereby granted, free of charge, to an...
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- /*! * Copyright (C) 2019, SICK AG, Waldkirch * Copyright (C) 2019, FZI Forschungszentrum Informatik, Karlsruhe, Germany * * * Licensed under the Apache License, Versio...
/* * * Copyright (C) 2019, Open Connections GmbH * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation are maintained by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmfg * * Author: Mich...
//------------------------------------------------------------------------------ /* 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 ...
// -*- C++ -*- // // ---------------------------------------------------------------------- // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://...
#include "RecoEgamma/EgammaElectronAlgos/interface/utils.h" #include "RecoEgamma/EgammaElectronAlgos/interface/PixelHitMatcher.h" #include "RecoEgamma/EgammaElectronAlgos/interface/ElectronUtilities.h" #include "DataFormats/GeometryCommonDetAlgo/interface/PerpendicularBoundPlaneBuilder.h" #include "FWCore/MessageLogge...
// Copyright (c) 2009-2020 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 <cstddef> #include <cstdint> #if defined(__i3...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // 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. #include "db/builder.h" #include "db/filename.h" #include "db/dbformat.h" #include "db/table_cache.h" ...
// 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 "storage/browser/fileapi/dragged_file_util.h" #include <string> #include <vector> #include "base/files/file_util.h" #include "storage/browser/b...
// Copyright 2018 Pawel Bylica. // Licensed under the Apache License, Version 2.0. See the LICENSE file. #pragma GCC diagnostic ignored "-Wpedantic" #pragma clang diagnostic ignored "-Wpedantic" #include <ethash/endianness.hpp> #include <ethash/ethash-internal.hpp> #include <ethash/ethash.hpp> #include <ethash/keccak...
#pragma once #include "walkingEntity.hpp" #include "guard.hpp" #include <iostream> #include "level.hpp" #include <vector> class Game { private: Guard* guard; walkingEntity* Jack; int elapsedTime; int num_of_guards; std::vector<Guard*> guards; bool is_game_over; bool has_objective; bool victory = false; publ...
// Copyright (c) 2013-2014 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // Unit tests for block.CheckBlock() // #include "clientversion.h" #include "main.h" #include "utiltime.h" #include...
/** * Unit Tests for TicTacToeBoard **/ #include <gtest/gtest.h> #include "TicTacToeBoard.h" class TicTacToeBoardTest : public ::testing::Test { protected: TicTacToeBoardTest(){} //constructor runs before each test virtual ~TicTacToeBoardTest(){} //destructor cleans up after tests virtual void SetUp(){} //se...
#include "pch.h" #include "MappingConfiguration.h" #include <common/SettingsAPI/settings_objects.h> #include <common/SettingsAPI/settings_helpers.h> #include <common/logger/logger.h> #include "KeyboardManagerConstants.h" #include "Shortcut.h" #include "RemapShortcut.h" #include "Helpers.h" // Function to clear the O...
// 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/extensions/api/content_settings/content_settings_store.h" #include <set> #include "base/debug/alias.h" #include "base/loggi...
/*========================================================================= Program: Visualization Toolkit Module: vtkRadiusOutlierRemoval.cxx Copyright (c) Kitware, Inc. All rights reserved. See LICENSE file for details. This software is distributed WITHOUT ANY WARRANTY; without even the im...
/* * Copyright (c) 2011-2017, pinfutech <pinfutech@hotmail.com> * Copyright (c) 2017-2021, Zhu Fei <zhufei8519@outlook.com> * 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. Redistri...
class Solution { public: vector<vector<int>> merge(vector<vector<int>> &intervals) { sort(intervals.begin(), intervals.end()); vector<vector<int>> ans; for (auto &i : intervals) { if (ans.empty() || ans.back()[1] < i[0]) ans.push_back(i); else ans.back()[1] = max(ans.back()[1]...
// // $Id: ChromatogramList_ABI.cpp 9490 2016-03-22 22:20:36Z pcbrefugee $ // // // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu> // // Copyright 2009 Vanderbilt University - Nashville, TN 37232 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this f...
/* * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
#include "AlphaMemory.hpp" #include "AlphaNode.hpp" #include "BetaComparator.hpp" #include "Util.hpp" #include <algorithm> #include <iostream> // debug namespace rete { std::string AlphaMemory::toString() const { return "AlphaMemory[" + std::to_string(size()) + "]"; } void AlphaMemory::activate(WME::Ptr wme, Pr...
/// Author(s): F.P.M. (Frank) Stappers, Wieger Wesselink // Copyright: see the accompanying file COPYING or copy at // https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LIC...
/// \copyright Tobias Hienzsch 2019-2021 /// Distributed under the Boost Software License, Version 1.0. /// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt #ifndef TETL_CWCHAR_WCSCHR_HPP #define TETL_CWCHAR_WCSCHR_HPP #include "etl/_strings/cstr_algorithm.hpp" namespace etl { /// \brief Fin...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Slowly damages the object it's attached to // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "tf_player.h" #include "tf_team.h" #include "tf_gamer...
// Copyright 2020 The TensorFlow Runtime 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 ...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 ...
#include "Production.h" #include "PunyPyWorld.h" Production::Production(Eof_tag /*tag*/) : prod_{std::make_unique<Eof_prod>()} { } // The `move(i)` has no effect, but avoids the need to declare multiple friend specilizations // of std::unique_ptr and std::make_unique Expression::Expression(int i) : expr_{std...
// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "Framework.h" #include "ConfigAPI.h" #include "LoggingFunctions.h" #include <Urho3D/Core/Context.h> #include <Urho3D/IO/File.h> #include <Urho3D/IO/FileSystem.h> using namespace Urho3D; namespace Tundra { ...
#pragma once #include "Defines.hpp" void Bresenham_Circle(int x0, int y0, int radius, std::vector<std::pair<int ,int>> & out);
/* * The MIT License (MIT) * * Copyright (c) 2012-2015 Falltergeist developers * * 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 r...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/game/data/AISubActionSetTargetByTag_Record.hpp> namespace RED4ext { namespace game::data { struct AISubActionSetWaypointByTag_Record : game::data::AIS...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
#include "docsetobject.h" #include "docsetobject_p.hpp" #include <assert.h> #include <iostream> #include "docset.h" #include <algorithm> using std::string; using std::cout; using std::endl; using std::pair; using std::search; using std::shared_ptr; const char *const DocsetObject_Type_Strings[] = { "Unknown", "...
/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] 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, me...
// Copyright 2018 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 "garnet/bin/run_test_component/env_config.h" #include "src/lib/fxl/strings/substitute.h" #include "lib/json/json_parser.h" #include "rapidjson/do...
//===-- ExecutionContext.cpp ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // detail/handler_tracking.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // 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) // #ifndef ASIO_...
#ifndef RAW_IMAGES_HPP #define RAW_IMAGES_HPP #include <iostream> #include <stdlib.h> #include <string.h> #include <fstream> #include <array> #include <cstring> #include <list> #include <cmath> #include "vec2.hpp" #include "bitmap_image.hpp" #include "rawEvent.hpp" namespace raw{ typedef unsigned short int pixelV...
#include "devices.h" int Device::global_id = 0; Device::Device(string name) { this->name = name; id = global_id; global_id++; count = 0; } Device::~Device() {} vector<string> Device::get_field_names(const Descriptor* descriptor){ vector<string> fields; for(int i = 0; i < descriptor->field_count(); i++){...
// Copyright (c) 2020 The PIVX developers // Copyright (c) 2021 The VOLTNOTE developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include "test/test_voltnote.h" #include "primitives/transaction.h" #include "sapling/sapli...
#include <algorithm> #include <iterator> #include <memory> #include <vector> #include "list_node.h" #include "test_framework/generic_test.h" #include "test_framework/test_failure.h" #include "test_framework/timed_executor.h" using std::shared_ptr; shared_ptr<ListNode<int>> ListPivoting(const shared_ptr<ListNode<int>>& ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Multica...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
/* delete.cpp Удаление файлов */ /* Copyright © 1996 Eugene Roshal Copyright © 2000 Far Group 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 cop...
// Copyright (c) 2014-2019, The Monero Project // Copyright (c) 2018, The Loki Project // Copyright (c) 2018, The Worktips Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: ...
// Copyright (c) 2011-2014 The Bitcoin Core developers // Copyright (c) 2014-2018 The Dash Core developers // Copyright (c) 2018-2018 The Veco Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bitcoinadd...
#include <bits/stdc++.h> typedef long long ll; const int mod = 1e9 + 7; const int MAX = 1e5 + 7; using namespace std; typedef vector<int> vi; int arr[MAX]; int fst[2 * MAX], snd[2 * MAX]; class PlayingCubes { int n, m; public: pair<int, int> process(bool flag) { int i = 0, p = 0, v = 0; int nn = n, mm = m; int ...
#include <cstdio> #include <cstring> #include <cmath> #include <iostream> using namespace std; const int MAXN = 40000; int factor[20], nfactor[20], num_factor, flag_factor[100000 + 10]; int count_prime, prime[MAXN + 5], flag[MAXN + 5]; void get_prime() { memset(flag, 0, sizeof(flag)); count_prime = 0; f...
// MIT License // // Copyright (c) 2020 Advanced Micro Devices, Inc. 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 limitati...
// XXX uniqID XXX 1a4f0f9051c90224583ea2ee0328c422 XXX #include <gba_types.h> #include "bullet.hpp" #include "fixed.hpp" #include "progear/round_10_boss_before_final.hpp" extern const BulletStepFunc bullet_4c4ffeed079693084333adabf5d1d590_1a4f0f9051c90224583ea2ee0328c422[] = { stepfunc_e4513e546a161d1e0107d0ea1b...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2013-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) // // See http://www.boost.org/libs/c...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2003 RiskMap srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or ...
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "bank_account.h" TEST_CASE("Verify Test Configuration", "verification") { REQUIRE(true == true); } TEST_CASE("Test bank account initial balance") { BankAccount account(100); REQUIRE(accou...
/* * Copyright 2019-2020 Douglas Kaip * * 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 t...
//=== A15SDOptimizerPass.cpp - Optimize DPR and SPR register accesses on A15==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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. #include <rpc/server.h> #include <fs.h> #include <key_io.h> #include <random.h> #incl...
/* * Copyright (C) 2017-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/utilities/linux/debug_env_reader.h" #include "test.h" #include <memory> namespace NEO { class DebugEnvReaderTests : public ::testing::Test { public: void SetUp() override { evr = SettingsReader...
/* * Utility functions * * (c) 2015 Schrodinger, Inc. */ #include <cstdio> #include <cctype> #include <sstream> #include <string> #include <vector> #include "Util2.h" /* * strsplit: split string `s` by character `delim` * * If `delim` is null, then do whitespace split. */ std::vector<std::string> strsplit(co...
/* Copyright(c) 2016-2020 Panos Karabelas 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, publish, distrib...
// Copyright (c) 2009-2014 The Phtevencoin 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/phtevencoin-config.h" #endif #include <cstring> #if HAVE_DECL_STRNLEN == 0 ...
#include "../helpers_event.h" #include "df/history_event_change_creature_typest.h" void do_event(std::ostream & s, const event_context & context, df::history_event_change_creature_typest *event) { auto changee = df::historical_figure::find(event->changee); auto changer = df::historical_figure::find(event->cha...
/* Redis Object implementation. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 sour...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <core/session/onnxruntime_cxx_api.h> #include <set> #include <iostream> #include <fstream> #ifdef _WIN32 #include "getopt.h" #else #include <getopt.h> #include <thread> #endif #include "TestResultStat.h" #include "...
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2020 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h"...
#include "../../nanoprintf.h" #include <cstdio> int main() { char buf[32]; npf_snprintf(buf, sizeof(buf), "%s %s", "hello", "nanoprintf"); printf("%s\n", buf); }
// Copyright (c) Lawrence Livermore National Security, LLC and other Conduit // Project developers. See top-level LICENSE AND COPYRIGHT files for dates and // other details. No copyright assignment is required to contribute to Conduit. //----------------------------------------------------------------------------- ///...
#pragma once #include "Soldier.hpp" using namespace WarGame; class FootSoldier: public Soldier{ public: FootSoldier(uint playerID) : Soldier(playerID,100,10){} void play(vector<vector<Soldier*>> &board,std::pair<int,int> spot); virtual void printSoldier(); };
#include <iostream> #include <string> using std::cin; using std::cout; using std::endl; using std::string; int main() { string input; while(cin >> input) { cout << input << endl; } return 0; }
/* Copyright 2018 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 ...
#include "stdafx.h" #include "dps.h" #include "utils.h" /*#define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h>*/ DPS_t& DPS_t::add(int pot, int ms) { m_pot += pot; m_ms += ms; return *this; } DPS_t& DPS_t::add(const DPS_t& rhs) { m_pot += rhs.m_pot; m_ms += rhs.m_ms; return *th...
#include "stdafx.h" #include "Body.h" Body::Body(){ pos = Vector3(0, 0, 0); vel = Vector3(0, 0, 0); impulse = Vector3(0, 0, 0); setMass(1); isPlayer = 0; isShot = 0; } void Body::setMass(float m) { mass = m; massInv = 1/m; } void Body::updateVelocity(float deltaT) { vel += impulse*massInv; vel.x *= 0.999f...