text stringlengths 7 961k |
|---|
/**
* \file QryWznmMchAPar_blks.cpp
* job handler for job QryWznmMchAPar (implementation of blocks)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace Sbecore;
using names... |
//===- SPIRVWriter.cpp - Converts LLVM to SPIR-V ----------------*- C++ -*-===//
//
// The LLVM/SPIR-V Translator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
// Copyright (c) 2014 Advanced Micro Devices, Inc. All rights rese... |
#include "qaliasdictionarytests.h"
QAliasDictionaryTests::QAliasDictionaryTests(QObject *parent) : QObject(parent)
{
}
void QAliasDictionaryTests::basicTests()
{
QAliasDictionary dictionary;
QVERIFY(dictionary.isEmpty());
dictionary.addAlias("name", "alias");
dictionary.addAlias("name", "alias2");
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_memmove_66b.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml
Template File: sources-sink-66b.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate me... |
//
// 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 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will... |
#include <lang/Long.h> |
//! @Alan
//!
//! Exercise 9.51:
//! Write a class that has three unsigned members representing year,
//! month, and day. Write a constructor that takes a string representing
//! a date. Your constructor should handle a variety of date formats,
//! such as January 1, 1900, 1/1/1900, Jan 1, 1900, and so on.
//!
#includ... |
#ifndef PAIR_HASH_HPP
#define PAIR_HASH_HPP
#include <tuple>
#include <cstdlib>
namespace std
{
namespace
{
// Code from boost:
template <class T>
inline void hash_combine(std::size_t& seed, T const& v)
{
seed ^= hash<T>()(v) + 0x9e3779b9 + (seed<<6) + (... |
// File implement/oglplus/enums/ext/debug_severity_range.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/debug_severity.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2017 Matus Chochlik.
// Distributed under the Boost S... |
/**
* 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 "pin.H"
PIN_MUTEX mtx;
int key;
void trace_analyze( void )
{
PIN_MutexLock( &mtx );
if( key )
key = 0;
PIN_MutexUnlock( &mtx );
}
void trace_instrument( TRACE trace, VOID *v )
{
TRACE_InsertCall( trace, IPOINT_BEFORE, trace_analyze, IARG_END );
}
int main(int argc, char *argv[])
{
... |
/*
See LICENSE file in root folder
*/
#ifndef ___CASTOR_UNICITY_EXCEPTION___
#define ___CASTOR_UNICITY_EXCEPTION___
#include "CastorUtils/Design/DesignModule.hpp"
#include "CastorUtils/Exception/Exception.hpp"
namespace castor
{
/**
\author Sylvain DOREMUS
\version 0.8.0
\date 12/01/2016
\~english
\brief Un... |
// Copyright 2014 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "bucket/Bucket.h"
#include "bucket/BucketList.h"
#include "bucket/BucketManager.h"
#in... |
#include "catch.hpp"
#include <math/Curves/CardinalCubic.h>
using namespace ad::math;
constexpr double gEpsilon{0.000001};
SCENARIO("Cardinal Cubic curve API.")
{
GIVEN("A cardinal cubic curve with no tension")
{
Position<2> a{-100., -60.};
Position<2> b{ -20., 20.};
Position<2... |
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
// 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: HoudiniEngineUnity.Te... |
#include <iostream>
using std::cout;
using std::left;
using std::right;
#include <iomanip>
using std::setw;
#include <cstdlib> // rand and srand
#include <ctime> // prototype for time
// prototype
void shuffle( int [][13]);
void deal( const int [][13], const char *[], const char *[]);
int main()
{
// initiali... |
#include <moveit_benchmark_suite/benchmark.h>
#include <moveit_benchmark_suite/log.h>
#include <moveit_benchmark_suite/aggregation.h>
#include <moveit_benchmark_suite/config/gnuplot_config.h>
#include <queue>
#include <moveit/collision_detection_fcl/fcl_compat.h>
#include <moveit/collision_detection_bullet/collision_... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2014-2018 The Crown developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "net.h"
#include "masternodeconfig.h"
#include "util.h"
#include "ui_int... |
/****************************************************************************
*
* Copyright (c) 2019-2020 PX4 Development Team. 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. Red... |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
//!... |
/*
* File: video_builder.cpp
* Author: Minjun Xu (mjxu96@gmail.com)
* File Created: Wednesday, 8th January 2020 2:28:51 am
*/
#include "xviz/builder/declarative_ui/video_builder.h"
using namespace xviz;
XVIZVideoBuilder::XVIZVideoBuilder(const std::vector<std::string>& cameras)
: XVIZBaseUIComponentBuilder("... |
#include "BitOperationsTest.h"
#include "cute.h"
#include "pssst.h"
#include <cstdint>
using namespace Pssst;
struct U_int16 : strong<std::uint16_t,U_int16>
, Eq<U_int16>, Out<U_int16>
, BitOps<U_int16>
, ShiftOps<U_int16>, ShiftOps<U_int16,U_int16> {
};
static_assert(std::... |
/*
* 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... |
/*
* Copyright (c) 2020 International Business Machines
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Authors: Nikolas Ioannou (nio@zurich.ibm.com),
* Kornilios Kourtis (kou@zurich.ibm.com, kornilios@gmail.com)
*
*/
#ifndef _UDEPOT_SPDK_IO_H_
#define _UDEPOT_SPDK_IO_H_
#i... |
/******************************************************************
* File: DynamicFunction2.cpp
* Description: implement abstract class of function object that invoke
* a target function. This function object design to not
* store any argument of its target function when
* ... |
#include "Visit.h"
#include "SocketCommand.h"
#include "WebPage.h"
#include "WebPageManager.h"
Visit::Visit(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}
void Visit::start() {
QUrl requestedUrl = QUrl::fromEncoded(arguments()[0].toUtf8(), QUrl::Tol... |
// Copyright 2017-2018 Csaba Molnar, Daniel Butum, Kanev Sergey
#include "DialogueBrowserUtilities.h" |
/*
* Copyright 2009, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Jérôme Duval (korli@users.berlios.de)
*/
#include "driver.h"
static status_t
geode_open(const char *name, uint32 flags, void** cookie)
{
geode_controller* controller = NULL;
for (uint32 i ... |
#include <BlackBox/Core/Platform/Platform.hpp>
#include <Server/XServerRules.hpp>
CXServerRules::CXServerRules()
{
}
CXServerRules::~CXServerRules()
{
} |
#pragma once
#include <string>
namespace fetchpp
{
class url
{
public:
url(std::string scheme,
std::string domain,
uint16_t port,
std::string target);
static url parse(std::string const& url);
std::string const& scheme() const;
std::string const& domain() const;
uint16_t port() const;
s... |
// Copyright (c) 2019 <dev@brigid.jp>
// This software is released under the MIT License.
// https://opensource.org/licenses/mit-license.php
#include <brigid/version.hpp>
#include "test.hpp"
#include <string.h>
namespace {
void test1() {
const char* version = brigid::get_version();
BRIGID_CHECK(version);
... |
/*!
* \file
* \brief Class module::Extractor_LDPC.
*/
#ifndef EXTRACTOR_LDPC_HPP_
#define EXTRACTOR_LDPC_HPP_
#include <cstdint>
#include <vector>
#include "Module/Extractor/Extractor.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename Q = float>
class Extractor_LDPC : public Extractor... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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/. */
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The LUK developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... |
#include "engine.h"
#include "gpubufferuploadmanager.h"
void Engine::Startup()
{
Window::Get().Startup();
Graphic::Get().Startup();
ShaderManager::Get().Startup();
PSOManager::Get().Startup();
GPUBufferUploadManager::Get().Startup();
MeshManager::Get().Startup();
}
void Engine::PostStartup()
{... |
// TODO: Install LinBox through bazel
// TODO: Add tests, in particular: matrix_rank == matrix_rank_raw_linbox
// TODO: Add benchmarks, in particular: matrix_rank vs matrix_rank_raw_linbox
#include "linalg.h"
#include <queue>
#include <linbox/linbox-config.h>
#include <givaro/givrational.h>
#include <linbox/ring/mod... |
// Copyright mogemimi. Distributed under the MIT license.
#pragma once
#include "pomdog/basic/conditional_compilation.hpp"
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN
#include <cstdint>
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_END
namespace pomdog::gui {
enum class VerticalAlignment : std::uin... |
#include "mamba/core/environment.hpp"
#include "mamba/core/util.hpp"
namespace mamba
{
namespace env
{
std::optional<std::string> get(const std::string& key)
{
#ifdef _WIN32
const size_t initial_size = 1024;
std::unique_ptr<char[]> temp_small = std::make_unique<char[]>(i... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... |
// 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)
//
// Generic CRTP for implementing linear operator overloads.
//
#ifndef GEO_INTERNAL_LINEAR_OPERATIONS_HPP
#define GEO_INTERNAL_LINEAR_OPERATIONS_HPP
namespace ge... |
//===- IndexTypesForLLVMObjects.hpp --------------------------------- C++ -===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... |
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
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 ... |
//
// Created by denn nevera on 2019-09-03.
//
#pragma once
#include "dehancer/interpolator.hpp"
#include "dehancer/matrix.hpp"
namespace dehancer {
namespace spline {
class MatrixBased: public math::protocol::Interpolator {
public:
using math::protocol::Interpolator::Interpolator;
... |
#include <ros/ros.h>
#include <geometry_msgs/Pose.h>
#include <std_msgs/Int32MultiArray.h>
#include <std_msgs/Float32MultiArray.h>
#include <std_msgs/Float32.h>
#include <env_des/ParserEnvironment.hpp>
#include <env_msgs/AddUpdateObjectViz.h>
#include "tf/transform_listener.h"
#include <visualization_msgs/MarkerArray... |
#include "Archer.h"
Archer::Archer()
{
}
Archer::~Archer()
{
}
int Archer::calculateDamage()
{
float randStr = (float)(rand() % m_strength + 1);
float randInt = (float)(rand() % m_intelligence + 1);
float randDxt = (float)(rand() % m_dexterity + 1);
float total = (randDxt * 0.5f) + (randStr * 0.33f) + (randInt... |
#include <cstdio>
#include <string>
#include <vector>
#ifdef TEST_SNAPSHOT
#include <chrono>
#endif
#include "caffe/solver.hpp"
#include "caffe/util/format.hpp"
#include "caffe/util/hdf5.hpp"
#include "caffe/util/io.hpp"
#include "caffe/util/upgrade_proto.hpp"
namespace caffe {
template<typename Dtype>
void Solver... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
#include "update_ops_cpp.hpp"
#ifndef _MSC_VER
extern "C" {
#include "utility.h"
}
#else
#include "utility.h"
#endif
void reversible_boolean_gate(const UINT* target_qubit_index_list, UINT target_qubit_index_count, std::function<ITYPE(ITYPE, ITYPE)> function_ptr, CTYPE* state, ITYPE dim) {
// matrix dim, mask, buffer... |
/**
* 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 or agreed ... |
// Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0
// License.
//
// This product may include a number of subcomponents with separate copyright
... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/LeafWidgetReference.hpp>
namespace RED4ext
{
namespace ink {
struct TextWidgetReference : ink::LeafWidgetReference
{
static constexpr const ch... |
/** @file
A brief file description
@section license License
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 und... |
#include "Bureaucrat.hpp"
#include "Form.hpp"
int main() {
Form *f1 = NULL;
try {
f1 = new Form("f1", 0, 5);
std::cout << f1;
}
catch (std::exception& e) {
std::cout << "Can't create Form with a sign grad below 1" << std::endl;
}
try { f1 = new Form("f1", 151, 5); }
catch (std::exception& e) {
std::cout... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmax/MDbM4x4b.cpp
// \brief Source file for the MDbM4x4b dense matrix/dense matrix maximum math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This fil... |
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT
#endif
int bounds_query_count[4];
int call_count[4];
extern "C" DLLEXPORT int call_counter(halide_buffer_t *input, int x, int idx, halide_buffer_t *output) {
if (input->is_... |
/* The following code example is taken from the book
* "C++ Templates - The Complete Guide"
* by David Vandevoorde and Nicolai M. Josuttis, Addison-Wesley, 2002
*
* (C) Copyright David Vandevoorde and Nicolai M. Josuttis 2002.
* Permission to copy, use, modify, sell and distribute this software
* is granted provi... |
///
/// @file SievingPrimes.cpp
/// Generates the sieving primes up n^(1/2).
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/SievingPrimes.hpp>
#include <primesi... |
/*
Maximum Pairwise Product Problem
Find the maximum product of two distinct num-
bers in a sequence of non-negative integers.
Input: A sequence of non-negative
integers.
Output: The maximum value that
can be obtained by multiplying
two different elements from the se-
quence.
*/
#include <iostream>
#include <vecto... |
//
// The BSD 3-Clause License. http://www.opensource.org/licenses/BSD-3-Clause
//
// This file is part of MinGW-W64(mingw-builds: https://github.com/niXman/mingw-builds) project.
// Copyright (c) 2011-2020 by niXman (i dotty nixman doggy gmail dotty com)
// Copyright (c) 2012-2015 by Alexpux (alexpux doggy gmail dotty... |
/*
* 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... |
// 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... |
/*
* @lc app=leetcode id=482 lang=cpp
*
* [482] License Key Formatting
*
* https://leetcode.com/problems/license-key-formatting/description/
*
* algorithms
* Easy (40.79%)
* Likes: 279
* Dislikes: 473
* Total Accepted: 77.7K
* Total Submissions: 190.4K
* Testcase Example: '"5F3Z-2e-9-w"\n4'
*
* Yo... |
// https://www.geeksforgeeks.org/heaps-algorithm-for-generating-permutations/
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int x,y;
cin>>x>>y;
int ni = x-y;
// ni--;
int ans=2;
ans+=ni;
ans+=2*(y-1);
... |
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "framework/l0/levelzero.h"
#include "framework/test_case/register_test_case.h"
#include "framework/utility/file_helper.h"
#include "framework/utility/memory_constants.h"
#include "framework/utility/timer.h"
#include "definit... |
//
// HomeWindow.hpp
// nxtester
//
// Created by heart on 2/8/2560 BE.
// Copyright © 2560 3dsinteractive.com. All rights reserved.
//
#ifndef HomeWindow_hpp
#define HomeWindow_hpp
#include <stdio.h>
#include "views/Window.hpp"
USING_NX
class HomeWindow:public Window{
public:
static HomeWindow* create... |
/**
** Copyright (c) 2011-2014 Illumina, Inc.
**
** This file is part of the BEETL software package,
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** Citation: Markus J. Bauer, Anthony J. Cox and Giovanna Rosone
** Lightweight BWT Construction for Very Large String Collections.
** ... |
/*
*
* Copyright (C) 2001-2012, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: ofstd
*
* Author: Marco Eich... |
#include "LocksmithToken.hpp"
namespace locks
{
LocksmithToken::LocksmithToken() :
m_next_name(string_type("container") + std::to_string((std::stoi(std::getenv("ID"))+1) % std::stoi(std::getenv("CONTAINERS_AMOUNT")))),
m_hostname(string_type("container") + std::getenv("ID"))
{
std::cout << "Initiating tok... |
/* $Id: seq_table_setters.cpp 197444 2010-07-16 18:05:11Z vasilche $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrGLTexture.h"
#include "GrGLGpu.h"
#include "GrSemaphore.h"
#include "GrShaderCaps.h"
#include "SkTraceMemoryDump.h"
#define GPUGL static_cast<GrGLGpu*>(this->getG... |
#include "riscv_cache_l1.hpp"
/* Function Name.: mem_read_op
* Definition....:
*
*/
ap_uint<32> mem_read_op (ap_uint<3> access_type, byte_type last_bits, data_type ret_value_1)
{
#pragma HLS inline
ap_uint<32> addr_val_1, read_data;
addr_val_1 = ret_value_1;
switch(access_type)
{
case RISCV_FUNCT3_LOAD_BYTE:
... |
//===-- PPCMachObjectWriter.cpp - PPC Mach-O Writer -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#pragma once
#include <new>
#include "compiler.hh"
#include <assert.h>
struct TRcuGroup {
typedef uint64_t epoch_type;
typedef int64_t signed_epoch_type;
struct TRcuElement {
void (*function)(void*);
union {
void* argument;
epoch_type epoch;
} u;
};
... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/world/IRuntimeSystem.hpp>
namespace RED4ext
{
namespace world {
struct RuntimeSystemRendering : world::IRuntimeSystem
{
static ... |
// 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: System.Net.NetworkInf... |
//===-- ExpressionSourceCode.cpp --------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
//! FunctionTabular: Piecewise-defined function.
/*
Copyright 2010-2013 held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
pr... |
//#include "hypomodel.h"
#include "hyposound.h"
#include "hypograph.h"
#include "hypodata.h"
#include "SineWave.h"
#include "Noise.h"
#include "RtWvOut.h"
#include "FileWvOut.h"
#include <cstdlib>
using namespace stk;
#ifdef HYPOSOUND
SoundBox::SoundBox(Model *model, const wxString& title, const wxPoint& pos, con... |
// Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "UnitTestIncludes.h"
#define TEST_CLASS_OWNER L"jasonsa"
#include "DefineTestMacros.h"
#include "Utils.h"
#include "../global/global.h"
using namespac... |
/**
* @file displayudfparams.cpp
*
*/
/* Copyright (C) 2019-2020 by Arjan van Vught mailto:info@orangepi-dmx.nl
*
* 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, i... |
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "InputEvent.hpp"
#include <string>
#include <cstdint>
#include <vector>
#include <map>
#include <json11.hpp>
#include <filesystem>
namespace gui
{
class Pr... |
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2022 Yermalayeu Ihar.
*
* 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 limi... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
// (C) Copyright Christian Bienia 2007
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
//
// file : Thread.cpp
// author : Christian Bienia - cbienia@cs.princeton.edu
// description : A C++ thread
#if defined(HAVE_CONFIG_H)
# include "config.h"
#endif
#if defined(... |
// DO NOT EDIT. This file is generated
#include "../Precompiled.h"
#include "../AngelScript/APITemplates.h"
#include "../AngelScript/GeneratedIncludes.h"
#include "../AngelScript/GeneratedClassMembers.h"
#include "../AngelScript/Manual.h"
namespace Urho3D
{
// struct AllocatorBlock | File: ../Container/Allocator.h
... |
#include "EntityTargetItem.h"
#include "EntityTargetAbility.h"
#include "TopDownSprite.h"
using namespace qge;
EntityTargetItem::EntityTargetItem(EntityTargetAbility *ability):
ability_(ability)
{
setAbility(ability);
}
/// Uses the item on the specified entity.
void EntityTargetItem::use(Entity *onEntity)
... |
#include "app_yuv.h"
using namespace std;
// process all input: query GLFW whether relevant keys are pressed/released this frame and react accordingly
// ---------------------------------------------------------------------------------------------------------
void processInput(GLFWwindow *window)
{
if (glfwGetKey(win... |
#include "Globals.h"
#include "Components.h"
#include "GameObject.h"
Components::Components()
{
}
Components::Components(GameObject* parent) : gameObject(parent)
{
}
Components::~Components()
{
}
bool Components::IsActive() const
{
return is_active;
}
void Components::SetActive(bool active)
{
this->is_active = a... |
#include <occa.hpp>
#include <occa/internal/io.hpp>
#include <occa/internal/core/device.hpp>
#include <occa/internal/utils/testing.hpp>
occa::kernel addVectors;
const std::string addVectorsFile = (
occa::env::OCCA_DIR + "tests/files/addVectors.okl"
);
void testInit();
void testInfo();
void testParsingFailure();
vo... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <string>
#include "frontend_manager_defs.hpp"
#include "ngraph/check.hpp"
namespace ngraph {
namespace frontend {
class FRONTEND_API GeneralFailure : public CheckFailure {
public:
GeneralFai... |
//========= Copyright © 1996-2004, Valve LLC, All rights reserved. ============
//
// Weapons.
//
//=============================================================================
#include "cbase.h"
#include "in_buttons.h"
#include "takedamageinfo.h"
#include "tf_weaponbase.h"
#include "ammodef.h"
#include "tf_gamerules... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
int N, M;
int G[1010][1010];
int vis[1010], L[1010], nord;
char art[1010], brid[1010][1010];
void init(int N) {
... |
//
// JSONEndpoint.hh
//
// Copyright (c) 2017 Couchbase, Inc 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
//
// U... |
#include "Portal2.hpp"
#include "Game.hpp"
#include "Offsets/Offsets.hpp"
Portal2::Portal2() {
this->version = SourceGame_Portal2;
Game::mapNames = {
"sp_a1_intro1",
"sp_a1_intro2",
"sp_a1_intro3",
"sp_a1_intro4",
"sp_a1_intro5",
"sp_a1_intro6",
"sp_a1_intro7",
"sp_a1_wakeup",
"sp_a2_intro",
"sp... |
// 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 "third_party/blink/renderer/core/css/properties/longhands/alignment_baseline.h"
namespace blink {
namespace CSSLonghand {
const CSSValue* Align... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.