text stringlengths 5 1.04M |
|---|
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "tinyformat.h"
CFeeRate::CFeeRate(const CAmount& nFeePa... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatadd/D3x3aD3x3b.cpp
// \brief Source file for the D3x3aD3x3b dense matrix/dense matrix addition math test
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// Thi... |
/*
Copyright 2018 Oscar Sebio Cajaraville
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, publish, distrib... |
// Copyright (c) 2009-2014 The Polcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "chainparams.h"
#include "clientversion.h"
#include "main.h"
#include "net.h"
#include "netb... |
//==================================================================================================
/*!
@file
@Copyright 2016 Numscale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===================... |
version https://git-lfs.github.com/spec/v1
oid sha256:bcf06371b0513acdb8241c31768045904180dcaf8d7d114d75c7b9167ecb15f3
size 5231
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2020 The SmartUSD Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include <ma... |
#include <future>
#include <gmock/gmock.h>
#include <grpc++/grpc++.h>
#include <grpc++/server.h>
#include <grpc++/server_builder.h>
#include <memory>
#include <vector>
#include "core_service_impl.h"
#include "mocks/mavsdk_mock.h"
namespace {
using testing::_;
using testing::NiceMock;
using MockMavsdk = NiceMock<mav... |
#include <iostream>
#include <fstream>
#include <vector>
#include <sys/stat.h>
using namespace std;
#define KMERLONGS (MAX_KMER_SIZE/32) // 32 = numbits(uint64_t)/2- with 2 being the number of bits needed per nucleotide
#define KMER_LENGTH 15
#include "Kmer.hpp"
#include "common.h"
#include "ParallelFASTQ.h"
s... |
// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
#include "geom2graph/geometry-flattener.h"
#include "geom2graph/io/wkt.h"
#include <geos/io/ParseException.h>
#include <geos/io/WKTReader.h>
#include <gtest/gtest.h>
using geom2graph::io::from_wkt;
TEST(GeometryFlattenerTests, TestPoint)
{
const auto geometry = from_wkt("POINT(1 2)");
auto flattener = geom2... |
// Copyright (C) 2019 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and... |
// Copyright (c) 2011-2014 The Bitcoin developers
// 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 "addresstablemodel.h"
... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
//===----------------------------------------------------------------------===//
/// \file
/// ES6.0 23.1 Initialize the Map cons... |
// Given an array of integers, return indices of the two numbers such that they add up to a specific target.
//
// You may assume that each input would have exactly one solution, and you may not use the same element twice.
//
// Example:
//
// Given nums = [2, 7, 11, 15], target = 9,
//
// Because nums[0] + nums[1] = 2... |
// Copyright (c) 2006-2008 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.
// Test of Histogram class
#include "base/histogram.h"
#include "base/string_util.h"
#include "base/time.h"
#include "testing/gtest/include/gtes... |
// Copyright 2015 Google 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
//
// Unless required by applicable l... |
//
// detail/posix_static_mutex.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 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)
//
... |
/**
* WriteACodeTemplate!
*/
#include <fstream>
using namespace std;
/**
* File Management
*/
ifstream fin("input.txt");
ofstream fout("output.txt");
/**
* Constants
*/
struct Keyboard {
int width;
int height;
};
/**
* Main
*/
int main(void)
{
// Parse template
Keyboard keyboard = initialize... |
#include "../test_helpers.hxx"
namespace
{
void test_result_iteration()
{
pqxx::connection conn;
pqxx::work tx{conn};
pqxx::result r = tx.exec("SELECT generate_series(1, 3)");
PQXX_CHECK(r.end() != r.begin(), "Broken begin/end.");
PQXX_CHECK(r.rend() != r.rbegin(), "Broken rbegin/rend.");
PQXX_CHECK(r.cb... |
/*
* 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... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Contributing authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Christian Schulte, 2004
* Guido Tack, 2004
*
* Last modified:
* $Date: 2016-04-20 01... |
#include "ComputeEulerRHS.H"
#include "FFTW1D.H"
#include "WriteRectMDArray.H"
void ComputeEulerRHS::operator() (DeltaVelocity& a_newDv,
const double& a_time,
const double& a_dt,
const FieldData& a_velocity,
DeltaVelocity& a_oldDv) {
double a_scalar = 1.0;
//std::shared_ptr<FFT1D> fft1d... |
#ifndef CK_GRIDWISE_GROUP_CONVOLUTION_FORWARD_IMPLICIT_GEMM_V4R5_XDLOPS_GNCHW_GKCYX_GNKHW_HPP
#define CK_GRIDWISE_GROUP_CONVOLUTION_FORWARD_IMPLICIT_GEMM_V4R5_XDLOPS_GNCHW_GKCYX_GNKHW_HPP
#include "common_header.hpp"
#include "tensor_descriptor.hpp"
#include "tensor_descriptor_helper.hpp"
#include "ConstantMatrixDescr... |
/*=========================================================================
Program: Robarts Visualization Toolkit
Copyright (c) Adam Rankin, Robarts Research Institute
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
... |
#include "order.h"
#include "constants.h"
#include "coord.h"
#include <fstream>
#include <stdexcept>
#include <utility>
#include <vector>
#include <stack>
using namespace std;
// compile with -O3 -DNDEBUG
NodeOrdering compute_real_dfs_order(const ListGraph&g){
std::vector<int>out_begin, out_dest;
auto source_no... |
////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2017 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : Basic IOS application
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEnginePCH.h"
#... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
#include <cppurses/system/focus.hpp>
#include <cppurses/system/system.hpp>
#include "main_menu.hpp"
using namespace cppurses;
int main() {
System sys;
demos::Main_menu demo_menu;
Focus::set_focus_to(&demo_menu.main_menu.menu());
return sys.run(demo_menu);
}
|
#include "uml/impl/ExtensionPointImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#ifdef ACTIVITY_DEBUG_ON
#define ACT_DEBUG(a) a
#else
#define ACT_DEBUG(a) /**/
#endif
//#include "util/ProfileCallCount.hpp"
#include <cassert>
#include <iostream>
#include <sstr... |
/*
* Copyright (c) 2021 Huawei Device 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 ... |
/*
* Copyright 2018 Vladimir Balun
*
* 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 ... |
/*
Copyright (c) 2011 Daniel Bakkelund.
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 co... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#i... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <ngraph/ngraph.hpp>
#include "low_precision/layer_transformation.hpp"
namespace ngraph {
namespace pass {
namespace low_precision {
/**
* @ingroup ie_transformation_common_api
* @brief Tr... |
// 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: NUnit.Framewor... |
/* ScopedNodes.cpp --
*
* Copyright (c) 2014, Lex Chou <lex at chou dot it>
* 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 cop... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2018 The Zest Foundation developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licens... |
/*
*
* Copyright 2019 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
#include "Common.h"
#include "BuildingManager.h"
#include "CCBot.h"
#include "Util.h"
BuildingManager::BuildingManager(CCBot & bot)
: m_bot(bot)
, m_buildingPlacer(bot)
, m_debugMode(true)
, m_reservedMinerals(0)
, m_reservedGas(0)
{
}
void BuildingManager::onStart()
{
m_buildingPlacer.onStar... |
#include <inspurcloud/oss/model/Tagging.h>
#include "../utils/Utils.h"
#include <sstream>
using namespace InspurCloud::OSS;
std::string Tagging::toQueryParameters()
{
std::string sep;
std::stringstream ss;
for (const auto& tag : tagSet_)
{
if (tag.Key().empty())
continue;
... |
#pragma once
#include <algorithm> // reverse
#include <array> // array
#include <cmath> // isnan, isinf
#include <cstdint> // uint8_t, uint16_t, uint32_t, uint64_t
#include <cstring> // memcpy
#include <limits> // numeric_limits
#include <string> // string
#include <utility> // move
#include VTK_NLOHMANN_JSON(detail/... |
#include <AnalyzerChannelData.h>
#include "SDMMCAnalyzer.h"
#include "SDMMCAnalyzerResults.h"
#include "SDMMCHelpers.h"
SDMMCAnalyzer::SDMMCAnalyzer()
: mSimulationInitialized(false)
{
SetAnalyzerSettings(&mSettings);
}
SDMMCAnalyzer::~SDMMCAnalyzer()
{
KillThread();
}
const char* SDMMCAnalyzer::GetAnalyzerName() ... |
// Copyright 2020 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/sms/webotp_service.h"
#include <string>
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#includ... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/data/TweakDBRecord.hpp>
namespace RED4ext
{
namespace game::data {
struct LifePath_Record : game::data::TweakDBRecord
{
static constexpr cons... |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2011 Zynga Inc.
Copyright (c) 2013-2016 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any... |
#ifndef __DEBUG_UTILITY_H__
#define __DEBUG_UTILITY_H__
#ifdef _DEBUG_CONSOLE
#include <iostream>
#include <stdio.h>
#ifdef _DEBUG_TIME
#include <chrono>
#define speed_test_begin() speed_test_start_begin_time = std::chrono::system_clock::now()
#define speed_test_end(info, unit) std::cout << info << std... |
#include "stdafx.h"
/*
This file is a part of KMC software distributed under GNU GPL 3 licence.
The homepage of the KMC project is http://sun.aei.polsl.pl/kmc
Authors: Sebastian Deorowicz, Agnieszka Debudaj-Grabysz, Marek Kokot
Version: 3.0.0
Date : 2017-01-28
*/
#include "mem_disk_file.h"
#include "... |
/*
Author: Luis Manuel D?az Bar?n (LUISMO)
Problem: F - LCS
Online Judge:
Idea: Classic LCS with string reconstruction
*/
#include<bits/stdc++.h>
// Types
#define ll long long
#define ull unsigned long long
// IO
#define sf scanf
#define pf printf
#define mkp make_pair
#define fi first
#define se second
#define en... |
// Copyright 2020-2021 Herald Project Contributors
// SPDX-License-Identifier: Apache-2.0
//
#include "herald/ble/bluetooth_state_manager.h"
namespace herald {
namespace ble {
}
} |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license belo... |
#ifndef __SHOW_H__
#define __SHOW_H__
#include "recipe.hpp"
#include <list>
// 화면지우기
void clear();
//메인 메뉴
int show_main();
// 선택한 메뉴
void show_1(list<Ingredient> &ingredient_list); // 재료 추가
void show_2(list<Ingredient> &ingredient_list); // 재료 삭제
void show_3(list<Recipe> &recipe_list); // 레시... |
//
// mime_types.hpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2016 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 HTTP_SERVER4_MIME_TYPES_HPP
#de... |
/******************************************************************************
* Copyright 2017 The Apollo 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
... |
/*
* Copyright (c) 2012-2021 Daniele Bartolini et al.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
#include "config.h"
#if CROWN_SOUND_OPENAL
#include "core/containers/array.inl"
#include "core/math/constants.h"
#include "core/math/matrix4x4.inl"
#include "core/math/vector3.inl"
#include ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef MavLinkCom_MavLinkComImpl_hpp
#define MavLinkCom_MavLinkComImpl_hpp
#include <memory>
#include <string>
#include <vector>
#include <mutex>
#include <chrono>
#include "MavLinkNode.hpp"
#include "MavLinkN... |
#include "network.h"
Octree::Octree()
{
m_ABC[0] = Vector(1,0,0);
m_ABC[1] = Vector(0,1,0);
m_ABC[2] = Vector(0,0,1);
pm_Head = new Node();
InitializeOctree();
}
Node::Node()
{
p_Parent = NULL;
pm_Children = NULL;
pm_Objects = NULL;
pm_Neighbors = NULL;
m_Length = 0.0;
m_Depth = 0;
}
Node... |
#include "ICamera.h"
namespace trview
{
ICamera::~ICamera()
{
}
} |
#include <string>
#include "envoy/extensions/filters/http/set_metadata/v3/set_metadata.pb.h"
#include "envoy/extensions/filters/http/set_metadata/v3/set_metadata.pb.validate.h"
#include "extensions/filters/http/set_metadata/config.h"
#include "extensions/filters/http/set_metadata/set_metadata_filter.h"
#include "tes... |
/*
* 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... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 The Samcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <logging.h>
#include <util/threadnames.h>
#include <util/string.h>
#incl... |
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "QueryMultimediaFilesAdd.hpp"
namespace db::multimedia_files::query
{
Add::Add(const MultimediaFilesRecord &record) : Query(Query::Type::Create), record(record)
{}
... |
#include "ModuleWindow.h"
#include "ModuleResources.h"
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include "Application.h"
using namespace std;
ModuleWindow::ModuleWindow() {}
ModuleWindow::~ModuleWindow()
{
//Destroy window
SDL_DestroyWindow(window);
}
bool ModuleWindow::Init... |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
//
// Copyright (c) 2017-2019 the rbfx project.
//
// 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, mer... |
/*
Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - <http://www.fabgl.com>
Copyright (c) 2019-2020 Fabrizio Di Vittorio.
All rights reserved.
This file is part of FabGL Library.
FabGL is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... |
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
Sample showing how to correct the positions inside the returned tokens in
a way that these appear to be consecutive (ignoring positions from macro
definitions).
... |
/**
* Autogenerated by Thrift for src/include1.thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated @nocommit
*/
#include <thrift/lib/cpp2/gen/module_metadata_cpp.h>
#include "thrift/compiler/test/fixtures/frozen-struct/gen-cpp2/include1_metadata.h"
namespace apache {
namespac... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memcpy_74a.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-74a.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set dat... |
// Problem # : 112
// Created on : 2018-07-30 19:02:38
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>... |
#include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_GarnetNetwork[] = {
120,156,189,85,219,110,219,70,16,29,234,126,241,45,118,96,
180,41,218,236,67,139,170,105,44,198,106,253,98,20,69,107,
59,41,2,164,110,192,36,104,162,23,130,34,87,34,149,37,
87,224,174,20,171,175,233,83,63,168,63,208,1... |
/*
* Copyright (c) 2018-2019 Confetti Interactive Inc.
*
* This file is part of The-Forge
* (see https://github.com/ConfettiFX/The-Forge).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional inf... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: TestHandleWidget.cxx,v $
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
/******************************************************************************
*
* Project: GDAL
* Purpose: ECW (ERDAS Wavelet Compression Format) Driver
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* Copyright (c) 2001, Fran... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDateTime>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
label = new QLabel(this);
label->setGeometry(QRect(50, 50, 200, 25));
timer = new QTimer(this);
connect(timer... |
// 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 "util.h"
#include "uritests.h"
#include "compa... |
/*
* Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. All rights reserved.
* 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 righ... |
#include <phi/core/NonCopyable.hpp>
class A : phi::NonCopyable
{};
int main()
{
A a;
A b(a);
}
|
/*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
*/
class Extended_InitPost_EventHandlers
{
#define STAIYIN(CLASSE) class CLASSE { \
init = "(_this # 0) allowCrewInImmobile true";\
}
STAIYIN(Wheeled_APC_F);
STAIYIN(Tank);
}... |
/**
* Copyright (C) 2015 Dato, Inc.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <cross_platform/windows_wrapper.hpp>
#include <tlhelp32.h>
#include <process/process_util.hpp>
namespace graphlab {
/... |
#if !defined(MANDELWIN_HPP_)
#define MANDELWIN_HPP
#include "utils.hpp"
#include <gtkmm/applicationwindow.h>
#include <string>
class MandelWin : public Gtk::ApplicationWindow {
public:
MandelWin(CLIOptions clopts);
virtual ~MandelWin();
protected:
// Signal handler
void on_button_quit_clicked()... |
#include "common.h"
#include "Draw.h"
#include "Frontend.h"
#include "Camera.h"
#include "CutsceneMgr.h"
#ifdef ASPECT_RATIO_SCALE
float CDraw::ms_fAspectRatio = DEFAULT_ASPECT_RATIO;
float CDraw::ms_fScaledFOV = 45.0f;
#endif
float CDraw::ms_fNearClipZ;
float CDraw::ms_fFarClipZ;
float CDraw::ms_fFOV = 45.0f;
float... |
// Boost::locale (convert utf encoding) test for Conan package
// Dmitriy Vetutnev, ODANT, 2018
#include <boost/locale.hpp>
#include <string>
#include <iostream>
#include <cstdlib>
int main(int, char**) {
std::locale defaultLocale{boost::locale::generator().generate("")};
std::locale::global... |
#pragma once
#include <mbgl/util/geo.hpp>
#include <mbgl/util/geometry.hpp>
#include <mbgl/util/range.hpp>
#include <mbgl/util/optional.hpp>
#include <mbgl/util/variant.hpp>
#include <mbgl/style/types.hpp>
#include <mbgl/storage/response.hpp>
#include <string>
#include <vector>
#include <functional>
namespace mbgl {... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatadd/SHaSHa.cpp
// \brief Source file for the SHaSHa dense matrix/dense matrix addition math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This file i... |
/*!
* @file
* Basic tests for `Reduce.hpp`
*
* This file is a part of easyLambda(ezl) project for parallel data
* processing with modern C++ and MPI.
*
* @copyright Utkarsh Bhardwaj <haptork@gmail.com> 2015-2016
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying LICENSE.md or copy... |
#include "common/common/cleanup.h"
#include "test/test_common/test_base.h"
namespace Envoy {
TEST(CleanupTest, ScopeExitCallback) {
bool callback_fired = false;
{
Cleanup cleanup([&callback_fired] { callback_fired = true; });
EXPECT_FALSE(callback_fired);
}
EXPECT_TRUE(callback_fired);
}
} // namesp... |
#include <fstream>
#include <iostream>
#include <iterator>
#include <numeric>
#include <string>
int main() {
const auto filename = std::string{"directions.txt"};
auto file = std::fstream{filename};
if(file.is_open()) {
using iterator = std::istreambuf_iterator<char>;
const auto begin = iterator{file};
con... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"
#include "... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "IPlugFaustDSP.h"
#include "IPlug_include_in_plug_src.h"
IPlugFaustDSP::IPlugFaustDSP(const InstanceInfo& info)
: Plugin(info, MakeConfig(kNumParams, 1))
{
InitParamRange(0, kNumParams-1, 0, "Param %i", 0., 0., 1., 0.01, "", IParam::kFlagsNone);
#if IPLUG_DSP
mFaustProcessor.SetMaxChannelCount(MaxNChan... |
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/compiler/frontend/bytecode_reader.h"
#include "vm/bit_vector.h"
#include "vm/bootstrap.h"... |
#pragma once
struct RenderBatchParam
{
glm::mat4 modelMatrix;
};
struct RenderEntityParams
{
glm::vec3 position;
glm::mat4 orientation; // and scale
RenderModelHandle model;
int renderMask{ 0 }; // if 0, it gets rendered everywhere
... |
//--------------------------------------------------------------------------------------
// File: SpriteBatch.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkID=615561
//-----------------------------------------------------... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinrpc.h"
#include "db.h"
#include "init.h"
#include "main.h"
#include "m... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.