text stringlengths 7 961k |
|---|
#include <iostream>
#include <iomanip>
#include "color/color.hpp"
int main( int argc, char *argv[] )
{
::color::yuv< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double
::color::hsi< std::uint8_t > c1; //!< Instead of std... |
#ifndef FALCON_PARAMETER_PARAMETER_INDEX_HPP
#define FALCON_PARAMETER_PARAMETER_INDEX_HPP
#include <cstddef>
namespace falcon {
/// Stores a arguments of indices.
template<std::size_t... Indexes>
struct parameter_index
{};
template<std::size_t... Indexes>
struct __parameter_index
{
typedef __parameter_index<Index... |
/******************************************************************************
*
* layer.cpp
*
* MIT License
*
* Copyright (c) 2016 Kotone Itaya
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal i... |
// (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
// Howard Hinnant and John Maddock 2000.
// (C) Copyright Mat Marcus, Jesse Jones and Adobe Systems Inc 2001
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or c... |
// Copyright 2017 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 "ui/events/android/drag_event_android.h"
#include "base/android/jni_android.h"
using base::android::ScopedJavaLocalRef;
using base::android::Att... |
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "App.h"
#include "TerminalPage.h"
#include "../WinRTUtils/inc/WtExeUtils.h"
#include "../../types/inc/utils.hpp"
#include "Utils.h"
using namespace winrt::Windows::ApplicationModel::DataTransfer;
using namespace winr... |
#include <algorithm>
#include <iostream>
#include <numeric>
#include <optional>
#include <string>
#include <CLI/CLI.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <range/v3/view/enumerate.hpp>
#include <spdlog/sinks/null_sink.h>
#include <spdlog/sinks/std... |
/*
* Copyright 2014 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 applica... |
#include "x86box/x86box.h"
#include "jitemulator.h"
namespace x86box {
IEmulator* x86box::createEmulator()
{
return new JitEmulator();
}
} |
#include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "dialogwindowflags.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vecto... |
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2014-present
//
// Use, modification and distribution is 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)
//
// Project home: https://github.com/ericniebler... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzTest/AzTest.h>
#include <AzTest/Utils.h>
#include <AzQtComponents/Utilities/QtPlugin... |
#include <vector>
#include <iostream>
#include "lexer.h"
OpType toOp(Tok tok)
{
switch (tok)
{
case Tok::LT:
return OpType::LT;
case Tok::LTE:
return OpType::LTE;
case Tok::GT:
return OpType::GT;
case Tok::GTE:
return OpType::GTE;
... |
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/api/electron_api_cookies.h"
#include <memory>
#include <utility>
#include "base/time/time.h"
#include "base/values.h"
#include "content/public/browser/browser... |
// Copyright (c) 2012-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 <limitedmap.h>
#include <test/test_globalbitcoin.h>
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(... |
// Copyright (c) 2014-2016 Dropbox, 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 agr... |
// -*- mode: C++; tab-width: 4 -*-
// vi: ts=4
/*
* Copyright (c) 2010, Patrick A. Palmer and Leszek Godlewski.
* 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 s... |
//======================================================================
/*! \file initMongoClient.hpp
*
* \copydoc Copyright
* \author Kristian Bischoff (kb)
* \date Jun 11, 2016
*///-------------------------------------------------------------------
//=============================================================... |
#ifndef LM_MAX_ORDER_H
#define LM_MAX_ORDER_H
/* IF YOUR BUILD SYSTEM PASSES -DKENLM_MAX_ORDER_H, THEN CHANGE THE BUILD SYSTEM.
* If not, this is the default maximum order.
* Having this limit means that State can be
* (kMaxOrder - 1) * sizeof(float) bytes instead of
* sizeof(float*) + (kMaxOrder - 1) * sizeof(fl... |
/********************************************************************
*
* LIL Is a Language
*
* AUTHORS: Miro Keller
*
* COPYRIGHT: ©2020-today: All Rights Reserved
*
* LICENSE: see LICENSE file
*
* This file is a filter in a selector chain
*
***************************************... |
// Copyright (c) 2009-2017 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 <cstring>
#if HAVE_DECL_STRNLEN == 0
size_t s... |
// Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_math_FlxPoint
#include <flixel/math/FlxPoint.h>
#endif
#ifndef INCLUDED_flixel_tweens... |
// 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
namespace vc_attributes
{
template<>
struct length_isAttribute
{
const char *expression;
};
... |
#include "kanon/log/async_log.h"
#include "kanon/thread/thread_pool.h"
using namespace kanon;
#define NANOSECOND_PER_SECOND 1000000000
void frontThreadFunc() {
for (int i = 0; i != 100000; ++i)
LOG_INFO << "Async Test";
}
int main(int , char** argv) {
AsyncLog log(::basename(argv[0]), 20000 , "/root/.log/as... |
// Copyright 2019 The gVisor 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 agree... |
//
// shader.cpp
// libkge
//
// Created by kevin on 17-9-27.
//
//
#include "shader.h"
#include "util/byte_buffer.h"
#include "texture_format.h"
#include "texture2D.h"
#include "util/log.h"
#include "io/file_tool.h"
namespace kge
{
std::map<std::string, Ref<Shader>> Shader::_shaders;
std::map<std::string, Ref<... |
#include "PhysicsObject.h"
#include <glm/glm.hpp>
#include "Mesh.h"
#include "Shader.h"
#include "Force.h"
void PhysicsBody::Draw(const glm::mat4& viewMatrix, const glm::mat4& projectionMatrix) const
{
m_shader->Use();
//m_shader->SetUniform("model", ModelMatrix());
//m_shader->SetUniform("view", viewMatrix);
//... |
//====- X86CmovConversion.cpp - Convert Cmov to Branch --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// 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/ui/extensions/application_launch.h"
#include <string>
#include "apps/launcher.h"
#include "base/macros.h"
#include "base/me... |
/*
* Copyright (C) 2014-2016 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... |
//
// Created by rokas on 3/11/22.
//
#ifndef WUSEMEDIASERVER_CONFIG_HPP
#define WUSEMEDIASERVER_CONFIG_HPP
#include <string>
#include <tao/json.hpp>
class Config {
public:
void Open(std::string File);
tao::json::value Read();
bool Write(tao::json::value Data);
private:
std::s... |
/*
minimum no. of swaps needed to sort the array in ascending
order having integer in range 1 to N. For example:
array is 1 2 3 5 4 ,here it can be easily sorted by
swapping 5 and 4. Therefore, 1 swap needed here.
*/
#include<iostream>
using namespace std;
int min_swap_needed(int a[],int n)
{
int swap=0;
for(... |
#include <iostream>
#include <string>
#include "GameHandler.h"
#include "Util/Generator.h"
#include "Setting/Properties.h"
#include "Model/FigureType.h"
#include "Component/Figure.cpp"
#include "Component/Board.cpp"
#include "Component/Score.cpp"
#include "Input.cpp"
using namespace util;
using namespace setting;
/**... |
// Copyright 2020 The Beam Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2018 Baldur Karlsson
*
* 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... |
// Copyright (c) 2011 The LevelDB 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.
//
// A Status encapsulates the result of an operation. It may indicate success,
// or it may indicate ... |
/*
* Tencent is pleased to support the open source community by making GameAISDK available.
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
* Copyright (C) 2020... |
#ifndef MESSAGE_HPP_
#define MESSAGE_HPP_
#include "messaging.hpp"
#include <stdlib.h>
#ifdef __ARM__
#include <string>
#include <sstream> // std::ostringstream
#include <stdio.h>
#endif
using callback = void (*)(void*, void*,uint16_t);
namespace PeripheralMessages {
struct PayloadHeader
{
MessageId mMessageI... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 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 "Soft... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
#include "Factory/RJointFactory.h"
URJoint* URJointFactory::Load(UObject* InOuter, USDFJoint* InJointDescription)
{
if(!InOuter && !InJointDescription)
{
return nullptr;
}
JointBuilder = CreateBuilder(InJointDescription);
if(!JointBuilder)
{
return nullptr;
}
else
{
UE_LOG(LogT... |
/*
* 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 of source code must retain the above copyright notice, this
* ... |
/*
+----------------------------------------------------------------------+
| Open Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... |
/*
* Copyright 2017-2018 Leonid Yuriev <leo@yuriev.ru>
* and other libmdbx authors: please see AUTHORS file.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this licens... |
/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <uavcan/transport/transfer_sender.hpp>
#include <uavcan/debug.hpp>
#include <cassert>
namespace uavcan
{
void TransferSender::registerError() const
{
dispatcher_.getTransferPerfCounter().addError();
}
void TransferSender::init(cons... |
/*
Copyright 2013 KLab 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 in wri... |
// Copyright 2014 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.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "fpdfsdk/pdfwindow/PWL_FontMap.h"
#include "core/fpdfapi/fpdf_font/i... |
// Copyright (c) 2011-2013 Thomas Heller
//
// 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 JACOBI_SMP_JACOBI_HPP
#define JACOBI_SMP_JACOBI_HPP
#include <vector>
#include <string>
#include <iostream>
#i... |
//===--- GenHeap.cpp - Layout of heap objects and their metadata ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The BALLCOIN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "consensus/tx_verify.h"
#include "key.h"
#include "keystore.h... |
/*
* This file is part of pyQBDI (python binding for QBDI).
*
* 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/LICENS... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2018-2020 The Ion Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "merkleblock.h"
#inc... |
#include "mathematica/retrobop_dynamical_stability.hpp"
#include <algorithm>
#include <array>
#include <fstream>
#include <list>
#include <map>
#include <memory>
#include <random>
#include <string>
#include <vector>
#include "astronomy/stabilize_ksp.hpp"
#include "base/array.hpp"
#include "base/bundle.hpp"
#include... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... |
#include "ScoreTestFunctions.h"
#include "TestObject.h"
#include "Group.h"
#include "../Math/Math.h"
#include "../Log.h"
VectorXd getScoreVector(VectorXd& Ycenter, MatrixXd& X) {
int nsnp = X.cols();
VectorXd score(nsnp);
for(int i = 0; i < nsnp; i++)
score[i] = Ycenter.dot(X.col(i));
return s... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/backends/SubgraphView.hpp>
namespace armnn
{
class OptimizationViews
{
public:
OptimizationViews() = default;
OptimizationViews(const OptimizationViews&) = delete;
OptimizationViews& oper... |
/* Simple sketch to plot an 511 Bin FFT on SerialPlot
Author: Jonathan Davies
Date: 14/09/21
Version: 1.0
Simple 2 tone mixed signal into 1024 FFT to demonstrate plotting on SerialPlot on Teensy Audio
Uses SerialPlot to graph it on the output https://bitbucket.org/hyOzd/serialplot/src/default... |
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The NXBoost & Bitfineon developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "accumulatormap.h"
#include "accumulators.h"
#include "main.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 may ... |
#include "../program_options.hpp"
#include "../common.hpp"
using namespace std;
using namespace crab::analyzer;
using namespace crab::cfg;
using namespace crab::cfg_impl;
using namespace crab::domain_impl;
/* Example of how to build a CFG */
z_cfg_t* prog1 (variable_factory_t &vfac) {
// Defining program variable... |
//
// Created by Aleksey Timin on 12/4/19.
//
#include "CipString.h"
namespace eipScanner {
namespace cip {
}
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_long_realloc_53a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-53a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/*
* 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 ... |
// (C) Copyright 2017, Google 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 in writing,... |
/*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... |
#pragma once
#include <iostream>
#include <windows.h>
#include <conio.h>
#include <tchar.h>
#include <intrin.h>
#include <d3d9.h>
#include <iomanip>
#include <vector>
#include <map>
#pragma comment(lib, "d3d9.lib")
#pragma warning(disable : 4200)
#define out_of_spec "OUT OF SPEC"
namespace smbios
{
enum dmi_ent... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2013 Patrick Reynolds <piki@github.com>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser/linux/notification_presenter_linux.h"
#incl... |
/**
* @file proto.cpp
* @brief Utility function for dealing with protocol buffer object
* @ingroup core
*
* @author Christophe Ecabert
* @date 01.03.18
* Copyright © 2018 Christophe Ecabert. All rights reserved.
*/
#include <vector>
#include "facekit/core/utils/proto.hpp"
/**
* @namespace FaceK... |
/*
GUIDO Library
Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
Copyright (C) 2002-2013 Grame
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/.
Grame ... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
//
// Created by flow on 2020-09-10.
//
#include <Games/Game.hpp>
#include <hyperGuess/Games/Game.hpp>
using namespace hyperguess;
void AddGame(pybind11::module &m)
{
pybind11::class_<Game>(m, "Game").def(pybind11::init<int>());
} |
#include <iostream>
int main() {
std::cout << "Hello, World!\n";
} |
/******************************************************************************
* Copyright (c) 2016, Xilinx, 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. Redistributio... |
// Headers should be in this folder
#pragma once
#include <string>
const std::string message = "Hello, World!"; |
/*
* Copyright (c) 2012 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... |
#pragma once
#if defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#define _USE_MATH_DEFINES
#include <Windows.h>
#include <process.h>
#else
#include <fcntl.h>
#include <sys/stat.h>
#include <mqueue.h>
#endif
#if defined(__GNUC__)
#define __cdecl __attribute__((cdecl))
#defi... |
// This file is part of RegSeg
//
// Copyright 2014-2017, Oscar Esteban <code@oscaresteban.es>
//
// 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 ... |
#ifndef RBX_LLVM_INLINE_POLICY_HPP
#define RBX_LLVM_INLINE_POLICY_HPP
#include "vmmethod.hpp"
#include "instructions_util.hpp"
namespace rubinius {
class InlineEvaluator : public VisitInstructions<InlineEvaluator> {
public:
class Unsupported {};
static bool can_inline_p(VMMethod* vmm) {
// Reject ... |
#include "qlazerdriveplayer.h"
QLazerDrivePlayer::QLazerDrivePlayer(const uint &id, const QString &name, const uint &r, const uint &g, const uint &b, const uint &score)
{
m_id = id;
m_name = name;
m_r = r;
m_g = g;
m_b = b;
m_score = score;
}
uint QLazerDrivePlayer::id() const
{
return m_i... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
// 07-span.cpp : convert different container types to span and print them out
#include <iostream>
#include <span>
#include <array>
#include <vector>
#include <string_view>
using namespace std;
void print_ints(span<int> s) {
for (auto sep{ ""sv }; auto& e : s) {
cout << sep << e;
sep = ", "sv;
... |
/*******************************************************************************
* Copyright 2020-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://www.apa... |
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "graph/RandomWalkExecutor.h"
#include <boost/functional/hash.hpp>
#include "base/Base.h"
#include "dataman/Resu... |
/* Copyright 2016 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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2014-2019 The DigiByte Core developers
// Copyright (c) 2014-2019 The Auroracoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org... |
#include "Avion.h"
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <SDL_keycode.h>
Avion::Avion(Ogre::SceneNode* rootNode) : EntidadIG(rootNode->createChildSceneNode("Avion"))
{
Ogre::Entity* ent;
//Crear cuerpo
ent = mSM->createEntity("sphere.mesh");
ent->setMaterialName("Practica1/rojo");
cuerpo... |
/*
* Copyright (C) 2010 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... |
#include "ObjectDefinitions.h"
ObjectDefinitions* ObjectDefinitions::mInstance=0;
void ObjectDefinitions::Create(std::string& filename)
{
//create singleton
mInstance= new ObjectDefinitions(filename);
}
void ObjectDefinitions::Destroy()
{
}
ObjectDefinitions::ObjectDefinitions(std::string& filename)
{
//lo... |
/*############################################################################
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#include "api/test_bitstreams.h"
unsigned int test_bitstream_96x64_10bit_hevc::p... |
#include "transaction_construction_info.h"
using namespace std;
namespace Scala {
TransactionConstructionInfo::~TransactionConstructionInfo() = default;
TransactionConstructionInfo::Input::Input(uint64_t _amount, const std::string &_pubkey)
: amount(_amount), pubkey(_pubkey) {}
TransactionCo... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#inc... |
#include <pybind11/detail/common.h>
#include <pybind11/pytypes.h>
#include <torch/csrc/jit/api/object.h>
#include <torch/csrc/jit/python/script_init.h>
#include <caffe2/serialize/versions.h>
#include <torch/csrc/Device.h>
#include <torch/csrc/DynamicTypes.h>
#include <torch/csrc/jit/api/module.h>
#include <torch/csrc/... |
/*
* Copyright (c) 2021-2022, NVIDIA 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... |
// 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 "remoting/client/audio_decode_scheduler.h"
#include <utility>
#include "base/bind.h"
#include "base/location.h"
#include "base/macros.h"
#i... |
/****************************************************************************
*
* Copyright (c) 2015 Mark Charlebois. 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. Redistributio... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#if (_MSC_FULL_VER < 180031101)
#error At least Visual Studio 2013 Update 4 is required to compile this backend
#endif
#include "mf-backend.h"
#include "mf-uvc.h"
#include "mf-hid.h"
#include "u... |
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(){
const string map[]{"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
string N;
cin >> N;
int sum = 0;
for(auto c : N){
sum += c - '0';
}
string num_str = to_string(sum);
// cout << num_s... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.