text stringlengths 3.08k 22k |
|---|
/*
Copyright 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, a... |
#include "c3.h"
#include "globals.h"
#include "civarchive.h"
#include "geom2d.h"
#include "Delaunay.h"
#include "globals.h"
#include "ic3GameState.h"
#include "ic3world.h"
#include "ic3RobotAstar.h"
#include "ic3InstDB.h"
#include "aimain.h"
#include "bset.h"
#include "AiMap.h"
#include "MST.h"
#include "Cont.... |
// Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE PrngTest
#include <boost/test/unit_test.hpp>
#include <popart/builder.hpp>
#include <popart/dataflow.hpp>
#include <popart/ndarraywrapper.hpp>
#include <popart/opmanager.hpp>
#include <popart/session.hpp>
#include <popart/sgd.hpp>
#in... |
#include "TrtcUtil.h"
#include <time.h>
#include <windows.h>
#include <cmath>
#include <shlwapi.h>
#include "TRTCCloudDef.h"
std::string TrtcUtil::genRandomNumString(int length)
{
int flag, i;
std::string calStr = "12345678901234567890";
if (length <= 0 || length > 20)
return calStr;
... |
/*
* An example showing how to load and apply a reverb effect to a source.
*/
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cctype>
#include <thread>
#include <chrono>
#include "alure2.h"
#include "efx-presets.h"
namespace {
// Not UTF-8 aware!
int ci_compare(alure::Str... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
// SingleLevelGradient.cpp
// <NAME>, Fri, Jan 14, 2000
#include "SingleLev... |
/*******************************************************************************
* Copyright (c) 1991, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/*
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
//
// Created by steven on 2019-07-16.
//
#include "VideoPlayer.h"
#include "AudioPlayer.h"
#include <android/log.h>
#define LOGE(FORMAT, ...) __android_log_print(ANDROID_LOG_ERROR,"LC XXX",FORMAT,##__VA_ARGS__);
struct TimeStruct {
double last_play; //上一帧的播放时间
double play; //当前帧的播放时间
dou... |
/*
Authors: <NAME>
Copyright:
Copyright (c) 2021 Microsoft Research
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
/**
@file adapter.cpp
*/
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <string>
#include "config.h"
#include "convert.h"
#include "fileops.h"
#include "generate.h"
#include "seal/s... |
/*
* Copyright 2013 Stanford University.
* 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 list of co... |
#include "CameraCalibrationProcessor.h"
#include "../Utils/StringHelper.h"
#include <opencv2/calib3d.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <spdlog/spdlog.h>
#include <spdlog/fmt/ostr.h>
#include <cmath>
using namespace LpSlam;
void CameraCalibrat... |
/*
HipMer v 2.0, Copyright (c) 2020, The Regents of the University of California,
through Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from the U.S. Dept. of Energy). All rights reserved."
Redistribution and use in source and binary forms, with or without modification,
are ... |
/*
The MIT License (MIT)
Copyright (c) 2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include "Noise.h"
#include "Core/Random.h"
#include <math.h>
int SimplexNoise::p[] = { 151,160,137,91,90,15,
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,
88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165... |
//https://github.com/arduino/Arduino/tree/master/hardware/arduino/cores/arduino
/*
>> Pulse Sensor Amped 1.2 <<
This code is for Pulse Sensor Amped by <NAME> and <NAME>
www.pulsesensor.com
>>> Pulse Sensor purple wire goes to Analog Pin 0 <<<
Pulse Sensor sample aquisition and processing happens in the backgro... |
/*
scantree.cpp
Сканирование текущего каталога и, опционально, подкаталогов на
предмет имен файлов
*/
/*
Copyright © 1996 <NAME>
Copyright © 2000 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are me... |
#include <main.h>
#include <pidData.h>
/* *** Circular buffer for PID samples queued for logging *** */
// Indexes into pidSamples; Marks index of next data point to transmit to audacy
volatile unsigned int pidSentDataPointer = 0;
// If sentDataPointer == dataPointer, buffer is empty
// If dataPointer == sentDataPoint... |
/*#include <fstream>
#include <iostream>
#include <vector>
#include <bitset>
#include <string.h>
#include <algorithm>
#include <iomanip>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <set>
#include <map>
#include <string>
#include <queue>
#include <deque>
using namespace std;
const char infile[] = ... |
/* MIT License
[Initial work] Copyright (c) 2018 <NAME> and <NAME> and <NAME> and <NAME> and <NAME>
[Adaptation] Copyright (c) 2018 <NAME>, <NAME>, <NAME> and <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to de... |
/* Copyright (c) 2018 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 "common/base/Base.h"
#include "common/network/NetworkUtils.h"
#include "common/fs/TempFile.h"
#include <gtest/g... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <sstream>
#include <memory>
#include <cassert>
#include "../libatr/libatr.h"
#ifdef _WIN32
#include <direct.h>
#else
#include <sys/stat.h>
#include <unistd.h>
#endif
using namespace std;
void make_dir(const std::string & name)
{
#if... |
// //////////////////////////////////////////////////////////
// keccak.cpp
// Copyright (c) 2014,2015 <NAME>. All rights reserved.
// see http://create.stephan-brumme.com/disclaimer.html
//
#include "keccak.h"
// big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN
#ifndef _MSC_VER
#include <endian.h>
#en... |
#include "SH200Q.h"
#include <math.h>
#include <Arduino.h>
SH200Q::SH200Q(){
}
//i2c读写函数说明:
//读函数
//I2C_Read_NBytes(uint8_t driver_Addr, uint8_t start_Addr, uint8_t number_Bytes, uint8_t *read_Buffer)
///**
// * @brief I2C读函数,可以读取单个或者多个连续的字节。
// * @param driver_Addr(I2c器件的Slave地址,注意实际I2C驱动中7位地址和8位地址的区分)
// * @... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// U2F register / sign compliance test.
#include <stdlib.h>
#include <stdio.h>
#include <string.h... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <string.h>
#include <string>
#include <cmath>
#include <math.h>
#include <fstream>
#include <time.h>
#include <iostream>
#include "../utils_cpp/lib_includes.h"
#include "../classes/classes.h"
#include "../scf_main/scf_classes.... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file meshDrawer2D.cxx
* @au... |
/**
* Copyright (c) 2007-2012, <NAME>
*
* 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
* list of conditi... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. 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 ... |
#include "ClientScan.h"
ClientScan::ClientScan() {
broadcast.set(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF);
zero.set(0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
}
void ClientScan::clearList() {
clients._clear();
}
void ClientScan::start(int _time) {
Serial.println();
Serial.println("starting client scan");
clearList... |
// Copyright (c) 2019 The C1pzo Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Based on the public domain implementation by <NAME>
// poly1305-donna-unrolled.c from https://github.com/floodyberry/poly1305-don... |
/**
* @file huffman_tree.cpp
* Implementation of a Huffman Tree class.
*/
#include <algorithm>
#include <iostream>
#include <queue>
#include <utility>
#include "huffman_tree.h"
using namespace std;
HuffmanTree::HuffmanTree(vector<Frequency> frequencies)
{
std::stable_sort(frequencies.begin(), frequencies.end... |
/*
== CMS Forward Pixels Geometry ==
@version 3.02.01 May 30, 2006
@created <NAME>
Algorithm for placing one-per-blade components.
See header file (DDPixFwdBlades.h) for a detailed description.
*/
#include <cmath>
#include <algorithm>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Detect... |
/*
* Copyright 2011 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
#include <sstream>
#include <vector>
inline void make_depth_histogram(uint8_t rgb_image[640*480*3], const uint16_t depth_image[], int width, int he... |
struct Settings : Markup::Node {
using string = nall::string;
auto load() -> void;
auto save() -> void;
auto process(bool load) -> void;
struct Video {
string driver;
string monitor;
string format;
bool exclusive = false;
bool blocking = false;
bool flush = false;
string shader =... |
// *************************************************
// CLASS: readDataPC.cc (
// This program is used to read training data of SOLO model
//
// <NAME>
// Oct. 6, 1997
// ************************************************
# include "readDataPC.h"
# include <sstream>
# include <vector>
using namespace std;
typedef std::ve... |
/***********************************************************************************************************************
* *
* libscopeprotocols ... |
// This file is part of Notepad2.
// See License.txt for details about distribution and modification.
//! Lexer for F#
#include <cassert>
#include <string>
#include <string_view>
#include "ILexer.h"
#include "Scintilla.h"
#include "SciLexer.h"
#include "WordList.h"
#include "LexAccessor.h"
#include "... |
/*--------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2016 Great Hill 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 ... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
//magic number to tune for par... |
#include "fusion_ekf.h"
#include <iostream>
#include <cmath>
#include <limits>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using namespace std;
FusionEKF::FusionEKF(){
skip_radar_ = false;
skip_laser_ = false;
is_initialized_ = false; // We are creating the intance of FusionEKF, but ... |
/*
* Copyright (c) 2014 The Regents of The University of Michigan
* 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, ... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2013-2015 <NAME>, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
... |
#include "rbfm.h"
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"
#include "string.h"
PagedFileManager* _pf_manager = PagedFileManager:: instance();
RecordBasedFileManager* RecordBasedFileManager::_rbf_manager = 0;
RecordBasedFileManager* RecordBasedFileManager::instance()
{
if(!_rbf_... |
/*********************************************************************/
/* */
/* Nagoya Institute of Technology, Aichi, Japan, */
/* Nara Institute of Science and Technology, Nara, Japan */
/* ... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2012 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 "assert.h"
#include "chainparams.h"
#include "main.h"
#include "util.h"
#include <boos... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, <NAME>, 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... |
/*---------------------------------------------------------------------------*\
Copyright (c) 2019-2021, UCHICAGO ARGONNE, LLC.
The UChicago Argonne, LLC as Operator of Argonne National
Laboratory holds copyright in the Software. The copyright holder
reserves all rights except those expressly granted to li... |
//
// Created by parallels on 1/29/19.
//
#include "CoreClr.h"
#include <semver.h>
/*int tail_cmp(char* lhs, char* rhs) {
if (!strcmp(lhs, rhs)) return TAIL_CMP_EQ;
char* dot = ".";
char* l_last, * r_last;
char* l_token = strtok_r(lhs, dot, &l_last);
char* r_token = strtok_r(rhs, dot, &r_last);
... |
#include "MCWin32.h"
#include <io.h>
FILE * mailcore::win32_fopen(const char * filename, const char * mode)
{
FILE * f = NULL;
int r = fopen_s(&f, filename, mode);
if (r != 0) {
return NULL;
}
return f;
}
static const unsigned __int64 epoch = ((unsigned __int64)116444736000000000ULL);
/*
*... |
#include <cmath>
#include <iostream>
#include <sstream>
#include "player.hpp"
#include "util.hpp"
Arrow::Arrow() {
this->varr.setPrimitiveType(sf::Lines);
sf::Vertex arrowBaseStart({ 0, 0 }, sf::Color::Red);
sf::Vertex arrowBaseEnd ({ 20, 0 }, sf::Color::Red);
sf::Vertex leftStart({ 20, 0 }, sf::Color::Red);
... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include <string>
#include <iostream>
#include <memory>
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <grpcpp/grpcpp.h>
#include <grpcpp/health_check_service_interface.h>
#include "plugin.grpc.pb.h"
#include "sdk.h"
using std::string;
using std::unique_ptr;
using grpc::Server;
... |
/**
* \copyright
* MIT License
*
* Copyright (c) 2021 Infineon Technologies AG
*
* 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 ... |
#include "async.h"
#include <windows.h>
#include <winhttp.h>
#include <vector>
#include <thread>
#include <unordered_map>
std::vector<std::string> ggs_status_get_aobs = {
{"96a007ffffffff"},
{"96a009ffffffff"},
{"96a008ff00ffff"}, // sol
{"96a008ff01ffff"}, // ky
{"96a008ff02ffff"}, // may
{"96... |
/** ADDriver.cpp
*
* This is the base class from which actual area detectors are derived.
*
* /author Author: <NAME>
* University of Chicago
*
* Created: March 20, 2008
*
*/
#include <stdio.h>
#include <epicsString.h>
#include <epicsThread.h>
#include <asynStandardInterfaces.h>
#include <asynPortDr... |
/**
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by <NAME> (<EMAIL>)
*
* This file is part of FlashGraph.
*
* 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 a... |
#include "pywhere.hpp"
#include <Python.h>
#include <dlfcn.h>
#include <frameobject.h>
#include <mutex>
#include <vector>
// NOTE: uncomment for debugging, but this causes issues
// for production builds on Alpine
//
// #include "printf.h"
class TraceConfig {
public:
TraceConfig(PyObject* list_wrapper, PyObject*... |
// ****************************************************************************
//
// Copyright (c) 2014, <NAME>, <NAME>, <NAME>,
// Johns Hopkins University.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the ... |
/*
* Copyright (c) 2014 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Defines the entry point for the console application
//
//===============================================================================
//#include <sys/stat.h>
//#include <time.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <c... |
/*
* $Id: IK_QJacobianSolver.cpp 35154 2011-02-25 11:43:19Z jesterking $
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the ... |
#include "pch.hpp"
#include "background-export-state.hpp"
struct Offset { int x, y; };
struct GlobalState
{
bool exportPalettes = true;
bool isAffine = false;
std::size_t groupWidth = 1;
std::size_t groupHeight = 1;
};
template <typename Character>
void writeBackground(std::ostream& of,... |
#include <iostream>
#include <fstream>
#include <string>
#include <utility>
#include <vector>
#include <algorithm>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"... |
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <io.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
// 매크로 정의
// 한 섹터의 바이트 수
#define BYTESOFSECTOR 512
// 패키지의 시그너처
#define PACKAGESIGNATURE "SKYOS32PACKAGE_ "
// 파일 이름의 최대 길이
#defin... |
#include <helperOC/DynSys/Air3D/Air3D.hpp>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <typeinfo>
#include <levelset/Grids/HJI_Grid.hpp>
using namespace helperOC;
Air3D::Air3D(
const beacls::FloatVec& x,
const FLOAT_TYPE uMax,
const FLOAT_TYPE dMax,
const FLOAT_TYPE va,
const FLOAT_TYPE vb... |
#include <cmath>
#include <iostream>
#include <random>
#include "density-tracer/julia.h"
#include "density-tracer/ppm.h"
#include "density-tracer/image.h"
#include "density-tracer/shapes.h"
#include "density-tracer/ray.h"
#include "density-tracer/traceable.h"
using namespace std;
enum ColorMode { RGB, RYGCBV, WIDE, ... |
/*
* Copyright 2019 Xilinx, 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... |
/*
* Copyright 2019 Xilinx, 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... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTI... |
#include "LastPass.h"
using namespace std;
static size_t write_data_callback(void *contents, size_t size, size_t count, void *user_parameter)
{
vector<uint8_t> *storage = (vector<uint8_t> *)user_parameter;
size_t bytes = size * count;
storage->insert(storage->end(), (uint8_t *)contents, (uint8_t *)contents + bytes... |
/* ************************************************************************
* Copyright 2018-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.hpp"
#include "norm.hpp"
#include "rocblas.hpp"
#include "rocblas_init.hpp"
#include "... |
#include "Config1AutomatConverter.h"
#include "mdb/MdbProtocol.h"
#include "logger/include/Logger.h"
#include <cstring>
MemoryResult Config1AutomatConverter::load(Memory *memory) {
MemoryResult result = automat1.load(memory);
if(result != MemoryResult_Ok) {
return result;
}
return MemoryResult_Ok;
}
MemoryResu... |
// Copyright (C) 2018 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <fstream>
#include <vector>
#include <string>
#include <memory>
#include <inference_engine.hpp>
#include <ie_builders.hpp>
#include <ie_utils.hpp>
#include <format_reader_ptr.h>
#include <samples/common.hpp>
#include <samples/... |
/*
dp[i][j] 代表key中第i个char 是由ring中第j个过来的,上一个是j,到i需要的距离
但是这个solution 比较慢
dp[i][j]代表当key[i] = ring[k],从j到k的需要步数
*/
class Solution {
public:
int findRotateSteps(string ring, string key) {
int n = ring.size(), m = key.size();
vector<vector<int>>dp(m,vector<int>(n,100000000));
for(int i = m-1; ... |
#include "test_saber_func_test_arm.h"
#include "tensor_op.h"
#include "saber/funcs/impl/arm/impl/sgemm_arm.h"
#include "saber/funcs/timer.h"
using namespace anakin::saber;
int cluster = 0;
int threads = 4;
int batch = 1;
int M = 100;
int N = 100;
int K = 100;
bool traA = false;
bool traB = false;
int test_iter = 10... |
///////////////////////////////////////////////////////////////////////////////
//FILE: 'propulsion.cpp'
//
//Contains 'propulsion' module of class 'Plane'
//
//030604 Created by <NAME>
///////////////////////////////////////////////////////////////////////////////
#include "class_hierarchy.hpp"
/////////////////////... |
#include "coloring.hpp"
#include <exception>
#include <chrono>
#include <iostream>
#include <algorithm>
#include <omp.h>
#include <forward_list>
using namespace std;
typedef unsigned int uint;
#define UNKNOWN 0
// ========================================================
// CLASS GraphColoring - Public Member Functi... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
/*
** Copyright (c) 2018-2020 Valve Corporation
** Copyright (c) 2018-2020 LunarG, Inc.
**
** 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... |
#include "pch.h"
#include "PEStrings.h"
static PCWSTR memberVisiblity[] = {
L"Private Scope", L"Private", L"Protected and Internal", L"Internal", L"Protected",
L"Protected or Internal", L"Public"
};
PCWSTR PEStrings::SubsystemTypeToString(SubsystemType type) {
switch (type) {
case SubsystemType::Native: return L... |
/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... |
/*
pathtools_excerpt.h - Excerpt of the full shared pathtools.c from valve:
Copyright(c) 2015, Valve Corporation
All rights reserved.
Redistributionand use in sourceand binary forms, with or without modification,
are permitted provided that the following conditions are met :
1. Redistributions of source code must re... |
// Copyright (c) 2019 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <uint256.h>
#include <arith_uint256.h>
#include <ethereum/ethereum.h>
#include <ethereum/sha3.h>
#include <logging.h>
#in... |
#include "server.h"
#include <arpa/inet.h>
#include <iostream>
#include <netdb.h>
#include <poll.h>
#include <sstream>
#include <string.h>
#include <string>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#include <algorithm>
#include <thread>
#include "vars.h"... |
/*
* Stoichiometry-test.cpp
*
* Copyright (c) 2011 <NAME>
* Copyright (c) 2011 <NAME>
*
* This file is part of the Mass Spectrometry Toolkit (MSTK).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... |
#include "FEAdaptor.h"
#include <iostream>
#include <vtkAMRBox.h>
#include <vtkAMRInformation.h>
#include <vtkCPDataDescription.h>
#include <vtkCPInputDataDescription.h>
#include <vtkCPProcessor.h>
#include <vtkCPPythonScriptPipeline.h>
#include <vtkCPPythonScriptV2Pipeline.h>
#include <vtkCompositeDataIterator.h>
#in... |
/*
* Copyright 2013 Facebook, 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... |
//============================================================================
// Name : Avocado.cpp
// Author : <NAME>
//============================================================================
#include <iostream>
#include <Avocado/core/Context.hpp>
#include <Avocado/core/Tensor.hpp>
#include <Avocado... |
/*
// 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 ... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.