text stringlengths 5 1.04M |
|---|
/*
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
/*******************************************************************************
* Copyright (c) 2015, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* Written by Peer-Timo Bremer bremer5@llnl.gov
* LLNL-CODE-665196
* All rights reserved.
*
* This file is part of ADA... |
/*
* ofMainLoop.cpp
*
* Created on: Oct 25, 2014
* Author: arturo
*/
#include <ofMainLoop.h>
#include "ofWindowSettings.h"
#include "ofConstants.h"
//========================================================================
// default windowing
#ifdef TARGET_NODISPLAY
#include "ofAppNoWindow.h"
#elif defin... |
#pragma once
#include <bio/gpu/gpu_Surface.hpp>
#include <bio/service/vi/vi_RootService.hpp>
namespace bio::gpu {
constexpr i64 LayerMinimumZ = -1;
constexpr i64 LayerMaximumZ = -2;
Result Initialize(service::nv::DrvServiceType nv_service_type, service::vi::RootServiceType vi_service_type, u32 transfer_... |
/*
* $Id$
*
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
/**
* \file
* Description not yet available.
*/
#include "fvar.hpp"
/**
* Description not yet available.
* \param
*/
dvar4_array::dvar4_array()
{
allocate();
}
/**
* Description not yet available.
... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fstream>
#include <string>
#include <evhttp.h>
#include <iostream>
#include <algorithm>
#include <functional>
#include <map>
#include <vector>
#include <regex>
#include <tuple>
#include <cassert>
#include "... |
/*
* Copyright (C) 2017 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... |
//=================================================================================================
/*!
// \file src/mathtest/tdvecdmatmult/VDbLDa.cpp
// \brief Source file for the VDbLDa dense vector/dense matrix multiplication math test
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// Thi... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "MediaBlueprintFunctionLibrary.h"
#include "MediaCaptureSupport.h"
/* UMediaBlueprintFunctionLibrary interface
*****************************************************************************/
void UMediaBlueprintFunctionLibrary::EnumerateAudioCap... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... |
#include <string>
#include <vector>
#include "common/buffer/buffer_impl.h"
#include "common/network/filter_manager_impl.h"
#include "common/tcp_proxy/tcp_proxy.h"
#include "common/upstream/upstream_impl.h"
#include "extensions/filters/network/ratelimit/ratelimit.h"
#include "test/common/upstream/utility.h"
#include ... |
#include <stdio.h>
#include <emscripten.h>
int n = 0;
double rate = 0;
double last = -1;
void main_loop(void) {
emscripten_sleep(0);
n++;
double now = emscripten_get_now();
if (last > 0) {
double curr = now - last;
rate = (rate*(n-1)+curr)/n;
if (n > 15) {
emscripten_cancel_main_loop();
... |
/// \file
/// Getopt paramters for principal_chiral_nspt.cpp - Option parser
#include "principal_chiral_nspt_params.h"
#include <iomanip>
#include <iostream>
#ifdef _OPENMP
int n_threads = 0;
bool user_def = 0;
#endif
int seq_init = 1;
int quiet = 1;
int no_meas = 0;
int twisted = 0;
int integrator = 1;
int debug = ... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/renderer_host/input/gesture_event_queue.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include <vector>
#includ... |
#include<iostream>
using namespace std;
int global_scope = 7;
void print_global(){
cout << "Variable global_scope has value: " << global_scope << "\n";
}
int main(){
int global_scope = 17;
cout << "Variable global_scope has value: " << :: global_scope << "\n";
cout << "Variable global_scope has valu... |
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkSphereSource.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkSmartPointer.h>
#include <vtkPointPicker.h>
#include <vtkCamera.h>
#include <vtkInteractorStyleTrackballCamera.h>
#include <vtkName... |
/**********************************************************************
Audacity: A Digital Audio Editor
SelectionBar.cpp
Copyright 2005 Dominic Mazzoni
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 So... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* BP4Reader.cpp
*
* Created on: Aug 1, 2018
* Author: Lipeng Wan wanl@ornl.gov
*/
#include "BP4Reader.h"
#include "BP4Reader.tcc"
#include "adios2/toolkit/profiling/taustubs/tautime... |
/*
* Copyright (C) 2010 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include "core.h"
#include "wbperosagetorientation.h"
#include "configmanager.h"
#include "wbparamevaluatorfactory.h"
#include "Components/wbcomprosatransform.h"
WBPERosaGetOrientation::WBPERosaGetOrientation()
: m_EntityPE( NULL )
{
}
WBPERosaGetOrientation::~WBPERosaGetOrientation()
{
SafeDelete( m_EntityPE );
}
... |
#include "MMake/MMake.h"
#include <CommonCLI/Colors.h>
#include <CommonCLI/Core.h>
#include <CMakeLexer/Lexer.h>
#include <CommonLexer/LexerLexer.h>
extern "C"
{
#include <Piccolo/debug/disassembler.h>
#include <Piccolo/include.h>
#include <Piccolo/stdlib/picStdlib.h>
}
#include <cstdarg>
#include <chrono>
#inclu... |
/*
* (C) 2003-2006 Gabest
* (C) 2006-2018 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your opt... |
/* ===-- fixsfti.c - Implement __fixsfti -----------------------------------===
*
* 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.
*
* ===----------------------------------------... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/**
* 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... |
#include <ArduinoLog.h> // https://github.com/thijse/Arduino-Log
#include <ArduinoOTA.h> // https://github.com/esp8266/Arduino
#include <ESP8266mDNS.h> // https://github.com/esp8266/Arduino
#include <LittleFS.h> // https://github.com/esp8266/Arduino
#include <SerialAndBuffer.h> // ./lib/Serial... |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
#include "nif/RefObject.h"
using namespace Niflib;
//Definition of TYPE constant
const Type RefObject::TYPE("RefObject", NULL );
RefObject::RefObject() {
_ref_count = 0;
objectsInMemory++;
}
RefObjec... |
#include "TypeChecker.hpp"
#include <cassert>
#include <string>
#include <utility>
#include "../Expressions/AccessExpr.hpp"
#include "../Expressions/AssignmentExpr.hpp"
#include "../Expressions/BinaryExpr.hpp"
#include "../Expressions/CallExpr.hpp"
#include "../Expressions/GroupExpr.hpp"
#include "../Expressions/Inst... |
// clazy:skip
#include "proofnetwork/xjdf/data/cutblock.h"
#include "proofnetwork/xjdf/data/cuttingparams.h"
#include "proofnetwork/xjdf/data/document.h"
#include "proofnetwork/xjdf/xjdfhelper.h"
#include "gtest/proof/test_global.h"
#include <QFile>
#include <QXmlStreamReader>
using namespace Proof;
using namespace... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008-2010, Image Engine Design 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:
//
// ... |
/* Copyright 2022 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... |
#include <stan/math/mix/mat.hpp>
#include <gtest/gtest.h>
using stan::math::fvar;
using stan::math::var;
TEST(AgradMixMatrixTraceInvQuadFormLDLT,matrix_fv_matrix_fv_1) {
stan::math::LDLT_factor<fvar<var>,-1,-1> ldlt_Ad;
stan::math::matrix_fv Ad(2,2);
stan::math::matrix_fv Av(2,2);
fvar<var> I;
Ad << 2.0, ... |
#include "stdfsc.h"
#include "fstype.h"
#include "fslist.h"
/////////////////////////////////////////////////////////////////////
// CFSBitSet
void CFSBitSet::Reserve(INTPTR ipSize)
{
ASSERT(ipSize>=0);
m_Array.Reserve((ipSize+31)/32);
}
void CFSBitSet::SetSize(INTPTR ipSize, bool bReserveMore)
{
A... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#include <cppcoro/async_mutex.hpp>
#include <cassert>
cppcoro::async... |
// Copyright (c) 2018+ lriki. Distributed under the MIT license..
#pragma once
#include "Common.hpp"
#include "Plane.hpp"
namespace ln {
struct Matrix;
struct Box;
/** 交差判定の結果を表します。 */
enum class IntersectResult
{
/** 領域の外側にある */
Outside,
/** 領域の内側にある */
Inside,
/** 領域の境界上にある (交差している) */
I... |
#ifndef PROTEAN_DETAIL_XML_UTILITY_HPP
#define PROTEAN_DETAIL_XML_UTILITY_HPP
#include <protean/config.hpp>
#include <protean/detail/xerces_include.hpp>
#include <string>
namespace protean {
class variant;
namespace detail {
struct xml_utility
{
static boo... |
#include "LoCameraFiducialMap.h"
#include "Affine.h"
#include "CameraGroundMap.h"
#include "CameraSkyMap.h"
#include "IString.h"
using namespace std;
namespace Isis {
/** Constructs mapping between Lunar Orbiter detectors and focal plane x/y.
* This method sets the x-axis direction to -1 if the NAIF IK code is... |
//
// detail/impl/select_reactor.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot 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)
//
#ifndef... |
#ifndef JAMSCRIPT_JAMSCRIPT_SPINLOCK_HH
#define JAMSCRIPT_JAMSCRIPT_SPINLOCK_HH
#include <atomic>
namespace jamc
{
class SpinMutex
{
std::atomic_flag flag = ATOMIC_FLAG_INIT;
public:
void lock();
bool try_lock();
void unlock();
};
class SpinOnlyMutex
{
... |
#include <cstddef>
namespace Dummy {
void AddByElement(const float *a, const float *b, float *result, const size_t count) {
for (size_t i = 0; i < count; i++) {
result[i] = a[i] + b[i];
}
}
} // namespace Dummy
|
/*
* Copyright (c) 2021 WangBin <wbsecg1 at gmail.com>
*/
#if __has_include("dav1d/dav1d.h")
#include "dav1d/dav1d.h"
#include <cassert>
#include "cppcompat/cstdlib.hpp"
#if defined(_WIN32)
# include <windows.h>
# ifdef WINAPI_FAMILY
# include <winapifamily.h>
# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP... |
/*
* Copyright (c) 2020 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-01-25
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
// test_ssh_client.cpp
#include <ulib/file.h>
#include <ulib/ssh/net/sshsocket.h>
static const char* getArg(const char* param) { return (param && *param ? param : 0); }
int
U_EXPORT main (int argc, char* argv[])
{
U_ULIB_INIT(argv);
U_TRACE(5,"main(%d)",argc)
USSHSocket x;
UString hostname(argv[2]);
... |
// 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 "components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h"
#include <memory>
#include "base/bind.h"
#include "base/check_op.h"
... |
/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Claire Xenia Wolf <claire@yosyshq.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear i... |
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... |
// Copyright 2017 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include "object/mbuf.h"
#include <lib/user_copy/user_ptr.h>
#include <type_traits>
#include <fbl/algorithm.h>
#include <fbl/al... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
// 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 ... |
/*
*
* Copyright (c) 2021 Project CHIP 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 requir... |
//<snippet1>
// This example demonstrates Math.BigMul()
using namespace System;
int main()
{
int int1 = Int32::MaxValue;
int int2 = Int32::MaxValue;
Int64 longResult;
//
longResult = Math::BigMul( int1, int2 );
Console::WriteLine( "Calculate the product of two Int32 values:" );
Co... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/apcoin-config.h"
#endif
#include "ut... |
// test_find_location.cpp
// Copyright John Maddock 2007.
// Copyright Paul A. Bristow 2007.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// Basic sanity test for find_loc... |
//===-- safestack.cc ------------------------------------------------------===//
//
// 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) 2008, 2009, 2010, 2011 Tim Blechmann
//
// 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)
// Disclaimer: Not a Boost library.
#ifndef BOOST_LOCKFREE_STACK_HPP_INCLUDED
#define BOOST_LOCKFREE... |
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
using namespace std;
void swap(ll *a,ll *b)
{
ll temp=*a;
*a=*b;
*b=temp;
}
void recur_sort(ll *arr,ll n)
{
//small calculation
if(n==2)
{
if(arr[0]>arr[1])
swap(arr,arr+1);
return;
}
return recur... |
// 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/ui/views/toolbar/back_button.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/... |
#include "CompositorGL.h"
#include "TextureGL.h"
#include "OVR_CAPI.h"
#include "Common.h"
#include <GL/glew.h>
#include <Windows.h>
GLboolean CompositorGL::glewInitialized = GL_FALSE;
void CompositorGL::DebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, cons... |
/*
Copyright (c) 2013-2018, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... |
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
int n;
while(t--){
cin>>n;
int even=0;
int odd=0;
while(n!=0){
int r=n%10;
if(r%2==0){
even=even+r;}
else{
odd=od... |
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED___ASSET__flixel_flixel_ui_img_check_mark_png
#include <__ASSET__flixel_flixel_ui_img_check_mark_png.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED... |
#include <iostream>
using namespace std;
class Complex
{
private:
int real;
int imag;
public:
Complex(): real(0), imag(0) { }
void readData()
{
cout << "Enter real and imaginary number respectively:"<<endl;
cin >> real >> imag;
}
void ad... |
#include <iostream>
#include <vector>
#include <string>
#include "../../include/Commands.hpp"
#include "../../include/DataTypes.hpp"
#include "../../include/LangInterpreter/LanguageInterpreter.hpp"
int Interpreter::EvalCondition( const std::vector< std::string > & lineparts, int line )
{
// if a CONDITION b :
std:... |
#include "panelworldmap.h"
#include "ui_panelworldmap.h"
#include <world/core.h>
#include <world/terrain.h>
#include "qtworld.h"
using namespace world;
PanelWorldMap::PanelWorldMap(QWidget *parent)
: GeneratePanel(parent), ui(new Ui::PanelWorldMap) {
ui->setupUi(this);
}
PanelWorldMap::~PanelWorldMap()... |
#include "Renderer.h"
#include "Camera.h"
#include "Scene.h"
namespace phen {
Renderer::Renderer()
{
}
Renderer::~Renderer()
{
glDeleteFramebuffers(1, &FramebufferName);
glDeleteTextures(1, &renderedTexture);
glDeleteRenderbuffers(1, &depthrenderbuffer);
glDeleteBuffers(1, &quad_vertexbuffer);
glD... |
#include "SDL2_renderer.h"
#include "glm/glm.hpp"
#include <iostream>
int SDL2_renderer::Init(int width, int height)
{
if (SDL_Init(SDL_INIT_VIDEO) != 0)
{
fprintf(stderr, "Failed to initialize SDL2.0: %s\n", SDL_GetError());
return EXIT_FAILURE;
}
_window = SDL_CreateWindow("Game", 400, 200, width, height, S... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
/*******************************************************
* Copyright (c) 2017, ArrayFire
* All righ... |
/*
* Copyright 2011 Christoph Bumiller
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The TorkilCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mi... |
// <Snippet1>
using namespace System;
using namespace System::Collections;
void PrintValues( IEnumerable^ myList, int myWidth );
int main()
{
// Creates and initializes two BitArrays of the same size.
BitArray^ myBA1 = gcnew BitArray( 4 );
BitArray^ myBA2 = gcnew BitArray( 4 );
myBA1[ 0 ] = ... |
/* Copyright (C) 2021 Joshua J. Daymude, Robert Gmyr, and Kristian Hinnenthal.
* The full GNU GPLv3 can be found in the LICENSE file, and the full copyright
* notice can be found at the top of main/main.cpp. */
#include "alg/demo/discodemo.h"
DiscoDemoParticle::DiscoDemoParticle(const Node& head, const int gl... |
/*!
* minter_tx.
* check_tx_test.cpp
*
* \date 12/10/2019
* \author Eduard Maximovich (edward.vstock@gmail.com)
* \link https://github.com/edwardstock
*/
#include <gtest/gtest.h>
#include <minter/tx/check_tx.h>
using namespace minter;
TEST(CheckTx, MakeProof) {
dev::bytes_data valid_proof("133824027bddf... |
// Copyright 2018 The SwiftShader 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 b... |
#include <string.h>
#include <iostream>
#include "Components/NodeSortProblemGenerator/NodeSortProblemGenerator.h"
#include "Core/Utilities/Tools/QStatMatrix.h"
#include "Extensions/Extensions.h"
using namespace std;
USING_QPANDA
vector<vector<double>> genGraph(const string& grid, int& real_size);
int calcNodeSort(
... |
#include <iostream>
#include <world/world_constants.hpp>
#include <world/chunk/chunk_mesh.hpp>
ChunkMesh::ChunkMesh()
{
}
void ChunkMesh::add_face(
const std::vector<GLfloat> &block_face,
const std::vector<GLfloat> &texture_coords,
const sf::Vector3i &chunk_position,
const sf::Vector3i &block_position... |
// 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.Runtime... |
//snippet-sourcedescription:[get_queue_url.cpp demonstrates how to retrieve the URL of an Amazon SQS queue.]
//snippet-keyword:[C++]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon Simple Queue Service]
//snippet-service:[sqs]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[]
//snippet-sou... |
//===-- checksum.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) 2006, Ondrej Danek (www.ondrej-danek.net)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, ... |
/* # UNDERLYING CONCEPTS ===>
# Like Kruskal's algorithm, Prim's algorithm is also a Greedy algorithm.
# Prim's algorithm is very similar to Kruskal's: whereas Kruskal's "grows" a forest of trees, Prim's algorithm
grows a single tree until it becomes the minimum spanning tree.
# Both algorithms use t... |
#include <map>
#include "char.h"
static const std::map<std::string, char> charnames(
{
{"tab", '\t'},
{"return", '\r'},
{"linefeed", '\n'},
{"newline", '\n'},
{"page", '\f'},
{"nul", 0},
{"soh", 1},
{"stx", 2},
{"et... |
/*
* StatsLogger.cpp
*
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <chrono>
#include <string>
#include <ctime>
#include "StatsLogger.h"
StatsLogger::LoggingColumn::LoggingColumn(std::string name, std::function<std::string()> callback) : name(name), callback(callback){
}
StatsLogger::S... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <iterator>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <limits>
#include <map>
#include <type_traits>
#include <functional>
#include <utility>
#include <ie_layouts.h>
#includ... |
//===-- llvm-nm.cpp - Symbol table dumping utility for llvm ---------------===//
//
// 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
//
//===---------------------------... |
#include <vnl/io/vnl_io_vector.hxx>
VNL_IO_VECTOR_INSTANTIATE(float);
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cognito-idp/model/AdminConfirmSignUpRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CognitoIdentityProvider::Model;
using namespace A... |
// slang-emit-cpp.cpp
#include "slang-emit-cpp.h"
#include "../core/slang-writer.h"
#include "slang-emit-source-writer.h"
#include "slang-mangled-lexer.h"
#include "slang-ir-clone.h"
#include <assert.h>
/*
ABI
---
In terms of ABI we need to discuss the variety of variables/resources that need to be defined by the... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "primitive.hpp"
#include <vector>
namespace cldnn {
/// @addtogroup cpp_api C++ API
/// @{
/// @addtogroup ... |
#include "pcheader.h"
#include "imgui/backends/imgui_impl_glfw.cpp"
|
//
// Created by nbdy on 04.01.21.
//
#include <BaseModule/BaseModule.h>
#include <Manager/Manager.h>
#define CTRL_BUTTON_SIZE Vector2 {16, 16}
enum ModuleStoreUIState {
LOADED = 0, LOADABLE, DOWNLOADABLE, SETTINGS
};
class ModuleStore : public BaseModule {
protected:
ModuleStoreUIState state = LOADED;
... |
#include <cstdio>
/** The Assembly function */
extern "C" { int functieASM(int x, int y); }
/** The C/C++ equilavent of the Assembly function. */
int functieCPP(int x, int y)
{
int z = x * y;
return z;
}
/** Program entry point */
int main(int, char**)
{
int resultASM, resultCPP;
//... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
#ifndef _VKTSPARSERESOURCESBUFFERMEMORYALIASING_HPP
#define _VKTSPARSERESOURCESBUFFERMEMORYALIASING_HPP
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache Licen... |
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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... |
#include <iostream>
#include "../Headers/ev3dev.h"
using namespace std;
using namespace ev3dev;
int main()
{
cout << "Hello, World!";
return 0;
}
|
// Copyright (c) 2018 The PIVX developers
// Copyright (c) 2017-2018 The HUZU developers
// Copyright (c) 2018 The ZEFIR developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <primitives/deterministicmint.h>
#inclu... |
/**
* Copyright 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.