text
stringlengths
7
961k
/* * mainwindow.cpp * * Created on: May 03, 2012 * @author Ralph Schurade */ #include "mainwindow.h" #include "views/datasetinfoview.h" #include "widgets/glwidget.h" #include "widgets/fndockwidget.h" #include "widgets/datasetpropertywidget.h" #include "widgets/roipropertywidget.h" #include "widgets/globalproper...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: System.IntPtr #include "System/IntPtr.hpp" #include "extern/beatsaber-hook/sh...
// Copyright 2014 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 "src/compiler/graph-reducer.h" #include <functional> #include "src/compiler/graph-inl.h" namespace v8 { namespace internal { namespace compi...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI 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 Details of these ...
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <local_notifier/local_notifier_plugin.h> void RegisterPlugins(flutter::PluginRegistry* registry) { LocalNotifierPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("LocalNotifierPlugin")); }
#include "vapor/VAssert.h" #include <sstream> #include <algorithm> #include <set> #include <vapor/UDUnitsClass.h> #include <vapor/NetCDFCollection.h> #include <vapor/utils.h> #include <vapor/WASP.h> #include <vapor/DerivedVar.h> using namespace VAPoR; using namespace Wasp; namespace { #ifdef UNUSED_FUNCTION size_t n...
#include "../../common/hex.hpp" #include "../../common/term.hpp" #include "../mnemonic.hpp" #include <boost/algorithm/string.hpp> using namespace prologcoin::common; using namespace prologcoin::ec; static void header( const std::string &str ) { std::cout << "\n"; std::cout << "--- [" + str + "] " + std::strin...
#include "upstream.h" int upstream() { return systemlib(); }
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#include "include/logger.h" logger::logger(std::string path) { log_path = path; log_file.open(log_path, std::ofstream::out | std::ofstream::app); } logger::~logger() { log_file.close(); } std::string logger::get_time() { time_t tim = time(NULL); std::string now = std::string(asctime(localtime(&t...
#ifndef ENGINECL_SCHEDULER_PROP_HPP #define ENGINECL_SCHEDULER_PROP_HPP 1 #include <atomic> #include <chrono> #include <iostream> #include <mutex> #include <queue> #include <thread> #include <vector> #include "inspector.hpp" #include "scheduler.hpp" #include "semaphore.hpp" #include "work.hpp" using std::atomic; usi...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2017 The ATEC developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ecwrapper.h" #include "serialize.h" #include "uint256.h" #include <openssl/b...
/** * OpenAL cross platform audio library * Copyright (C) 1999-2007 by authors. * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your op...
/* poet::future defines a templated future class which can be used, for example, to implement "active objects" and asynchronous function calls. See the paper "Active Object, An Object Behavioral Pattern for Concurrent Programming." by R. Greg Lavender and Douglas C. Schmidt for more information about active objec...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2019 The Dash Core developers // Copyright (c) 2020 The But developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bitcoinunits.h" #inclu...
#include <cstdio> #include <vector> using namespace std; typedef vector<int> vi; class FenwickTree { private: vi ft; int LSOne(int x) { return (x & (-x)); } public: FenwickTree(int n) { ft.assign(n + 1, 0); } // init n + 1 zeros int rsq(int b) { int sum = 0; for(; b; b -= LSOne(b)) sum += ft[b]; ...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
// Copyright 2019 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 "extensions/browser/api/declarative_net_request/request_action.h" namespace extensions { namespace declarative_net_request { RequestAction::Req...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2015-2017 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypter.h" #include "crypto/aes.h" #include "crypto/sh...
/* * Copyright (C) 2018 The Android Open Source Project * * 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 app...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
// Copyright (c) 2016, Monero Research Labs // // Author: Shen Noether <shen.noether@gmx.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. Redistributions of source code must...
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLVertexBufferObjectCache.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
// // Created by jbs on 21. 6. 3.. // #include <zed2_client/Client.h> using namespace zed_client; using namespace std; cv::Vec3b DetectedObject::getHsvColor() const { cv::Mat bgr = cv::Mat(1, 1, CV_8UC3, bgrColor); cv::Mat hsv; cv::cvtColor(bgr,hsv,cv::COLOR_BGR2HSV); return hsv.at<cv::Vec3b>(0, 0);...
// Copyright (c) 2018-present The Alive2 Authors. // Distributed under the MIT license that can be found in the LICENSE file. #include "smt/ctx.h" #include "smt/smt.h" #include "util/config.h" #include <cstdlib> #include <iostream> #include <string_view> #include <z3.h> using namespace std; using util::config::dbg; ...
#include <bits/stdc++.h> using namespace std; int main(){ int n ; cin>> n ; int a[n] ; int max = 0 ; int t = 0 ; for(int i=0 ; i<n ; i++){ cin>>a[i] ; if(a[i]>max){ max = a[i] ; } } for(int i=0 ; i<n ; i++){ ...
/// #include "zipinternal.hpp" #include <bela/endian.hpp> namespace hazel::zip { bool Reader::Decompress(const File &file, const Writer &w, bela::error_code &ec) const { auto realPosition = file.position + baseOffset; uint8_t buf[fileHeaderLen]; if (!fd.ReadAt(buf, realPosition, ec)) { return false; } be...
#include <stdio.h> #include <stdlib.h> #include "TestRunner.h" #include "Clock.h" #include <algorithm> #include <cstring> #include <stdexcept> #include "TestData.h" #include "JSONReport.h" #include "myassert.h" #ifdef __EMSCRIPTEN__ #include <emscripten/emscripten.h> #endif LCG rng(Clock::TickU32()); std::vector<Te...
// $Id: event_server.cpp 91673 2010-09-08 18:49:47Z johnnyw $ // Main driver program for the event server example. #include "ace/OS_main.h" #include "ace/Service_Config.h" #include "ace/OS_NS_unistd.h" #include "Options.h" #include "Consumer_Router.h" #include "Event_Analyzer.h" #include "Supplier_Router.h" #include ...
/* * Copyright 1999-2002,2004 The Apache Software 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 requir...
// // Copyright (c) 2015-2021 CNRS INRIA // #ifndef __pinocchio_compute_all_terms_hxx__ #define __pinocchio_compute_all_terms_hxx__ #include "pinocchio/multibody/visitor.hpp" #include "pinocchio/spatial/act-on-set.hpp" #include "pinocchio/algorithm/center-of-mass.hpp" #include "pinocchio/algorithm/energy.hpp" #includ...
#include "cl_data.h" #include "cl_helper.h" #include "cl_exception.h" CL::data::data():data_(nullptr),size_(0){ } CL::data::data(const cl_mem &data,size_t size):data_(data),size_(size){ CL_ERROR(clRetainMemObject(data_)); } CL::data::data(const CL::data &data):data_(data.handle()),size_(data.size_){ CL_ERROR...
/** * @file * @brief Definition of object with set of particles at pixel * @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privile...
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Vladimír Vondruš <mosra@centrum.cz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
//================================================================================================= /*! // \file src/mathtest/operations/dmatsmatkron/MDbHCb.cpp // \brief Source file for the MDbHCb dense matrix/sparse matrix Kronecker product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reser...
// 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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <i...
#include "linesfadepopup.h" // Tnz6 includes #include "tapp.h" #include "menubarcommandids.h" #include "cellselection.h" #include "filmstripselection.h" #include "imageviewer.h" // TnzLib includes #include "toonz/txshcell.h" #include "toonz/txsheethandle.h" #include "toonz/tframehandle.h" #include "toonz/tcolumnhandl...
//Illustration of Viola-Jones object detection // Andreas Unterweger, 2017-2019 //This code is licensed under the 3-Clause BSD License. See LICENSE file for details. #include <iostream> #include <vector> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/objdetect.hpp> #include <opencv2/imgp...
// 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/serial/serial_device_enumerator_linux.h" #include <stdint.h> #include <memory> #include <utility> #include "base/logging.h" #include "...
// prints the first "x:.../activate.bat" in the first 10000 bytes of // the binary file (second arg). Characters may or may not be 16 bit // integers (ignore '\0') // (return 0 if found, 1 if not found or error) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc, const cha...
/* * pgm.h * * Created on: Jun 9, 2016 * Author: kochoba */ #include <fstream> #include <iostream> #include <algorithm> #include <string> #include <stdint.h> #include <cstdlib> #include <cstring> #include <stdio.h> #include <stdlib.h> #include <bitset> #include <stdarg.h> #include <png++/png.hpp> #include <...
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_PARSE_NOT_FWD_HPP_INCLUDED #define FCPPT_PARSE_NOT_FWD_HPP_INCLUDED namespace fcpp...
/*************************************************************************** * Copyright (c) 2017, Sylvain Corlay and Johan Mabille * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
#include "projection.hpp" #include <algorithm> #include <functional> #include <memory> #include <numeric> #include <string> #include <utility> #include <vector> #include "constant_mappings.hpp" #include "operators/pqp_expression.hpp" #include "resolve_type.hpp" #include "scheduler/current_scheduler.hpp" #include "sq...
/* * MIT License * * Copyright (c) 2017 Pedro Cuadra * * 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, mod...
#pragma once #include <Windows.h> #include "Debug.h" decltype(Debug::mode_) Debug::mode_ = Debug::Mode::File; decltype(Debug::logFunc_) Debug::logFunc_ = nullptr; decltype(Debug::errFunc_) Debug::errFunc_ = nullptr; decltype(Debug::fs_) Debug::fs_; decltype(Debug::ss_) Debug::ss_; decltype(Debug::mutex_...
#include<stdio.h> int main () { int a[100],n,i; void reverse(int a[],int n); printf("Enter no of elements:\n"); scanf("%d",&n); printf("Enter elements:\n"); for(i=o;i<n;i++) scanf("%d",&a[i]); reverse(a,n); return 0; } void reverse(int a[],int n) { int i,rev[100]; for(i=o;i<n;i++) { rev[n-i-1]=a[i];...
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ #include "ai/ai_profiles.h" #include "debugconsole/console.h" #include ...
// Copyright (c) 2017-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 above copyright notice, this list o...
// Copyright (c) 2021-2022 Daniel Frey and Dr. Colin Hirsch // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #ifndef TAO_PQ_TABLE_ROW_HPP #define TAO_PQ_TABLE_ROW_HPP #include <cstddef> #include <iterator> #includ...
// Generated by Haxe 3.4.7 #include <hxcpp.h> #ifndef INCLUDED_Reflect #include <Reflect.h> #endif #ifndef INCLUDED_Std #include <Std.h> #endif #ifndef INCLUDED_Type #include <Type.h> #endif #ifndef INCLUDED_haxe_IMap #include <haxe/IMap.h> #endif #ifndef INCLUDED_haxe_ds_BalancedTree #include <haxe/ds/BalancedTree.h>...
// 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 "chrome/common/extensions/permissions/chrome_api_permissions.h" #include "chrome/common/extensions/permissions/api_permission.h" #include "c...
#ifndef INC_METTLE_SUITE_MAKE_SUITE_HPP #define INC_METTLE_SUITE_MAKE_SUITE_HPP #include <algorithm> #include <array> #include <cstdint> #include <functional> #include <string> #include <tuple> #include <utility> #include <vector> #include "attributes.hpp" #include "compiled_suite.hpp" #include "factory.hpp" #include...
/* 859. Buddy Strings Problem Given two strings A and B of lowercase letters, return true if you can swap two letters in A so the result is equal to B, otherwise, return false. Swapping letters is defined as taking two indices i and j (0-indexed) such that i != j and swapping the characters at A[i] and A[j]. For exam...
// // Created by connor on 7/18/18. // #include "WebsocketImpl.h" namespace Sova { WebsocketImpl::WebsocketImpl(Websocket* wrapperWebsocket, Ref <String> address) { this->wrapperWebsocket = wrapperWebsocket; this->webSocketClient.onMessage([&](Oryol::String msg) { this->wrapperWeb...
#include "camera.h" #include "keyboard.h" #include "common/math.h" #include <QMouseEvent> #include <QWheelEvent> #include <GL/gl.h> #include <GL/glu.h> #include <iostream> namespace gnssShadowing { namespace gui { Camera::Camera(Keyboard& keyboard, float x, float y, float zoom) : m_keyboard(keyboard), m_x(x)...
///*|----------------------------------------------------------------------------- // *| This source code is provided under the Apache 2.0 license -- // *| and is provided AS IS with no warranty or guarantee of fit for purpose. -- // *| See the project's LICENSE.md for details. ...
// // TestApp.cpp // // $Id: //poco/1.4/Foundation/testsuite/src/TestApp.cpp#2 $ // // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #if defined(_WIN32) #define _CRT_SECURE_NO_DEPRECATE #endif #include <string> #include <iostre...
#include "world.h" #include "room.h" #include "exit.h" #include "player.h" #include "npc.h" #include "item.h" World::World() { // Rooms Room* const cell = new Room(*this, "Player Cell", "You find yourself inside a very small cell. There is a bed tucked in the corner."); Item* const player_bed = new Item(*this, *ce...
// // Copyright © 2018 Arm Ltd. All rights reserved. // See LICENSE file in the project root for full license information. // #include <iostream> #include <string> #include <fstream> #include <vector> #include <memory> #include <array> #include <algorithm> #include <cstring> #include "armnn/ArmNN.hpp" #include "armnn...
#include "parser.h" #include <wizard_parser/parser/Parser.h> #include <wizard_parser/node/Node.h> #include <algorithm> #include <numeric> using namespace thewizardplusplus::wizard_parser::parser; using namespace thewizardplusplus::wizard_parser::node; namespace { Parser CreateGrammar(void) { const auto expression =...
#include "responsedirectory.h" #include "mime.h" #include <QDir> #include <QFileInfoList> #include <QTextStream> #include <QByteArray> #include <QBuffer> ResponseDirectory::ResponseDirectory(QTcpSocket * socket, QMap<QString, QString> & header, QString dir_name, QString url_path): Response(socket, 200, header), ...
/* * libjingle * Copyright 2005 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 fo...
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) ==...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
/* * Copyright 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...
// // socket_base.cpp // ~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2016 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) // // Disable autolinking for unit tests...
// Copyright (c) 2020, NVIDIA CORPORATION. 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 (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/renderer/prerender/prerender_dispatcher.h" #include "base/compiler_specific.h" #include "base/logging.h" #include "googleurl/src/gur...
/* * Toolchain.cpp * Copyright 2021 ItJustWorksTM * * 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 ap...
#ifndef GEAROENIX_DX11_SHADER_DEPTH_POSITION_HPP #define GEAROENIX_DX11_SHADER_DEPTH_POSITION_HPP #include "../../core/gx-cr-build-configuration.hpp" #ifdef GX_USE_DIRECTX11 #include "../../render/material/gx-rnd-mat-depth.hpp" #include "dx11-shader.hpp" namespace gearoenix { namespace dx11 { namespace buffer { ...
// // Created by Zach Lee on 2021/9/25. // #include <RHI/Vulkan/VulkanDriver.h> #include <RHI/Vulkan/VulkanShader.h> #include <RHI/Vulkan/VulkanAdapater.h> namespace Explosion::RHI { VulkanShader::VulkanShader(VulkanDriver& driver, Config config) : Shader(config), driver(driver), device(*driver.GetDevice...
//===- lib/Linker/IRMover.cpp ---------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define EPS 1e-6 #define ll long long int #define ld long double #define fi first #define se second #define all(v) v.begin(),v.end() #define pr(v) { for(int i=0;i<v.size();i++) { v[i]==I...
/** * Copyright (c) 2018, University Osnabrück * 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 li...
#pragma once #include "solver.hpp" #include "var.hpp" extern "C" { enum miplib_SolverBackend { Gurobi = 0, Scip = 1, Lpsolve = 2, BestAtCompileTime = 3, BestAtRunTime = 4 }; enum class miplib_VarType { Continuous = 0, Binary = 1, Integer = 2 }; char const* miplib_get_last_error(); int miplib_create_solver(mip...
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function XpBoostInfoTe...
/*! @file @brief 文字コードセット設定ダイアログボックス @author Uchi @date 2010/6/14 新規作成 */ /* Copyright (C) 2010, Uchi Copyright (C) 2018-2021, Sakura Editor Organization This source code is designed for sakura editor. Please contact the copyright holder to use this code for other purpose. */ #include "StdAfx.h" #include "dl...
/* * Vulkan Example - Model loading and rendering * * Copyright (C) 2016 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <vector> #define GLM_F...
// Copyright (c) Andreas Fertig. // SPDX-License-Identifier: MIT #include <cstdio> #include <list> #include <vector> template<template<class, class> class Container, class T, class Allocator = std::allocator<T>> void Fun(const Container<T, Allocator>& c) { for(const auto& e : c) { printf("%d\n", e...
// Adapted from https://stackoverflow.com/questions/34511312/how-to-encode-a-video-from-several-images-generated-in-a-c-program-without-wri // (Later) adapted from https://github.com/apc-llc/moviemaker-cpp #ifndef FRAME_WRITER #define FRAME_WRITER #include <stdint.h> #include <string> #include <vector> #include <map>...
//======================================================================== // // SplashScreen.cc // //======================================================================== #include <aconf.h> #ifdef USE_GCC_PRAGMAS #pragma implementation #endif #include <stdlib.h> #include <string.h> #if HAVE_STD_SORT #include <al...
// 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 "components/infobars/core/infobar.h" #include <cmath> #include <utility> #include "base/logging.h" #include "build/build_config.h" #include "co...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
#include <catch.hpp> #include <PMMR/Common/MMRUtil.h> TEST_CASE("MMRUtil::GetHeight") { REQUIRE(MMRUtil::GetHeight(0) == 0); REQUIRE(MMRUtil::GetHeight(1) == 0); REQUIRE(MMRUtil::GetHeight(2) == 1); REQUIRE(MMRUtil::GetHeight(3) == 0); REQUIRE(MMRUtil::GetHeight(4) == 0); REQUIRE(MMRUtil::GetHeight(5) == 1); R...
// Copyright 2013 The Flutter 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/common/engine.h" #include <memory> #include <string> #include <utility> #include <vector> #include "flutter/common/settings.h" #i...
// dParserGenerator.cpp : Defines the entry point for the console application. // #include "dParserCompiler.h" bool CheckDependency(const char* const target, const char* const source) { struct _stat sourceStat; struct _stat targetStat; int result = _stat (target, &targetStat); if( result == 0 ) { result = _stat...
// Copyright © 2017-2019 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 "Signer.h" #include "Address.h" #include "Protobuf...
/* * Copyright 2015-2017, Intel Corporation * * 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 conditions and ...
#include "traversalgroup.h" #include <algorithm> namespace gui { TraversalGroup::TraversalGroup() : lastFocusIndex_(0), verticalArrows_(false), horizontalArrows_(false), tab_(true) { } void TraversalGroup::add(const std::shared_ptr<Component>& component) { components_.push_back(component); } void Traversa...
#include "time.h" #include "classes/c_timer.h" CTimer::CTimer() { startticks = 0; pausedticks = 0; started = false; paused = false; } bool CTimer::IsStarted() { return started; } bool CTimer::IsPaused() { return paused; } void CTimer::Start() { started = true; paused = false; #ifdef __ems...
/* * 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 "UIManager.h" #include <react/core/ShadowNodeFragment.h> #include <react/debug/SystraceSection.h> #include <react/graphic...
#include <iostream> #include <vector> using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); } template <class T> using V = vector<T>; template <class T> using VV = V<V<T>>; // s[0..r[i]] == s[i..i+r[i]] te...
/* * 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...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * DataMan.cpp classes for DataMan streaming format * * Created on: May 11, 2018 * Author: Jason Wang */ #include "DataMan.tcc" #include <cstring> //std::memcpy #include <iostream> ...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The xx 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 "c...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/infinex-config.h" #endif #include "t...
/* ******************************************************************************* * Copyright (C) 2012-2014, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * uitercollationiterator.cpp * * created on: 2012s...
#ifndef BOOST_METAPARSE_V1_CPP98_IMPL_NTH_OF_C_HPP #define BOOST_METAPARSE_V1_CPP98_IMPL_NTH_OF_C_HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 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...