text stringlengths 5 1.04M |
|---|
// Copyright (c) 2009-2014 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#include <boost/lexica... |
// Copyright (c) 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 <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... |
/**********************************************************************
Copyright (c) 2020 MIPT
Module Name:
AstDump.h
Abstract:
Модуль, генерирующий изображение AST дерева
Author:
JulesIMF
Last Edit:
20.12.2020 2:27
Edit Notes:
*****************************************... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy o... |
// Local-Hyperion includes
#include "LedDeviceNanoleaf.h"
// ssdp discover
#include <ssdp/SSDPDiscover.h>
// Qt includes
#include <QEventLoop>
#include <QNetworkReply>
// Controller configuration settings
const QString CONFIG_ADDRESS = "output";
const QString CONFIG_PORT = "port";
const QString CONFIG_AUTH_TOKEN ="t... |
// +-------------------------------------------------------------------------
// | Copyright (C) 2017 Yunify, Inc.
// +-------------------------------------------------------------------------
// | Licensed under the Apache License, Version 2.0 (the "License");
// | You may not use this work except in compliance with t... |
// Created on: 1993-01-14
// Created by: Remi LEQUETTE
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU ... |
// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
#include "Audio/AudioListener.h"
#include "Audio/Audio.h"
#include "Core/Log.h"
namespace Alimer
{
AudioListener::AudioListener()
{
}
}
|
#include "VerifiedAccount.h"
#include <iostream>
using namespace std;
int main()
{
Account** arr = new Account*[2];
arr[0] = new VerifiedAccount("timi", 20, "timiimit", "pass123", Date(2018, 3, 29), VerificationType::email, "Verification successful", Date(2016, 4, 20));
arr[1] = new VerifiedAccount(*arr[0]);
cou... |
// 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.
#include "call_stack.h"
#include <shlwapi.h>
#include <tlhelp32.h>
#include "memory_hook.h"
#include "base/string_util.h"
// Typedefs for expli... |
/*
* Copyright (C) 2015 midnightBITS
*
* 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, pub... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2020 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.Timeline.RuntimeElement
#include "UnityEngine/Timeline/Run... |
// http://turtle.sourceforge.net
//
// Copyright Mathieu Champlon 2014
//
// 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)
//[ prerequisite
#define BOOST_AUTO_TEST_MAIN
#include <boost/test/auto_unit_test.hpp>
#i... |
class Solution {
public:
int largestAltitude(vector<int>& gain) {
int maxAltitude = 0, prev = 0;
for(int i = 0 ; i < gain.size(); i++) {
int alt = gain[i] + prev;
maxAltitude = max(maxAltitude, alt);
prev = alt;
}
return maxAltitude;
}... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... |
#include "dvlnet/loopback.h"
#include "utils/stubs.h"
#include "utils/language.h"
namespace devilution::net {
int loopback::create(std::string addrstr, std::string passwd)
{
return plr_single;
}
int loopback::join(std::string addrstr, std::string passwd)
{
ABORT();
}
bool loopback::SNetReceiveMess... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: implementation of the rcon client
//
//===========================================================================//
// If we are going to include winsock.h then we need to disable protected_things.h
// or else we get many war... |
// Copyright (c) 2014-2018 The Proton Core developers
// Copyright (c) 2018 The bwrgo Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "addrman.h"
#include "darksend.h"
#... |
<<<<<<< HEAD
// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers, [ ] developers.
// Licensed under the GNU Lesser General Public License. See LICENSE for details.
#pragma once
#include <deque>
#include "CryptoNote.hpp"
#include "Currency.hpp"
#include "platform/DB.hpp"
#include "p... |
/**
* Murmure - Net-SNMP MIB Versatile Extender
* Developed by Christian Visintin
*
* MIT License
* Copyright (c) 2019 Christian Visintin
* 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 S... |
/////////////////////////////////////////////////////////////////////////////
// Name: controls.cpp
// Purpose: Controls wxWidgets sample
// Author: Robert Roebling
// Modified by:
// Copyright: (c) Robert Roebling, Julian Smart
// Licence: wxWindows licence
///////////////////////////////////////... |
//
// Created by xjdkc on 19-3-14.
//
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 1006;
int f[N];
int main()
{
int n,ans=0;
cin>>n;
for (int i=0;i<n;i++)
cin>>f[i];
for (int i=1;i<n-1;i++)
{
if (f[i]>f[i-1]&&f[i]>f[i+1]||f[i]<f[i-1]&&f[i]<f[i+1])
... |
/*
Qdiffle
MIT License
Copyright (c) 2016 Barry DeZonia
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,... |
/* projection scale factors */
#define PJ_LIB__
#include "proj.h"
#include "proj_internal.h"
#include <math.h>
#include <errno.h>
#ifndef DEFAULT_H
#define DEFAULT_H 1e-5 /* radian default for numeric h */
#endif
#define EPS 1.0e-12
int pj_factors(PJ_LP lp, const PJ *P, double h, struct FACTORS *fac) {
dou... |
/**
* expection handling.
*
* @author Malik Umer Farooq <lablnet01@gmail.com>
* @author-profile https://www.facebook.com/malikumerfarooq01/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT
*/
#include <map>
#incl... |
#pragma once
#include <mbgl/map/camera.hpp>
#include <mbgl/renderer/renderer_frontend.hpp>
#include <mbgl/gl/headless_backend.hpp>
#include <mbgl/util/async_task.hpp>
#include <mbgl/util/optional.hpp>
#include <memory>
namespace mbgl {
class Scheduler;
class Renderer;
class Map;
class TransformState;
namespace gfx... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
#include "headers.hxx"
#ifndef X_IMG_HXX_
#define X_IMG_HXX_
#include "img.hxx"
#endif
extern void x_DitherRow (BYTE HUGEP * from, BYTE HUGEP * to, PALETTEENTRY *pcolors,
long row, long ncols, int transparent);
//+------------------------------------------------------------------------
// ... |
#include <NovelRT.h>
#include <iostream>
int main()
{
std::cout << "Hello, world!" << std::endl;
} |
#ifndef MAMMUT_MODULE_HPP_
#define MAMMUT_MODULE_HPP_
#include "./communicator.hpp"
#include "./utils.hpp"
#include "stdexcept"
#include "string"
#define MAMMUT_MODULE_DECL(ModuleType) friend class ::mammut::Servant; \
priva... |
#include <cgv/render/performance_monitor.h>
#include <cgv/utils/file.h>
#include <stack>
#include <stdio.h>
namespace cgv {
namespace render {
performance_monitor::frame_data& performance_monitor::current_frame()
{
return data.back();
}
void performance_monitor::add_measurement(const performance_measurement& pm)... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "uritests.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUr... |
#include <stdio.h>
#include <string.h>
int main() {
int testcase;
char s[10], s2[10], format[20] = "%0?d";
int A, B;
scanf("%d", &testcase);
while(testcase--) {
scanf("%s %d %d", s, &A, &B);
int len = strlen(s);
int c = 1, i, j;
for(i = 0; i < len; i++)
c ... |
//
// Created by zhanghui on 2022/3/20.
//
#ifndef SIMPLEST_CROSSPLATFORM_HELLOWORLD_LOGGER_HPP
#define SIMPLEST_CROSSPLATFORM_HELLOWORLD_LOGGER_HPP
#ifdef __cplusplus
extern "C" {
#endif
#include <string.h>
#define filename(x) strrchr(x,'/') ? strrchr(x,'/') + 1 : x
void sch_log(const char* filename, int line, co... |
#ifndef __ATTRIBUTES_HPP__
#define __ATTRIBUTES_HPP__
// C++ 11 dependencies
#include <iterator>
#include <string>
// protobuf dependencies
#include <mesos.pb.h>
// stout dependencies
#include <stout/option.hpp>
namespace mesos {
std::ostream& operator<<(std::ostream& stream, const Attribute& attribute);
class ... |
// Example of parsing JSON to document by parts.
// Using C++11 threads
// Temporarily disable for clang (older version) due to incompatibility with libstdc++
#if (__cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1700)) && !defined(__clang__)
#include "rapidjson/document.h"
#include "rapidjson/error/en.h"
... |
// (C) Copyright 2002-4 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org for updates, documentation, and revision ... |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
#include "AsyncProducers.h"
#include "ExprUsesVar.h"
#include "Function.h"
#include "IREquality.h"
#include "IRMutator.h"
#include "IROperator.h"
namespace Halide {
namespace Internal {
using std::map;
using std::pair;
using std::set;
using std::string;
using std::vector;
/** A mutator which eagerly folds no-op stmt... |
/** @file
* @author Edouard DUPIN
* @copyright 2014, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#include <audio/blockEngine/core/audio.hpp>
|
#include "LUATreeLoaderTest.h"
namespace {
const char *TREE = "function init ()"
"local example = AI.createTree(\"example\")"
"local rootNodeExample1 = example:createRoot(\"PrioritySelector\", \"root1\")"
"rootNodeExample1:addNode(\"Idle{3000}\", \"idle3000_1\"):setCondition(\"True\")"
"local rootNodeExample2 ... |
// Copyright 2018 The Beam Team
//
// 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... |
//===- unittest/Tooling/TransformerTest.cpp -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "slam/slam.h"
#include "mona/line_renderer.hpp"
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <cstring>
using namespace gl;
line_renderer::line_renderer(): strip(GL_LINE_STRIP),
s("../../../res/shaders/lines.vert", "../../../res/shaders/lines.frag")
{
glEnable(GL_LINE_SMOOTH);
gl... |
#include <bits/stdc++.h>
#define int long long int
#define len length
#define pb push_back
#define all(a) a.begin(), a.end()
#define scnarr(a, n) for (int i = 0; i < n; ++i) cin >> a[i]
#define vi vector<int>
#define pii pair <int, int>
#define mii map <int, int>
#define faster ios_base::sync_with_stdio(false); cin.tie... |
#pragma once
#include <string>
namespace csv
{
inline void leftTrim(std::string& string);
inline void rightTrim(std::string& string);
void trim(std::string& string);
} |
#include "Optim/SGD.h"
namespace engine {
void SGD::update(std::vector<Node*> update_nodes, float learning_rate)
{
for (auto node : update_nodes)
{
node->update([&](Node* pNode)->Node * {
Eigen::MatrixXf delta = -1 * learning_rate * pNode->getGradient(pNode);
pNode->setValue(pNode->getValue() + delt... |
/*
==============================================================================
NestedAllpass.cpp
Created: 8 Dec 2017 9:39:16am
Author: Pelle Juul Christensen
==============================================================================
*/
#include "Nested.h"
#include "Processor.h"
... |
/**
* This header file implements the DoubleMeanFilter helper class, which
*is based on MeanFilter helper class.
*
* Version: 1.1.5
* Created on: 27/03/2017
* Modified on: 27/03/2017
* Author: Adriano Henrique Rossette Leite (adrianohrl@gmail.com)
* Maintainer: Expertinos UNIFEI (expertinos.unifei@gmail.c... |
// RUN: %clang_cc1 -analyze -std=c++11 -analyzer-checker=alpha.clone.CloneChecker -verify %s
// This tests if sub-sequences can match with normal sequences.
void log2(int a);
void log();
int max(int a, int b) {
log2(a);
log(); // expected-warning{{Duplicate code detected}}
if (a > b)
return a;
return b;
... |
//-----------------------------------------------------------------------------
// File: typing.cpp
// Summary: Measure the time it takes for a user to type
// abcdefghijklmnopqrstuvxyz
// Version: 0.0
// Owner: Christoffer Karlsson
//-----------------------------------------------------------------------... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
#include<bits/stdc++.h>
using namespace std;
void solve(){
//create pair
pair<int,int>p;
p.first=100;
p.second=200;
cout<<p.first<<" "<<p.second<<"\n";
//return 0;
}
int main(){
int t;
cin>>t;
while(t--){
solve();
cout<<"\n";
}
return 0;
}
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPReflectionFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
#include "fly/path/path_monitor.hpp"
#include "fly/fly.hpp"
#include "fly/logger/logger.hpp"
#include "fly/path/path_config.hpp"
#include "fly/task/task_runner.hpp"
#include <system_error>
#include FLY_OS_IMPL_PATH(path, path_monitor)
namespace fly::path {
//========================================================... |
// 日本語 UTF-8
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case ... |
#include <bits/stdc++.h>
using namespace std;
int main () {
int n1, n2, media;
cin >> n1 >> media;
n2 = media * 2 - n1;
cout << n2 << endl;
return 0;
}
|
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
//
// Created by fs2001 on 2021/12/29.
//
#include "normal_texture.h"
NormalTexture::NormalTexture(const std::string &f, double zoom) : zoom(zoom) {
cv::Mat img = cv::imread(f, 1);
this->width = img.cols;
this->height = img.rows;
this->texture = new Vec[img.cols * img.rows];
for (int y = 0; y < im... |
/**
* Copyright Verimag laboratory.
*
* contributors:
* Jacques Combaz (jacques.combaz@univ-grenoble-alpes.fr)
*
* This software is a computer program whose purpose is to generate
* executable code from BIP models.
*
* This software is governed by the CeCILL-B license under French law and
* abiding by the... |
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secon... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT A... |
/*
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
int dp[1001];
// n =w
int minPrice(int price[], int i,int n, int w){
if(w==0) {
return 0;
}
if(i>=n){
return INT_MAX;
}
if(dp[w]!=-1) return dp[w];
... |
//
// ControlButtons.cpp - control buttons implementation
//
// cui framework, part of the liblec library
// Copyright (c) 2016 Alec Musasa (alecmus at live dot com)
//
// Released under the MIT license. For full details see the
// file LICENSE.txt
//
#include "../cui_rawImpl.h"
LRESULT CALLBACK cui_rawImpl::ControlB... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/******************************************************************************
# Author: Ian LaMotte-Kerr
# Lab: Discussion 4
# Date: today
# Description:
# Input:
# Output:
# Sources:
#**********************************************************... |
#include <cppunit/TestSuite.h>
#include <cppunit/TestCaller.h>
#include <UrchinCommon.h>
#include <common/util/FileUtilTest.h>
#include <AssertHelper.h>
using namespace urchin;
void FileUtilTest::getDirectoryUnix() {
std::string filenamePath = "/home/jean/binaryFile";
std::string result = FileUtil::getDirect... |
/*
* Copyright (C) 2019-2020 Zilliz. 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 ap... |
/**
* Copyright 2019 The Gamma Authors.
*
* This source code is licensed under the Apache License, Version 2.0 license
* found in the LICENSE file in the root directory of this source tree.
*/
#include "gamma_engine.h"
#include <fcntl.h>
#include <locale.h>
#ifndef __APPLE__
#include <malloc.h>
#endif
#include <... |
/**
* @authors Moe_Sakiya sakiya@tun.moe
* @date 2017-11-11 21:47:23
*
*/
#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <algorithm>
using namespace std;
int tenpw(int a);
int main(void) {
char str[1001];
int num[1000], numptr, isNull, i, j, len;
... |
#include "threepp/threepp.hpp"
using namespace threepp;
namespace {
class CustomSineCurve : public Curve3 {
public:
float scale;
explicit CustomSineCurve(float scale) : scale(scale) {}
void getPoint(float t, Vector3 &target) override {
float tx = t * 3 - 1.5f;
... |
/*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... |
//
// Copyright (C) 2006-2011 Christoph Sommer <christoph.sommer@uibk.ac.at>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundat... |
// Copyright (c) 2011 Sirikata 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 <sirikata/oh/Platform.hpp>
#include "ManualObjectQueryProcessor.hpp"
static int oh_manual_query_plugin_refcount = 0;
SIRIKATA_PLUGIN_EXPORT_C ... |
//*****************************************************************************
// Copyright 2017-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://w... |
/*
* Copyright (C) 2008 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... |
#include <iostream>
//#include <boost/type_index.hpp>
using namespace std;
//#pragma warning(disable : 4996)
//3.1
namespace _nmsp1
{
//TC的泛化版本
//template <typename T,typename U>
template <typename T=int, typename U=int>
struct TC
{
TC()
{
cout << "TC泛化版本的构造函数" << endl;
}
void f... |
#include "SequencerException.h"
using namespace strange::extensions::sequencer::api;
namespace strange
{
namespace extensions
{
namespace sequencer
{
namespace impl
{
SequencerExceptionType SequencerException::gettype() const
{
return privatetype;
}
void SequencerException::settype(const SequencerExceptionTy... |
#include "oloop_query.h"
#include "indexbits.h"
#include "asyncpool.h"
#include "tablepartitioned.h"
#include "internoderouter.h"
using namespace openset::async;
using namespace openset::query;
using namespace openset::result;
// yes, we are passing queryMacros by value to get a copy
OpenLoopQuery::OpenLoo... |
// Generated from C:\Users\xiang\Documents\GitHub\js_parser\ECMAScript.g4 by ANTLR 4.7
#include "ECMAScriptVisitor.h"
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "checkpoints.h"
#include "... |
#include "pch.h"
#include "LayerStack.h"
namespace Running
{
LayerStack::LayerStack()
{
}
LayerStack::~LayerStack()
{
for (Layer* layer : _layers)
{
delete layer;
}
}
void LayerStack::PushLayer(Layer* layer)
{
_layers.emplace(_layers.begin() + _layerInsertIndex, layer);
_layerInsertIndex++;
}
... |
//
// read_until.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2017 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)
//
// Disable autolinking for un... |
/* Copyright (c) 2021 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>
#include <algorithm>
#include <cstdio>
#include <algorithm>
#include <math.h>
#include <vector>
#define maxN 100001
#define X first
#define Y second
#define d(a, b) ((a.X - b.X)*(a.X - b.X) + (a.Y - b.Y)*(a.Y - b.Y))
#define eps 1e-9
typedef long maxn;
typedef long long maxa;
typedef std::pair <ma... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "Terminal.hpp"
#include "../../terminal/parser/OutputStateMachineEngine.hpp"
#include "TerminalDispatch.hpp"
#include "../../inc/unicode.hpp"
#include "../../inc/DefaultSettings.h"
#include "../../inc/argb.h"
... |
#include <iostream>
const int MAXN = 400;
const int MAXM = 800;
int Field[MAXN * MAXM];
int get_parent(int x)
{
if(Field[x - 1] == x)
return x;
Field[x - 1] = get_parent(Field[x - 1]);
return Field[x - 1];
}
void connect(int x, int y)
{
x = get_parent(x);
y = get_parent(y);
if(x ... |
#pragma once
#include "stdafx.h"
#include "MyRTSPClient.h"
/**
Static method to create an new instance of our version of a RTSPClient
*/
MyRTSPClient* MyRTSPClient::createNew(UsageEnvironment& env, char const* rtspURL)
{
int level= g_logLevel;
return new MyRTSPClient(env, rtspURL, level, "Cisco", 0);
}
/**
Singl... |
/*=============================================================================
Copyright (c) 2011-2015 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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.tx... |
/*
* Copyright (c) 2018, NVIDIA 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2018 The QBICcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "main.h"
... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <cstring>
using namespace std;
struct Edge { int From, To, Pow; };
vector<Edge> G[501];
int dis[501], cnt[501];
bool inq[501], vis[501];
bool Spfa(int s, int n)
{
memset(dis, 0x3f, sizeof dis);
memset(inq, 0, sizeof inq... |
/*
* Copyright (C) 2010, Google 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 condition... |
// Concord
//
// Copyright (c) 2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0
// License.
//
// This product may include a number of subcomponents with separate copyright
... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2012 Intel Corporation. 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 noti... |
// 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 "google_apis/gcm/engine/connection_handler_impl.h"
#include <stdint.h>
#include <memory>
#include <string>
#include <utility>
#include "base/b... |
#pragma once
#include <iostream>
#include <math.h>
#include "../UI/UI.hpp"
using namespace std;
class SdlEyes : public UiItem
{
public:
bool Draw() override
{
ImGui::Begin("Eyes", &Running, ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
if (!Running)
{
ImGui::End()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.