text
stringlengths
7
961k
#include <unordered_map> #include <vector> #include <algorithm> using namespace std; class Solution { public: std::vector<int> intersection(vector<int>& nums1, std::vector<int>& nums2) { auto result = vector<int>(); auto& numsShorter = nums1.size() < nums2.size() ? nums1 : nums2; sort...
/* * 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...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_wchar_t_ncpy_73b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml Template File: sources-sink-73b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize data...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2007 Ferdinando Ametrano Copyright (C) 2007 Chiara Fornarola This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is f...
// HG::Utils #include <HG/Utils/Vertex.hpp>
/* * Code obtained from ... * * */ #include "notch.h" #include "autowah.h" #include <math.h> static short center_freq; static short samp_freq; static short counter; static short counter_limit; static short control; static short max_freq; static short min_freq; static short f_step; static br_filter H; static doubl...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercial Q...
#include "RotateRight.h" RotateRight* RotateRight::instance_ = NULL; RotateRight::RotateRight() { maxVertAngle_ = ( pi / 16 ); minVertAngle_ = ( -pi / 16 ); maxHorizAngle_ = ( pi / 8 ); minHorizAngle_ = ( -pi / 8); } RotateRight::~RotateRight() { } RotateRight* RotateRight::instance() { if( instance_ == NULL )...
// Copyright (c) 2018, The MKEcoin 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 of // ...
// main.cpp - Testing the IndexOf function. #include <iostream> #include <time.h> #include "indexof.h" using namespace std; int main() { // Fill an array with pseudorandom integers. const unsigned ARRAY_SIZE = 100000; const unsigned LOOP_SIZE = 30000; char* boolstr[] = {"false","true"}; long array[ARRAY_SIZE]...
/* * 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" fil...
#include <cstddef> #include <iostream> #include <iomanip> #include <vector> #include <string> #include <chrono> #include <random> #include <thread> #include <mutex> #include <memory> #include <limits> #include <cstdint> #include "FHE/FHE_Keys.h" #include "FHE/NTL-Subs.h" #include "Math/Setup.h" #include "FHE/NoiseBoun...
#pragma once #include "ompu/plug/app_fwd.hpp" #include "ompu/ui/all.hpp" #include <memory> namespace ompu { namespace plug { namespace game { class UISet { public: UISet() = default; ~UISet() = default; void init(App* app); UISet(UISet const&) = delete; UISet(UISet&&) = delete; UISet& op...
#ifndef __SVG_Handler_hpp__ #define __SVG_Handler_hpp__ 1 // ================================================================================================= // Copyright Adobe // Copyright 2015 Adobe // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with th...
#include <bits/stdc++.h> using namespace std; class MyStack{ private: int capacity, size, minimum; int* storage; public: MyStack(int capacity){ this->capacity = capacity; this->size = 0; this->storage = new int[capacity]; this->minimum = INT_MAX; } void push(...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * Copyright (c) 2021, the SerenityOS developers. * 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 o...
#ifndef FILM_COMPRESSOR_INCLUDED__ #define FILM_COMPRESSOR_INCLUDED__ #include "image.hpp" #include "framebuffer.hpp" #include "imgcompress.hpp" #include "compressor.hpp" #include <vector> #include <array> #include <bitset> #include <algorithm> #include <memory> #include "reader.hpp" #define VERBOSE using namespac...
#include "Node.h" namespace ARCSim { void compute_ws_data() { n = normal<WS>(this); Mat3x3 C(0), C0(0); double sum = 0; for (size_t v = 0; v < verts.size(); v++) { const vector<Face*>& adjfs = verts[v]->adjf; for (size_t i = 0; i < adjfs.size(); i++) { Face const* face = adjfs[i]; C += face->a ...
#include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "base58.h" #include "guiutil.h" #include "init.h" #include "main.h" #include "optionsmodel.h" #include "walletmodel.h" #include "wallet.h" #include <string> #include <vector> #include <QClipboard> Sign...
#include "service_node.h" #include "Database.hpp" #include "Item.hpp" #include "http_connection.h" #include "https_client.h" #include "lmq_server.h" #include "worktips_common.h" #include "worktips_logger.h" #include "worktipsd_key.h" #include "net_stats.h" #include "serialization.h" #include "signature.h" #include "ut...
/* * Copyright (C) 2003, 2006, 2013 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
__________________________________________________________________________________________________ 4ms class Solution { public: int numTrees(int n) { int d[n+1] = {0}; d[0] = 1; d[1] = 1; for (int i = 2; i <= n; ++i) { d[i] = 0; for (int k = 0; k <= i-1; ++k) ...
//***************************************************************************** // Copyright 2017-2021 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://w...
//MIT License // //Copyright(c) 2019 Alex Kasitskyi // //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, merg...
/* Copyright 2019 Diligent Graphics LLC * * 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 * * THE SOFTWARE IS PROVIDED "AS...
/* * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2008, 2009 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License versio...
import prof; #include <shared/defs.h> #include <shared/net/net.h> #include <ms/ms.h> #include "clients.h" using namespace tr; /* * CLIENT CLIENT */ client_sv::client_sv(ms* sv, SOCKET s, const std::string& ip) { this->sv = sv; this->ip = ip; si.s = s; server_type = false; future = std::async(std::launch::...
// // detail/kqueue_reactor.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2005 Stefan Arentz (stefan at soze dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy a...
//===----------------------------------------------------------------------===// // // Peloton // // drop_test.cpp // // Identification: test/executor/drop_test.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===----------------------------------------------------...
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "ktx.h" #include "SkBitmap.h" #include "SkStream.h" #include "SkEndian.h" #include "gl/GrGLDefines.h" #include "GrConfig.h" #include "etc1.h" static inline uint32_...
// Copyright 2013, James Mitchell, All rights reserved. #pragma once #include "../Types.hpp" #include "../string/Types.hpp" #include "../string/Segment.hpp" #include "../typetraits/CallTraits.hpp" #include "Matrix4x4.hpp" #include "Vector4D.hpp" namespace util { template <typename N> struct QuatN { ...
/*========================================================================= medInria Copyright (c) INRIA 2013 - 2020. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
/* // Copyright (c) 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 law or...
// Copyright (c) 2019 fortiss GmbH, Julian Bernhard, Klemens Esterle, Patrick Hart, Tobias Kessler // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #ifndef MODULES_MODELS_DYNAMIC_DYNAMIC_MODEL_HPP_ #define MODULES_MODELS_DYNAMIC_DYNAMIC_MODEL_HP...
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees ...
// 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 "components/favicon/core/favicon_database.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <string> #include <utilit...
#ifdef WITH_PYTHON_LAYER #include <boost/python.hpp> namespace bp = boost::python; #endif #include <gflags/gflags.h> #include <glog/logging.h> #include <map> #include <boost/algorithm/string.hpp> #include "caffe/caffe.hpp" #include "caffe/util/signal_handler.h" using caffe::TBlob; using caffe::Blob; using caffe::Ca...
/** * @file localfile.cpp * @brief Local File system version of BaseFile. * @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org) * @date 2007-06-25 * @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved. * @details */ #include "o3d/core/precompiled.h" #include "o3d/core/localfile.h" ...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// Copyright (c) 2009-2014 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
#include "Gui.hpp" #include "Graphics/Graphics.hpp" #include "Models/Shapes/ModelRectangle.hpp" #include "Maths/Visual/DriverConstant.hpp" namespace acid { Gui::Gui(UiObject *parent, const UiBound &rectangle, std::shared_ptr<Image2d> image, const Colour &colourOffset) : UiObject(parent, rectangle), m_model(ModelRe...
#include <iostream> #include "boost/graph/graph_utility.hpp" #include "boost/graph/graphviz.hpp" #include "boost/graph/isomorphism.hpp" #include "gtest/gtest.h" #include "phasar/Config/Configuration.h" #include "phasar/DB/ProjectIRDB.h" #include "phasar/PhasarLLVM/TypeHierarchy/LLVMTypeHierarchy.h" #include "phasar/...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The StoneCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcser...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2018 The Aisport developers // Distributed under the MIT software license, see the accompanying // file COPYING or ...
/* Minetest Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later ve...
/** * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <stdlib.h> #include <cstring> #include <fstream> #include <iomanip> #include <mutex> #inclu...
/**************************************************************************** * NxWidgets/libnxwidgets/include/nxconfig.hxx * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification,...
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
// ----------------------------------------------------------------------- // // Copyright (C) 2020 - David Fernández Castellanos // // This file is part of the MEPLS software. You can use it, redistribute // it, and/or modify it under the terms of the Creative Commons Attribution // 4.0 International Public License. ...
#include <cmath> #include <iomanip> #include <stdlib.h> #include <limits> #include <iostream> #include <cstdlib> using namespace std; bool almost_equal(float x, float y, int ulp) { return std::fabs(x-y) <= std::numeric_limits<float>::epsilon() * std::fabs(x+y) * ulp || std::fabs(x-y) < std::numeric_limits<float>::mi...
#include "hwxobj.h" #include "memmgr.h" #include "cmnhdr.h" #ifdef UNDER_CE // Windows CE Stub for unsupported APIs #include "stub_ce.h" #endif // UNDER_CE // implementation of CHwxStroke class CHwxStroke::CHwxStroke(BOOL bForward,long lSize = 32):CHwxObject(NULL) { m_bForward = bForward; m_nSize = lSize; ...
#include "PropCharGraphics.h" #include <Gfx/Event/GfxAddAttachment.h> #include <Gfx/Event/GfxRemoveAttachment.h> #include <Gfx/Event/GfxSetAnimation.h> //#include <Gfx/Event/gfxaddskin.h> //#include <Gfx/Event/gfxremskin.h> //#include <Gfx/Event/gfxsetcharacterset.h> #include <Game/Entity.h> #include <Gfx/GfxServer.h>...
/** * 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...
/** * @Author Karate Yuan * @Email haodong_yuan@163.com * @Date: 2020/5/29 */ #include <assert.h> #include <stdio.h> #include <time.h> #include "FileUtil.h" #include "LogFile.h" using namespace std; LogFile::LogFile(const string& basename, int flushEveryN) : basename_(basename), flushEveryN_(flushEver...
/* Copyright Hackers' Club, University Of Peradeniya Author : E/13/181 (Samurdhi Karunarathne) 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 re...
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_ParticleBank.hpp //! \author Alex Robinson //! \brief Particle bank base class declaration //! //---------------------------------------------------------------------------// #ifndef MONTE_CARLO_PARTICLE_BANK_HP...
#include "Rpch.h" #include "RComputePipeline.h" namespace At0::Ray { }
// Copyright (c) 2014-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 "coins.h" #include "random.h" #include "uint256.h" #include "test/test_pokemon.h" #include "main.h" #include "consen...
// The player class. #pragma once #include "Entity.hpp" class Player : public Entity { public: Player(DWORD base); void shoot(BOOL toggle); };
#include "tree_sitter/parser.h" #include <node.h> #include "nan.h" using namespace v8; extern "C" TSLanguage * tree_sitter_rampcode(); namespace { NAN_METHOD(New) {} void Init(Local<Object> exports, Local<Object> module) { Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(New); tpl->SetClassName(Nan::Ne...
#include<stdafx.h> /////////////////////////////////////////////////////////////////////////// ILC7Interface *CLC7CalibrationTableCell::GetInterfaceVersion(QString interface_name) { if (interface_name == "ILC7CalibrationTableCell") { return this; } return nullptr; } CLC7CalibrationTableCell::CLC7CalibrationTa...
/** * 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...
#include "Packets/Tag8.h" #include "Compress/Compress.h" #include "Message.h" namespace OpenPGP { namespace Packet { std::string Tag8::compress(const std::string & data) const { return Compression::compress(comp, data); } std::string Tag8::decompress(const std::string & data) const { return Compression::dec...
/* * Copyright (C) 2009 Google 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 of conditio...
/* * Copyright (c) 2011-2018, 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, p...
// $Id: StJets.cxx,v 1.4 2010/06/30 17:51:58 pibero Exp $ #include "StJet.h" #include "StJets.h" #include "TrackToJetIndex.h" #include "TowerToJetIndex.h" ClassImp(StJets); StJets::StJets() : mDylanPoints(0) , mSumEmcE(0) , mEventId(0) , mEventNumber(0) , mRunId(0) , mRunNumber(0) , mCorrupt(false) ,...
#include "audio.h" //============================================================================= // default constructor //============================================================================= Audio::Audio() { xactEngine = NULL; waveBank = NULL; soundBank = NULL; cueI = 0; mapWaveBank = NULL; // ...
#ifndef POTHOS_MPL_ACCUMULATE_HPP_INCLUDED #define POTHOS_MPL_ACCUMULATE_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2001-2004 // Copyright David Abrahams 2001-2002 // // 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...
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <algorithm> #include <cstdio> #include <cstring> #include <iterator> #include <OpenColorIO/OpenColorIO.h> #include "fileformats/FileFormatUtils.h" #include "ops/lut1d/Lut1DOp.h" #include "ops/lut3d/Lut3DOp.h" #inc...
#include "BlockModularActor.h" #include <Framework2D/Gameplay/Level.h> #include <Game/Game.h> #include "BlockFragmentActor.h" namespace Game { BlockModular::BlockModular(const std::string& Name, const Vec2& Position, BlockArr&& BlockArray) : Actor(Name, Position), BlockArray(std::move(BlockArray)), BlocksToDestr...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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. #include <wallet/db.h> #include <network/addrman.h> #include <hash.h> #include <...
#include "mainwindow.h" #include "table.h" #include <QtWidgets> MainWindow::MainWindow(QWidget *parent, QString path) : QMainWindow(parent) { setWindowTitle("Viatore di vie"); QWidget *center = new QWidget(this); QVBoxLayout *centerLayout = new QVBoxLayout(center); center->setLayout(centerLayout);...
#include "catch.hpp" #include <symengine/visitor.h> #include <symengine/eval_double.h> #include <symengine/parser.h> #include <symengine/polys/basic_conversions.h> #include <symengine/symengine_exception.h> using SymEngine::Basic; using SymEngine::Add; using SymEngine::Mul; using SymEngine::Complex; using SymEngine::...
/** * Copyright 2020-2021 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 applicabl...
#include "AWE/Ping/Ping.h" // --------------------------------------------------------------- // Core Includes #include "AWE/Core/Core.h" #include "AWE/Core/Thread.h" #include "AWE/Core/TimeConversion.h" // Socket Includes #include "AWE/Socket/DatagramProtocolHost.h" #include "AWE/Socket/ICMP.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 "ash/common/popup_message.h" #include "ash/common/wm_lookup.h" #include "ash/common/wm_window.h" #include "grit/ash_resources.h" #include "u...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
#ifndef EEPROM_93C46_HH #define EEPROM_93C46_HH #include "EmuTime.hh" #include "SRAM.hh" #include <climits> #include <string> namespace openmsx { class DeviceConfig; class XMLElement; class EEPROM_93C46 { public: static constexpr uint8_t ADDRESS_BITS = 7; static constexpr uint32_t NUM_ADDRESSES = 1 << ADDRESS_BIT...
/* * 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...
// ++RED #ifndef __TRACYDYNAMIC_HPP__ #define __TRACYDYNAMIC_HPP__ #ifndef TRACY_ENABLE #define TracyDynamicZoneBegin(l, s, f, c, n) #define TracyDynamicZoneEnd() #define TracyDynamicZoneText(t) #define TracyDynamicZonePseudo(line, source, func, color, name, startNs, endNs) #define TracyDynamicZoneName(n) #define Tra...
#pragma once #include <elle/reactor/duration.hh> #include <elle/reactor/Waitable.hh> namespace elle { namespace reactor { /// Operation is an abstract type of Waitable to provide the notion of /// operation to perform. A Thread waiting on an operation will be awaken /// when the Operation is done. ...
/* * Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved. * * 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 * t...
/* Copyright(c) 2016-2019 Panos Karabelas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
// Copyright 2016 The Chromium OS 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 <cstdio> #include <cstdlib> #include <base/at_exit.h> #include <base/format_macros.h> #include <base/logging.h> #include <base/message_loop/m...
#include "example.hpp" #include <stdio.h> void example() { printf("example()\n"); }
/* * W.J. van der Laan 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "util.h" #include "wallet.h" #include "ui_interface.h" #include "paymentserver.h" ...
/** * * Copyright (c) Microsoft Corporation. * All rights reserved. * * This code is licensed under the MIT License. * * 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, 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 to you under the Apache License, Version 2.0 (the * "License"); you may ...
/**************************************************************************** * Copyright (c) 2021, CEA * 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 retai...
#ifndef BOOST_MPL_REPLACE_IF_HPP_INCLUDED #define BOOST_MPL_REPLACE_IF_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // Copyright John R. Bandela 2000-2002 // Copyright David Abrahams 2003-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at...
#include "..\headers\tuts.hpp" #include "..\headers\consts.hpp" void TutorialGraphic::load_tutorial_texture(const std::string& path) { if (!texture.loadFromFile(path)) throw std::runtime_error("Cannot load " + path); texture.setSmooth(true); sprite.setTexture(texture); float scale = std::min<float>( (float...
//===--- GenDecl.cpp - IR Generation for Declarations ---------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Copyright (c) 2011 The TimberSaw Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/memtable.h" #include "db/dbformat.h" #include "TimberSaw/comparator.h" #include "TimberS...
#ifndef QUANTUM_GATE_ACCELERATORS_IBMIRTransformation_HPP_ #define QUANTUM_GATE_ACCELERATORS_IBMIRTransformation_HPP_ #include "Accelerator.hpp" #include "IRTransformation.hpp" #include "CNOT.hpp" #include "XACC.hpp" #include "IRProvider.hpp" #include "InstructionIterator.hpp" #include "GateFunction.hpp" #include "Had...
/*####################################################################################### Copyright (c) 2017-2019 Kasugaccho Copyright (c) 2018-2019 As Project https://github.com/Kasugaccho/DungeonTemplateLibrary wanotaitei@gmail.com Distributed under the Boost Software License, Version 1.0. (See accompanying f...
/* * Copyright 2010-2017 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" fil...
// File implement/oglplus/enums/texture_compare_mode_range.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/texture_compare_mode.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2019 Matus Chochlik. // Distributed under the Boo...
//===--- GenOpaque.cpp - Swift IR-generation for opaque values ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** * Contains code for random generators. * \file IceRandom.cpp * \author Pierre Terdiman * \date August, 9, 200...
// Copyright (c) 2015-2021 Daniel Cooke // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #include "octopus.hpp" #include <vector> #include <deque> #include <queue> #include <map> #include <set> #include <algorithm> #include <numeric> #include <memory> #include <function...