text stringlengths 3.08k 22k |
|---|
//===--- TypeCheckType.cpp --------------------------------------*- C++ -*-===//
// Part of the Sora project, licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
//
// Copyright (c) 2019 <NAME>
//===----------------------------------------------------------------------===//
/... |
/// Detector of simple markers
////////////////////
/// DEPENDENCIES ///
////////////////////
// ROS 2
#include <rclcpp/rclcpp.hpp>
#include <image_transport/subscriber_filter.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/exact_time.h>
#in... |
#pragma once
#include "main.hpp"
extern const unsigned char gImage_pwrBk[];
extern const unsigned char gImage_pwrNumber[]; // '0123456789 .-' w=8 : h=12 * 13char
extern const unsigned char gImage_pwrInOut[]; // w:60 / h:40 / 2 img
extern const unsigned char gImage_pwrBattery[];
extern const unsigned char gImag... |
#include <cmath>
#include <iostream>
#include <map>
#include <cstring>
#include <lsl_cpp.h>
#include <thread>
#include <algorithm>
#include <random>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
// define a packed sample struct (here: a 16 bit stereo sample).
#pragma pack(1)
struct stereo_sample {
int16_t ... |
/*
Copyright (C) 2006-2009 Tsinghua University. All Rights Reserved.
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software... |
/* ================================================================
*
* AtlasWerks Project
*
* Copyright (c) <NAME>, <NAME>, <NAME>,
* <NAME>. All rights reserved. See Copyright.txt or for details.
*
* This software is distributed WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or ... |
/*
Copyright (c) 2013, <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:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Elektrobit Automotive GmbH
// Alle Rechte vorbehalten. All Rights Reserved.
//
// Information contained herein is subject to change without notice.
// Elektrobit retains ownership and all other rights in the software and e... |
/**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013 <NAME>, <NAME>
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap software package is... |
/************************************************************************/
/* */
/* Make Ansi to Unicode Charmap 1.0 (GBK) for c4-lib */
/* */
/* Version: 1.0 ... |
//===--- GrammarBuilder.cpp - LLtool ast and graph construction -*- C++ -*-===//
//
// Part of the M2Lang Project, under the Apache License v2.0 with
// LLVM Exceptions. See LICENSE file for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------------------... |
#include "pch_script.h"
#include "Level.h"
#include "Level_Bullet_Manager.h"
#include "xrserver.h"
#include "xrmessages.h"
#include "game_cl_base.h"
#include "PHCommander.h"
#include "net_queue.h"
#include "MainMenu.h"
#include "space_restriction_manager.h"
#include "ai_space.h"
#include "script_engine.h"
#include "sta... |
/*
Copyright (c) 2011, <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... |
#include "Terrain.h"
#include "FPropertyTag.h"
#include <Windows.h>
#include <fstream>
#include "D3D.h"
#include "TerrainComponent.h"
#define SKYLAKE_RESOURCE_MAGIC 0x5f75990c
#define SKYLAKE_RESOURCE_LEVEL 1
#define SKYLAKE_RESOURCE_TERRAIN 2
float lerp(float a, float b, float f)
{
return a + f * (b - a);
}
Terrai... |
/* ================================================================================
* Copyright: (C) 2021, SIRRL Social and Intelligent Robotics Research Laboratory,
* University of Waterloo, All rights reserved.
*
* Authors:
* <NAME> <<EMAIL>>
*
* CopyPolicy: Released under the terms of the BSD 3-Cl... |
#include "accept.h"
CAccept::CAccept()
{
/*公用接口*/
m_vcdListtoIO = new CList;
m_vcdLoginList = new CUserList;
/*用户ID初始化为1,以后不断垒加*/
m_userId = 1;
/*长度初始化*/
m_clilen = sizeof(m_clientaddr);
}
CAccept::~CAccept()
{
/*关闭监听套接字*/
close(m_listenfd);
/*关闭epoll套接字*/
close(m_epfd);... |
//
// Copyright 2020 <NAME>
//
// 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 agr... |
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
/*
* Copyright (c) 1990-1997 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
auto PPU::Line::renderBackground(PPU::IO::Background& self, uint8 source) -> void {
if(!self.aboveEnable && !self.belowEnable) return;
if(self.tileMode == TileMode::Mode7) return renderMode7(self, source);
if(self.tileMode == TileMode::Inactive) return;
bool windowAbove[256];
bool windowBelow[256];
renderW... |
/*
* The MIT License
*
* Copyright (c) 1997-2021 The University of Utah
*
* 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
* right... |
//
// ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0
//
// Author: <NAME> <<EMAIL>>, Winter 2014/2015
// http://www.mkonrad.net
//
// See LICENSE file in project repository root for the license.
//
#include "memtransfer.h"
#include "fbo.h"
// clang-format off
#if defined(OGLES... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
int A[5][5];
bool F[5][5];
bool used[26];
bool allowed[26][5][5];
long long cnt;
vector< vector<int> > dp[7776];
bool done[777... |
/*
TGD2151 Computer Graphics Fundamentals
Faculty of Computing & Informatics, Multimedia University
CGLab01.cpp
Objective: Lab01 Demo Models / World
(C) 2006-2015 <NAME>, All Rights Reserved.
http://wongyaping.com
INSTRUCTIONS
============
Please refer to CGLabmain.cpp for instructions
CHANGE LOG
======... |
#include "train.h"
#include "utils.h"
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace ml;
void getAnnHOGFeatures(const Mat image, Mat& features) {
//
HOGDescriptor hog(Size(32, 32), Size(16, 16), Size(8, 8), Size(8, 8), 3);
std::vector<float> descriptor;
Mat trainImg = Mat(hog.wi... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include <torpedo.h>
Torpedo::Torpedo(){
this->loadParams ();
this->front_roi_pub = it.advertise("/anahita/roi", 1);
service = nh.advertiseService("/anahita/change_torpedo_hole", &Torpedo::changeTorpedoHole, this);
std::string trackerTypes[8] = {"BOOSTING", "MIL", "KCF", "TLD","MEDIANFLOW", "GOTURN", "MO... |
/**
* @file
* @author <NAME> <<EMAIL>>
* @brief ball collector
* @copyright BSD License
* Copyright (c) 2017 <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:
*
* * Redistribution... |
/*
CAMERALEFT - rgb left
CAMERA - stereo grey
CAMERA_RHAND/CAMERA_LHAND - stereo grey
image tool: (on request)
CAMERA_RHANDLEFT_TX - grey jpeg compressed and different resolutions (snip the top image)
CAMERA_LHANDLEFT_TX - grey jpeg compressed and different resolutions (snip the top image)
CAMERALEFT_TX - rgb jpeg c... |
//--------------------------------------------------------------------------------------
// Ship.cpp
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//-----------------------------------------------------------------------------... |
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/Overlay/src/cnv/TkrOverlayCnv.cxx,v 1.5 2011/12/12 20:54:56 heather Exp $
/**
@file TkrOverlayCnv.cxx
Implementation file for Root calibration converter base class
*/
#include "Overlay/IOverlayDataSvc.h"
#include "GaudiKernel/Converter.h"
#in... |
/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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.... |
#include <cstdint>
#include <array>
#include <iomanip>
#include <vector>
#include <glog/logging.h>
#include <tapa.h>
#include "sssp.h"
using std::array;
using std::fixed;
using std::setfill;
using std::setprecision;
using std::setw;
template <typename T>
using aligned_vector = std::vector<T, tapa::aligned_allocato... |
/*
* Copyright(c) 2019 Netflix, Inc.
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
/******************************************************************************
* @file Y4mVideoSource.h
*
* @brief Impelmentation of Y4mVideoSource class for reading y4m file.
*
* @author Cidana-Ryan
*
*********... |
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2010 <NAME> and Cppcheck team.
*
* 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 3 of the License,... |
// Extracted from rsa.c
/*
* rsa.c
* -----
* Basic RSA functions based on Cryptech ModExp core.
*
* The mix of what we're doing in software vs what we're doing on the
* FPGA is a moving target. Goal for now is to have the bits we need
* to do in C be straightforward to review and as simple as possible
* (but no simple... |
/**
* This file is part of the CernVM File System.
*/
#include <errno.h>
#include <getopt.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "cvmfs_config.h"
#include "logging.h"
#include "shrinkwrap/fs_traversal.h"
#include "shrinkwrap/fs_traversal_interfa... |
#include <cmath>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <locale>
#include <map>
#include <string>
#include <vector>
#include "boost/program_options.hpp"
#include "utl/get_or_create.h"
#include "motis/module/message.h"
#include "motis/protocol/RoutingResponse_generated... |
#include "cpu.h"
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <dirent.h>
#include <string.h>
#include <algorithm>
#include <regex>
#include "string_utils.h"
#ifndef PROCDIR
#define PROCDIR "/proc"
#endif
#ifndef PROCSTATFILE
#define PROCSTATFILE PROCDIR "/stat"
#endif
#ifndef ... |
#include "clb2.h"
#include "clb2_res1.h"
#include "clb2_res2.h"
extern vector<bool> with2FF;
// #define USE_LUTPG
bool CLB2::AddInst(Instance* inst) {
if (inst->IsFF()) { // FF
for (unsigned i = 0; i < 4; i += 2) {
if (FFs[i].size() == 0) {
FFs[i].push_back(inst);
... |
#include "Main.h"
#include <opencv2/core/types.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "MooreBoundaryTracer.h"
#include "avansvisionlib20.h"
#include "ImageLoader.h"
#include <opencv2/imgproc.hpp>
#include <vector>
#include <iomanip>
#include <math.h>
Main::Main()
{
}
Main::~Main()
{
}
cv::Mat_<double... |
#include "Scene.h"
#include <external/loguru.hpp>
#include <iostream>
#include "Frustum.h"
using std::string;
using glm::vec3;
using glm::mat3;
using glm::mat4;
Scene curScene;
glm::vec3 lightDirections[20];
glm::vec3 lightColors[20];
void resetScene(){
curScene.lights.clear();
}
void loadScene(string fileName){
... |
/**
* \file
* \author <NAME>
* \date 2011-12-13
* \brief Implementation of the GMSH2OGS converter.
*
* \copyright
* Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* ... |
#include "ImageDetailWidget.h"
void ImageDetailWidget::setup ( )
{
ofxAlphaStackItem::setup() ;
ofxMatrixTransformObject::setup() ;
detailImage = new ofxMatrixTransformImage() ;
detailImage->setup() ;
//Setup all text fields
float startY = ofGetHeight() * .3 ;
float ySpacing = 20 ;
title.setup( "typ... |
//
// Created by yzqlwt on 2021/1/7.
//
#include "Handlers.h"
#include "../utils/DirHelper.h"
#include "../utils/RequestHelper.h"
#include "../utils/Tools.h"
#include "../utils/ZipHelper.h"
#include "../utils/PlistParser.h"
#include "../utils/RequestHelper.h"
#include "../utils/ResConfigParser.h"
#include "../CsdSerial... |
//----------------------------------------------------------------------------//
// Part of the Fox project, licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
// File : SemaDecl.cpp
// Author : <NAME>
//-----------------------------... |
#define BOOST_TEST_MODULE TEST_MODEL_TRASFORM_DATA
#include <boost/test/unit_test.hpp>
#include "ut_details/disable_log.h"
#include "libs/transform_action/lookuptable_actions.h"
#include "libs/transform_action/mapvalues_default_task.h"
#include "libs/transform_action/mapvalues_task.h"
#include "libs/transform_action/ma... |
// adddmibulk kernel
#include "include/amul.hpp"
#include "include/exchange.hpp"
#include "include/stencil.hpp"
#include "include/utils.h"
#include "include/device_function.hpp"
// device side function. This is essentially the function of the kernel
// Exchange + Dzyaloshinskii-Moriya interaction for bulk material.
//... |
//
// Created by Harold on 2021/12/24.
//
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <array>
#include <unordered_map>
// read in the expression consists of w x y z
// evaluate with all 14bits number
// check whether the number meet the MONAD requirement
// ... |
//
// Created by <NAME>.
//
// uncomment to disable assert()
// #define NDEBUG
#include <cassert>
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <ios>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <array>
#... |
#include "CImg.h"
#include "edge_detect.h"
#include <iostream>
#include <cmath>
#include <algorithm>
#define PI 3.14159265
#define gFilterx 5
#define gFiltery 5
#define sigma 1
#define threshold_low 100
#define threshold_high 120
#define theta_size 360
#define theta_width 180/theta_size
#define max_thres 0.18
using ... |
/*
* Copyright (c) 2009-2021, <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 conditions an... |
#include "GameplayScreen.hpp"
#include "PlayerShip.hpp"
#include "StatusBar.hpp"
#include "Missile.hpp"
#include "Cursor.hpp"
#include "NumberLabel.hpp"
#include "BasicEnemy.hpp"
#include "Collision.hpp"
#include "Explosion.hpp"
#include "InfoBox.hpp"
#include "InfoBox2.hpp"
#define SPAWN_RATE 1.0f
#define MAX_ENEMY_C... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <dirent.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "codegen_langunit.hpp"
#include "nnfusion/core/kernels/cuda_gpu/cuda_langunit.hpp"
#include "rocm_codegen_pass.hpp"
using namespa... |
/**
///////////////////////////////////////////////////////////////////////////
//
// This file is part of the MOOS project
//
// MOOS : Mission Oriented Operating Suite A suit of
// Applications and Libraries for Mobile Robotics Research
// Copyright (C) <NAME>
//
// This software was written by <NAME>... |
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <stdexcept>
#include <map>
#include <set>
#include <cstdlib>
#include <array>
#include <bioinfo/util.h>
#include <bioinfo/multifastx.h>
#include <loonutil/util.h>
#include <loonutil/exception.h>
using namespace std;
/***************... |
#include "DocxFactory/os/OsFunc.h"
#include "DocxFactory/os/FileNotOpenException.h"
#include "DocxFactory/os/FileNotFoundException.h"
#include "DocxFactory/os/FileNotRemovedException.h"
#include "DocxFactory/os/InvalidFileUrlException.h"
#if defined( _WIN32 ) || defined( _WIN64 )
#include "DocxFactory/win/WinFunc.h"
... |
// makeafm.cpp
// This is work in progress - I now believe that all I will put in here
// wil be stuff to extra just the maths tables...
/**************************************************************************
* Copyright (C) 2015, Codemist. <NAME> *
* ... |
/*
* AbstractCFG.cpp
*
* Created on: Jul 28, 2015
* Author: lukas
*/
#include "llvm/Support/SourceMgr.h"
#include "llvm/Analysis/PostDominators.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Target/TargetLibraryIn... |
/**
* @author <NAME> and <NAME>
* @date August, 2004
* Main driver for BattleShipsV3 implementations.
* Please type in your name[s] below:
*
*
*/
#include <iostream>
#include <iomanip>
#include <cctype>
#include <unistd.h>
// Next 2 to access and setup the random number generator.
#include <cstdlib>
#include <... |
#include <idmlib/keyphrase-extraction/kpe_algorithm.h>
#include <boost/algorithm/string/split.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <sf1common/ScdParser.h>
#include "../TestResources.h"
using namespace idmlib;
using namespace idmlib::kpe;
using namespace idmlib::util;
using... |
/*
** Copyright (C) 1998-2006 <NAME> <<EMAIL>>
**
** 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 License, or
** (at your option) any later version.
**
** This program... |
/***********************************************************************/
/** */
/** raposa_calibration_node.h */
/** */
/** Copyright (c) ... |
// 2021-08-18
// This is a very tricky problem, and I wouldn't have been able to get it
// accepted without looking at the test data.
#include <cstdlib>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
constexpr int dr[4] = {1, 0, -1, 0};
constexpr int dc[4] = {0, 1, 0, -... |
#include "GiantHollowLog.h"
#include <LevelScene.h>
void IGiantHollowLog::Create() {
Active = true;
Priority = false;
W = 0xD0;
H = (0x46C - 0x3CC) << 1;
}
void IGiantHollowLog::Update() {
if (Scene->MyPlayer->Data1 < 2) return;
if (Scene->MyPlayer->Data3 > 0) {
int AIZTree_PlayerFram... |
#include "npctables.h"
NpcTables::NpcTables()
{
}
QString NpcTables::generateAdventurer(int tier)
{
RandomTable table;
QString gender = npcGender();
QString advClass = AdventurerClass(tier);
QString composite = gender + " " + advClass + " (" + AdventurerRace() + ")";
QString package = adventurerP... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* @file main.cpp
* @date 24 Jun 2021
* @todo move resnet model creating to separate sourcefile
* @brief task runner for the resnet
* @see https://github.com/nnstreamer/nntrainer
* @author <NAME> <<EMAIL>>
* @bug No ... |
/*
imu_compass.cpp
Authors: Prasenjit (<EMAIL>)
Copyright (c) 2013, Clearpath Robotics, 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 copyri... |
#include <wayfire/plugin.hpp>
#include <wayfire/output.hpp>
#include <wayfire/core.hpp>
#include <wayfire/debug.hpp>
#include <wayfire/view.hpp>
#include <wayfire/view-transform.hpp>
#include <wayfire/render-manager.hpp>
#include <wayfire/workspace-manager.hpp>
#include <queue>
#include <linux/input.h>
#include <utili... |
// Copyright(c) 2019, NVIDIA CORPORATION. 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 b... |
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <fstream>
#include "lightnet.h"
extern vector<CaseObject> readCases(string data_json_path, string model_json_path, string mode); // dataset.cpp
void classification(int argc, char **argv)
{
stri... |
// Copyright (c) 2020, NVIDIA CORPORATION. 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 condi... |
/*
* Copyright (c) 2018-2019, <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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... |
#include "CycleEnumeration.h"
#include <unordered_set>
#include <unordered_map>
#include <stack>
#include <utility>
#include <ctime>
#include <chrono>
#include <queue>
#include <tbb/spin_mutex.h>
#include <tbb/parallel_for.h>
#include <tbb/task_scheduler_init.h>
#ifdef MPI_IMPL
#include <mpi.h>
#endif
using namespace... |
#include <gtest/gtest.h>
#include <dgl/array.h>
#include "./common.h"
using namespace dgl;
using namespace dgl::runtime;
TEST(ArrayTest, TestCreate) {
IdArray a = aten::NewIdArray(100, CTX, 32);
ASSERT_EQ(a->dtype.bits, 32);
ASSERT_EQ(a->shape[0], 100);
a = aten::NewIdArray(0);
ASSERT_EQ(a->shape[0], 0);
... |
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
#include "eig.h"
#include <cstring>
#include <iostream>
static const double a_mat_test[] = {
0.470442000675409, -0.291482508170914, -0.44183986349643,
-0.176333746005435, 0.007410393215614, -0.739195206041762,
0.4817365475... |
#include "DQMOffline/PFTau/interface/Matchers.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/... |
/*
* Copyright (C) 2019, Xilinx Inc - All rights reserved
* Xilinx Resource Manger U30 Encoder Plugin
*
* 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 locate... |
//monitor_speed = 115200
//escreve no topico
#include "mbedtls/aes.h"
#include <WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#define SCL 22 //Clock
const int MPU_addr=0x68; // I2C address of the MPU-6050
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;
int xAng, yAng, zAng;
double x, y, z;
int minVal=265;... |
#include "PhysicsTools/IsolationAlgos/interface/IsoDepositVetoFactory.h"
#include "DataFormats/RecoCandidate/interface/IsoDepositVetos.h"
#include "PhysicsTools/IsolationAlgos/interface/EventDependentAbsVetos.h"
#include <regex>
// ---------- FIRST DEFINE NEW VETOS ------------
namespace reco {
namespace isodeposit... |
// Copyright © 2017 by <NAME> <<EMAIL>>
// Available under the MIT License. See LICENSE for details.
#include "crypto/cipher/salsa20.h"
#include "base/logging.h"
#include "crypto/primitives.h"
#include "crypto/security.h"
#include "crypto/subtle.h"
using crypto::primitives::ROL32;
using crypto::primitives::RLE32;
us... |
#include "StopDimensions.hxx"
#include "DetectorStop.hxx"
#include "ROOTUtility.hxx"
#include "GetUsage.hxx"
#include <cmath>
#include <vector>
std::vector<double> StopVetoGap;
std::vector<double> ExtraVertexSelectionPadding;
std::string runPlanCfg = "", runPlanName = "";
void SayUsage(char const *argv[]) {
std... |
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by
// a BSD-style license that can be found in the LICENSE file.
#include <string.h>
#ifdef _OPENMP
# include <omp.h>
#endif // ifdef _OPENMP
#include <toast/sys_utils.hpp>
#include <toas... |
/*
This is the source code of RNN
*/
#include <iostream>
#include <fstream>
#include <ostream>
#include <istream>
#include <sstream>
#include <string>
#include <vector>
#include <cstdlib>
#include <assert.h>
#include <time.h>
#include <sys/time.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#inc... |
/*
Copyright (c) 2003-2004, <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 conditions and the followi... |
#include "world/tile_set.h"
#include <iostream>
#include <magic_enum.hpp>
#include <stdexcept>
using namespace magic_enum;
using namespace std::string_literals;
const float EPSILON = 1e-6;
namespace world {
TileSet::TileSet(const std::vector<gltf::Mesh<RigidVertex>>& tileGeometry,
glm::vec3 tileSi... |
/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Characters/ToString.h"
#include "Stroika/Foundation/Containers/Collection.h"
#include "Stroika/Foundation/Containe... |
#include "ofApp.h"
#include "ofxBinaryMesh.h"
#include <Alembic/AbcGeom/All.h>
#include <Alembic/AbcCoreHDF5/All.h>
#include "ofxAlembic.h"
using namespace Alembic::AbcGeom;
static string dataPath = "../../../sharedData/";
#ifndef NO_ALEMBIC
#include "ofxAlembic.h"
ofxAlembic::Reader abc;
#endif
void ofApp::setup(... |
/*
BOLIDE_Player.cpp - Modified for XYZrobot ATmega 1280 control board.
Copyright (c) 2015 <NAME>. XYZprinting Inc. All right reserved.
*/
/*
BioloidController.cpp - ArbotiX Library for Bioloid Pose Engine
Copyright (c) 2008-2012 <NAME>. All right reserved.
This library is free software; you can redistribu... |
#if defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdint.h>
#include <assert.h>
#include <random>
#include <algorithm>
#include "stack_string.h"
using int32 = int32_t;
using uint32 = uint32_t;
using int64 = int64_t;
using uint64 = ... |
#include "config.h"
#include "nn/nn_all.h"
#include "tensor/tensor_all.h"
#include <algorithm>
#include "global.h"
#include "func_net.h"
#include "data_provider.h"
#include "reg_net.h"
#include "util.h"
#include <ctime>
#include <chrono>
INet* net;
using namespace gnn;
DataProvider *f_train_stream, *v_train_stream, *... |
//-*- C++ -*-
//-*- coding: utf-8 -*-
//
// Author: <NAME>
// Copyright 2018
//
#include <cmath>
#include <cstdio>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
#include "gtest/gtest.h"
#include "isce3/core/Constants.h"
#include "isce3/core/Interpolator.h"
#include "isc... |
// -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include <cmath>
#include <vector>
#include <boost/assign/std/vector.hpp>
#include "lin_time.h" // GetElapsedTime
#include "cmd/unit_generic.h"
#include "cmd/unit_util.h"
#include "gfxlib.h"
#include "viewarea.h"
#include "bubble_display.h"
namespace
{
f... |
/*
MGEAR is under the terms of the MIT License
Copyright (c) 2016 <NAME>, <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 u... |
#include "MPU.h"
#include <math.h>
float gForceX, gForceY, gForceZ;
float rotX, rotY, rotZ;
float calibX, calibY, calibZ;
//float gyrAngX, gyrAngY, gyrAngZ;
float accPitch, accRoll;
float pitch, roll, yaw;
float posX, posY, posZ; // Distance travelled in all directions, relative to startposition.
float mpuTemp;
long l... |
/*
* Copyright 2021 <NAME>
*
* Licensed under the Teave Public License (the "License");
* You may obtain a copy of the License at https://www.teave.io/teave-public-license.html
*
* This software is distributed under the License on an "AS IS" BASIS, WITHOUT WARRANTIES
* OF ANY KIND, either express or implied. Se... |
/************************************** TRICK HEADER **********************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
PURPOSE:
(Provides the class for parsing u... |
#include <cerrno>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <vector>
#include "craft/util/Logging.h"
#include "craft/util/Util.h"
#define LODEPNG_NO_COMPILE_CPP
extern "C" {
#include "lodepng.h"
}
int rand_int(int n) {
int result;
while (n <= (result = rand() / (RAND_MA... |
// Copyright 2018 <NAME> <your_email>
#include <header.hpp>
class loader {
public:
loader(boost::asio::io_context& ioc_,
std::vector<std::string>& url_, size_t& depth_,
size_t& network_threads_, size_t& parser_threads_, std::string& FileName_)
: ioc(ioc_), LinkVector{ url_ }, depth(depth_),
... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2020 <NAME> <<EMAIL>>
*/
#include <libusb.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <cassert>
#include "pirateJtag.hpp"
#include "display.hpp"
using namespace std;
#define PIR... |
// *****************************************************************************
/*!
\file src/Main/UnitTest.cpp
\copyright 2012-2015 <NAME>,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file for det... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.