text stringlengths 5 1.04M |
|---|
/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.8)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... |
// Copyright 2012 Cloudera 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 wr... |
#pragma once
#include "Common.hpp"
namespace ib {
using Offset = intptr_t; // size_t can't be negative
class Addr {
public:
Byte* p;
Addr(void* p) : p((Byte*)p) { }
Addr(uintptr_t p) : p((Byte*)p) { }
template<typename T>
operator T*() const {
return... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... |
// 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... |
/*
* Part of WCM Commander
* https://github.com/corporateshark/WCMCommander
* wcm@linderdaum.com
*/
#include <algorithm>
#include <wal.h>
#include "wcm-config.h"
#include "color-style.h"
#include "string-util.h"
#include "vfs.h"
#include "fontdlg.h"
#include "ncfonts.h"
#include "ncwin.h"
#include "ltext.h"
#incl... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItemConsumable_Egg_Allo_Gen2_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//--------------------------------------... |
#include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t numeric_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.name=tsc("mai_NP"),.encoding=tsc(FAST_IO_LOCALE_ENCODING),.title=tsc("Maithili language locale for Nepal"),.source=tsc("Samsung Electronic... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/nuphar/kernel.h"
#include "core/codegen/passes/utils/codegen_context.h"
#include "core/codegen/common/profile.h"
#include "core/framework/tensorprotoutils.h"
#include "core/providers/nuphar/common/... |
#include <sal/__bits/platform_sdk.hpp>
#include <sal/net/__bits/socket.hpp>
#if __sal_os_macos || __sal_os_linux
#include <fcntl.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <unistd.h>
#elif __sal_os_windows
#include <mutex>
#endif
__sal_begin
namespace net::__bits {
#if __sal_os_windows // {{{... |
/* Copyright 2015 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) 2016 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... |
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodat... |
#include<iostream>
using namespace std;
int main() {
int n, ix, f0, f1, aux;
cout << "Ingrese un numero: ";
cin >> n;
f0 = ix = 0;
f1 = 1;
while(ix <= n) {
if(ix == 0 || ix == 1) {
cout << ix << " --> " << ix << endl;
} else {
aux = f0 + f1;
... |
// 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: UnityEngine.TestTools... |
/*
Copyright 2021 MacKenzie Strand
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... |
/*
* ViaStation.hpp
*
* Created on: 2-apr.-2013
* Author: Sam
*/
#ifndef VIASTATION_HPP_
#define VIASTATION_HPP_
#include <QObject>
#include <QDateTime>
class ViaStation : public QObject {
Q_OBJECT
Q_SIGNALS:
void nameChanged(const QString &name);
void directionChanged(const QStri... |
//-*****************************************************************************
// Copyright (c) 2001-2013, Christopher Jon Horvath. 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. Redi... |
/* Copyright (c) 2018 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 "common/base/Base.h"
#include "common/base/SignalHandler.h"
#include "common/webservice/Router.h"
#include "com... |
/*Unary is a minimalistic Brainfuck dialect in which programs are written using
only one token.
Brainfuck programs use 8 commands: "+", "-", "[", "]", "<", ">", "." and ","
(their meaning is not important for the purposes of this problem). Unary
programs are created from Brainfuck programs using the following alg... |
#ifndef CHAIN_HANDLER_HPP
#define CHAIN_HANDLER_HPP
#include "handler.hpp"
namespace coap {
template<class First, class Second>
class ChainHandler : public Handler {
protected:
First& _first;
Second& _second;
public:
ChainHandler(First& first, Second& second)
: _first(first), _second(second) {
}
inl... |
#pragma once
#include <vector>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include "Object3D.hpp"
#define PI 3.1415927f
void printVec(glm::vec3 v);
void addDebugVector(Mesh& mesh, const glm::vec3 start, const glm::vec3 end, const glm::vec4 color);
const glm::vec3 ClosestCirlePoint(const glm::vec3 mid, const float... |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
// https://www.reddit.com/r/dailyprogrammer/comments/4xy6i1/20160816_challenge_279_easy_uuencoding/
// INCOMPLETE
string decToBinaryString(int de... |
// Copyright (c) 2020 The Widecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <chainparamsbase.h>
#include <net.h>
#include <net_permissions.h>
#include <netaddress.h>
#incl... |
#include <bits/stdc++.h>
#define lc (rt<<1)
#define rc (rt<<1|1)
#define nl (tree[rt].l)
#define nr (tree[rt].r)
#define m ((nl+nr)>>1)
#define gc getchar_unlocked()
#define pc(x) putchar_unlocked(x)
template<typename T> void scan(T &x) {x = 0;register bool _=0;register T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57... |
#include "driver.h"
extern "C" __declspec( dllexport ) UINT_PTR DriverControl( ULONG uCode, UINT_PTR uParam1, UINT_PTR uParam2, UINT_PTR uParam3 )
{
UNREFERENCED_PARAMETER( uParam1 );
UNREFERENCED_PARAMETER( uParam2 );
UNREFERENCED_PARAMETER( uParam3 );
DbgPrint( "control code: %d\n", uCode );
// Main switch st... |
/**
* 3.4.1 使用迭代器
* @Author Bob
* @Eamil 0haizhu0@gmail.com
* @Date 2017/7/24
*/
#include <string>
#include <vector>
#include <iostream>
using std::string;
using std::vector;
using std::cout; using std::endl;
int main() {
vector<string> v;
auto b = v.begin(), e = v.end(); // begin 获取指向第一个元素的迭代器,end获取尾元素下一个位... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "rdb_protocol/terms/terms.hpp"
#include <algorithm>
#include <map>
#include <string>
#include "clustering/administration/admin_op_exc.hpp"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
#include "rdb_protocol/datum_stream.hpp"
#include... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2001-2011 Hartmut Kaiser
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... |
//===- InstCombineVectorOps.cpp -------------------------------------------===//
//
// 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) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#define BOOST_TEST_MODULE unity Test Suite
#include "main.h"
#include "random.h"
#include "txdb.h"
#include "ui_interfac... |
/*******************************************************************************
* This file was auto-generated using the AutoGemm.py python script.
* DO NOT modify this file! Instead, make changes to scripts in
* clBLAS/src/library/blas/AutoGemm/ then re-generate files
* (otherwise local changes will be lost a... |
/**
* @file
* @copyright defined in eos/LICENSE
*/
#include <eosio/http_plugin/http_plugin.hpp>
#include <eosio/http_plugin/local_endpoint.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/thread_utils.hpp>
#include <fc/network/ip.hpp>
#include <fc/log/logger_config.hpp>
#include <fc/reflect/varian... |
/*
* 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... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h"
#include "base/json/json_writer.h"
#include "base/string16.h"
#include "base/s... |
// Copyright Daniel Wallin 2009. 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)
#ifndef LUABIND_DETAIL_MAKE_INSTANCE_090310_HPP
# define LUABIND_DETAIL_MAKE_INSTANCE_090310_HPP
# in... |
/*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef CORE_TIMER_DECL_HPP
#define CORE_T... |
// Copyright (c) 2015 Matthias Noack (ma.noack.pr@gmail.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)
#include "common.hpp"
// NOTE: real_vec_t maps to a C++ equivalent to OpenCLs vector types
// NOTE: t... |
/*
* Fledge OSI Soft OMF interface to PI Server.
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: Massimiliano Pinto
*/
#include <utility>
#include <iostream>
#include <string>
#include <cstring>
#include <omf.h>
#include <OMFHint.h>
#include <logger.h>
#include <zl... |
/*
See LICENSE file in root folder
*/
#ifndef ___C3D_MeshLightPass_H___
#define ___C3D_MeshLightPass_H___
#include "LightPass.hpp"
namespace castor3d
{
class MeshLightPass
{
public:
static ShaderPtr getVertexShaderSource();
};
}
#endif
|
#include <Python.h>
#include <iostream>
#include <ackward/logging/Initialize.hpp>
#include <ackward/logging/Logger.hpp>
#include <ackward/logging/LogRecord.hpp>
#include <ackward/logging/Module.hpp>
#include <ackward/logging/UserHandler.hpp>
using namespace ackward::logging;
struct ExampleHandlerImpl
{
void emi... |
// 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/chromeos/file_manager/url_util.h"
#include "base/json/json_writer.h"
#include "base/values.h"
#include "chrome/browser/chrom... |
//
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
#include <algorithm>
#include <memor... |
// 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 <xpp/event.hpp>
#include "x11/connection.hpp"
#include "x11/extensions/all.hpp"
#include "x11/registry.hpp"
POLYBAR_NS
registry::registry(connection& conn) : xpp::event::registry<connection&, XPP_EXTENSION_LIST>(conn) {}
POLYBAR_NS_END
|
/*
* 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
... |
// Copyright (c) 2017 The Dash Core developers
// Copyright (c) 2020 The SEED2NEED Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "tiertwo/specialtx_validation.h"
#include "chain.h"
#include "chainpar... |
#ifndef BOOST_METAPARSE_V1_FAIL_AT_FIRST_CHAR_EXPECTED_HPP
#define BOOST_METAPARSE_V1_FAIL_AT_FIRST_CHAR_EXPECTED_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost... |
/* -------------------------------------------------------------------------- *
* OpenSim: AbstractTool.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using Pii = pair<int, int>;
using Pll = pair<LL, LL>;
using VI = vector<int>;
using VP = vector<pair<int, int>>;
#define rep(i, a, b) for (auto i = (a); i < (b); ++i)
#define rev(i, a, b) for (auto i = (b - 1); i >= (a); --i)
#define grep(i, u) for (au... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h"
#include <sys/statvfs.h>
#include "base/posix/eintr_wrapper.h"
#inc... |
#include <windows.h>
#include <multimon.h>
static void getViewport(RECT *r, POINT *p, RECT *sr, HWND wnd, int full) {
if (p || sr || wnd) {
HINSTANCE h=LoadLibrary("user32.dll");
if (h) {
HMONITOR (WINAPI *Mfp)(POINT pt, DWORD dwFlags) = (HMONITOR (WINAPI *)(POINT,DWORD)) GetProcAddress(h,"MonitorFromP... |
//=================================================================================================
/*!
// \file src/mathtest/smatsmatadd/MIaUCa.cpp
// \brief Source file for the MIaUCa sparse matrix/sparse matrix addition math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file... |
#include "lazy_value.h"
#include <library/unittest/registar.h>
Y_UNIT_TEST_SUITE(TLazyValueTestSuite) {
Y_UNIT_TEST(TestLazyValue) {
TLazyValue<int> value([]() {
return 5;
});
UNIT_ASSERT(!value);
UNIT_ASSERT_EQUAL(*value, 5);
UNIT_ASSERT(value);
}
Y_UN... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#ifndef STAN_MATH_REV_FUN_TYPEDEFS_HPP
#define STAN_MATH_REV_FUN_TYPEDEFS_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
namespace stan {
namespace math {
using size_type = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>::Index;
/**
* The type ... |
/*
* Copyright 2019 Azavea
*
* 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 wr... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2020-2021 The The Masternode Hype Coin Exchange developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opens... |
/// \file MppDictionary2D.cpp
/// \brief MppDictionary2D class
/// \author Sylvain Prigent
/// \version 0.1
/// \date 2018
#include "MppDictionary2DCircle.h"
#include "MppShapeCircle.h"
MppDictionary2DCircle::MppDictionary2DCircle(unsigned int min_r, unsigned int max_r, unsigned int step){
m_min_r = min_r;
m... |
/* src/common/port/inet_aton.cpp
*
* This inet_aton() function was taken from the GNU C library and
* incorporated into Postgres for those systems which do not have this
* routine in their standard C libraries.
*
* The function was been extracted whole from the file inet_aton.c in
* Release 5.3.12 of the Linux C... |
#include <algorithm>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/bias_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypePar... |
#include "absl/strings/internal/str_format/parser.h"
#include <string.h>
#include "gtest/gtest.h"
#include "absl/base/macros.h"
namespace absl {
namespace str_format_internal {
namespace {
TEST(LengthModTest, Names) {
struct Expectation {
int line;
LengthMod::Id id;
const char *name;
};
const Expe... |
/** @file
VfrCompiler main class and main function.
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this ... |
/*************************************************************************
*
* Copyright (c) 2015-2019, Klaralvdalens Datakonsult AB (KDAB)
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************... |
/*
All modification made by Cambricon Corporation: © 2018 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2018, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and use in ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_connect_socket_82_goodG2B.cpp
Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 680 Integer Overflow to ... |
/**
@file SVD.cpp
@author t-sakai
@date 2017/06/02 create
*/
#include "SVD.h"
#include <stdio.h>
#include <limits>
#include "Householder.h"
#include "QR.h"
namespace lmath
{
DiagonalVector::DiagonalVector()
:rows_(0)
,cols_(0)
,x_(NULL)
{}
DiagonalVector::DiagonalVector(s32 rows, s... |
#include "TriCollector.h"
#include <algorithm>
#include "RenderTarget.h"
#include "Camera.h"
#include <iostream>
TriCollector::TriCollector()
{
}
void TriCollector::SubmitMesh(const Mesh& mesh, const Camera* cam)
{
const std::vector<Vertex>& verticesToSubmit = mesh.GetVertices();
const std::vec... |
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "db.h"
#include "init.h"
#include "main.... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "base.hpp"
#include <vector>
#include <ngraph/opsets/opset2.hpp>
using namespace MKLDNNPlugin;
namespace InferenceEngine {
namespace Extensions {
namespace Cpu {
class ReorgYoloImpl: public ExtLayerBase {
public:
boo... |
#pragma once
#include <nlohmann/json.hpp>
struct SPedComponentVariationData {
int ComponentId;
int DrawableId;
int TextureId;
int PaletteId;
};
inline void to_json(nlohmann::ordered_json& j, const SPedComponentVariationData& componentVariationData) {
j = nlohmann::ordered_json{
{ "Componen... |
#include "activemasternode.h"
#include "addrman.h"
#include "masternode.h"
#include "masternodeconfig.h"
#include "masternodeman.h"
#include "protocol.h"
#include "spork.h"
#include "chainparams.h"
// Bootup the Masternode, look for a 10000 WILO input and register on the network
//
void CActiveMasternode::ManageStat... |
#include <gtest/gtest.h>
#include <thrust/complex.h>
#include <thrust/device_vector.h>
#include "gtensor/thrust_ext.h"
using namespace thrust::ext;
TEST(thrust_ext, is_device_reference)
{
using D = thrust::device_reference<double>;
using T = int;
static_assert(is_device_reference<D>::value, "is_device_refer... |
#pragma once
#include <Quasar/Core/Base.hpp>
#include <Quasar/Scene/Scene.hpp>
#include <Quasar/Scene/Entity.hpp>
namespace Quasar
{
class SceneHierarchyPanel
{
private:
Ref<Scene> m_Context;
Entity m_SelectionContext;
void drawEntityNode(Entity entity);
void drawComp... |
// Copyright (c) 2018-2019 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "deterministicmns.h"
#include "providertx.h"
#include "specialtx.h"
#include "base58.h"
#include "chainparams.h"
#incl... |
//============ Copyright (c) Valve Corporation, All rights reserved. ==========
//
// Function which do validation tests on UVs values at the s_source_t level
//
//=============================================================================
#include "tier1/fmtstr.h"
#include "tier1/utlmap.h"
#include "studiomdl.h"... |
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/compiler/frontend/kernel_to_il.h"
#include "platform/assert.h"
#include "platform/globals... |
// App.cpp : Defines the entry point for the application.
//
#include "App.h"
// NOMINMAX to prevent compilation errors with bgfx
#define NOMINMAX
#include <Windows.h>
#undef NOMINMAX
#include <Windowsx.h>
#include <Shlwapi.h>
#include <filesystem>
#include <algorithm>
#include <Shared/TestUtils.h>
#include <Babylon... |
#include "ArTrieNode.h"
|
#include <iostream>
#include <forward_list>
#include <list>
using std::cout;
using std::endl;
using std::forward_list;
using std::list;
int main()
{
forward_list<int> fi = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
list<int> li = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
auto fiter_prev = fi.before_begin();
auto fiter =... |
#ifndef NCBI_WIN_HOOK__HPP
#define NCBI_WIN_HOOK__HPP
/* $Id: ncbi_win_hook.hpp 403742 2013-06-18 15:26:09Z grichenk $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
... |
/*
* Copyright (c) 2003-2021 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/** \file GuiI... |
#include "Rand.h"
std::mt19937 generator = std::mt19937(uint(time(NULL)));
//Uniform Random Floating Point Number
float GetDistribution(std::uniform_real_distribution<float> distro) {
return distro(generator);
}
//Uniform Random Integer
int GetDistribution(std::uniform_int_distribution<int> distro) {
return dis... |
/* Copyright (c) 2020 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 "common/base/Base.h"
#include "common/charset/Charset.h"
#include "common/expression/ConstantExpression.h"
#inc... |
#include "Runtime/World/CScriptMemoryRelay.hpp"
#include "Runtime/CRelayTracker.hpp"
#include "Runtime/CStateManager.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path
namespace urde {
CScriptMemoryRelay::CScriptMemoryRelay(TUniqueId uid, std::string_view name, const CEntityInfo& info, bool d... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/connect/model/DescribeContactFlowResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===---------------------------------... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
/// \cond
class DataVector;
template <size_t Dim>
class Index;
class Matrix;
template <size_t Dim>
class Mesh;
/// \endcond
namespace evolution::dg::subcell::fd {
/*!
* \ingroup DgSubcellGroup
* \brief Computes th... |
// 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 "ui/views/controls/message_box_view.h"
#include "base/i18n/rtl.h"
#include "base/message_loop.h"
#include "base/strings/string_split.h"
#inc... |
// 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)
//
// (C) Copyright 2019 Vicente J. Botet Escriba
#ifndef JASEL_EXPERIMENTAL_FLAT_MAP_HPP
#define JASEL_EXPERIMENTAL_FLAT_MAP_HPP
#include <experimental/fundament... |
// Copyright (c) 2011-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 "utilstrencodings.h"
#include "test/test_cic.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(base6... |
//
// Created by YANG Zehai on 2021/11/24.
//
#include "AST/IndexVisit.h"
using namespace pur;
using namespace pur::ast;
IndexVisit::IndexVisit(const pars::Location& location, Expr& index):
Expr(ASTNodeType::kIndexVisit, location), mIndex(&index) {
/* empty */
}
Expr& IndexVisit::GetOwner() {
return *mOwner;
}
... |
//
// Created by roman on 4/6/18.
//
#ifndef KEYCHAINAPP_CMD_PARSER_HPP
#define KEYCHAINAPP_CMD_PARSER_HPP
#include <boost/program_options.hpp>
#if (defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)) && !defined(_CRAYC)
#define LINUX
#elif defined(_WIN32) || defin... |
/*
* Copyright 2013-2020 Automatak, LLC
*
* Licensed to Green Energy Corp (www.greenenergycorp.com) and Automatak
* LLC (www.automatak.com) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Green Energy C... |
/*
Copyright (c) 2007 Cyrus Daboo. 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 re... |
// Copyright John Maddock 2007.
// Copyright Paul A. Bristow 2007, 2009
// 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)
#ifndef BOOST_STATS_PARETO_HPP
#define BOOST_STATS_PAR... |
#ifndef FTXUI_COMPONENT_HPP
#define FTXUI_COMPONENT_HPP
#include <functional> // for function
#include <memory> // for shared_ptr, make_shared
#include <string> // for wstring
#include <vector> // for vector
#include "ftxui/component/component_base.hpp"
#include "ftxui/dom/elements.hpp" // for Eleme... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <CppUnitTest.h>
#include <IWebSocketResource.h>
#include <Test/WebSocketServer.h>
#include <unicode.h>
// Windows API
#include <TlHelp32.h>
#include <Windows.h>
// Standard library includes
#include <math.h>
#include <a... |
/*
* Raspberry Pi PIC Programmer using GPIO connector
* https://github.com/WallaceIT/picberry
* Copyright 2014 Francesco Valla
*
*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.