text
stringlengths
5
1.04M
/* Copyright (c) 2011-2015 Stanford University * * Permission to use, copy, modify, and distribute this software for any purpose * with or without fee is hereby granted, provided that the above copyright * notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(...
// // Copyright (c) 2019 Maxime Pinard // // Distributed under the MIT license // See accompanying file LICENSE or copy at // https://opensource.org/licenses/MIT // #include "solver/algorithms/memetic.hpp" #include "solver/data/solution.hpp" #include "common/utils/logger.hpp" uscp::memetic::position_serial uscp::memet...
// Copyright 2015 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/md_history_ui.h" #include "build/build_config.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/...
#include <functional> #include <iostream> auto escape(std::string const& s) -> std::string { std::string escaped; escaped += '"'; for (auto c : s) { if (c == '\\' || c == '"') { escaped += '\\'; } escaped += c; } escaped += '"'; return escaped; } auto main() -> int { unsigned len = 0; ...
#include "NetList.h" #include "imgui/imgui.h" NetList::NetList(TcharStringCallback cbNetSelected) { cbNetSelected_ = cbNetSelected; } NetList::~NetList() {} void NetList::Draw(const char *title, bool *p_open, Board *board) { if (title && p_open) { } // TODO: export / fix dimensions & behaviour int width = 400...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The BiblePay Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "...
/* * 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 ...
/* * Copyright 2016 neurodata (http://neurodata.io/) * Written by Disa Mhembere (disa@jhu.edu) * * This file is part of knor * * 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 * * ...
/* Starshatter OpenSource Distribution Copyright (c) 1997-2004, Destroyer Studios LLC. 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 t...
#pragma once #include <eosio/chain/account_object.hpp> #include <eosio/chain/controller.hpp> #include <eosio/chain/exceptions.hpp> #include <eosio/chain/generated_transaction_object.hpp> #include <eosio/chain/global_property_object.hpp> #include <eosio/chain/permission_link_object.hpp> #include <eosio/chain/permission...
/* * Copyright (c) 2017, The OpenThread Authors. * 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 * n...
// Copyright (c) 2013-2016 The Bitcoin Core developers // Copyright (c) 2017-2020 The Raven Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <primitives/block.h> #include "hash.h" #include "crypto/common....
#include "pch.h" #include "fe.h" void fe_invert(fe out,const fe z) { fe t0; fe t1; fe t2; fe t3; int i; #include "pow225521.h" return; }
#pragma once #include "ANNarchy.hpp" class Network; template<typename PrePopulation, typename PostPopulation> class cppSynapse_$class_name { public: cppSynapse_$class_name(Network* net, PrePopulation* pre, PostPopulation* post){ this->net = net; this->post = post; this->pre = pre; ...
// RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST1 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST2 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST3 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST4 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++14 -DTEST5 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=...
///////////////////////////////////////////////////////////////////////////// // Name: src/osx/carbon/window.cpp // Purpose: wxWindowMac // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////...
/* Copyright (c) 2011, 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 notice, this list of conditi...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** * contains source code from the article "Radix Sort Revisited". * \file IceRevisitedRadix.cpp * \author Pierre ...
// SplitHandler.cpp #include "StdAfx.h" #include "../../Common/ComTry.h" #include "../../Common/MyString.h" #include "../../Windows/PropVariant.h" #include "../Common/ProgressUtils.h" #include "../Common/RegisterArc.h" #include "../Compress/CopyCoder.h" #include "Common/MultiStream.h" using names...
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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. #include <wallet/wallet.h> #include <chain.h> #include <consensus/consensus.h> #...
/* * Copyright 2010-2016 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" file...
/****************************************************************************** * Copyright 2017 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 ...
#ifndef ODFAEG_Z_SORTING_RENDER_COMPONENT_HPP #define ODFAEG_Z_SORTING_RENDER_COMPONENT_HPP #include "renderWindow.h" #include "entityManager.h" #include "heavyComponent.h" #include "../Physics/particuleSystem.h" /** *\namespace odfaeg * the namespace of the Opensource Development Framework Adapted for Every G...
#include "pch.h" #include "Service.h" using namespace WinSys; Service::Service(wil::unique_schandle handle) noexcept : _handle(std::move(handle)) {} bool Service::Start() { return Start(std::vector<const wchar_t*>()); } bool Service::Start(const std::vector<const wchar_t*>& args) { return ::StartService(_handle.g...
#include "solution.h" using namespace std; bool Solution::lemonadeChange(vector<int>& bills) { int dol_5_count = 0; int dol_10_count = 0; for (int &bill : bills) { switch (bill) { case 5: dol_5_count++; break; case 10: if (dol_5_coun...
/* S H _ O S L . C * BRL-CAD * * Copyright (c) 2004-2019 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.1 as...
// // Created by Nicholas Newdigate on 18/07/2020. // #ifndef TEENSY_RESAMPLING_WAVSDREADER_READER_MONO_LOOP_FORWARD_TESTS_CPP #define TEENSY_RESAMPLING_WAVSDREADER_READER_MONO_LOOP_FORWARD_TESTS_CPP #include <boost/test/unit_test.hpp> #include "ResamplingReaderFixture.h" BOOST_AUTO_TEST_SUITE(test_wav_mono_loop_forw...
/**************************************************************************/ /* */ /* WWIV Version 5.x */ /* Copyright (C)1998-2020, WWIV Software Services */ /* ...
/* * Implementation of the Knuth-Morris-Pratt algorithm * * "Introduction to Algorithms" Thomas H. Corman and other * * */ #include <string> #include <vector> #include <iostream> using namespace std; void compute_prefix(vector<size_t> &prefix, const string &needle){ const size_t m = needle.length(); size...
#include "ThingerTaskController.h" ThingerTaskController TaskController;
/* Copyright (c) 2017-2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
/* Copyright 2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
#include "GraphLoadingValidationDialog.h" using namespace ComplexNetsGui; GraphLoadingValidationDialog::GraphLoadingValidationDialog(QWidget* parent) : QDialog(parent) { this->mainWindow = static_cast<MainWindow*>(parent); if (this->objectName().isEmpty()) this->setObjectName(QString::fromUtf8("Dialo...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/****************************************************************************** * Copyright 2018 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 "Tetris.h" #include <iostream> Tetris::Tetris() { system("pause"); }
// // AKPinkNoiseDSPKernel.hpp // AudioKit // // Created by Aurelius Prochazka, revision history on Github. // Copyright (c) 2016 Aurelius Prochazka. All rights reserved. // #ifndef AKPinkNoiseDSPKernel_hpp #define AKPinkNoiseDSPKernel_hpp #import "DSPKernel.hpp" #import "ParameterRamper.hpp" #import <AudioKit/A...
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Multi-function Serial Interface 0 namespace Mfs0UartScr{ ///<Serial Control Register using Addr = Register::Address<0x40038001,0xffffff60,0x00000000,unsigned char>; ///Programmable Clear bit constexpr Register::FieldLocati...
/* $Id: VBoxAboutDlg.cpp 71553 2018-03-28 17:28:44Z vboxsync $ */ /** @file * VBox Qt GUI - VBoxAboutDlg class implementation. */ /* * Copyright (C) 2006-2018 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free softwar...
#include <Rcpp.h> #include "individual.h" #include "patch.h" #include "simulate_hd_space.h" // assure number of breeders/patch is even int _make_even(int const n) { if (n < 1) { return(2); } if (n % 2 != 0) { return(n+1); } return(n); } SimulateHDSpatial::SimulateHDSpati...
// // main.cpp // target2 // // Created by Jayanth Raman on 12/12/16. // Copyright © 2016 Jayanth Raman. All rights reserved. // // This target was added after the common group with shared_stuff was created. // In the project settings > Build Phases, shared_stuff.cpp was manually added // to Build Phases > Compile...
#include "instructions/nop.hpp" #include "helpers.hpp" #include <stdexcept> using namespace M68K; using namespace INSTRUCTION; Nop::Nop(uint16_t opcode) : Instruction(opcode){ ; } void Nop::execute(CPUState& cpu_state){ uint32_t pc = cpu_state.registers.get(REG_PC, SIZE_LONG); pc += SIZE_WORD; cpu_st...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once namespace ScalarAdvection { /*! * \brief Finite difference functionality for ScalarAdvection system */ namespace fd {} } // namespace ScalarAdvection
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved. #include "stdafx.h"...
// codeforces/644div3/D/main.cpp // author: @___Johniel // github: https://github.com/johniel/ #include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first...
/** * BCL to FASTQ file converter * Copyright (c) 2007-2017 Illumina, Inc. * * This software is covered by the accompanying EULA * and certain third party copyright/licenses, and any user of this * source file is bound by the terms therein. * * \file FileExistenceVerifier.cpp * * \brief Implementation of Fi...
#include "pch.h" #include <vcpkg/base/cofffilereader.h> #include <vcpkg/base/files.h> #include <vcpkg/base/system.print.h> #include <vcpkg/base/system.process.h> #include <vcpkg/base/util.h> #include <vcpkg/build.h> #include <vcpkg/packagespec.h> #include <vcpkg/postbuildlint.buildtype.h> #include <vcpkg/postbuildlin...
// Game // Convert as many humans to as you can to survive in this post-apocalyptic wasteland. // DO NOT MODIFY THIS FILE // Never try to directly create an instance of this class, or modify its member variables. // Instead, you should only be reading its variables and calling its functions. #include "game.hpp" #in...
#ifndef OPENGLWINDOW_HPP_ #define OPENGLWINDOW_HPP_ #include <imgui.h> #include <random> #include "abcg.hpp" #include "asteroids.hpp" #include "bullets.hpp" #include "ship.hpp" #include "starlayers.hpp" class OpenGLWindow : public abcg::OpenGLWindow { protected: void handleEvent(SDL_Event& event) ...
class Solution { public: int threeSumMulti(vector<int>& A, int target) { unordered_map<int,long> c; for(int a:A) c[a]++; long res = 0; for(auto it:c) for(auto it2:c){ int i = it.first, j=it2.first, k= target-i-j; if(!c.count(k)) co...
/** * @file unit_test_fnd_concepts_signed_integral.cpp * * @brief signed_integral のテスト * * @author myoukaku */ #include <bksge/fnd/concepts/signed_integral.hpp> #include <bksge/fnd/config.hpp> #include <cstdint> // WCHAR_MIN #include <climits> // CHAR_MIN #if defined(BKSGE_HAS_CXX20_CONCEPTS) # ...
#include "upgrade/boot_loader/ImageUpgrader.hpp" namespace application { ImageUpgrader::ImageUpgrader(const char* targetName, Decryptor& decryptor) : targetName(targetName) , decryptor(decryptor) {} const char* ImageUpgrader::TargetName() const { return targetName; } D...
// // ip/detail/impl/endpoint.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2010 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) // #if...
// Copyright (c) 2014-2018 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "validation.h" #include "test/test_bitcoinhard.h" #include <boost/test/unit_test.hpp> BOOST...
#include "GameEngine.h" #include <GameEngineBase/GameEngineWindow.h> #include "GameEngineLevel.h" std::map<std::string, GameEngineLevel*> GameEngine::AllLevel_; GameEngineLevel* GameEngine::CurrentLevel_ = nullptr; GameEngineLevel* GameEngine::NextLevel_ = nullptr; GameEngine* GameEngine::UserContents_ = nullptr; Ga...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "conlib.h" #include "Map.h" #include "Player.h" #include "Timer.h" int main() { Map map { "########################################################################################################################", "# ...
/** * @file : instruction_set.cpp */ #include "../../../includes/cpu_emulator/processor_util/instruction_set.hpp" namespace TakiMatrix::processor { instruction::instruction(enum instruction_type type, const std::shared_ptr<matrix_object>& operand_first, const std::shared_ptr<matrix_objec...
#include <iostream> #include <algorithm> #include <vector> #include <functional> using namespace std; int main(){ int N; vector<int> v; cin >> N; while(N--){ int temp; cin >> temp; v.push_back(temp); } int sum=0; sort(v.begin(), v.end(), greater<int>()); // Descending order. 내림차순 for(int i=0;i<v.size();i++...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"), QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpa...
#include "roadlr/roadlr.hpp" #include "utils/python_embedding.hpp" #include "utils/vvs.h" #include "utils/opencx.hpp" #include <chrono> #include <thread> using namespace dg; using namespace std; #define RECOGNIZER RoadLRRecognizer void test_image_run(RECOGNIZER& recognizer, bool recording = false, const char* image_...
// MIT License // // Copyright (c) 2022 Egor Kupaev // // 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,...
// Copyright 2018 The clvk authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
/********************************************************************** Golgotha Forever - A portable, free 3D strategy and FPS game. Copyright (C) 1999 Golgotha Forever Developers Sources contained in this distribution were derived from Crack Dot Com's public release of Golgotha which can be ...
// Copyright Carl Philipp Reh 2006 - 2019. // 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 <sge/projectile/body/solidity/solid.hpp> sge::projectile::body::solidity::solid::solid(sg...
// 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 "base/files/file_path.h" #include "base/message_loop/message_loop.h" #include "build/build_...
// Copyright (c) 2015-2018 The Ebits developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/platformstyle.h> #include <qt/guiconstants.h> #include <QApplication> #include <QColor> #include <QImage> #include <Q...
// 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 "src/ledger/bin/storage/impl/split.h" #include <lib/callback/waiter.h> #include <lib/fit/function.h> #include <limits> #include <memory> #includ...
/* NAME: QD3DDrawContext.cpp DESCRIPTION: Entry point for Quesa API calls. Performs parameter checking and then forwards each API call to the equivalent E3xxxxx routine. COPYRIGHT: Copyright (c) 1999-2021, Quesa Developers. All rights reserved. For the current release...
#include <gtest/gtest-message.h> // for Message #include <gtest/gtest-test-part.h> // for TestPartResult, SuiteApiResolver, TestFactoryImpl #include <memory> // for allocator, __shared_ptr_access, shared_ptr #include <string> // for string, basic_string #include <vector> // for vector #include "ftxui/component/ca...
#include "object.h" #include <vector> #include <string> using namespace similarity; int main(int argc, char* argv[]) { std::vector<string> strs = { "xyz", "beagcfa", "cea", "cb", "d", "c", "bdaf", "ddcd", "egbfa", "a", "fba", "bcccfe", "ab", "bfgbfdc", "bcbbgf", "bfbb" }; ...
#include "scripthelper.h" void ScriptHelper::BBSetCameraPosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelper::BBIsPathable(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelper::BBTeleportToKeyLocation(sol::stack_object passThrough, sol::stack...
/* ****************************************************************************** * Copyright (C) 2001-2009, International Business Machines * Corporation and others. All Rights Reserved. ****************************************************************************** * * File ucoleitr.cpp * * Modification History: ...
#pragma once #ifndef _ENTITYSYSTEM_COMPONENTDATACONVERSION_HPP_ #define _ENTITYSYSTEM_COMPONENTDATACONVERSION_HPP_ #include "ComponentDataTypes.hpp" namespace Fnd { namespace EntitySystem { class EntitySystem; } namespace ContentManager { class ContentManager; } } namespace Fnd { namespace Enti...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/**************************************************************************** Copyright (C) 2013 Henry van Merode. All rights reserved. Copyright (c) 2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
//======================================================================= // Copyright Baptiste Wicht 2013-2018. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //=================================================================...
// 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 "quic/core/quic_connection_id_manager.h" #include <cstdio> #include "quic/core/quic_clock.h" #include "quic/core/quic_connection_id.h" #incl...
#include "Player.h" #include "Game.h" #include"Sencer.h" #include"ParticleEmitter.h" #include"Cameraman.h" #include"ObjectDelayCreater.h" Framework::Player::Player(std::shared_ptr<Transform> shp_arg_transform, std::shared_ptr<GameObjectManager> shp_arg_gameObjectManager) :GameObject(shp_arg_transform, shp_arg_gameObjec...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: System.Runtime.ConstrainedExecution.CriticalFinalizerObject #include "...
// Copyright (c) 2006-2018 Maxim Khizhinsky // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #include "test_set_nogc.h" #include <cds/container/lazy_list_nogc.h> #include <cds/container/michael_set_nogc.h> namespace { ...
#include "Simplify.h" #include "Core.h" #include <algorithm> #include <cmath> #include <cstddef> #include <iostream> #include <stack> struct Q_result { Vec<double, 3> position_; double cost_; }; Q_result Q_calculate(std::vector<Vertex> &vs, std::size_t index1, std::size_t index2); bool isreve...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/DynArray.hpp> #include <RED4ext/Handle.hpp> #include <RED4ext/Scripting/Natives/Generated/scn/IInterruptManager_Operation.hpp> namespace RED4ext { namespace scn { struct IReturnCo...
/* * Copyright (c) 2021 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...
#include<iostream> using namespace std; class LTMatrix{ int size; int *arr; public: LTMatrix(int s = 0){ if(s < 0) throw "Invalid Size"; size = s; arr = new int[size * (size + 1) / 2]{0}; } void set(int i, int j, int value){ if(j > i){ if(value != 0) throw "Invalid value for give...
// 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 <openssl/ecdsa.h> #include <openssl/rand.h> #include <openssl/obj_mac.h> #include "key.h" // anonymous namespace w...
/************************** TRICK HEADER ********************************************************** LIBRARY DEPENDENCY: ((TsApproximation.o)) ***************************************************************************************************/ #include <cfloat> #include "QuadraticFit.hh" ////////////////////////...
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information. #include "eavlPoint3.h" ostream &operator<<(ostream& out, const eavlPoint3 &r) { out << "<" << r.x << "," << r.y << "," << r.z << ">"; return out; }
#include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include <QDataWidgetMapper> #include <QMessageBox> EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mod...
/*************************************************************************/ /* global_defaults.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include "MoveTool.h" #include "Image.h" #include "ImageEditor.h" #include "Layer.h" #include <LibGUI/Action.h> #include <LibGUI/Menu.h> #include <LibGUI/Window.h> #include <LibGfx/Bitmap.h> namespace PixelP...
/** * @file * @brief Monster spell casting. **/ #include "AppHdr.h" #include "mon-cast.h" #include <algorithm> #include <cmath> #include <functional> #include <unordered_set> #include "act-iter.h" #include "areas.h" #include "bloodspatter.h" #include "branch.h" #include "cleansing-flame-source-type.h" #include "c...
/* 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...
// 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/browser/in_process_webkit/indexed_db_key_utility_client.h" #include <vector> #include "chrome/browser/browser_process.h" #include "...
/*========================================================================= Program: Visualization Toolkit Module: vtkSTLReader.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is ...
//===--------- dppl_sycl_queue_manager.cpp - dpctl-C_API --*-- C++ ---*---===// // // Data Parallel Control Library (dpCtl) // // Copyright 2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Y...
#pragma once #include <chrono> #include <queue> #include "LogFilter.hpp" #include "data.hpp" #include "util/global_const.hpp" namespace taraxa::net::rpc::eth { using namespace chrono; // TODO taraxa simple exception DEV_SIMPLE_EXCEPTION(WatchLimitExceeded); enum WatchType { new_blocks, new_transactions, logs...
/* * Copyright 2007 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the * U.S. Government. Redistribution and use in source and binary forms, with * or without modification, are permitted provided that this Notice and a...
/*************************************************************************/ /* rasterizer_scene_rd.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// 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 "device/battery/battery_status_manager_linux.h" #include <stddef.h> #include <stdint.h> #include <memory> #include "base/macros.h" #include "b...