text stringlengths 7 961k |
|---|
// Copyright (c) 2014-2015 The Dash 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 "masternode.h"
#include "addrman.h"
#include "masternodeman.h"
#include "... |
// Copyright 2018 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 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
/**
* Copyright 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 applicable law... |
/**
* @file main.cpp
* @author Jorge Agüero Zamora
* @brief main entry point for application
* @version 0.1
* @date 2021-06-14
*
*/
#include "ImageDeconvolutionWindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
UI::ImageDeconvolutionWindow img_dcv;
img... |
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <pubkey.h>
#include <secp256k1.h>
#include <secp256k1_recovery.h>
names... |
//=================================================================================================
/*!
// \file src/mathtest/operations/dmatdmatadd/DDaMDb.cpp
// \brief Source file for the DDaMDb dense matrix/dense matrix addition math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// ... |
#include "stdafx.h"
#include <iostream>
using namespace std;
// I'm using Vista ATM (it's evil), but GCC comes assuming the worst.
// If you haven't patched your compiler to agree with the actual version
// of the Windows OS, then you will need to make sure you do it like this.
//
#if _WIN32_WINNT < 0x0500
#unde... |
/******************************************************************************
This source file is part of the Avogadro project.
Copyright (C) 2009 Marcus D. Hanwell
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
#include "Renderer2D.h"
#include "VertexArray.h"
#include "Shader.h"
#include "RenderCommand.h"
#include <glm/gtc/matrix_transform.hpp>
namespace Hazel
{
struct QuadVertex
{
glm::vec3 Position;
glm::vec4 Color;
glm::vec2 TexCoord;
float TexIndex;
float TilingFactor;
// Editor-only
i... |
/* 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 "service/GraphFlags.h"
DEFINE_int32(port, 3699, "Nebula Graph daemon's listen po... |
// Copyright (c) 2017 Jackal Engine, MIT License.
#include "OpenGLTexture2D.hpp"
#include "OpenGLNative.hpp"
#include "Core/Logging/Assertions.hpp"
#include "Core/Logging/Debugging.hpp"
namespace jackal {
void OpenGLTexture2D::Load(TextureInfoT& info, TextureHandle* texture)
{
CleanUp();
glGenTextures(1, &mH... |
/****************************************************************************
Copyright (c) 2015-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associa... |
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/test/TestObjects/ToyProducts.h"
namespace arttest {
class FailingProducer;
}
//--------------------------------------------------------------------
//
// throws an exception.
// Announces an IntProduct but does not... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// This file implements the callback "bridge" between J... |
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <atomic>
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/lang/annotation/fwd-POI.hpp>
#include <java/lang/reflect/fwd-POI.hpp>
#include <sun/ref... |
/**
* 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... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "ChakraObjectRef.h"
#include "Unicode.h"
#include "Utilities.h"
#include <memory>
#include <sstream>
#include <utility>
namespace Microsoft::JSI {
void VerifyChakraErrorElseThrow(JsErrorCode error) {
if (error != JsNoError) {
... |
#include<bits/stdc++.h>
using namespace std;
class DirectedGraph
{
int V;
list<int>*adj;
public:
DirectedGraph(int V)
{
this->V = V;
this->adj = new list<int>[this->V];
}
//Add edge to the directedGraph
void addedge(int source,int dest)
... |
#ifndef MIGRAPHX_GUARD_RTGLIB_DEVICE_CONCAT_HPP
#define MIGRAPHX_GUARD_RTGLIB_DEVICE_CONCAT_HPP
#include <migraphx/argument.hpp>
#include <migraphx/config.hpp>
#include <hip/hip_runtime_api.h>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace gpu {
namespace device {
argument concat(hipStream_t st... |
// MallocBuffer.h
#include <malloc.h>
#include "MallocBuffer.h"
// TODO: maybe this class could be more flexible by taking
// a color_space argument in the constructor
// the hardcoded width * 4 (because that's how it's used now anyways)
// could be avoided, but I'm in a hurry... :-)
// constructor
MallocBuffer::Ma... |
// Copyright 2014 the V8 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.
#include "src/runtime/runtime-utils.h"
#include <vector>
#include "src/arguments.h"
#include "src/compiler.h"
#include "src/debug/debug-coverage.h"
#i... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CWriteFile.h"
#include <stdio.h>
namespace irr
{
namespace io
{
CWriteFile::CWriteFile(const io::path& fileName, bool append)
: FileSize... |
/**
* Manipulatable move description
*/
#pragma once
#include <string>
#include <vector>
#include "Vector.hpp"
namespace engine {
class Move {
public:
enum class Type { kWait, kSkill, kMove };
Move() : Move(Type::kWait) {}
Move(Vector const& target) : Move(Type::kSkill, target) {}
Move(Vector const& targ... |
#include "srl/sys/SystemInfo.h"
#include "srl/sys/CpuInfo.h"
#include "srl/sys/SystemQuery.h"
#ifdef WIN32
#include <tchar.h>
using namespace SRL;
using namespace SRL::System;
// ------------ Class SystemInfo ----------------
SYSTEM_LOAD_INFORMATION* update_cpu_avg(int cpu_count, SYSTEM_LOAD_INFORMATION* cpu, SYSTEM... |
/*
* Copyright 2008, The Android Open Source Project
*
* 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 <stdexcept>
#include "GameLoop.h"
#include "GameVersion.h"
#include "Local.h"
#include "SGP.h"
#include "Screens.h"
#include "ShopKeeper_Interface.h"
#include "Tactical_Placement_GUI.h"
#include "Cursors.h"
#include "Init.h"
#include "Music_Control.h"
#include "Sys_Globals.h"
#include "Laptop.h"
#include "Map... |
#include <string>
namespace slg { namespace ocl {
std::string KernelSource_sampler_funcs =
"#line 2 \"sampler_funcs.cl\"\n"
"\n"
"/***************************************************************************\n"
" * Copyright 1998-2017 by authors (see AUTHORS.txt) *\n"
" * ... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
// ML Data
#include <sframe/sframe.hpp>
#include <sframe/algorithm.hpp>
#include <unity/lib/unity_sf... |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "GPUProfileDisplay.h"
#include "../../Utility/MemoryUtils.h"
#include "../../Utility/PtrUtils.h"
#include "../../Utility/StringFormat... |
/*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/integral.hpp>
#include <boost/hana/detail/assert.hpp>
using namespace boost::hana;
int main() {
// Integral < Integra... |
// 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.
#if defined(THREAD_SANITIZER)
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/bindings/script_forbidden_scop... |
//#define WIN32_LEAN_AND_MEAN
/*********************************************************************
*********************************************************************/
#include <glib_defines.h>
#include <globals.h>
#include <crf.h>
//#include <md5.h>
//#pragma warning(disable:4101 4786)
#pragma warning(disabl... |
// sol2
// The MIT License (MIT)
// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors
// 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 limit... |
// Copyright 2017 the V8 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.
#include "src/heap/sweeper.h"
#include "src/base/template-utils.h"
#include "src/heap/array-buffer-tracker-inl.h"
#include "src/heap/gc-tracer.h"
#incl... |
#include <boost/range/adaptor/map.hpp>
#include <boost/range/algorithm/copy.hpp>
#include <boost/assign.hpp>
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
int main(int argc, const char* argv[])
{
using namespace boost::assign;
using namespace boost::adaptors;
std::map<int, ... |
#include <cstdio>
#include <cstdlib>
#if defined ( __unix__ )
#include <fcntl.h>
#include <unistd.h>
#endif // defined ( __unix__ )
#include "system.hpp"
#include "make_unique.hpp"
using namespace std;
using namespace CoreLib;
struct System::Impl
{
#if defined ( __unix__ )
static constexpr mode_t LOCK_FILE_PERMI... |
/*
* Copyright (c) 2015-2021 The Khronos Group Inc.
* Copyright (c) 2015-2021 Valve Corporation
* Copyright (c) 2015-2021 LunarG, Inc.
* Copyright (c) 2015-2021 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "iviewrender_beams.h"
#include "tempentity.h"
#include "beam_shared.h"
#incl... |
// MFEM Example 26 - Parallel Version
//
// Compile with: make ex26p
//
// Sample runs: mpirun -np 4 ex26p -m ../data/star.mesh
// mpirun -np 4 ex26p -m ../data/fichera.mesh
// mpirun -np 4 ex26p -m ../data/beam-hex.mesh
//
// Device sample runs:
// mpiru... |
#include <array>
#include <fstream>
#include <sstream>
#include <iostream>
#include <regex>
#include <utility>
#include "config.h"
#include "../log/log.h"
#include "../util_env.h"
namespace dxvk {
const static std::vector<std::pair<const char*, Config>> g_appDefaults = {{
{ R"(\\DragonNest_x64\.exe$)", {{
... |
#include <core/testing/UnitTestRunner.h>
#include <core.commandline.h>
NS_USE(CORE_NAMESPACE);
bool UnitTestRunner::runTaskReturnSuccess(){
setTotalProgress(RegisteredTests().size());
setFailedTestCount(0);
RegisteredTests().foreachElement([this](UnitTest* test){
test->run();
if(test->getFailedTests()>... |
/*******************************************************************************
*
* MIT License
*
* Copyright 2019-2020 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... |
// Copyright (c) 2011-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.
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "bitcoinunits.h"
#include "qvalidatedlineedit.h"
#include... |
#include <stdio.h>
#include "daubechies_x.h"
#include "haar_x.h"
#include "inverse_daubechies_x.h"
#include "inverse_haar_x.h"
#include "HalideBuffer.h"
#include "halide_image_io.h"
using namespace Halide::Runtime;
using namespace Halide::Tools;
namespace {
void _assert(bool condition, const char *fmt, ...) {
... |
// Copyright 2014 HcNet 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 "overlay/LoopbackPeer.h"
#include "overlay/OverlayManager.h"
#include "test/TestUtils.h"... |
#include "ssl_integration_test.h"
#include <memory>
#include <string>
#include "envoy/config/transport_socket/capture/v2alpha/capture.pb.h"
#include "envoy/data/tap/v2alpha/capture.pb.h"
#include "common/event/dispatcher_impl.h"
#include "common/network/connection_impl.h"
#include "common/network/utility.h"
#include... |
// Copyright (c) 2014-2017 The Bytcoyn Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/test_arcana.h>
#include <utilstrencodings.h>
#include <wallet/crypter.h>
#include <vector>
#include <boost/t... |
/****************************************************************************
*
* Copyright (c) 2015 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. Redistri... |
#include <graphics/text.hpp>
#include <exceptions.hpp>
Text::Text(
const std::string fontName,
const Color &color,
int size,
SDL_Renderer * renderer) {
this->font = TTF_OpenFont(fontName.c_str(), size);
if (this->font == NULL)
throw SDLTTFException("fontname not found");
this->color.r = color.red;
this->c... |
/*******************************************************************************
* Copyright 2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
#include "Auto_Resolve.h"
#include "Buffer.h"
#include "Directories.h"
#include "Font.h"
#include "HImage.h"
#include "Handle_Items.h"
#include "Interface.h"
#include "Isometric_Utils.h"
#include "Map_Screen_Interface_Bottom.h"
#include "Map_Screen_Interface_Map_Inventory.h"
#include "MessageBoxScreen.h"
#include "Rend... |
//
// Created by Sam on 9/25/2017.
//
#include "../../include/Game/Board.h"
#include "../../include/Game/Card.h"
#include "../../include/Game/Card/Creature.h"
#include "../../include/Game/Container/CreatureZone.h"
#include "../../include/Game/Container/Deck.h"
#include "../../include/Game/Container/Graveyard.h"
void ... |
#pragma once
#include <expressions/expression.hpp>
#include <ast/statement_semicolon_printer.hpp>
#include <vector>
namespace mhc4
{
class source_location;
namespace statements
{
class _return : public ast::statement_semicolon_printer
{
public:
explicit _return(const source_location& loc);
explicit _retu... |
/*
Author: Shane Neph & Scott Kuehn
Date: Tue Aug 14 23:11:19 PDT 2007
*/
//
// BEDOPS
// Copyright (C) 2011-2016 Shane Neph, Scott Kuehn and Alex Reynolds
//
// 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... |
#include "openglwidget.h"
#include <iostream>
#include "resourcemanager.h"
#include "render.h"
#include <QTimer>
#include <QtMath>
#include "model.h"
#include "transform.h"
#include "modelrender.h"
#include "shaderprogram.h"
#include "gameobject.h"
#include "scene.h"
#include <QMatrix4x4>
#include "input.h"
#include <Q... |
// Copyright (c) 2019 PaddlePaddle 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... |
//===--- ToolChains.cpp - Job invocations (general and per-platform) ------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include "stdafx.h"
#include "cubeFrame.h"
#include <tchar.h>
using namespace Magic120Cell;
[STAThreadAttribute]
int APIENTRY _tWinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// Enabling Windows XP visual effects before any controls are created
Application::En... |
// (C) Copyright Beman Dawes 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)
// See http://www.boost.org/libs/config for more information.
// MACRO: BOOST_NO_... |
/*
COMPRESS_QMX.C
--------------
Copyright (c) 2014 by Andrew Trotman
Licensed BSD
A version of BinPacking where we pack into a 128-bit SSE register the following:
256 0-bit words
128 1-bit words
64 2-bit words
40 3-bit words
32 4-bit words
24 5-bit words
20 6-bit words
16 8-bit wor... |
/*
* palindromePairs.cpp
*
* Created on: Apr 14, 2016
* Author: chappie
*/
#include "include.h"
vector<vector<int> > palindromePairs(vector<string>& words){
vector<vector<int> > pairs;
int i,j,k,l;
int len;
int size = words.size();
int w_size;
int delta;
vector<vector<int> > palindLeft(size);
vec... |
/*
*
*/
#ifndef IPROTOCOL_HPP
#define IPROTOCOL_HPP
class IProtocol {
public:
IProtocol() {};
virtual ~IProtocol() { };
virtual void process_data(const std::string& data) = 0;
virtual std::ostream& print(std::ostream& os) const = 0;
friend std::ostream &operator<<(std::ostream& os, const IProtoco... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rexo.h>
#define ASSERT(x) \
(void)( \
(x) ... |
// Copyright (C) 2002-2008 Nikolaus Gebhardt / Thomas Alten
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
#include "IBurningShader.h"
#ifdef _IRR_COMPILE_WITH_BURNINGSVIDEO_
// compile flag for this file
#und... |
#ifndef OAZ_BITBOARD_BITDOARB_HPP_
#define OAZ_BITBOARD_BITDOARB_HPP_
#include <stdint.h>
#include <bitset>
#include <iostream>
#include <utility>
#include "oaz/array/array.hpp"
#include "oaz/bitboard/helpers.hpp"
namespace oaz::bitboard {
template <size_t NROWS, size_t NCOLS>
class BitBoard {
public:
static co... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "MapBrush.hpp"
#include "ChildFrameViewWin2D.hpp"
#include "Renderer2D.hpp"
#include "Renderer3D.hpp"
#include "../EditorMaterial.hpp"
#include "../Options.h... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "screenmanager.h"
#include "nuimanager.h"
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
screen = ui->widget_main;
nui = new NuiManager(screen);
nui->star... |
#include <internal/util/posix/scoped_descriptor.hpp>
using namespace std;
namespace facter { namespace util { namespace posix {
scoped_descriptor::scoped_descriptor(int descriptor) :
scoped_resource(move(descriptor), close)
{
}
void scoped_descriptor::close(int descriptor)
{
if (... |
// ------------------------------------------------------------------------------------------------------------------- //
//
// Demonstration script showing how to create a rational Beziert surface in OpenCascade
// Author: Roberto Agromayor
//
// ----------------------------------------------------------------------... |
/* Copyright (c) 2020 PaddlePaddle 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... |
#include <iostream>
using std::cout, std::endl;
namespace mySpace
{
static int a{8};
}
int main()
{
cout << mySpace::a << endl;
return EXIT_SUCCESS;
} |
//*********************************************************
// Calc_Stat.cpp - Calculate Performance Statistics
//*********************************************************
#include "Validate.hpp"
#include "math.h"
//---------------------------------------------------------
// Calc_Stats
//---------------------------... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2020 The GHOST_PRISM developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/m... |
/*
* Copyright (c) 2011-2017, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
#include <string>
#include <iostream>
#include <chrono>
#include "format.h"
using std::string;
// Helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
string Format::ElapsedTime(long s) {
std::chrono::seconds seconds{s};
std::chrono::hours hours = std::chrono::duration_cast<std::chrono:... |
//
// Copyright 2020 Autodesk
//
// 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) 2008-2015, 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 ... |
#include "gtest/gtest.h"
#include "common/util/FileUtil.h"
#include <filesystem>
// Running subsets of tests, see:
// -
// https://github.com/google/googletest/blob/620659ed92829a88ee34134c782bf5b5aa5a0a0c/googletest/docs/advanced.md#running-a-subset-of-the-tests
// This can set via:
// - --gtest_filter="" CLI arg
/... |
#include "Common.h"
// Origin: Qt
QStringList viewItemTextLayout(QTextLayout &textLayout, int lineWidth, qreal &height,
qreal &widthUsed)
{
QStringList lines;
height = 0;
widthUsed = 0;
textLayout.beginLayout();
QString str = textLayout.text();
while (true)
{
... |
#ifndef COMMUNICATIONPROXY_HPP
#define COMMUNICATIONPROXY_HPP
#include <chrono>
#include <future>
#include <iostream>
using namespace std::chrono_literals;
namespace communication_proxy {
struct Pingable
{
virtual std::wstring
ping(const std::wstring& message) = 0;
};
struct Pong : Pingable
{
std::wstring... |
#include "lexObj.h"
ab::lexObj::lexObj(int _typeID, std::string _value)
{
typeID = _typeID;
value = _value;
}
void ab::lexObj::setValue(std::string _value)
{
value = _value;
}
int ab::lexObj::getTypeID()
{
return typeID;
}
std::string ab::lexObj::getValue()
{
return value;
} |
// File include/oglplus/enums/pixel_data_format.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/pixel_data_format.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2017 Matus Chochlik.
// Distributed under the Boost Software Li... |
/*
* 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 "serialization_examples.hpp"
#include "blob.hpp"
#include "json.hpp"
#include <iostream>
#include <stdint.h>
#include <stdarg.h>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// json utility ///////////////////////////////////////////////////////////
static bool read_json_with_exceptions( Allocator* ... |
//===--- ParseExpr.cpp - Swift Language Parser for Expressions ------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Code produced by Azazel. //
//You can contact me on Ragezone here "https://forum.ragezone.com/members/2000318605.html". //
//I take no responsaiblity over this code or how it is used. ... |
/****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
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 res... |
#include "ofMain.h"
class SearchBar {
protected:
ofTrueTypeFont font;
string value;
int position;
ofVec2f cursorPosition;
ofVec2f cursorOffset;
uint64_t lastTime;
void updateCursor() {
string substr = value.substr(0, position) + ".";
ofRectangle box = font.getStringBoundingB... |
/*
* 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 ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "i... |
#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/game/data/TweakDBRecord.hpp>
namespace RED4ext
{
namespace game::data {
struct SpawnableObjectPriority_Record : game::data::TweakDB... |
/* Copyright (c) 2020 PaddlePaddle 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... |
// Copyright (c) 2016 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#if defined(HPX_HAVE_CUDA)
#include <hpx/data... |
// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/app/electron_main.h"
#include <algorithm>
#include <cstdlib>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#if defined(OS_WIN)
#include <wi... |
/*
* Author - Dustin Franklin (Nvidia Jetson Developer)
* Modified by - Sahil Juneja, Kyle Stewart-Frantz, Kevin Fructuoso
*
*/
#include "ArmPlugin.h"
#include "PropPlugin.h"
#include "cudaMappedMemory.h"
#include "cudaPlanar.h"
#define PI 3.141592653589793238462643383279502884197169f
#define JOINT_MIN -0.7... |
// ======================================================================
// \title FatalHandlerImpl.cpp
// \author tcanham
// \brief cpp file for FatalHandler component implementation class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Gov... |
#include "robotguide/Communication/TransportLayer/WindowsUserListener.h"
#include "robotguide/Communication/TransportLayer/WindowsUserConnection.h"
#include <stdexcept>
using namespace robotguide::com::transportlayer;
WindowsUserListener::WindowsUserListener(Receiver& receiver,
IRouteRequester& routeRequester,
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.