text
stringlengths
7
961k
//-***************************************************************************** // // Copyright (c) 2009-2013, // Sony Pictures Imageworks, Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binary forms, with...
/* * * Copyright (c) 2020-2021 Project CHIP Authors * Copyright (c) 2013-2017 Nest Labs, 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 ...
/* ///////////////////////////////////////////////////////////////////////// * File: implicit_link.cpp * * Purpose: Implicit link file for the test.component.inserter.real project. * * Created: 26th April 2008 * Updated: 26th September 2015 * * Status: Wizard-generated * * License: ...
#include "sim/init.hh" extern "C" { void init_enum_ArmMachineType(); } EmbeddedSwig embed_swig_enum_ArmMachineType(init_enum_ArmMachineType, "m5.internal._enum_ArmMachineType");
// Copyright (c) 2012-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 "wallet/wallet.h" #include <set> #include <stdint.h> #include <utility> #include <vector> #include "rpc/server.h" ...
// Copyright (c) 2018-present, Johnson9009. // // This file is distributed under the MIT license. See the LICENSE file for details. #include "list/reverse_print/reverse_print.h" // ====================测试代码==================== void PrintList(LinkNode* pHead) { printf("PrintList starts.\n"); LinkNode* pNode = pHea...
// Copyright (c) 2011-2018 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 <qt/paymentserver.h> #include <qt/bitcoinunit...
// // Copyright (c) 2017 The Khronos Group 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 la...
// $Id$ // Author: John Wu <John.Wu at ACM.org> // Copyright (c) 2000-2015 the Regents of the University of California // // This file contains the implementation of the class called ibis::moins // -- the multicomponent range code on bins // // moins is a French word for "less" // #if defined(_WIN32) && defined(_MSC_VE...
#include <iostream> #include <map> using namespace std; int main(){ string nome, chama_no_zap; map <string, string> telefone; telefone["null"] = "vazio"; cout << "Digite um nome ou ""sair"" para fechar o programa e exibir a lista!" << endl; do{ cout << "Nome: "; cin >> nome; ...
//================================================================================================== /*! @file @copyright 2016 NumScale SAS @copyright 2016 J.T. Lapreste Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) ...
/* Copyright (c) 2017-2021, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "Publications.hpp" #include "../core/core-exceptions.hpp" #...
//===- LLVMIRConversionGen.cpp - MLIR LLVM IR builder generator -----------===// // // 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 <iostream> #include <cstring> using namespace std; class DebitAccount { protected: char name[100]; long number; double balance; public: DebitAccount(const char *name = "----", const long number = 0, const double balance = 0.0) { strncpy(this->name, name, 99); t...
/*************************************************************************** This is a library for the BME280 humidity, temperature & pressure sensor Designed specifically to work with the Adafruit BME280 Breakout ----> http://www.adafruit.com/products/2650 These sensors use I2C or SPI to communicate, 2 or 4 ...
//===- SLPVectorizer.cpp - A bottom up SLP Vectorizer ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. ...
/********************************************************************* * * Copyright 2012 Intel Corporation * 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 wit...
class Solution { public: bool isPalindrome(int x) { if(x==0)return 1; if(x<0)return 0; int num=0,r=x; while(x) { num=(x%10)+num*10; x/=10; } if(num==r)return 1; else return 0; } };
/*========================================================================= * * 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...
/**************************************************************************** * * crypt.cpp * ($\nativecoin-cpp\src) * * by icedac * ***/ #include "stdafx.h" #include "nc.h" #include "crypt.h" #include "util.h" #include <mutex> #include <openssl/evp.h> #include <openssl/ecdsa.h> #include <openssl/bn.h> #ifdef...
#include <stdlib.h> #include <string.h> #include <android/log.h> #include <jni.h> #include "fmod_hdr.h" extern "C" { extern JavaVM* bl_JavaVM; extern jclass bl_scriptmanager_class; } struct RamFileHandle { size_t size; size_t offset; unsigned char data[]; size_t read(void *ptr, size_t s) { if (offset >= size) re...
static char *ipdict_id = "@(#)Copyright (C) H.Shirouzu 2017 ipdict.cpp Ver4.50"; /* ======================================================================== Project Name : IPDict Module Name : Serialize/Deserialize Dict Create : 2017-02-04(Sat) Update : 2017-06-12(Mon) Copyright : H.Shirouzu ...
// Copyright (c) 2013-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 "consensus/validation.h" #include "data/sighash.json.h" #include "hash.h" #include "main.h" // For CheckTransaction ...
// 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/webui/sync_file_system_internals/sync_file_system_internals_handler.h" #include <stdint.h> #include <vector> #include "base...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo...
/* * Copyright (C) 2008-2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ /** ** \file libport/conta...
#include <stdio.h> #include <testComponent885/lib1.h> int testComponent885_16 () { printf("Hello world!\n"); return 0; }
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include <stdint.h> #include <mimalloc.h> #include <new> #include <vector> #include <future> #include <iostream> #include <thread> #include <mimalloc.h> #include <assert.h> #ifdef _WIN32 #include <mimalloc-new-delete.h> #endif #ifdef _WI...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <assert.h> #include <compare> #include <concepts> #include <iterator> #include <list> #include <string> #include <type_traits> #include <utility> #include <vector> #define STATIC_ASSERT(...) static_assert(__VA_...
/** * @file algorithm.hpp * @brief Virtual class to manage algorithms * * @section LICENSE * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURP...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : Marc Pierrot Deseilligny Contributors : Gregoire Maille...
/** * @file Column.cpp * @ingroup SQLiteCpp * @brief Encapsulation of a Column in a row of the result pointed by the prepared SQLite::Statement. * * Copyright (c) 2012-2021 Sebastien Rombauts (sebastien.rombauts@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or ...
#include <gtest/gtest.h> #include <Frames/RequestFrame.h> using namespace J1939; TEST(RequestFrame_test, encode) { RequestFrame frame(0xFE05); u32 id; frame.setSrcAddr(0x30); frame.setDstAddr(0x24); frame.setPriority(4); ASSERT_EQ(frame.getDataLength(), 3); ASSERT_EQ(frame.getRequestPGN(), 0xFE05); size_...
// 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 <string> #include "base/files/file_path.h" #include "base/memory/scoped_refptr.h" #include "base/path_service.h" #include "base/strings/string_u...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2011-2013 The PPCoin developers // Copyright (c) 2013-2014 The NovaCoin Developers // Copyright (c) 2014-2018 The BlackCoin Developers // Copyright (c) 2015-2019 ...
/* * Dijkstra's Algorithm * * Author: Howard Cheng * Reference: * Ian Parberry's "Problems on Algorithms", page 102. * * Given a weight matrix representing a graph and a source vertex, this * algorithm computes the shortest distance, as well as path, to each * of the other vertices. The paths are represente...
// 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...
// EventSink.cpp #include "stdafx.h" #define _WIN32_DCOM #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> #include "EventSink.h" #pragma comment(lib, "wbemuuid.lib") ULONG EventSink::AddRef() { return InterlockedIncrement(&m_lRef); } ULONG EventSink::Release() { LONG lRef = Interl...
///////////////////////////////////////////////////////////////////////////////// // // SourceFile: ServerMain.cpp // // Copyright (c) 2014-2021 ir. W.E. Huisman // All rights reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation fil...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-string.hpp" // Completed includes // Begin forward declar...
// Copyright (c) 1994-2006 Sun Microsystems 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: // // - Redistributions of source code must retain the above copyright notice, // this list ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_free_int_31.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_free.label.xml Template File: sources-sinks-31.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Rout...
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
/*========================================================================= Program: Visualization Toolkit Module: vtkTemporalInterpolator.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 s...
/* * * Copyright (c) 2021 Project CHIP 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 requir...
// Copyright (c) 2017 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, publ...
#define SPX_GITHASH "ab921a5"
/* mbed Microcontroller Library * Copyright (c) 2018-2019 ARM Limited * Copyright (c) 2018-2019 STMicroelectronics * * 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.a...
/** * Split color image into three channels. */ std::vector<cv::Mat> three_channels = cv::split(img);
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 co...
/* TyTools - public domain Niels Martignène <niels.martignene@protonmail.com> https://neodd.com/tytools This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, distribute, and modify this file as you see fit. See the L...
#include "gaze/gaze_tracker.h" #include <iostream> #include <string> #include <utility> #include "opencv2/core.hpp" #include "yaml-cpp/yaml.h" #include "gaze/gui/debug_window.h" #include "gaze/pipeline.h" #include "gaze/pipeline_step.h" #include "gaze/pipeline_steps.h" #include "gaze/util/config.h" namespace gaze ...
// Copyright Louis Dionne 2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <dyno/builtin.hpp> #include <dyno/concept.hpp> #include <dyno/poly.hpp> #include <awful.hpp> #include <utility> int main() { // M...
/*******************************************************************\ Module: Interval Analysis Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ /// \file /// Interval Analysis -- implements the functionality necessary for performing /// abstract i...
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an MIT-style License that can be foun...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "include/dart_api.h" #include "bin/builtin.h" #include "bin/vmservice_impl.h" #include "plat...
/** * Copyright 2019 Rajdeep Roy Chowdhury <rrajdeeproychowdhury@gmail.com> * * 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...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <regex> #include <assert.h> #include <iostream> #include <map> #include <vector> #include <nlohmann/json.hpp> #include <string> #include <math.h> #define SHOW_LOG 0 #define debug(a) if(SHOW_LOG) cout << #a << " is " << a << endl using namespace std...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
/** * Copyright (C) 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
/* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 2002-2004 Apple Computer, 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/l...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_dest_long_long_loop_11.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_dest.label.xml Template File: sources-sink-11.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate using ...
/** * @file array.hpp * @Author Bohdan Vico (vicobohd@fit.cvut.cz) * @date November, 2014 * @brief infinite associative array * */ #ifndef ARRAY #define ARRAY #include <iostream> using namespace std; class CArray { public: CArray(); CArray( const CArray &x ); CArray( const int x ); CArray( const...
// 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/extension_icon_image.h" #include <vector> #include "chrome/common/chrome_notification_types.h" #include "chrome/...
// Copyright 2016 Google Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclai...
/* * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/helpers/hw_helper.h" #include "shared/source/memory_manager/allocation_properties.h" #include "shared/source/os_interface/hw_info_config.h" namespace NEO { template <> void HwHelperHw<Family>::setExtraAl...
// sat_multiplication.cpp: test suite runner for arbitrary configuration fixed-point saturating multiplication // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <universal/utility/directive...
Rat in a Maze Problem - I https://practice.geeksforgeeks.org/problems/rotate-matrix-elements-clockwise2336/1/?page=3&difficulty[]=0&difficulty[]=1&curated[]=1&sortBy=submissions error solved : // every time we needs to block previous path, m[x][y]=0; // otherwise code will goes to ...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "RobotContainer.h" #include <frc/smartdashboard/SmartDashboard.h> #include <frc2/command/PrintCommand.h> #incl...
#pragma once #include "fft_plan.h" #include "tensorOps.h" namespace FFT { template <int TRank, int FRank> Planned<TRank, FRank>::Planned(Tensor &workspace, Log log, Index const nThreads) : dims_{workspace.dimensions()} , log_{log} , threaded_{nThreads > 1} { plan(workspace, nThreads); } template <int TRank,...
#include <Interpreters/Access/InterpreterGrantQuery.h> #include <Parsers/Access/ASTGrantQuery.h> #include <Parsers/Access/ASTRolesOrUsersSet.h> #include <Access/AccessControlManager.h> #include <Access/ContextAccess.h> #include <Access/Role.h> #include <Access/RolesOrUsersSet.h> #include <Access/User.h> #include <Inter...
/** * @file * @copyright defined in eos/LICENSE */ #include <hawknwk/chain/authorization_manager.hpp> #include <hawknwk/chain/exceptions.hpp> #include <hawknwk/login_plugin/login_plugin.hpp> #include <fc/io/json.hpp> namespace hawknwk { static appbase::abstract_plugin& _login_plugin = app().register_plugin<logi...
// CustomCPUID.cpp : Defines the entry point for the DLL application. #include "pch.h" #include "CustomCPUID.h" #include <immintrin.h> BOOL APIENTRY CustomCPUID( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) ...
/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2019 Google LLC * Copyright (c) 2019 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in...
// Copyright 2020 The Khronos Group // SPDX-License-Identifier: Apache-2.0 #include "UsdBridgeUtils.h" const char* UsdBridgeTypeToString(UsdBridgeType type) { const char* typeStr = nullptr; switch(type) { case UsdBridgeType::BOOL: typeStr = "BOOL"; break; case UsdBridgeType::UCHAR: typeStr = "UCHAR"; ...
/** * @file * * @brief A LoRaWAN network interface * * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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 th...
/* * Copyright (C) 2012 Open Source Robotics Foundation * * 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 appl...
/* Copyright (c) 2017-2022, Hans Erik Thrane */ #include "roq/samples/bridge/flags/flags.hpp" #include <absl/flags/flag.h> #include <string> using namespace std::chrono_literals; // NOLINT ABSL_FLAG( // std::string, exchange, "deribit", "exchange"); ABSL_FLAG( // std::string, symbol, ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 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 "guiutil.h" #include "...
/* Boost lorenz.cpp test file Copyright 2009 Karsten Ahnert Copyright 2009 Mario Mulansky This file tests the odeint library with the vexcl types 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) */ #define BOOST_...
/*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, i...
#include "/opt/project_space/test_mnist/HPC_comb_code/MA/Watershed_Algorithm/headerspace/WatershedAlg.h" using namespace cv; void WatershedAlg::removeholesopt(Mat& src,int pnumThrshold, int handlingType, int neighbourType,int pixelThreshold) { Mat Pointlabel(src.rows,src.cols, CV_8UC1,Scalar::all(255) ); ...
// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline // - Desktop GL: 2.x 3.x 4.x // - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) // This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) // Implemented features: // [X] Renderer: User texture b...
// // Created by rex on 2020/3/21. // #include <assert.h> #include <stack> #include <string.h> #include <iostream> #include "Command.h" #include "StringUtil.h" #include "ContainerUtil.h" namespace rexlang { CmdParameter::CmdParameter( const std::string &shortSwitch, const std::string &lon...
/** * @file Denominations.cpp * * @brief Functions for converting to/from Zerocoin Denominations to other values library. * * @copyright Copyright 2017 PIVX Developers * @license This project is released under the MIT license. **/ #include "Denominations.h" #include "amount.h" namespace libzeroc...
/* * (C) 2017 Ribose Inc * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/ffi.h> #include <botan/internal/ffi_util.h> #if defined(BOTAN_HAS_RFC3394_KEYWRAP) #include <botan/rfc3394.h> #endif extern "C" { using namespace Botan_FFI; int botan_key_wrap3394(const uint8_t k...
/* [auto_generated] boost/numeric/odeint/util/n_ary_helper.hpp Macros to generate scale_sumN and for_eachN functors. Copyright 2013 Karsten Ahnert Copyright 2013 Mario Mulansky Copyright 2013 Pascal Germroth Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or ...
// Copyright (c) 2018-2019, CUT coin // Copyright (c) 2014-2018, The Monero 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: // // 1. Redistributions of source code must retain the a...
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_xml_iarchive.ipp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // ht...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "./Assertions.h" #include...
// // Created by mwo on 5/11/15. // #include "MicroCore.h" namespace xmreg { /** * The constructor is interesting, as * m_mempool and m_blockchain_storage depend * on each other. * * So basically m_mempool is initialized with * reference to Blockchain (i.e., Blockchain&) * and m_blockchain_storage is initial...
#include <bits/stdc++.h> #define nmax 1001 using namespace std; int n; int a[nmax][nmax]; int nr[nmax+1]; int main() { ifstream fin("custi.in"); ofstream fout("custi.out"); fin>>n; for(int i=1; i<=n; i++) { for(int j=1; j<=n; j++) { fin>>a[i][j]; } } int nr[n+1]...
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <cstddef> #include <limits> #include <string> #include <tuple> #include <unordered_map> #include <utility> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" #include "DataStructures/...
// Copyright (c) 2019-2020 Xenios SEZC // https://www.veriblock.org // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. #ifndef ALT_INTEGRATION_VERIBLOCK_ARITH_UINT256_HPP #define ALT_INTEGRATION_VERIBLOCK_ARITH_UINT256_HPP #includ...
#include "tst_insertproxymodel.h" #include <QtTest/QTest> QTEST_MAIN(tst_InsertProxyModel)
/* * Copyright (c) 2011 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...
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Burgwar" project // For conditions of distribution and use, see copyright notice in LICENSE #pragma once #ifndef BURGWAR_STATES_GAME_GAMESTATE_HPP #define BURGWAR_STATES_GAME_GAMESTATE_HPP #include <Client/States/AbstractState.hpp> #include <CoreLib/...
#include <bits/stdc++.h> using namespace std; using ll = long long; /*BEGIN_SNIPPET*/ template<typename T> struct modnum { using Int = typename T::type; using Int2 = typename T::prod_type; Int val; modnum() = default; modnum(const Int &_val) : val((_val%T::MOD+T::MOD)%T::MOD) {} modnum &operator++() { i...