text stringlengths 5 1.04M |
|---|
/*---
function [scanposes, corres] = jpr_interface(datapoints, scan_offsets, paras)
Input:
Output
--*/
#include "mex.h"
#include "point_cloud.h"
#include "linear_algebra.h"
#include "affine_transformation.h"
#include "simul_reg_and_recons.h"
#include <vector>
#include <algorithm>
using namespace std;
... |
#include "UEngine.h"
#include "Material.h"
void UEngine::Material::Awake()
{
colorBuffer = DXRenderer::DXConstantBuffer::Instantiate
(
GetGameObject()->GetScene()->ResourceManager.GetNextCBufferID(),
DXRenderer::Get(),
GetGameObject()->GetScene()->ResourceManager.GetCBufferPreset(typeid(Color).raw_name())
);
... |
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include "simd.hpp"
namespace mango {
namespace simd {
// -----------------------------------------------------------------
// f32x8
// -------------------------------... |
// Copyright 2012 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.
#if V8_TARGET_ARCH_X87
#include "src/base/bits.h"
#include "src/bootstrapper.h"
#include "src/code-stubs.h"
#include "src/codegen.h"
#include "src/ic/h... |
/*!
* Copyright (c) 2018 by Contributors
*
* \file quantize.cc
*
* \brief transform a graph to a low-bit graph
* for compression and acceleration.
*/
#include <dmlc/thread_local.h>
#include <tvm/base.h>
#include <tvm/relay/pass.h>
#include <tvm/relay/expr_functor.h>
#include <tvm/relay/op_attr_types.h>
#includ... |
// 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 "ios/chrome/browser/web/features.h"
namespace web {
const base::Feature kWebPageDefaultZoomFromDynamicType{
"WebPageDefaultZoomFromDynamicT... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "nodestate.h"
#include <boost/lexical_cast.hpp>
#include <vespa/vespalib/text/stringtokenizer.h>
#include <vespa/document/util/stringutil.h>
#include <vespa/vespalib/util/exceptions.h>
#incl... |
// Update.cpp
#include "Update.h"
#include "../../../Common/IntToString.h"
#include "../../../Common/StringConvert.h"
#include "../../../Windows/DLL.h"
#include "../../../Windows/FileDir.h"
#include "../../../Windows/FileFind.h"
#include "../../../Windows/FileName.h"
#include "../../../Windows/PropVariant.h"
#incl... |
#include <bits/stdc++.h>
using namespace std;
struct Dsu {
int n;
vector<int> p;
Dsu(int _n) { n = _n; p.resize(n); init(); }
inline void init() {
for (int i = 0; i < n; i++) {
p[i] = i;
}
}
inline int find(int x) {
return p[x] == x ? x: p[x] = find(p[x... |
{% import 'common_macros.cpp' as common with context %}
{% macro main() %}
{{ common.insert_group_preamble() }}
{# USES_VARIABLES { N, t, rate, _clock_t, _clock_dt, _spikespace,
_num_source_neurons, _source_start, _source_stop } #}
int _num_spikes = {{_spikespace}}[_num_spikespace-1];
... |
/*
* Reflect Library by Parra Studios
* A library for provide reflection and metadata representation.
*
* Copyright (C) 2016 - 2021 Vicente Eduardo Ferrer Garcia <vic798@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Snake_Project.h"
#include "BombProjectile_Seek.h"
#include "Bots/Misc/RocketTankTargetDecal.h"
ABombProjectile_Seek::ABombProjectile_Seek(const FObjectInitializer& PCIP)
: ABombProjectile(PCIP)
{
HeightOffset = 500.0f;
FlightT... |
#pragma once
#include <polymesh/Mesh.hh>
namespace polymesh
{
/// Given a flat polymesh with convex faces, naively triangulates all faces
void triangulate_naive(Mesh& m);
}
|
// 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 "txdb.h"
#include "chainparams.h"
#include "hash.h"
#include "random.h"... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Analog comparators ACMP0/1/2/3
namespace AcmpCtrl{ ///<Comparator block control register
using Addr = Register::Address<0x40008000,0x00000000,0x00000000,unsigned>;
///Reserved.
constexpr Register::FieldLocation<Addr,Regist... |
//======================================================================
/*! \file ObjectLux.hpp
*
* \copydoc Copyright
* \author Mario Brumm (mb)
* \date Apr 26, 2012
*///-------------------------------------------------------------------
#ifndef IBEOSDK_OBJECTLUX_HPP_SEEN
#define IBEOSDK_OBJECTLUX_HPP_SEEN
//=... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_INTERNET_CACHE_ENTRY_INFOA.hpp>
START_ATF_NAMESPACE
typedef _INTERNET_CACHE_ENTRY_INFOA *LPINTERNET_CACHE_ENTRY_INFOA;
END_ATF_NAMESPACE
|
/*========================== begin_copyright_notice ============================
Copyright (C) 2020-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "BuildIR.h"
#include "../Timer.h"
using namespace vISA;
static const uns... |
/*
* 拡散方程式
*
* Takaaki MINOMO
*
*/
#include <iostream>
#include <array>
#include <cmath>
#include <sprout/cmath.hpp>
constexpr int N = 128;
constexpr double Lx = 1.0;
constexpr double Ly = 1.0;
constexpr double cx = 1.0;
constexpr double cy = 1.0;
constexpr double D = 0.0;
constexpr double tLimit = 1000;
conste... |
#include "Graph.h"
//Author : Suvojit Manna
//Application : CurveSim
//Initialize Graph as a Null graph
Graph::Graph()
{
this->V = 0;
this->E = 0;
}
//Initiate with the number of Vertex
Graph::Graph(const size_t n)
{
this->V = n;
this->E = 0;
//Set size of adjadency list to no of Vertex
G.resize(n);
}
//... |
#include "Timer.h"
#include <stdio.h>
#include <algorithm>
using std::cerr;
using std::endl;
using std::max;
// ----------------------------------------------------------------------------
Timer *Timer::instance = NULL;
// ----------------------------------------------------------------------------
static double
Di... |
// Copyright 2015-2019 Autoware 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 applicable law or ... |
#include "directorconfigclient.h"
// POSIX++
#include <climits>
#include <cstdio>
// PUT
#include <put/object.h>
#include <put/cxxutils/hashing.h>
#include <put/cxxutils/syslogstream.h>
#ifndef SCFS_PATH
#define SCFS_PATH "/svc"
#endif
#ifndef DIRECTOR_CONFIG_DIR
#define DIRECTOR_CONFIG_DIR "/etc/... |
//===--- Bridging.cpp - Bridging imported Clang types to Swift ------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
/*
ID: tushar.4
PROG: gift1
LANG: C++11
*/
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <unordered_set>
#include <set>
#include <unordered_map>
#include <map>
#include <vector>
#include <queue>
#include <deque>
#include <array>
#include <forward_list>
#include <list>
#includ... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatmult/SCaSDa.cpp
// \brief Source file for the SCaSDa sparse matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// Thi... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2024-08-24
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
#include <bits/stdc++.h>
using namespace std;
/*
Suppose an arithmetic expression is given as a binary tree. Each leaf is an integer
and each internal node is one of '+', '−', '∗', or '/'.
Given the root to such a tree, write a function to evaluate it.
For example, given the following tree:
*
/ \
+ +
/... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... |
/*
FILENAME... devPIE816.cc
USAGE... Motor record device level support for Physik Instrumente (PI)
GmbH & Co. E-816 motor controller.
Version: 1.1
Modified By: sullivan
Last Modified: 2007/03/30 20:01:05
*/
/*
* Original Author: Ron Sluiter
* Date: 12/17/03
* Current Author: Joe Sullivan
*
* ... |
// 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... |
#include "ix/bplus.h"
#include "ix/bplusnode.h"
#include <iostream>
using namespace std;
void BPlusNode::getPage(bool isNewPage) {
if (isNewPage)
page = (CharBufType)owner->bpm->allocPage(owner->fileId, pageId, pageIndex);
else
page = (CharBufType)owner->bpm->getPage(owner->fileId, pageId, pag... |
/*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2004.
-------------------------------------------------------------------------
$Id$
$DateTime$
-------------------------------------------------------------------------
History:
- 30:8:20... |
#include "ConversionTables.h"
/*************************************************************
// initializes the tables with values for the
// ordinary amino acids (unmodified).
**************************************************************/
void ConversionTables::init_for_standard_aas()
{
int i;
int ma... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
//
// Implementation of Montage
//
#define MAGICK_IMPLEMENTATION
#define MAGICK_PLUSPLUS_IMPLEMENTATION
#include "Magick++/Include.h"
#include <string>
#include <string.h>
#include "Magick++/Monta... |
#include "StaticImageRenderer.h"
#include "CommandLineArguments.h"
#include <iostream>
#include <fstream>
#include <string>
#include <thread>
#include <chrono>
#include <atomic>
// FIXME: add osx fs headers once it is supported
#if defined(_WIN32)
#include <filesystem>
#elif defined(__linux__)
#include <experimenta... |
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>
#include <iostream>
#include <string>
struct person
{
std::string name;
int age;
person(const std::string &n, int a)
: name(n), age(a)
{
}
};
typedef boost::mul... |
// Spear: Statistical Platform for Elucidating moleculAr Reactivity
// Copyright (C) Purdue University -- BSD license
#ifndef SPEAR_IDATM_HPP
#define SPEAR_IDATM_HPP
#include "spear/AtomType.hpp"
#include <map>
namespace Spear {
class Molecule;
class AtomVertex;
/// algorithm based on E.C. Meng / R.A. Lewis paper... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkInformation.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 i... |
#include "Server.hpp"
void Server::start() {
m_config.loadFromFile();
generateWorld();
// Starting threads
std::thread positionUpdater(&Server::udpThread, this); // Starting packet position thread
std::thread packetHandler(&Server::tcpThread, this);
packetHandler.join();
positionUpdater.join();
freeWorldDa... |
// Copyright 2016 The Fuchsia 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/ledger/bin/app/merging/merge_resolver.h"
#include <lib/async/cpp/task.h>
#include <lib/fit/function.h>
#include <string>
#include <utility>... |
// Copyright Oliver Kowalke 2009.
// 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 <sstream>
#include <stdexcept>
#include <string>
#include <utility>
... |
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
/*
* Binarizer.cpp
* zxing
*
* Created by Ralf Kistner on 16/10/2009.
* Copyright 2008 ZXing authors All rights reserved.
* Modified by Lukasz Warchol on 02/02/2010.
*
* Licensed under the Apache License, Version 2.0 (the "Li... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
/*
* @title: KMP 字符串匹配
* @description: KMP 字符串匹配算法
* @arguments:
* S: 源串的首指针
* P: 模式串的首指针
* N: Next 数组 [alloc only]
* @performance:
* Time: O(|P| + |S|)
* Space: O(|S| + |P| + |N|)
* Extra: O(|N|)
* @dependence:
* Matched(int index);
* @note: S 与 P 的终止符为 '\0'
*/
void KMPInit(char *P, int *N) {
... |
#include "abstract_operator.hpp"
#include <chrono>
#include <memory>
#include <string>
#include <vector>
#include "storage/table.hpp"
#include "utils/assert.hpp"
namespace opossum {
AbstractOperator::AbstractOperator(const std::shared_ptr<const AbstractOperator> left,
const std::s... |
#pragma once
#include "messages/LimitedQueue.hpp"
#include "widgets/BaseWidget.hpp"
#include "widgets/helper/ScrollbarHighlight.hpp"
#include <QMutex>
#include <QPropertyAnimation>
#include <QWidget>
#include <pajlada/signals/signal.hpp>
namespace chatterino {
class ChannelView;
class Scrollbar : public BaseWidget... |
#pragma once
#include "d3d_pch.hpp"
#include <optional>
// the DescriptorAllocator is CPU visiable only, for those used shader visiable descriptor,
// use the dynamic descriptor heap (in context).
namespace hitagi::graphics::backend::DX12 {
class DescriptorPage;
struct Descriptor {
Descriptor(D3D12_CPU_DESCRIPT... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_wchar_t_ncat_84_bad.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.string.label.xml
Template File: sources-sink-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* Ba... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2019 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... |
// Copyright 2015 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "historywork/DownloadBucketsWork.h"
#include "bucket/BucketManager.h"
#include "catchu... |
/*
* Copyright (c) 2019-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
//===- TestDialect.cpp - MLIR Dialect for Testing -------------------------===//
//
// Copyright 2019 The MLIR 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.... |
//===- LegalizeDAG.cpp - Implement SelectionDAG::Legalize -----------------===//
//
// 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
//
//===---------------------------... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/localtrade-config.h"
#endif
#include "optionsdialog.h"
#include "ui_optionsdialog... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <gtest/gtest.h>
#include <azure/core/context.hpp>
#include <chrono>
#include <memory>
#include <string>
#include <thread>
#include <vector>
using namespace Azure::Core;
TEST(Context, Basic)
{
Context context;
... |
//
// Copyright (c) 2019 Marat Abrarov (abrarov@gmail.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
/*
* Copyright 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 (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <quic/common/test/TestUtils.h>
#include <quic/state/StateData.h>
#in... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t,g;
cin>>t;
while(t--)
{
cin>>g;
cout<<g/2<<endl;
}
}
|
#include <iostream>
#include <random>
#include <utility>
#include <vector>
#include "baldr/rapidjson_utils.h"
#include <boost/property_tree/ptree.hpp>
#include "baldr/json.h"
#include "loki/worker.h"
#include "midgard/distanceapproximator.h"
#include "midgard/encoded.h"
#include "midgard/logging.h"
#include "midgard/... |
/*ckwg +29
* Copyright 2016-2018 by Kitware, 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 code must retain the above copyright notice,
* this li... |
// Copyright 2014 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/chromeos/login/enrollment/auto_enrollment_controller.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/com... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... |
//
// TargetImplementation.hpp
// Clock Signal
//
// Created by Thomas Harte on 19/08/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
template <typename Executor> Target<Executor>::Target(Bus &bus, int scsi_id) :
bus_(bus),
scsi_id_mask_(BusState(1 << scsi_id)),
scsi_bus_device_id_(bus.add_devic... |
/*******************************************************************
Author: David Ge (dge893@gmail.com, aka Wei Ge)
Last modified: 03/31/2018
Allrights reserved by David Ge
********************************************************************/
//#include "stdafx.h"
#include "randomTools.h"
#include <mall... |
#include <frstd/option.hpp>
|
// g2o - General Graph Optimization
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
// 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 r... |
#include "Runtime/Weapon/CFlameInfo.hpp"
namespace metaforce {
CFlameInfo::CFlameInfo(s32 w1, s32 w2, CAssetId flameFxId, s32 w3, float f1, float f2, float f3)
: x0_propertyCount(w1), x4_attributes(w2), x8_flameFxId(flameFxId), xc_length(w3), x10_(f1), x18_(f2), x1c_(f3) {}
CFlameInfo::CFlameInfo(CInputStream& in)
:... |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/compiler/backend/il.h"
#include "vm/compiler/backend/il_test_helper.h"
#include "vm/unit_t... |
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
int substree_sum[N];
int evencnt[N];
vector<int> graph[N];
void dfs(int vertex, int parent=0){
if(vertex%2==0){
evencnt[vertex]++;
}
substree_sum[vertex] +=vertex;
for(int child : graph[vertex]){
if(child==parent) continue;
dfs(child, vertex)... |
//===- SymbolManager.h - Management of Symbolic Values --------------------===//
//
// 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
//
//===---------------------------... |
//*****************************************************************************
// Copyright 2017-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://w... |
/***********************************************************************
created: Tue Apr 30 2013
authors: Paul D Turner <paul@cegui.org.uk>
Lukas E Meindl
*************************************************************************/
/**********************************************************... |
#include <hpx/config.hpp>
#include <hpx/hpx_init.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
#pragma warning(disable: 4710) // function not inlined
#pragma warning(disable: 4711) // function selected for automatic inline expansion
#pragma warning(disable: 4514) ... |
/*
Copyright (C) 2013, Basis Technology Corp.
Copyright (C) 2007-2011, Golden G. Richard III and Vico Marziale.
Copyright (C) 2005-2007, Golden G. Richard III.
*
Written by Golden G. Richard III and Vico Marziale.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compli... |
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the f... |
/* Copyright 2020 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... |
/*
* @Descripttion: https://blog.csdn.net/chenyutingdaima/article/details/81978251
* @version: 1.0
* @Author: Geeks_Z
* @Date: 2021-05-31 09:42:01
* @LastEditors: Geeks_Z
* @LastEditTime: 2021-05-31 09:43:14
*/
//1.用结构体数组存储相关信息,用先按性别排序,将女性排在前面,再按分数降序排序,
//这样数组首位是女性最高,末尾是男性最低。
//2.输出时,判断首位和末尾是否是正确的性别,有一个不对,就输出NA。... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <QATLControlsTreeModel.h>
#include <ACEEnums.h>
#include <AudioControl.h>
#include <Aud... |
#include "graphics.h"
#include <fstream>
using namespace std;
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || \
defined(__TOS_WIN__)
#include <conio.h> //for getch(), needed in wait_for_key()
#endif
Graphics::Graphics(string path) {
gnuplot = path;
#ifdef _WIN32
gnuplotPipe = _p... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) {
if (l1 == NULL)
return l2;
else if (l2 == NULL)
... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Baldur Karlsson
*
* 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... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* Write a global array from multiple processors.
*
* A global array is an N-dimensional array. A process can write a sub-array
* into the global array by stating the N-dimensional offset and... |
//===--- TypeCheckCompletionCallback.cpp ----------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_lime__internal_graphics__ImageDataUtil_ImageDataView
#include <lime/_internal/graphics/_ImageDataUtil/ImageDataView.h>
#endif
#ifndef INCLUDED_lime_graphics_Imag... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Handle.hpp>
namespace RED4ext
{
namespace anim { struct AdditionalTransformEntry; }
namespace anim {
struct Additi... |
/*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#include "BinaryData.h"
#include <algorithm>
#include <sstream>
namespace carto {
BinaryData::BinaryData() :
_dataPtr(std::make_shared<std::vector<unsigned char> >())
{
}
BinaryData::BinaryData(std::vector<unsigned char> data) :
_dataPtr(std::make_shared<std::vector<unsigned char> >(... |
#ifndef MAVE_AVX512F_VECTOR3_DOUBLE_HPP
#define MAVE_AVX512F_VECTOR3_DOUBLE_HPP
#ifndef __AVX512F__
#error "mave/avx512f/vector3d.hpp requires avx512f support but __AVX512F__ is not defined."
#endif
#ifndef MAVE_VECTOR_HPP
#error "do not use mave/avx/vector3d.hpp alone. please include mave/vector.hpp."
#endif
#ifdef... |
// Copyright (c) 2019 The Crown Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <clientversion.h>
#include <flatfile.h>
#include <streams.h>
#include <test/util/setup_common.h>
#include <util/system.h>
... |
// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-apple-darwin10 -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -std=c++11 -include-pch %t -verify %s -emit-llvm -o -... |
// Copyright Carl Philipp Reh 2009 - 2021.
// 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_RECORD_ELEMENT_VECTOR_HPP_INCLUDED
#define FCPPT_RECORD_ELEMENT_VECTOR_HPP_INCLUDED
... |
/*
Written by Anshul Verma, 19/78065
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
int main(int argc, char **argv)
{
if (argc < 2)
{
fprintf(stderr, "Correct Usage: ./main <filename>\n");
return -1;
}
struct stat dt;
printf("\nFile Info\n");
... |
/*******************************************************************************
* thrill/core/hyperloglog.hpp
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2017 Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
* Copyright (C) 2017 Tino Fuhrmann <tino-fuhrmann@web.de>
*
* All rights... |
/*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2014-2021 The Dash Core developers
// Copyright (c) 2021 The Bytz Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.