text
stringlengths
5
1.04M
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2018, Mohamad Ayman. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
// Copyright (c) 2013 Mario Mulansky // // 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) // This test case demonstrates the issue described in #798: HPX_LIMIT does not // work for local dataflow #include <hpx/hp...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
// // Copyright (C) 2018 Susan H. Leung // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include "MolStandardize.h" #include "Normalize.h"...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
#include "resolver/type_syntax.h" #include "absl/strings/str_join.h" #include "common/typecase.h" #include "core/Names.h" #include "core/Symbols.h" #include "core/core.h" #include "core/errors/resolver.h" using namespace std; namespace sorbet::resolver { // Forward declarations for the local versions of getResultTyp...
#include <stdio.h> #include <string> #include <vector> #include <iostream> #include <fstream> #include <algorithm> #include <stdlib.h> #include <string.h> #include <sstream> #include <GL/glew.h> #include "shader.hpp" #include "../guiconsole/console.hpp" using namespace std; namespace Syn { GLuint LoadShaders(cons...
/* Copyright (c) 2020 PaddlePaddle 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...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2022 Ryo Suzuki // Copyright (c) 2016-2022 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Common.hpp" # include...
// Copyright 2021 The Tint 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 ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <stdafx.h> #include "art_helpers.h" #include <events/event_dispatcher.h> #include <events/event_js_callback.h> #include <utils/gdi_helpers.h> #include <utils/image_helpers.h> #include <utils/thread_pool_instance.h> #include <Shlwapi.h> #include <qwr/abort_callback.h> #include <qwr/string_helpers.h> #inclu...
// // This file is part of Easylogging++ samples // TIMED_BLOCK sample // // Revision 1.1 // @author mkhan3189 // #include "easylogging++.h" INITIALIZE_EASYLOGGINGPP int main(int argc, char** argv) { START_EASYLOGGINGPP(argc, argv); TIMED_BLOCK(t, "my-block") { for (long i = 0; i <= 300; ...
#include "xtcdata/xtc/NamesIter.hh" using namespace XtcData; int NamesIter::process(Xtc* xtc) { switch (xtc->contains.id()) { case (TypeId::Parent): { iterate(xtc); // look inside anything that is a Parent break; } case (TypeId::Names): { Names& names = *(Names*)xtc; Na...
// Copyright John Maddock 2006. // Use, modification and distribution are subject to 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) // // Basic sanity check that header <boost/math/distributions/cauchy.hpp> // #includes all the ...
/*-------------------------------------------------------------------------------- Copyright (c) Microsoft Corporation. All rights reserved. */ /** \file \brief Test class the statistical disk pal for physical disks. \date 2008-06-18 11:08:56 */ /*-------------------------...
// 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: IMultiplayerRi...
#ifndef SRC_MYLABEL #define SRC_WYLABEL #pragma execution_character_set("utf-8") #include <QMouseEvent> #include <QDebug> #include <QPixmap> #include <QString> #include <QMessageBox> #include <QResizeEvent> #include <cmath> #include <deque> #include <algorithm> #include <thread> #include <chrono> #include "mylabel....
// 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 "ResourceManager.h" #include <Corrade/Containers/ArrayViewStl.h> #include <Corrade/Containers/PointerStl.h> #include <Corrade/Plugi...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp" #include "extern/b...
/* * Copyright (c) 2012 cocos2d-x.org * http://www.cocos2d-x.org * * Copyright 2011 Yannick Loriot. * http://yannickloriot.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 with...
/** * Copyright 2020 Huawei Technologies 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 law...
// 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 "content/browser/renderer_host/input/tap_suppression_controller.h" #include "base/logging.h" #include "base/trace_event/trace_event.h" #include ...
/******************************************************************************* * Copyright 2019 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.o...
#include <iostream> #include <list> #include "ex01.h" #include "ex02.h" #include "ex03.h" #include "ex04.h" int main() { std::list<int> nb {1, 2, 3, 4, 5, 5, 4, 3, 2, 1}; std::cout << is_palindrome(nb.begin(), nb.end()) << std::endl; return 0; }
// // Alert system // #include <algorithm> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/foreach.hpp> #include <map> #include "alert.h" #include "key.h" #include "net.h" #include "sync.h" #include "ui_interface.h" using namespace std; map<uint256,...
/* Copyright 2017 R. Thomas * Copyright 2017 Quarkslab * * 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) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #ifndef ROCKSDB_LITE #ifdef GFLAGS #include "tools/block_...
User-agent: * Disallow: /*action=edit Disallow: /*action=diff Disallow: /*action=print$ Disallow: /*action=upload Disallow: /*action=login$ Disallow: /*action=logout$ Disallow: /*action=sourceblock
/** \file * \brief This class is a simple layout that places nodes next to each other * and draws edges as bows above the nodes. * The user may decide whether to use a custom permutation or use the ordering * given by the nodes indices. * * \author Sebastian Semper * * \par License: * This file is part of the ...
// 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: OVR.OpenVR.IVR...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE enum $5B6AFD24AD83D8D7CFBE616142A2693C { code_war = 0xFF, code_chaos = 0xFE, }; END_ATF_NAMESPACE
// Copyright Epic Games, Inc. All Rights Reserved. #include "PuzzlePlatformsGameMode.h" #include "PuzzlePlatformsCharacter.h" #include "UObject/ConstructorHelpers.h" APuzzlePlatformsGameMode::APuzzlePlatformsGameMode() { // set default pawn class to our Blueprinted character static ConstructorHelpers::FClassFinder<...
#include <babylon/cameras/arc_rotate_camera.h> #include <babylon/engines/scene.h> #include <babylon/helpers/environment_helper.h> #include <babylon/interfaces/irenderable_scene.h> #include <babylon/loading/plugins/gltf/gltf_file_loader.h> #include <babylon/loading/scene_loader.h> #include <babylon/samples/babylon_regis...
/** @file * * The implementation of the MultiplyElement class. * * @author Nicolas Bock <nicolas.bock@freeon.org> * @author Matt Challacombe <matt.challacombe@freeon.org> */ #include "config.h" #include "multiplyelement.h" #include "chunk.h" #include "index.h" #include "lapack_interface.h" #include "logger.h" ...
//===- ConsG.cpp -- Constraint graph representation-----------------------------// // // SVF: Static Value-Flow Analysis // // Copyright (C) <2013-2017> <Yulei Sui> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as...
#include <QApplication> #include "guiutil.h" #include "Flashpaychainaddressvalidator.h" #include "walletmodel.h" #include "Flashpaychainunits.h" #include "util.h" #include "init.h" #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #if QT_VERSION >= 0x050000 #include <QUrlQuery> ...
/*=========================================================================== _____ _____ _____ _____ ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______ | \ / | || \ || | || |/ / ||___ | | \/ | || \ || \ || \ ||___ | |__/\__...
int minSpan(int N,vector<vector<int>>adj[]) { int key[N+1]; bool mstSet[N+1]; for (int i = 0; i <= N; i++) key[i] = INT_MAX, mstSet[i] = false; priority_queue< pair<int,int>, vector <pair<int,int>> , greater<pair<int,int>> > pq; key[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 law or a...
// MethodProps.cpp #include "StdAfx.h" #include "../../Common/StringToInt.h" #include "MethodProps.h" using namespace NWindows; bool StringToBool(const UString &s, bool &res) { if (s.IsEmpty() || s == L"+" || StringsAreEqualNoCase_Ascii(s, "ON")) { res = true; return true; } if (s == L"-" || String...
// // Copyright (c) 2014-2017 The Dash Core developers // // Copyright (c) 2017-2017 The FOL Core developers // // Distributed under the MIT/X11 software license, see the accompanying // // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #ifndef GOVERNANCE_KEYS_H // #define GOVERNANCE_KEYS_H /...
// template <typename T> // void f(ParamType parameter); // // f(expr) // ParamType is neither a pointer nor a reference // (so we are dealing with pass-by-value: // // Type deduction works like this: // 1. If expr's type is a reference, ignore the reference part. // 2. If, after ignoring expr's reference-...
#ifndef GAME_SCRIPT_ANIMATIONEXTENSIONS_H #define GAME_SCRIPT_ANIMATIONEXTENSIONS_H namespace Compiler { class Extensions; } namespace Interpreter { class Interpreter; } namespace MWScript { namespace Animation { void registerExtensions (Compiler::Extensions& extensions); void instal...
#pragma once #include "Engine/Core/DataUtils.hpp" #include <memory> #include <vector> class Actor; class Map; class Renderer; class Adventure { public: Adventure() noexcept = delete; Adventure(const Adventure& other) noexcept = default; Adventure(Adventure&& other) noexcept = default; Adventure& ope...
#ifndef TIN_NETWORK_BSDSOCKET_WRAPPER_EVENT_HPP #define TIN_NETWORK_BSDSOCKET_WRAPPER_EVENT_HPP #include "../../../utils/Event.hpp" namespace tin { namespace network { namespace bsdsocket { namespace wrapper { class ClientVisitor; struct Event: public tin::utils::Event<tin::network::bsdsocket::wrapper::C...
#include <torch/torch.h> #include <cstddef> #include <iostream> #include <string> #include <vector> struct Net : torch::nn::Module { Net() : conv1(torch::nn::Conv2dOptions(1, 10, /*kernel_size=*/5)), conv2(torch::nn::Conv2dOptions(10, 20, /*kernel_size=*/5)), fc1(320, 50), fc2(50, 10) ...
#pragma once #include <cstdint> #include <cassert> #include <ostream> namespace GoBoard { using std::uint8_t; enum ERule : uint8_t { AllowSuicide = 1, }; enum EGridValue : uint8_t { Empty = 0, Black = 1, White = 2, Gray = 3, // Boundary }; temp...
/* * This file is part of Kintinuous. * * Copyright (C) 2015 The National University of Ireland Maynooth and * Massachusetts Institute of Technology * * The use of the code within this file and all code within files that * make up the software that is Kintinuous is permitted for * non-commercial purposes onl...
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <algorithm> #include <functional> #include <memory> #include <string> #include <tuple> #include <vector> #include <ie_core.hpp> #include <ngraph_functions/builders.hpp> #include "functional_test_utils/blob_utils.hpp" #include ...
#include <cstdio> #include <iostream> #include <string> using namespace std; int main(void){ string input; while(getline(cin, input), !cin.eof()){ int H, W; sscanf(input.c_str(), "%d %d\n", &H, &W); if((H | W) == 0) break; for(int i = 0; i < H; i...
/**************************************************************************** ** Meta object code from reading C++ file 'userdatarequest.h' ** ** Created: Fri Mar 9 15:57:11 2018 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.3) ** ** WARNING! All changes made in this file will be lost! ********************...
#include "engine/input.h" #include "core/assert.h" #include "core/cint.h" #include "core/sol.h" namespace euphoria::engine { BoundVar::BoundVar(const std::string& n, const core::Key& k) : name(n), state(0), last_state(0), key(k) { } void bind_bound_var(LuaState* duk) { duk->st...
/* ************************************************ username : smmehrab fullname : s.m.mehrabul islam email : mehrab.24csedu.001@gmail.com institute : university of dhaka, bangladesh session : 2017-2018 ************************************************ */ #include <bits/stdc++.h> using namesp...
// 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 "net/quic/core/quic_client_session_base.h" #include "net/quic/core/quic_client_promised_info.h" #include "net/quic/core/quic_flags.h" #include "...
// Copyright (c) 2016 Mirants Lu. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "voyager/core/tcp_connection.h" #include <errno.h> #include <unistd.h> #include "voyager/core/dispatch.h" #include "voyager/core/eventloop.h" #includ...
// 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/int64-lowering.h" #include "src/compiler/common-operator.h" #include "src/compiler/diamond.h" #include "src/compiler/graph.h" #in...
#include <cstdio> #include <iostream> using namespace std; //barrel sort //assume no duplicat. //NO WA please🙏 bool barrel[4000010] = {0}; // int barrelblock[4001] = {0}; int main() { int n, proc; scanf("%d", &n); while (n--) { scanf("%d", &proc); barrel[2000005 + proc] = 1; /* ++b...
#if defined(_DEBUG) #define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #endif #include "imgui.h" #include "imgui_impl_dx11.h" #include "imgui_impl_win32.h" #include "ScopeGuard.h" #include "Application.h" struct IUnknown; #include <d3d11.h> #define DIRECTINPUT_VERSION 0x0800 #include <dinput.h> #include <tchar.h> #include <...
// 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 "webkit/fileapi/file_system_file_stream_reader.h" #include "base/file_util_proxy.h" #include "base/platform_file.h" #include "base/single_th...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iotsitewise/model/ListTagsForResourceRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/http/URI.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #in...
#include "Lifx.h" #include "LifxMessageHandler.h" #include <Arduino.h> Lifx::Lifx(LifxDevice *device) { this->device = device; } // TODO: add debug serial prints void Lifx::begin() { this->Udp.begin(LIFX_PORT); } void Lifx::handle() { int packetSize = this->Udp.parsePacket(); if (packetSize) { byte pack...
// 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/browser/chromeos/policy/device_policy_cros_browser_test.h" #include <stdint.h> #include <string> #include "ash/constants/ash_paths...
/* * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de. * Distributed under the terms of the MIT License. */ #include <extended_system_info.h> #include <extended_system_info_defs.h> #include <syscalls.h> #include <AutoDeleter.h> #include <util/KMessage.h> namespace BPrivate { status_t get_extended_team_inf...
#pragma once #include <iostream> #include <regex> #include <sstream> #include <string> #include <unordered_map> #include <vector> #include "State.hpp" /** * @brief A turing machine emulator. * */ class Machine { public: /** * @brief Construct the machine object. * */ Machine(); /** * @brief Load the...
// Common/ListFileUtils.cpp #include "StdAfx.h" #include "MyWindows.h" #include "../Windows/FileIO.h" #include "ListFileUtils.h" #include "StringConvert.h" #include "UTFConvert.h" static const char kQuoteChar = '\"'; static void RemoveQuote(UString &s) { if (s.Length() >= 2) if (s[0] == kQu...
#include "sim/init.hh" namespace { const uint8_t data_m5_objects_BaseKvmCPU[] = { 120,156,189,85,219,110,219,70,16,29,82,23,219,242,69,142, 154,164,151,39,54,1,2,186,136,164,38,133,31,130,4,77, 107,195,105,140,86,138,65,57,65,171,23,130,94,142,68,198, 36,151,225,46,85,171,232,91,250,101,253,162,254,65...
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: support@coronalabs.com // ////////////////////////...
#include "phigraph_init.h" PhiGraphInit::PhiGraphInit(int argc, char *argv[]){ cmd = new command(argc, argv, " [-s] <inFile>"); csrFile = cmd->getArgument(1); cscFile = cmd->getOptionValue("-c"); bool weighted = cmd->getOption("-w"); printInfor(0); graphIO = new PhiGraphIO(weighted); graph = graphIO->loa...
//------------------------------------------------------------------------------ /* 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 ...
/***************************************************************************** TestDiodeClipDAngelo.cpp Author: Laurent de Soras, 2020 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017-2019 The Raven Core developers // Copyright (c) 2020-2021 The Hive Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/lic...
#include "pch.h" #include "GraphicsCommon.h" #include "SamplerManager.h" #include "CommandSignature.h" namespace Graphics { SamplerDesc SamplerLinearWrapDesc; SamplerDesc SamplerAnisoWrapDesc; SamplerDesc SamplerShadowDesc; SamplerDesc SamplerLinearClampDesc; SamplerDesc SamplerVolumeWrapDesc; ...
// { Driver Code Starts #include<bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: void subsetSumHelper(vector<int> a, int i, int sum, vector<int> &out) { if(i == a.size()) { out.push_back(sum); return; } else {...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "c...
// Copyright (c) 2012 The Chromium Embedded Framework 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 "libcef/browser/zip_reader_impl.h" #include <time.h> #include "base/logging.h" #include "base/notreached.h" #include "incl...
/*============================================================================= Copyright (c) 2001-2010 Joel de Guzman 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_METAPARSE_IS_ERROR_HPP #define BOOST_METAPARSE_IS_ERROR_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.txt) #include <boost/metap...
// Copyright 2017 PDFium 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 "core/fpdfapi/edit/cpdf_pagecontentgenerator.h" #include <memory> #include <utility> #include "core/fpdfapi/cpdf_modulemgr.h" #include "core/fpdfapi/...
#include "Kernel.h" #include "Utils.h" #include "Config.h" #include "SocketHandler.h" #include "HTTPProcessor.h" #include "Stream.h" #include "Main.h" #include <csignal> #include <string> #include <iostream> #include <vector> #include <fstream> #include <strstream> #include <iterator> #include <algorithm> #include <...
--- base/process/memory.cc.orig 2020-03-16 18:39:41 UTC +++ base/process/memory.cc @@ -42,7 +42,7 @@ void OnNoMemoryInternal(size_t size) { } // namespace internal // Defined in memory_win.cc for Windows. -#if !defined(OS_WIN) +#if !defined(OS_WIN) && !defined(OS_BSD) namespace { @@ -61,7 +61,7 @@ void Termin...
/* MIT License Copyright(c) 2019 megai2 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, distribut...
/* Plugin-SDK (Grand Theft Auto San Andreas) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CFont.h" CSprite2d *CFont::Sprite = (CSprite2d *)0xC71AD0; CSprite2d *CFont::ButtonSprite = (CSprite2...
#ifndef YUKI_SCRIPT_CONTEXT_STACK_HPP #define YUKI_SCRIPT_CONTEXT_STACK_HPP #include <deque> #include <stack> #include "context.hpp" namespace yuki::context { class context_stack { public: context_stack(); void push(yuki::context::context && c); yuki::context::context & current_context(); std::size_t size() ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <tvm/runtime/registry.h> #include <tvm/runtime/device_api.h> #include <tvm/target/codegen.h> #include "core/common/common.h" #include "tvm_api.h" namespace onnxruntime { namespace tvm { using TvmIntArray = ::tv...
#include <gainput/gainput.h> #include <X11/Xlib.h> #include <X11/extensions/XInput2.h> #include <iostream> // Define your user buttons enum Button { ButtonMenu, ButtonConfirm, MouseX, MouseY }; static Window create_win(Display *dpy) { XIEventMask mask; Window win; unsigned long ...
//===-- Verifier.cpp - Implement the Module Verifier -----------------------==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <vtkSmartPointer.h> #include <vtkBYUReader.h> #include <vtkOBJReader.h> #include <vtkPLYReader.h> #include <vtkPolyDataReader.h> #include <vtkSTLReader.h> #include <vtkXMLPolyDataReader.h> #include <vtkPointSource.h> #include <vtkUnsignedDistance.h> #include <vtkImageMapToColors.h> #include <vtkLookupTable.h...
/** * Author: Patrick T Cox * Date of Creation: 15 September 2017 * Last Updated: 15 December 2017 * Project: SmallpoxAttackSim */ #include <random> #include <fstream> int main() { const int n_persons = 5000; const int n_groups = 1000; const int minGroups = 3; const int maxGroups = 20; std::...
<?hh // strict namespace Dust\Ast; class Reference extends InlinePart { /** * @var array[string] */ public array<string> $filters; /** * @var string */ public string $identifier; /** * @return string */ public function __toString(): string { $str = $this->identifier; if (!empty($this->filters...
/** * @example oglplus/013_spiral_sphere.cpp * @brief Shows how to draw a jumping and rotating sphere * * @oglplus_screenshot{013_spiral_sphere} * * Copyright 2008-2013 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://w...
//===-- PlatformRemoteAppleBridge.cpp -------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===-----------------------...
/** * @file Params.cpp * * @brief Parameter class for Zerocoin. * * @author Ian Miers, Christina Garman and Matthew Green * @date June 2013 * * @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green * @license This project is released under the MIT license. **/ // Copyright (c)...
//===-- CommandUtil.cpp ---------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017 The PIVX developers // Copyright (c) 2019 The UFY developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionfilterproxy.h" #include "...
#include "helper.h" Helper::Helper(QObject *parent) : QObject(parent) { }
#include "scannerDisplay.h" namespace DisplayScan { // Define the extern variables: //PointBuffer displayBuffer1, displayBuffer2; P2 displayBuffer1[MAX_NUM_POINTS]; P2 displayBuffer2[MAX_NUM_POINTS]; volatile P2 *ptrCurrentDisplayBuffer, *ptrHiddenDisplayBuffer; uint16_t readingHead, newSizeBufferDisplay; // no need ...
/* * Edgecore DeviceManager * Copyright 2020-2021 Edgecore Networks, Inc. * * 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 * ...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemStructure_BaseRailing_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------...