text stringlengths 5 1.04M |
|---|
#include <Poco/UTF8Encoding.h>
#include <IO/WriteBufferValidUTF8.h>
#include <base/types.h>
#ifdef __SSE2__
#include <emmintrin.h>
#endif
namespace DB
{
const size_t WriteBufferValidUTF8::DEFAULT_SIZE = 4096;
/** Index into the table below with the first byte of a UTF-8 sequence to
* get the number of traili... |
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
// Specification: test/f32-vmulc-minmax.yaml
// Generator: tools/generate-vbinary-test.py
#include <gtest/gtes... |
// Copyright (c) 2016-2017, SUMOKOIN, (forked from) The Monero Project
//
// 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 copyrigh... |
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
template <class T> using Tree = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistic... |
/*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2015 Intel Corporation.
*
* 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 limitatio... |
#include <babylon/engines/processors/expressions/operators/shader_define_arithmetic_operator.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/misc/string_tools.h>
namespace BABYLON {
ShaderDefineArithmeticOperator::ShaderDefineArithmeticOperator()
: define{""}, operand{""}, testValue{""}
{
}
ShaderDef... |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Optional.h>
#include <LibGfx/AffineTransform.h>
#include <LibGfx/Rect.h>
namespace Gfx {
bool AffineTransform::is_identity() const
{
return m_values[0] == 1 && m_values[1] == 0 && m_values[... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int m=1e4+5;
const int mod=1e9+7;
vector< pair <int, int>> v ;
bool comp(pair<int ,int> a,pair<int ,int> b)
{
return a.first<b.first;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int t,n;
cin>>t;
while(t--){
cin>>n;
... |
#include "Matrix.h"
Matrix::Matrix(const std::array<double, 16>& data)
{
m_data = data;
}
Matrix::Matrix(double a00, double a01, double a02, double a03,
double a10, double a11, double a12, double a13,
double a20, double a21, double a22, double a23,
double a30, double a31... |
#include <bits/stdc++.h>
// #include <atcoder/all>
// using namespace atcoder;
typedef long long ll;
typedef long double ld;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define repr(i,n) for(ll i=(n-1);i>=0;i--)
#define all(x) x.begin(),x.end()
#define br cout << '\n';
using namespace std;
const long long INF = 8e18;
using ... |
#include "stdafx.h"
// GCItemSynch.cpp
//
/////////////////////////////////////////////////////
#include "GCItemSynch.h"
BOOL GCItemSynch::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_Opt), sizeof(BYTE));
switch(m_Opt)
{
case OPT_MOVE_ITEM:
{
iStream.Read( (CHAR*)(&m_Fr... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 02.01.01.0784
// ----------------------------------------------------------------------------
// Standard ColorManagement Process Module Version 01.00.00.0284
// ----... |
#include "ObjectPool.h"
#include "Entity.h"
ObjectPool::ObjectPool(int nMaxSize)
{
m_nMaxSize = nMaxSize;
m_pPool = new Entity*[nMaxSize];
for (int i = 0; i < nMaxSize; ++i)
{
m_pPool[i] = new Entity();
}
}
ObjectPool::~ObjectPool()
{
for (int i = 0; i < m_nMaxSize; ++i)
{
delete m_pPool[i];
}
delete[... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ds/model/RegisterEventTopicRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DirectoryService::Model;
using namespace Aws::Utils::Json;... |
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying mater... |
#include "user_interface.h"
#include "cell.h"
#include "cmd.h"
#include "magic_list.h"
#include "path_tree.h"
#include "stage.h"
#include "turn.h"
#include "unit.h"
namespace mengde {
namespace core {
//
// AvailableUnits
//
AvailableUnits::AvailableUnits(Stage* stage) {
stage->ForEachUnitConst([&](const Unit* un... |
// Copyright (c) 2012-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 <compressor.h>
#include <util.h>
#include <test/test_vuicoin.h>
#include <stdint.h>
#include <boost/test/unit_test... |
//
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "LayerWithParameters.hpp"
namespace armnn
{
class ScopedTensorHandle;
struct LstmOptLayerNormParameters
{
/// A unique pointer to represent 1D weights tensor with dimensions [num_units]... |
//----------------------------------------------------------------------------
//
// Project : Call To Power 2
// File type : C++ source
// Description :
//
//----------------------------------------------------------------------------
//
// Disclaimer
//
// THIS FILE IS NOT GENERATED OR SUPPORTED BY ACTIVISI... |
// Copyright 2017 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... |
/***
* This file is based on or incorporates material from the UnitTest++ r30 open source project.
* Microsoft is not the original author of this code but has modified it and is licensing the code under
* the MIT License. Microsoft reserves all other rights not expressly granted under the MIT License,
* whether b... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The Cubis developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lic... |
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... |
//--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_listen_socket_ifstream_67a.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-67a.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: listen_socket Read data ... |
/***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... |
/*
* 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... |
// Copyright 2018 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 "base/debug/elf_reader.h"
#include <arpa/inet.h>
#include <elf.h>
#include <string.h>
#include "base/bits.h"
#include "base/containers/span.h"
... |
/*
* Copyright (c) 2018, The OpenThread 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 code must retain the above copyright
* notice, this ... |
/*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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... |
// $Id: ATM_QoS.cpp 96985 2013-04-11 15:50:32Z huangh $
#include "ace/ATM_QoS.h"
#if defined (ACE_HAS_ATM)
#if !defined (__ACE_INLINE__)
#include "ace/ATM_QoS.inl"
#endif /* __ACE_INLINE__ */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#if defined (ACE_HAS_FORE_ATM_XTI) || defined (ACE_HAS_FORE_ATM_WS2)
#define BHLI_MAGI... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "transpose.h"
#include "transpose_impl.h"
#include "core/providers/cpu/tensor/utils.h"
#include "core/providers/cuda/shared_inc/fpgeneric.h"
namespace onnxruntime {
namespace cuda {
ONNX_OPERATOR_KERNEL_EX(Transp... |
#include "ace/IO_SAP.h"
#include "ace/Log_Category.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/os_include/os_signal.h"
#if !defined (__ACE_INLINE__)
#include "ace/IO_SAP.inl"
#endif /* __ACE_INLINE__ */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE... |
#include "OneWireInterface.h"
uint8_t OneWirePacket::checkSum()
{
uint8_t result = mID + mLength + mInstruction;
int n = 0;
if (mAddress != 255)
{
result += mAddress;
++n;
}
if (mDataLength != 255)
{
result += mDataLength;
++n;
}
for (int i = 0; i < ... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2022 Baldur Karlsson
* Copyright (c) 2014 Crytek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (t... |
/*
The code in this file is released into the Public Domain.
*/
#include <osmium/handler.hpp>
#include <osmium/handler/node_locations_for_ways.hpp>
#include <osmium/index/map/all.hpp>
#include <osmium/io/any_input.hpp>
#include <osmium/visitor.hpp>
#include <cstdlib>
#include <iostream>
#include <string>
using i... |
// Begin CVS Header
// $Source: /fs/turing/cvs/copasi_dev/copasi/UI/CQGlobalQuantityDM.cpp,v $
// $Revision: 1.6.4.3 $
// $Name: Build-33 $
// $Author: shoops $
// $Date: 2010/09/30 17:02:30 $
// End CVS Header
// Copyright (C) 2010 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University ... |
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/fpdf_page/cpdf_contentmark.h"
#include "core/fpdfapi/f... |
// 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 <algorithm>
#include <limits>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/... |
/* ============================================================================
* Copyright (c) 2009-2016 BlueQuartz Software, LLC
*
* 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 ... |
// Copyright (c) 2009 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 "net/spdy/spdy_io_buffer.h"
#include "net/spdy/spdy_stream.h"
namespace net {
// static
uint64 SpdyIOBuffer::order_ = 0;
SpdyIOBuffer::Spd... |
//
// Copyright (c) 2013-2022 The SRS Authors
//
// SPDX-License-Identifier: MIT or MulanPSL-2.0
//
#include <srs_app_source.hpp>
#include <sstream>
#include <algorithm>
using namespace std;
#include <srs_kernel_log.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_amf0.hpp>
#include <srs_kernel_cod... |
/*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... |
#pragma once
#include <SDK.h>
#include <HostSharedData.h>
#include <ReverseGameData.h>
#pragma region icon
// 'component' icon by https://paomedia.github.io/small-n-flat/ licensed under CC-BY 3.0
unsigned char componentIcon[6866] = {
0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49... |
// Copyright 2022 PingCAP, 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 or agreed to i... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coincontroldialog.h"
#include "ui_coincontroldialog.h"
#include ... |
// Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include <gtest/gtest.h>
#include "HexCoding.h"
#include "... |
// Copyright 2019 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/views/toolbar/toolbar_account_icon_container_view.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/th... |
// 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 ... |
// Copyright (c) 2011-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 <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoin... |
//===----------------------------------------------------------------------===//
//
// 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 "il2cpp-config.h"
#include "il2cpp-string-types.h"
#include "metadata/GenericMetadata.h"
#include "os/WindowsRuntime.h"
#include "utils/StringUtils.h"
#include "vm/Atomic.h"
#include "vm/Class.h"
#include "vm/COM.h"
#include "vm/ComObjectBase.h"
#include "vm/GenericClass.h"
#include "vm/MetadataCache.h"
#inclu... |
/*
* Lock.cpp
*
* Created on: Apr 17, 2018
* Author: claudeb
*/
#include "Lock.h"
#include <hdb/utils/Debug.h>
#include <cassert>
namespace hdb {
namespace locktable {
Lock2PL::Lock2PL() {
this->currentMode = (LockMode) 0;
this->lockOffset = 0;
for (uint32_t i = 0; i < hdb::locktable::LockMode::MODE_C... |
// Copyright Malte Skarupke 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <cstdint>
#include <cstddef>
#include <functional>
#include <cmath>
#include <algorithm>
#include <iterator>
#include <utility>
#include <type... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2016 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
/*
* Copyright block:
*
* Source file of libxccc project
*
* Copyright (c) 2019 Jakub Skrzyniarz, skrzj-dev@protonmail.com
*
* Licensed under: MIT license; See the file "LICENSE" of libxccc project for more information.
*
* Copyright block: end
*/
/* --- */
#include <vector>
/* --- */
/* --- */
/* --- */
/*... |
#define BOUNDS_CHECK
#include <iostream>
#include <iomanip>
#include <svd.h>
using namespace std;
using namespace splab;
typedef double Type;
int main()
{
// Matrix<Type> A(4,4);
// A(1,1) = 16; A(1,2) = 2; A(1,3) = 3; A(1,4) = 13;
// A(2,1) = 5; A(2,2) = 11; A(2,3) = 10; ... |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/os_interface/linux/os_interface.h"
#include "runtime/command_queue/command_queue_hw.h"
#include "test.h"
#include "unit_tests/fixtures/ult_command_stream_receiver_fixture.h"
#include "unit_tests/mocks/linux/mock_dr... |
// This file is part of Asteria.
// Copyleft 2018 - 2021, LH_Mouse. All wrongs reserved.
#ifndef ASTERIA_LLDS_VARIABLE_HASHSET_HPP_
#define ASTERIA_LLDS_VARIABLE_HASHSET_HPP_
#include "../fwd.hpp"
#include "../runtime/variable.hpp"
#include "../details/variable_hashset.ipp"
namespace asteria {
class Variable_HashSe... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include <limits>
#include "ops/lut3d/Lut3DOpCPU.cpp"
#include "testutils/UnitTest.h"
namespace OCIO = OCIO_NAMESPACE;
void Lut3DRendererNaNTest(OCIO::Interpolation interpol)
{
OCIO::Lut3DOpDataRcPtr lut = std::mak... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLSkybox.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 software ... |
/*
* 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 2013 Open Source Robotics Foundation
*
* 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 applicab... |
/*************************************************************************/
/* rasterizer_scene_gles2.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "i_enum_store.h"
#include "load_utils.hpp"
#include "loadedenumvalue.h"
#include "multi_value_mapping.h"
#include "multivalue.h"
#include <vespa/fastos/file.h>
#include <vespa/searchlib/util/fileutil.h>
#i... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE416_Use_After_Free__new_delete_array_class_63a.cpp
Label Definition File: CWE416_Use_After_Free__new_delete_array.label.xml
Template File: sources-sinks-63a.tmpl.cpp
*/
/*
* @description
* CWE: 416 Use After Free
* BadSource: Allocate data using new, initiali... |
#include "source/distributor/service_impl.h"
#include <grpc++/grpc++.h>
#include "envoy/config/core/v3/base.pb.h"
#include "external/envoy/source/common/common/assert.h"
#include "external/envoy/source/common/protobuf/message_validator_impl.h"
#include "external/envoy/source/common/protobuf/utility.h"
#include "api... |
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef CPPIPC_MAGIC_MACROS_HPP
#define CPPIPC_MAGIC_MACROS_HPP
#include <graphlab_predefs.hpp>
#ifndef DISABLE_GRAPHLAB_CPPIPC_PROXY_G... |
// Display Library for SPI e-paper panels from Dalian Good Display and boards from Waveshare.
// Requires HW SPI and Adafruit_GFX. Caution: these e-papers require 3.3V supply AND data lines!
//
// based on Demo Example from Good Display: http://www.e-paper-display.com/download_list/downloadcategoryid=34&isMode=false.ht... |
/*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
/**
* @file memory_utils.cpp
* @date 25th Oct 2014
*
... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <iostream>
#include <sys/wait.h>
#include <time.h>
#include <errno.h>
#include "domes.h"
#define READ 0
#define WRITE 1
#define BUFSIZE 100
#def... |
/*
* @file json.cpp - Serialization example.
* @author TPOC: contact@palisade-crypto.org
*
* @section LICENSE
*
* @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT))
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... |
#include "hongyulib.h"
/*************************************************************
* This C function returns point B(lat ,lon)
*
* Input: A_lat, A_lon
* AZ, dist
*
* Hongyu DATE:
* Key words:
*************************************************************/
double point_AZ_dist_point(double A_lat, double A_lon... |
/******************************************************************************
Copyright (c) 2011, 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:
* Redistributions of source cod... |
/*
* Copyright 2020-2022 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with... |
// Copyright (c) 2011-2016 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "gtest/gtest.h"
#include "Common/Util.h"
#include "P2p/PeerListManager.h"
#include "P2p/PeerListManager.cpp"
us... |
/******************************************************************************
*
* Project: ACE2 Driver
* Purpose: Implementation of ACE2 elevation format read support.
* http://tethys.eaprs.cse.dmu.ac.uk/ACE2/shared/documentation
* Author: Even Rouault, <even dot rouault at spatialys.com>
*
*****... |
// BUG1989 is pleased to support the open source community by supporting ncnn available.
//
// Copyright (C) 2019 BUG1989. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
//... |
#include <gs/logic/logic.h>
gs::Logic::Logic() = default;
gs::Logic::~Logic() = default;
|
#include "DumpTask.h"
#include <chrono>
#include <iostream>
#include <fstream>
#include <cstring>
#include "Helpers.h"
using namespace std;
DumpTask::DumpTask(string ip, unsigned long long offset, unsigned long long length, unsigned int id, string name) : Task(id, name)
{
char buf[255];
m_offset = offset;
m_lengt... |
#include <torch/extension.h>
#include <vector>
at::Tensor approx_match_cuda_forward(const at::Tensor xyz1,
const at::Tensor xyz2);
at::Tensor match_cost_cuda_forward(const at::Tensor xyz1, const at::Tensor xyz2,
const at::Tensor match);
std::vect... |
// Copyright 2019 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 "base/test/scoped_feature_list.h"
#include "chrome/browser/net/secure_dns_config.h"
#include "chrome/browser/net/stub_resolver_config_reader.h"
#... |
#ifndef TBFMEMORYMULTIVVECTOR_HPP
#define TBFMEMORYMULTIVVECTOR_HPP
#include "tbfglobal.hpp"
#include "tbfmemorydim.hpp"
template <class DataType_T, long int NbRows, long int MemoryAlignementBytes = TbfDefaultMemoryAlignement>
class TbfMemoryMultiVVector{
public:
static_assert(((TbfDefaultMemoryAlignement/sizeof... |
/*
* Copyright (C) 2015 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... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/b... |
//--------------------------------------------------------------------------------------------------
// Copyright (c) 2019 Marcus Geelnard
//
// 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 softwar... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpa... |
/*
* Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#pragma once
#include <mc_tasks/SplineTrajectoryTask.h>
#include <mc_rtc/gui/Checkbox.h>
#include <mc_rtc/gui/Rotation.h>
#include <mc_rtc/gui/Transform.h>
namespace mc_tasks
{
template<typename Derived>
SplineTrajectoryTask<Derived>::SplineTrajectoryTask(... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "maintenance_controller_explorer.h"
#include <vespa/vespalib/data/slime/cursor.h>
using vespalib::slime::Cursor;
using vespalib::slime::Inserter;
namespace proton {
namespace {
void
convertRunningJobsT... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/components/tether/master_host_scan_cache.h"
#include <algorithm>
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "c... |
#include"RandomTargetDamageEffect.h"
RandomTargetDamageEffect* RandomTargetDamageEffect::create(TargetType type, int* damage, int count) {
RandomTargetDamageEffect* pRet = new(std::nothrow)RandomTargetDamageEffect();
if (pRet && pRet->init(type, damage, count)) {
pRet->autorelease();
return pRet;
}
else {
de... |
#include <gtest\gtest.h>
#include <ncore/sys/application.h>
TEST(ApplicationTest, ArgParser)
{
using namespace ncore;
std::string cmd_line;
Options result;
//测试正常参数
cmd_line = "-mode = test1 -user -name-io=1234";
result = ParseOptions(cmd_line);
ASSERT_FALSE(result.empty())... |
#include <ros/ros.h>
#include <jsk_rviz_plugins/OverlayMenu.h>
#include <string>
int main(int argc, char** argv)
{
ros::init(argc, argv, "info_overlay_menu_publisher");
ros::NodeHandle nh;
// publisher
ros::Publisher menu_pub = nh.advertise<jsk_rviz_plugins::OverlayMenu>("menu", 1);
ros::Rate loop_rate(2);... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE197_Numeric_Truncation_Error__short_rand_82_goodG2B.cpp
Label Definition File: CWE197_Numeric_Truncation_Error__short.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 197 Numeric Truncation Error
* BadSource: rand Set data ... |
#include "StdAfx.h"
#include "Chart.h"
/*-----------------------------------------------------------------------------------------------*/
Chart::Chart(std::string pName, size_t pWidth, size_t pHeight, size_t pPo2Width,
size_t pPo2Height, bool pYearLine, bool pCommonScale, bool pNullLine)
: mPo2Width(pPo... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward declares
// For... |
/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the files rela... |
//
// file: main.cpp
// author: Michael Brockus
// gmail: <michaelbrockus@gmail.com>
//
#include <iostream>
#include <algorithm>
#include <functional>
#include <iterator>
#include <limits>
#include <vector>
#include <cstdlib>
using namespace std;
vector<string> splitString(string);
//
// Given five positive integers... |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.