text stringlengths 7 961k |
|---|
// Copyright (c) 2012-2020 The Bitkincoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <hash.h>
#include <serialize.h>
#include <streams.h>
#include <test/util/setup_common.h>
#include <util/strencodi... |
#include <algorithm>
#include <cerrno>
#include <charconv>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <exception>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string_view>
#include <sys/types.h>
#include <unistd.h>
#include <unordered_set>
#include <utility>
... |
//
// Communicate with arduino/openwrt/...
//
#ifndef LED_D_PIPE_HPP
#define LED_D_PIPE_HPP
#include <limits>
#include <memory>
#include <string>
#include <list>
#include "device-codec.hpp"
#include "block.hpp"
#include "matrix.hpp"
#include "mutex-queue.hpp"
#include "serial.hpp"
namespace led_d
{
class pipe_t
... |
/*
* 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 below or t... |
#include "stdafx.h"
#include "EnumCore.h"
using namespace System;
using namespace Tools;
using namespace System::Collections::Generic;
using namespace System::Reflection;
//EnumCore::EnumCore(){/*do nothing*/}
generic <class T> where T:Enum
bool EnumCore::HasFlagSet(T value, T flag) {
return value->HasFlag(flag)... |
/**
* eZmax API Definition (Full)
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.7
* Contact: support-api@ezmax.ca
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-gener... |
/*
* Copyright (c) 2013 The WebM 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 contributin... |
#include <vcpkg/base/files.h>
#include <vcpkg/base/graphs.h>
#include <vcpkg/base/strings.h>
#include <vcpkg/base/util.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/packagespec.h>
#include <vcpkg/paragraphs.h>
#include <vcpkg/portfileprovider.h>
#include <vcpkg/statusparagraphs.h>
#include <vcpkg/vcpkglib.h>
#inc... |
#include <cpptoml.h>
#include <imgui.h>
#include <spdlog/spdlog.h>
#include "adapter/adapter.hpp"
#include "bot/bot_api.hpp"
#include "model/cell.hpp"
#include "model/components.hpp"
#include "model/grid_point.hpp"
#include "model/model.hpp"
#include "ninja_clown/api.h"
#include "state_holder.hpp"
#include "utils/logg... |
/*
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... |
//
// timer.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)
//
#include <iostream>
#include <boost/asio.hpp>
#in... |
/*
* Copyright 2019-2020 Douglas Kaip
*
* 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 t... |
///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. 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_
#ifndef BOOST_MATH_DEBUG_ADAPTER_HPP
#define BOOST_MATH_DEBUG_ADAPTER_HPP... |
typedef struct RpLight;
typedef struct xEnt;
typedef struct zAssetPickupTable;
typedef struct xAnimTable;
typedef struct RxHeap;
typedef struct xCollis;
typedef struct RwBBox;
typedef struct RwRGBA;
typedef struct RpInterpolator;
typedef struct _tagFeetSkidMark;
typedef struct RxPipelineNode;
typedef struct zPlatform;
... |
/*
* StudyArea.cpp
*
* Created on: 6 Jun 2017
* Author: gishara
*/
#include "StudyArea.hpp"
using namespace sim_mob::long_term;
StudyArea::StudyArea(BigSerial id, BigSerial fmTazId, std::string studyCode):
id(id),fmTazId(fmTazId),studyCode(studyCode) {}
StudyArea::~StudyArea() {}
BigSerial Stud... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/*
Copyright (c) 2010, 2012, 2014-2019, Arvid Norberg
Copyright (c) 2016, 2019, Alden Torres
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 c... |
//===--- SemaChecking.cpp - Extra Semantic Checking -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/**
* > Author : TISparta
* > Date : 03-05-18
* > Tags : Mo algorithm, LCA
* > Difficulty : 6 / 10
*/
// Playing with pointers :v
#include <bits/stdc++.h>
using namespace std;
int V, Q, BLOCK_SIZE;
struct Tree {
Tree() {}
~Tree() {}
int timer = 0;
vector <int> *W, *depth, *start, *finish, *ar... |
/*
* 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... |
#pragma once
#include <optional>
#include <tuple>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include "../../../Input/Buttons.hpp"
#include "../../../Data/Song.hpp"
#include "../../../Toolkit/AffineTransform.hpp"
#include "../Resources.hpp"
namespace MusicSelect {
class Ribbon;
// A Panel hol... |
/****************************************************************************
THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND IMAGE RETERIVAL SERVICES
DOES NOT MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS
PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFOR... |
// 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/bitcoin-config.h"
#endif
#include "c... |
#ifndef FALCON_FN_TO_STRING_HPP
#define FALCON_FN_TO_STRING_HPP
#include <falcon/c++1x/syntax.hpp>
#include <falcon/fn/make_global_function_object.hpp>
#include <string>
namespace falcon {
namespace fn {
namespace adl_ {
using std::to_string;
}
FALCON_MAKE_GLOBAL_FUNCTION_OBJECT(adl_, to_string)
/// \br... |
///////////////////////////////////////
// AUTO GENERATED FILE - DO NOT EDIT //
///////////////////////////////////////
/* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* SPDX-FileCopyrightText: 2016-2020 the prplMesh contributors (see AUTHORS.md)
*
* This code is subject to the terms of the BSD+Patent license.
... |
/*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/sksl/dsl/priv/DSLWriter.h"
#include "include/core/SkTypes.h"
#include "include/private/SkSLDefines.h"
#include "include/private/SkSLProgramElement.h"
#include "i... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
/// -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL: https://hpctoolkit.googlecode.com/svn/branches/hpctoolkit-hpcserver/src/tool/hpcserver/Server.cpp $
// $Id: Server.cpp 4461 2014-03-12 16:49:28Z laksono@gmail.com $
//
// ---------------------------------... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPathRef.h"
#include "SkBuffer.h"
#include "SkNx.h"
#include "SkOnce.h"
#include "SkPath.h"
#include "SkPathPriv.h"
#include "SkSafeMath.h"
#include "SkTo.h"
// C... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <memory>
#include <pup.h>
#include "Parallel/CharmPupable.hpp"
#include "Utilities/TMPL.hpp"
/// Boundary corrections/numerical fluxes
namespace GeneralizedHarmonic::BoundaryCorrections {
/// \cond
templat... |
#include "scanningsonarswitchcommand.h"
ScanningSonarSwitchCommand::ScanningSonarSwitchCommand()
{
headId = 0x10;
}
QByteArray ScanningSonarSwitchCommand::toSerialCmd() const
{
QByteArray a = SonarSwitchCommand::toSerialCmd();
a[11] = trainAngle; // Train Angle
a[12] = sectorWidth; // Sector Width
... |
// Copyright (c) 2011-2015 The Cryptonote developers
// Copyright (c) 2016-2017 - 2019 Niobio Cash developers - Derived work from -Karbowanec-
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QCoreApplication>
#incl... |
/*
* Copyright 2005 Adrian Thurston <thurston@colm.net>
*
* 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, mo... |
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main() {
unsigned aCnt = 0;
unsigned eCnt = 0;
unsigned iCnt = 0;
unsigned oCnt = 0;
unsigned uCnt = 0;
char ch;
while (cin >> ch) {
switch (ch) {
case 'a':
case 'A':
++aCnt;
break;
ca... |
#include "RaZ/Utils/Shape.hpp"
namespace Raz {
// Line functions
bool Line::intersects(const Line&) const {
throw std::runtime_error("Error: Not implemented yet.");
}
bool Line::intersects(const Plane& plane) const {
const Vec3f lineVec = m_endPos - m_beginPos;
const float lineVecPlaneAngle = lineVec.dot(plan... |
#ifndef SXE_RESOURCE_RESOURCEFACET__HPP
#define SXE_RESOURCE_RESOURCEFACET__HPP
/*-
* Copyright (c) 2020-current, Terry Mathew Poulin <BigBoss1964@gmail.com>
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the... |
#include "glare/core/string_utils.h"
#include "glare/core/assert.h"
#include <fstream>
#include <sstream>
#include <stdarg.h>
namespace glare {
////////////////////////////////
string format(const char* fmt, ...)
{
constexpr size_t BUFFER_SIZE = 2048;
char buffer[BUFFER_SIZE];
va_list va;
va_start(va, fmt);
vsnpr... |
/*
Copyright (c) 2005-2020 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.org/licenses/LICENSE-2.0
Unless required by applicable la... |
#include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBT... |
#include "../splayTree.h"
#include "gtest/gtest.h"
#include <random>
#include <algorithm>
template<typename Key, typename Value>
class InheritedBST : public SplayTree<Key, Value>
{
public:
Node<Key, Value>* getRoot() { return this->mRoot; }
};
class SplayTest : public testing::Test
{
protected:
void stressTestInser... |
/* This file is part of GRAMPC-D - (https://github.com/grampc-d/grampc-d.git)
*
* GRAMPC-D -- A software framework for distributed model predictive control (DMPC)
* based on the alternating direction method of multipliers (ADMM).
*
* Copyright 2020 by Daniel Burk, Andreas Voelz, Knut Graichen
* All rights reserve... |
#include "TestFillGlyphs.h"
#ifdef USE_D2D_CAIRO
#include "DrawTargetBackend.h"
#endif
BOOL TestFillGlyphs::Run(DrawTarget* aDT, void * aUserPtr)
{
TestRunner* testRunner = static_cast<TestRunner*>(aUserPtr);
if (!testRunner)
return false;
FontManager* fontManager = testRunner->GetFontManager();
... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/document/repo/documenttyperepo.h>
#include <vespa/searchcore/proton/server/documentdbconfig.h>
#include <vespa/searchcore/proton/server/documentdbconfigscout.h>
#include <vespa/searchc... |
#include <Dictionaries/getDictionaryConfigurationFromAST.h>
#include <Poco/DOM/AutoPtr.h>
#include <Poco/DOM/Document.h>
#include <Poco/DOM/Element.h>
#include <Poco/DOM/Text.h>
#include <Poco/Util/AbstractConfiguration.h>
#include <Poco/Util/XMLConfiguration.h>
#include <IO/WriteHelpers.h>
#include <Parsers/queryToSt... |
#if !defined(BUFFER_MANAGER_HPP)
#define BUFFER_MANAGER_HPP
#include "../common/common.hpp"
#include <string>
#include <vector>
class Block
{
private:
const std::string & database_name;
std::string table_name;
int block_number;
char * data;
bool locked;
bool dirty;
friend class Buffer_Manager;
public:
static... |
/**
* @file base.hpp
* @brief Base header file.
*
* The base header file including essential macros that should be defined globally
* in the entire package. They can be redefined at compile time.
*
* @author Ali Ghaffaari (\@cartoonist), <ali.ghaffaari@mpi-inf.mpg.de>
*
* @internal
* Created... |
#ifndef DUCKDB_NO_THREADS
#include "catch.hpp"
#include "duckdb/common/progress_bar.hpp"
#include "duckdb/main/client_context.hpp"
#include "test_helpers.hpp"
#include <duckdb/execution/executor.hpp>
#include <future>
#include <thread>
using namespace duckdb;
using namespace std;
class TestProgressBar {
public:
ex... |
/*
* 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 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/wasm/baseline/liftoff-compiler.h"
#include "src/base/optional.h"
#include "src/base/platform/wrappers.h"
#include "src/codegen/assembler-... |
/*
* Copyright (C) 2006 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 ... |
//////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by: Ken Esler... |
#ifndef LM_COMMON_MODEL_BUFFER_H
#define LM_COMMON_MODEL_BUFFER_H
/* Format with separate files in suffix order. Each file contains
* n-grams of the same order.
*/
#include "lm/word_index.hh"
#include "util/file.hh"
#include "util/fixed_array.hh"
#include "util/string_piece.hh"
#include <string>
#include <vector>
... |
// SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org>
//
// SPDX-License-Identifier: MIT
#include "testhttpserver.h"
#include "testobject.h"
#include "qcoro/network.h"
#include <QHostAddress>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QTcpServer>
class QCoroNetworkReplyTest : pub... |
#include "stdafx.h"
#include "SoundsList.h"
#include "Messages.h"
CSoundsList::CSoundsList()
{
}
// End of CSoundsList()
CSoundsList::~CSoundsList()
{
}
// End of ~CSoundsList()
CSoundEntry* CSoundsList::DoAddSound(CSoundEntry::CSoundName* a_psName)
{
CSoundEntry Entry;
Entry.SetPlaying(false);
*Entry.GetNa... |
#include <iostream>
#include <string.h>
#include "prog6.h"
void Department::getdata() {
std::cout << "\n公司名稱-->";
std::cin >> name;
}
void Department::showdata() {
std::cout << "\n公司名稱 -->" << name;
}
void Human::getdata() {
Department::getdata();
std::cout << "公司總人數-->";
std::cin >> total_member;
std:... |
// -*- C++ -*-
//===------------------------------ charconv ------------------------------===//
//
// 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<iostream>
using namespace std;
int main(){
int a[] = {0,1,0,1,1,0,0,1};
for(auto x:a)
cout<<" "<<a[x];
int N = 100;
int size = sizeof(a)/sizeof(a[0]);
while(N--){
for(int i=0;i<size;i++){
if(i == 0 || i == size-1) continue;
a[i] = a[i-1] ^ a[i+... |
#pragma once
#include "DistanceFunction.hpp"
namespace chm {
/**
* Metrika Eukleidovské vzdálenosti mezi dvěma prvky.
* @param[in] node Vektor prvního prvku.
* @param[in] query Vektor druhého prvku.
* @param[in] dim Počet dimenzí prostoru.
* @return Eukleidovská vzdálenost.
*/
static float euclideanDista... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "linker.h"
#include "common/compiler_support.h"
#include "core/helpers/debug_helpers.h"
#include "core/helpers/ptr_math.h"
#include "RelocationInfo.h"
#include <sstream>
namespace NEO {
bool LinkerInput::decodeGloba... |
/*
* Copyright (c) 2020, 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 ... |
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021, 2022 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files ... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Basic.hpp"
#include "ARKSurvivalEvolved_PrimalItemAmmo_ArrowBase_classes.hpp"
namespace sdk
{
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permiss... |
//$Id$
//------------------------------------------------------------------------------
// CelestialBodyOrientationPanel
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States... |
// DDCPP/standard/bits/DD_partition_by.hpp
#ifndef DD_PARTITION_BY_HPP_INCLUDED_
# define DD_PARTITION_BY_HPP_INCLUDED_ 1
# include "DD_swap_target.hpp"
DD_DETAIL_BEGIN_
template <typename BidirectionalIteratorT_, typename UnaryPredicateT_>
BidirectionalIteratorT_ partition_by(
BidirectionalIteratorT_ begin__,
... |
/*
* Copyright 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 contributing ... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <utility>
#include "all_close.hpp"
#include "all_close_f.hpp"
#include "engine_factory.hpp"
#include "ngraph/file_util.hpp"
#include "ngraph/function.hpp"
#include "ngraph/ngraph.hpp"
#include "openvino/runti... |
//
// 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 the following disclaimer.
// * Redistributions in bin... |
#include <gtest/gtest.h>
#include <cmd_args.h>
#include <memory>
#include <string>
using namespace std;
struct unit_call_settings {
bool called;
};
void unit_call_act_callback(unit_call_settings & settings) {
settings.called = true;
}
TEST(unit_call_act, exec_callback) {
using namespace command_line;
auto ... |
/*
* 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 ... |
// $Id: Notify_Default_CO_Factory.cpp 1861 2011-08-31 16:18:08Z mesnierp $
#include "orbsvcs/Notify/Notify_Default_CO_Factory.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
int
TAO_Notify_Default_CO_Factory::init_svc (void)
{
// NOP.
return 0;
}
TAO_END_VERSIONED_NAMESPACE_DECL |
/* Copyright 2017 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 "../include/xnet/http/client"
#include "../include/xnet/http/server"
#include "../include/xnet/http/utility"
#include <curl/curl.h>
#include <curl/easy.h>
#include <gsl/gsl>
#include <cstring>
#include <regex>
xnet::http::server::server() :
socket(AF_INET, SOCK_STREAM, 0)
{
}
bool xnet::http::server::bi... |
// Copyright (c) 2016 The Commercium developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "config.h"
#include "chainparams.h"
#include "consensus/consensus.h"
#include "test/test_commercium.h"
#include <boost/tes... |
#include "../../code_builder_lib_common/push_disable_llvm_warnings.hpp"
#include <clang/AST/Attr.h>
#include <clang/AST/DeclBase.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Lex/LiteralSupport.h>
#include <clang/Lex/Preprocessor.h>
#include <llvm/Support/ConvertUTF.h>
#include "../../code_builder_lib... |
/* Copyright (c) 2018-2019, Arm Limited and Contributors
* Copyright (c) 2019, Sascha Willems
*
* SPDX-License-Identifier: Apache-2.0
*
* 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) 2021 OceanBase
* OceanBase Database Proxy(ODP) 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 ... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "networkrequest.h"
#include "captiveportal/captiveportal.h"
#include "constants.h"
#include "features/fea... |
/* Generated by Cython 0.29.22 */
/* BEGIN: Cython Metadata
{
"distutils": {
"language": "c++",
"name": "pymoo.cython.info",
"sources": [
"pymoo/cython/info.pyx"
]
},
"module_name": "pymoo.cython.info"
}
END: Cython Metadata */
#define PY_SSIZE_T_CLEAN
#include ... |
/*
* PinBase.cpp
*
* Created on: 27.03.2020
* Author: andreas
*/
#include <PinBase.hpp>
#include "stm32f1xx.h"
#include "stm32f1xx_hal_gpio.h"
#include "stm32f1xx_hal_def.h"
namespace hal_uc
{
PinBase::PinBase(const PortBase& port, const PinInitType& pinInit) :
port(port), pinConfig(pinInit)
{
init()... |
/*
* 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" file... |
// Copyright (c) 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.
#include <torcontrol.h>
#include <utilstrencodings.h>
#include <net.h>
#include <util.h>
#include <crypto/hmac_sha256.h>
#include... |
/*
* Copyright (c) 2016, Graphics Lab, Georgia Tech Research Corporation
* Copyright (c) 2016, Humanoid Lab, Georgia Tech Research Corporation
* Copyright (c) 2016, Personal Robotics Lab, Carnegie Mellon University
* All rights reserved.
*
* This file is provided under the following "BSD-style" License:
* Redi... |
//---------------------------------------------------------------------------//
// Copyright (c) 2014 Mageswaran.D <mageswaran1989@gmail.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
//
// See http://boost... |
#include <iostream>
//#include "Solution1.h"
#include "Solution2.h"
int main() {
vector<int> nums = {2, 2, 1};
Solution s;
cout << s.singleNumber(nums) << endl;
return 0;
} |
#include "WandPCH.h"
#include "App.h"
#include "Utils/Random.h"
#include "Utils/Logger.h"
namespace wand
{
App::App()
: mWindow(std::make_shared<Window>()), mCursorManager(std::make_shared<CursorManager>()),
mInput(std::make_shared<Input>()), mRenderer(std::make_shared<Renderer>()),
mEntityManager(std::make_sha... |
//======= Copyright (C) 2005-2011, Valve Corporation, All rights reserved. =========
//
// Public domain MurmurHash3 by Austin Appleby is a very solid general-purpose
// hash with a 32-bit output. References:
// http://code.google.com/p/smhasher/ (home of MurmurHash3)
// https://sites.google.com/site/murmurhash/avalanc... |
/*
* Souffle - A Datalog Compiler
* Copyright (c) 2019, The Souffle Developers. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/********************************************************... |
#ifndef CSP_ISBN_NUMBER_HPP
#define CSP_ISBN_NUMBER_HPP
#ifdef WITH_CMAKE
#include <utility>
#include <string>
#include <cstdint>
#include <cstdlib>
#include <sstream>
#include <vector>
using namespace std;
pair<bool,string> isbn_number(const string &input) {
vector<int32_t> numbers{};
for(const auto &ch: i... |
//---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_Nuclide.hpp
//! \author Alex Robinson
//! \brief The nuclide class declaration
//!
//---------------------------------------------------------------------------//
#ifndef MONTE_CARLO_NUCLIDE_HPP
#define MONTE_CA... |
// Copyright (c) 2018 The GAM Authors
#include <cstring>
#include <utility>
#include <queue>
#include "rdma.h"
#include "worker.h"
#include "anet.h"
#include "log.h"
#include "ae.h"
#include "client.h"
#include "util.h"
#include "structure.h"
#include "ae.h"
#include "tcp.h"
#include "slabs.h"
#include "zmalloc.h"
#... |
#include "cmStandardIncludes.h"
#line 2 "cmDependsJavaLexer.cxx"
#line 4 "cmDependsJavaLexer.cxx"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 31
#if YY_FLEX_SUBMINOR_... |
// Copyright 2020 The XLS 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 agreed t... |
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QTimer>
#include <QThread>
#include <QTextEdit>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
// TODO: make it possible to filt... |
/*******************************************************************************
* Copyright 2016-2018 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.apa... |
/*************************************************************************/
/* image_loader_tga.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
class Solution {
public:
bool isSymmetrical(TreeNode* pRoot)
{
return is(pRoot,pRoot);
}
bool is(TreeNode* p1,TreeNode* p2)
{
if(p1==NULL&&p2!=NULL) return false;
if(p1!=NULL&&p2==NULL) return false;
if(p1==NULL&&p2==NULL) return true;
if(p1->val==p2->val)
... |
#include "shellcommand.h"
#include "file.h"
#include "user.h"
#include "nice.h"
#include "sigset.h"
#include <util/folder/dirut.h>
#include <util/generic/algorithm.h>
#include <util/generic/buffer.h>
#include <util/generic/vector.h>
#include <util/generic/yexception.h>
#include <util/memory/tempbuf.h>
#include <util/n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.