text stringlengths 7 961k |
|---|
/*
* This file is part of FFL project.
*
* The MIT License (MIT)
* Copyright (C) 2017-2018 zhufeifei All rights reserved.
*
* MessageBase.hpp
* Created by zhufeifei(34008081@qq.com) on 2018/03/11
*
* 消息的基类
*
*/
#pragma once
#include <pipeline/FFL_PipelineMessage.hpp>
#include <pipeline/FFL_PipelineMessageCache.hp... |
#ifndef LAMBDA_FILE_READER_HPP
#define LAMBDA_FILE_READER_HPP
#include <arrow/api.h>
#include <arrow/io/api.h>
#include <arrow/io/memory.h>
#include <arrow/filesystem/filesystem.h>
#include <orc/OrcFile.hh>
namespace lambda {
class ReadableFile : public arrow::io::RandomAccessFile {
public:
std::shared_ptr... |
// 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.
#include "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#include "primiti... |
#include "string.h"
#include "deque.h"
#include "vector.h"
#include "yexception.h"
#include <library/unittest/registar.h>
#include <util/string/subst.h>
#include <util/stream/output.h>
#include <util/charset/wide.h>
#include <string>
#include <sstream>
#include <algorithm>
#include <stdexcept>
#define UNIT_CHECK UN... |
/**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 followin... |
//==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... |
#include <bits/stdc++.h>
using namespace std;
inline long long read()
{
long long x = 0;
int f = 1;
char ch = getchar();
while (ch < '0' || ch > '9')
{
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9')
{
x = (x << 1) + (x << 3) ... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBP2P_CLOSEABLE_MOCK_HPP
#define LIBP2P_CLOSEABLE_MOCK_HPP
#include <libp2p/basic/closeable.hpp>
#include <gmock/gmock.h>
namespace libp2p::basic {
class CloseableMock : public Closeable {
public:
... |
/* Copyright 2016-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0.
* Derived from thirdparty/libart/tests/test_art.c which is
* Copyright 2012 Armon Dadgar. See thirdparty/libart/LICENSE. */
#include "watchman_system.h"
#include <fcntl.h>
#include <folly/logging/xlog.h>
#include <folly/portab... |
#define CROW_ENABLE_SSL
#include "src/page.h"
#include "ext/crow/crow.h"
#include "src/CmdLineOptions.h"
#include "src/MicroCore.h"
#include <fstream>
#include <regex>
using boost::filesystem::path;
using xmreg::remove_bad_chars;
using namespace std;
namespace myxmr
{
struct jsonresponse: crow::response
{
js... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "backend/protobuf/block.hpp"
#include <boost/range/adaptors.hpp>
#include "backend/protobuf/common_objects/signature.hpp"
#include "backend/protobuf/transaction.hpp"
#include "backend/protobuf/util.hpp"
#incl... |
#include <tesseract_common/macros.h>
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#include <gtest/gtest.h>
#include <type_traits>
TESSERACT_COMMON_IGNORE_WARNINGS_POP
#include <tesseract_common/utils.h>
#include <tesseract_common/sfinae_utils.h>
TEST(TesseractCommonUnit, isNumeric) // NOLINT
{
std::vector<std::string> tr... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
///////////////////////////////////////////////////////////////
// Copyright 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_
#include <boost/multiprecision/cpp_bin_float.hpp>
#include "libs/multipr... |
class CfgPatches {
class RPL_Characters_Pants {
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {
"DZ_Characters"
};
};
};
class CfgVehicles {
class Clothing_Base;
class PrisonUniformPants;
class RPL_PrisonUniformPants_Olive: PrisonUniformPants {
scope = 2... |
#ifdef TERRA_LLVM_HEADERS_HAVE_NDEBUG
//somewhere in LLVM's header files they define an object differently
//if NDEBUG is on, causing CallGraph functions to crash.
//we compile this file with a matching NDEBUG setting to get around this
#define NDEBUG
#endif
#include "llvmheaders.h"
#include "tinline.h"
using namespac... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* (C) 2006 Alexey Proskuryakov (ap@nypop.com)
* Copyright (C) 2008 To... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
#include "temperature_sensor.h"
#include "IDisplay.h"
#include "ds1820.h"
using namespace Sensor;
using namespace Display;
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <string>
#include <strstream>
using namespace std;
Temperature_sensor::Temperature_sensor(IDisplay& IDisplay... |
// SciTE - Scintilla based Text Editor
/** @file GUIWin.cxx
** Interface to platform GUI facilities.
** Split off from Scintilla's Platform.h to avoid SciTE depending on implementation of Scintilla.
**/
// Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions unde... |
#include "duckdb/planner/planner.hpp"
#include "duckdb/main/query_profiler.hpp"
#include "duckdb/common/serializer.hpp"
#include "duckdb/main/client_context.hpp"
#include "duckdb/main/database.hpp"
#include "duckdb/parser/statement/pragma_statement.hpp"
#include "duckdb/parser/statement/prepare_statement.hpp"
#include ... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/mediactrl_wmp10.cpp
// Purpose: Windows Media Player 9/10 Media Backend for Windows
// Author: Ryan Norton <wxprojects@comcast.net>
// Modified by:
// Created: 11/07/04
// RCS-ID: $Id: mediactrl_wmp10... |
#include <cstdint>
#include <string>
#include <vector>
#include "mjolnir/pbfadminparser.h"
#include "mjolnir/osmpbfparser.h"
#include "mjolnir/graphbuilder.h"
#include "mjolnir/hierarchybuilder.h"
#include "mjolnir/adminconstants.h"
#include "baldr/graphconstants.h"
#include "config.h"
#include <sqlite3.h>
#include ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/downloads_dom_handler.h"
#include <algorithm>
#include <functional>
#include "base/basictypes.h"
#include "base/bi... |
#include<bits/stdc++.h>
// #include<unistd.h>
using namespace std;
#define ll long long
#define ld long double
#define mod 1000000007
double PI = acos(-1);
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define ALL(v) v.begin(), v.end()
#define ALLA(arr, sz) arr, arr + sz
#define st(v) sor... |
/*
* Copyright (c) 2011-2014, University of Delaware
* 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... |
#include "controlador_bin.h"
string ReplaceAll3(string str, const string& from, const string& to) {
size_t start_pos = 0;
while((start_pos = str.find(from, start_pos)) != string::npos) {
str.replace(start_pos, from.length(), to);
start_pos += to.length();
}
return str;
}
string *Contro... |
/*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... |
#include <iostream>
#include <GL.hpp>
#include <GLFW.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <logger.hpp>
#include <types.hpp>
#include <readers.hpp>
#include "Subsystems/Rendering/Resources/shaders.hpp"
#include "Subsystems/Rendering/Resources/ge... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================
**
** Header: AssemblyNative.cpp
**
** Purpose: Implements AssemblyNative (loader domain) architecture
**
**
**
====... |
//
// dmprfdll.cpp
//
// Copyright (c) 1997-1999 Microsoft Corporation
//
// Note: Dll entry points as well as class factory implementations.
//
// READ THIS!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// 4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
//
// We disable this because we use except... |
#include <boost/program_options.hpp>
#include <client/Client.hpp>
#include <network/Upnp.hpp>
#include <consensus/chainstate/ChainDatabase.hpp>
#include <consensus/Time.hpp>
#include <rpc/RpcServer.hpp>
#include <console/Cli.hpp>
#include <utilities/GitRevision.hpp>
#include <fc/filesystem.hpp>
#include <fc/thread/thr... |
/*
* 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... |
// 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 "components/subresource_filter/content/browser/profile_interaction_manager.h"
#include "base/logging.h"
#include "components/content_settings/br... |
/* Copyright 2016 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 "util.h"
#include "clientversion.h"
#include "primitives/transaction.h"
#include "random.h"
#include "sync.h"
#include "utilstrencodings.h"
#include "utilmoneystr.h"
#include "test/test_bitcoin.h"
#include <stdint.h>
#include <vector>
#include "chainparams.h"
#include "consensus/consensus.h"
#include "conse... |
//===-- SparcMCExpr.cpp - Sparc specific MC expression classes --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------------... |
/*
* Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
Copyright (c) 2014-2017, 2019-2020, Arvid Norberg
Copyright (c) 2016, 2020, Alden Torres
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#include "libtorrent/aux_/crc32c.hpp"
#include "libtorrent/aux_/cpuid.hpp"
#include "libtorrent/assert... |
#include "Texts.h"
namespace text
{
const uint16_t you_died[] PROGMEM = {
56, 28, 0, 0, 56, 28, 0,
0x0, 0x0, 0x0, 0x0, 0x0, 0xABEA, 0xABEA, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7F0, 0x7F0, 0x0, 0xABEA, 0xABEA, 0x0, 0x0... |
#include "MainWindow.h"
#include "ui_MainWindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
int net_input_width = 1024;
int net_input_height = 512;
string model_path = "/home/chli/chLi/Project/Mine/Libtorch_Detector_Qt/model/La... |
#include <Switch/Switch>
using namespace System;
using namespace System::Drawing;
namespace Examples {
class Program {
public:
// The main entry point for the application.
static void Main() {
Font font1(FontFamily::GenericMonospace, 42.0f, FontStyle::Bold);
Console::WriteLine("font1 = {0}", f... |
#include <Rcpp.h>
// [[Rcpp::plugins(cpp11)]]
//
// Original author: Tomas Petricek (http://www.codeproject.com/KB/recipes/ahocorasick.aspx)
// Copyright 2005 Tomas Petricek
//
// Adapted to C++ by: Matt Chambers <matt.chambers .@. vanderbilt.edu>
// Copyright 2016 Vanderbilt University
//
// Licensed under the Apache... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/*
Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include "stdafx.h"
#include "FRED.h"
#include "FREDDoc.h"
#include "Mis... |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
IL2CPP_EXTERN_C_BEGIN
IL2C... |
// Copyright (c) 2019-2021 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 <crypto/chacha_poly_aead.h>
#include <crypto/... |
/*
* Copyright (C) 2012 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... |
/*
* 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... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#ifdef __CINT__
#include <qtcint.dl... |
/*
* Copyright (c) 2011-2013 by naehrwert
* This file is released under the GPLv2.
*/
#include "types.h"
#include "config.h"
#include "util.h"
#include "sce.h"
#include "elf.h"
#include "self.h"
#include "keys.h"
/*! SELF types. */
id_to_name_t _self_types[] =
{
{SELF_TYPE_LV0, "lv0"},
{SELF_TYPE_LV1, "lv1"},
{SE... |
#include <iostream>
#include <cmath>
class Point2d
{
private:
double m_x{};
double m_y{};
public:
Point2d(double x = 0.0, double y = 0.0)
: m_x{x}, m_y{y}
{
}
void print() const
{
std::cout << "Point2d(" << m_x << ", " << m_y << ")\n";
}
// double distanceTo(Point2d... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/* 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... |
class Solution {
public:
std::string XXX(std::string a, std::string b) {
int size1 = a.size() - 1;
int size2 = b.size() - 1;
std::reverse(a.begin(), a.end());
std::reverse(b.begin(), b.end());
std::string s;
int cf = 0;
if (size1 > size2)
s = a;
... |
class Solution {
public:
string toHexadecimal(string num) {
char hexChar[16] = {'O', 'I', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
long long decimal = stoll(num);
stack<char> hexDigitals;
while (decimal != 0) {
hexDigitals.push(hexChar[decim... |
/**
* Copyright 2020 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 monster.cpp
*
* Implementation of monster functionality, AI, actions, spawning, loading, etc.
*/
#include "all.h"
#include "../3rdParty/Storm/Source/storm.h"
DEVILUTION_BEGIN_NAMESPACE
/** Tracks which missile files are already loaded */
int MissileFileFlag;
// BUGFIX: replace monstkills[MAXMONSTERS]... |
/*
Copyright (C) 2010-2013 Le Hoang Quyen (lehoangq@gmail.com)
This program is free software; you can redistribute it and/or
modify it under the terms of the MIT license. See the file
COPYING.txt included with this distribution for more information.
*/
#include "../HQUtilPCH.h"
#include "../../HQSemaphore.h"
#inc... |
/* md5Checksum.c - checksumming routine on the client side
*/
#include "irods_stacktrace.hpp"
#include "irods_hasher_factory.hpp"
#include "getRodsEnv.h"
#include "irods_log.hpp"
#include "objInfo.h"
#include "MD5Strategy.hpp"
#include "rodsKeyWdDef.h"
#include "rcMisc.h"
#include "checksum.hpp"
#include <fstream>
#... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestGPURayCastTransfer2D.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This ... |
#ifndef TESTREADINTOARRAY_HPP
#define TESTREADINTOARRAY_HPP
#include <string>
#include <vector>
std::vector<std::string> readIntoArray( char* file );
#endif |
/****************************************************************************
Copyright (c) 2010-2013 cocos2d-x.org
Copyright (c) Microsoft Open Technologies, Inc.
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 ... |
// Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_PARSE_BASIC_STRING_FWD_HPP_INCLUDED
#define FCPPT_PARSE_BASIC_STRING_FWD_HPP_INCLUDE... |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All Rights reserved
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software,
* associated documentation and/or data (collectively the ... |
#pragma once
namespace nall::Eval {
inline auto whitespace(char n) -> bool {
return n == ' ' || n == '\t' || n == '\r' || n == '\n';
}
inline auto parse(Node*& node, const char*& s, uint depth) -> void {
auto unaryPrefix = [&](Node::Type type, uint seek, uint depth) {
auto parent = new Node(type);
parse(... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "configoutputswidget.hpp"
#include "guiconstants.hpp"
#include "outputconfigurationwidget.hpp"
#include "outputdetailwidget.hpp"
#include "generic/genericdialog.hpp"
#include "generic/generictablewidget.hpp"
#include "plugin/newoutputw... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2020, the Ginkgo authors
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 co... |
/*
* 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... |
#include "SExprExecutor.h" |
/*
* Copyright (c) 2008, Willow Garage, Inc.
* Copyright (c) 2017, Open Source Robotics Foundation, 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:
*
* * Redistributions of source... |
/*************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are m... |
#include "GameClient.h"
#include <Netcode/Network/Service.h>
#include "../Services.h"
#include "../Asset/ClientConverters.h"
#include "../AnimationSet.h"
#include <Netcode/MovementController.h>
class ClockSyncResponseFilter : public nn::FilterBase {
nn::CompletionToken<nn::ClockSyncResult> completionToken;
Netcode:... |
// Generated file (from: depthwise_conv2d_float_large_2_relaxed.mod.py). Do not edit
void CreateModel(Model *model) {
OperandType type2(Type::INT32, {});
OperandType type3(Type::TENSOR_FLOAT32, {1, 1, 1, 4});
OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 4});
OperandType type1(Type::TENSOR_FLOAT32, {4});
... |
#include "simulation_binding.hpp"
#include <simulation.hpp>
void bind_simulation(pybind11::module_ & m)
{
pybind11::class_<jps::Simulation>(m, "Simulation")
.def(pybind11::init<>())
.def("get", &jps::Simulation::getValue);
} |
/// \file HitCompositeObject.hh
/*
*
* HitCompositeObject.hh header template generated by fclass
* Creation date : mar. juil. 9 2013
* Copyright (c) CNRS , IPNL
*
* All Right Reserved.
* Use and copying of these libraries and preparation of derivative works
* based upon these libraries are permitted. Any copy o... |
#include "../tomb5/pch.h"
#include "skeleton.h"
#include "box.h"
#include "objects.h"
#include "sound.h"
#include "effects.h"
#include "../specific/3dmath.h"
#include "../specific/function_stubs.h"
#include "effect2.h"
#include "sphere.h"
static BITE_INFO skeleton_hit = {0, 0, 0, 17};
void InitialiseSkeleton(short it... |
// Copyright (c) 2020 Raytheon BBN Technologies Corp.
// See LICENSE.txt for details.
#include "avro/ValidSchema.hh"
#include "services/kafka_producer_impl.h"
#include "services/kafka_consumer_impl.h"
#include "services/kafka_client.h"
#include "services/kafka_callbacks.h"
#include "tc_schema/cdm.h"
#include "seriali... |
/**************************************************************
*
* 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 y... |
// Copyright 2017 The Chromium OS 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 <base/logging.h>
#include <brillo/flag_helper.h>
#include <brillo/syslog_logging.h>
#include <sysexits.h>
#include "u2fd/u2f_daemon.h"
#ifnd... |
/*
Copyright (c) 2005-2019, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include "graph.h"
using namespace std;
double loss_prob = 0.2;
vector<int> edges[NODE_NUM_MAX];
int weight[NODE_NUM_MAX];
int TW;
int n; // tot node number
int in_deg[NODE_NUM_MAX];
double value[NODE_NUM_MA... |
/****************************************************************************************
* @author: kzvd4729 created: Feb/25/2020 17:10
* solution_verdict: Accepted language: GNU C++14
* run... |
#include <iostream>
#include <string>
#include <regex>
using namespace std;
// 正则表达式,抓取一个网页上的所有链接
// 在cmd下运行 xxx.exe < test.html
int main()
{
string tmp, html;
while(getline(cin, tmp))
{
tmp += '\n';
html += tmp;
}
string pattern("http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
/*-
* Copyright (c) 1993-1994, 1998 The Regents of the University of California.
* 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 (C) 2020 Louis Hobson <louis-hobson@hotmail.co.uk>. All Rights Reserved.
*
* Distributed under MIT licence as a part of the GLHelper C++ library.
* For details, see: https://github.com/louishobson/GLHelper/blob/master/LICENSE
*
* src/glhelper/glhelper_shader.cpp
*
* implements include/glhelper... |
/******************************************************************************
* $Id$
*
* Project: JPEG JFIF Driver
* Purpose: Implement JPEG read/write io indirection through VSI.
* Author: Frank Warmerdam, warmerdam@pobox.com
* Code partially derived from libjpeg jdatasrc.c and jdatadst.c.
*
**... |
#pragma once
// (C) Copyright Takayama Fumihiko 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See http://www.boost.org/LICENSE_1_0.txt)
#include <compare>
#include <functional>
#include <iostream>
#include <type_safe/strong_typedef.hpp>
namespace pqrs {
namespace hid {
namespace usage {
str... |
// Copyright (c) 2018 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... |
/* Copyright (c) 2020 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 <gtest/gtest.h>
#include "graph/context/QueryContext.h"
#include "graph/executor/algo/BFSShortestPathExecutor.... |
#define PROBLEM "https://judge.yosupo.jp/problem/aplusb"
//
#include "../../template/template.hpp"
//
#include "../../fps/ntt-friendly-fps.hpp"
#include "../../matrix/polynomial-matrix-prefix-prod.hpp"
#include "../../misc/rng.hpp"
#include "../../modint/montgomery-modint.hpp"
//
using namespace Nyaan;
using mint = La... |
// Copyright 2016 The TensorFlow Authors. All Rights Reserved.
// Modifications copyright (C) 2018 Uber Technologies, 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:/... |
/*
* 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... |
/**
* \file
*
* \brief A configuration for a simple automerge and guaranteed conflict resolution by one side
*
* \copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#ifndef ONESIDEMERGECONFIGURATION_HPP_
#define ONESIDEMERGECONFIGURATION_HPP_
#include <merging/automergeconfiguration.hpp>... |
/*
QTRSensors.cpp - Arduino library for using Pololu QTR reflectance
sensors and reflectance sensor arrays: QTR-1A, QTR-8A, QTR-1RC, and
QTR-8RC. The object used will determine the type of the sensor (either
QTR-xA or QTR-xRC). Then simply specify in the constructor which
Arduino I/O pins are connected to a Q... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.