text stringlengths 3.08k 12.5k |
|---|
/*!********************************************************************
*
Audacity: A Digital Audio Editor
CrashReportContext.cpp
<NAME>
Some parts of the code are designed to operate while app is crashing,
so there may be some restrictions on heap usage. For more information
please read Breakpad documentation... |
#include "Subtitles.h"
// Konstruktori
Subtitles::Subtitles(const Subtitle& firstSubtitle){
titles.push_back(firstSubtitle);
}
// Ispis titlova
ostream&
operator<<(ostream& outputStream, Subtitles& subtitle ){
int i = 1;
for (Subtitle& title : subtitle.titles){
outputStream << i++ << endl << title; //... |
#include <vector>
#include <algorithm>
#include "shadinginfo.h"
#include "raytracer.h"
#include "ray.h"
#include "glm.hpp"
#include "utility.h"
using namespace glm;
Raytracer::Raytracer(void)
{
}
Raytracer::~Raytracer(void)
{
}
Image* Raytracer::Render(const Scene& scene, int width, int height, int maxDepth)
{
Im... |
/*
* TestConstBzStepper.cxx
*
* Created on: May 8, 2014
* Taken from TestConstBzStepper.cxx (written by swenzel)
*/
#include "../inc/ScalarConstFieldHelixStepper.h"
#include "mmalloc.h"
#include "TGeoHelix.h"
#include "Geant/GUFieldPropagator.h"
#define ET_TIMER_RESULT_VAR vx_
#define ET_TIMER_RESULT_VAR_TYP... |
/*
Based on papers:
PAM: Parallel Augmented maps
<NAME>, <NAME> and <NAME>
PPoPP 2018
Parallel Range, Segment and Rectangle Queries with Augmented Maps
<NAME> and <NAME>
arXiv:1803.08621
*/
#include <algorithm>
#include <iostream>
#include <vector>
#include <climits>
#include <cstdlib>
#include <iomanip>
#inc... |
/*
* Copyright 2018 <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, subl... |
// Simulated ArbotiX driver class.
//
// Copyright 2020 University of Cincinnati
// All rights reserved. See LICENSE file at:
// https://github.com/MatthewVerbryke/rse_dam
// Additional copyright may be held by others, as reflected in the
// commit history.
#include <string>
#include <vector>
#include <ros/ros.h>
#in... |
#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
using namespace std;
class User {
public:
string userName;
string userPhoneNumber;
string userPin;
string userId;
User() = default;
User(string name, string phoneNumber,string pin) {
userName =... |
#include<iostream>
#include<opencv2/opencv.hpp>
#include<cmath>
#include<vector>
#define GRADI 180
#define RAD CV_PI/180
using namespace std;
using namespace cv;
void HoughTransform(Mat output, Mat img, int threshold, int minRad, int maxRad);
int main(int argc, char* argv[])
{
if(argc != 5)
{
cerr <... |
#include <boost/test/unit_test.hpp>
#include "interval.h"
#include "test_utils.h"
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <cmath>
using namespace std;
using namespace gamgee;
void check_interval(const Interval& actual, const Interval& truth) {
BOOST_CHECK_EQUAL(actual.c... |
#include "ATTPCDetectorConstruction.hh"
#include "ATTPCRectnglePad.hh"
#include "ATTPCHoneyCombPad.hh"
#include "KBG4RunManager.hh"
#include "G4RunManager.hh"
#include "G4NistManager.hh"
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4SystemOfUnits.hh"
#include "G4FieldManager... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2021 Pionix GmbH and Contributors to EVerest
#include <iostream>
#include <everest/logging.hpp>
#include <memory>
#include <modbus/modbus_client.hpp>
#include <sunspec/sunspec_device_mapping.hpp>
#include <sunspec/utils.hpp>
#include <sunspec/sunspec_model.hpp... |
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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
//
/... |
#include "GranBlock.hh"
/******************************************************************************
| Konstruktor klasy GranBlock. |
| Argumenty: |
| Brak argumentow. ... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "sysid/logging/SysIdLogger.h"
#include <ctre/Phoenix.h>
#include <cstddef>
#include <sstream>
#include <stdex... |
#include "fx/postprocess/postprocess.h"
#include "core/camera.h"
#include "core/logger.h"
#include "memory/assets/assets.h"
#include "ui/imgui_wrapper.h"
#include "shaders/postprocess/linear_depth/interop.h"
// ----------------------------------------------------------------------------
void Postprocess::init() {
... |
//
// Splay Tree
//
// Decription:
// A self-organizing binary search tree.
//
// Algorithm:
// splay brings a node to a root by a sequence of rotations.
//
// Complexity:
// O(log n), amortized.
//
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
#define fst f... |
#include "Graphserver.h"
void Connectinfo::Reset() {
ip.clear();
port.clear();
meassage.clear();
token.clear();
socketfd = -1;
}
bool Graph_Server_Control::ReadConfig(std::string config_file) {
std::fstream file;
std::string fileline;
std::string key, value_str;
size_t value_ul;
... |
#include "euler_operator.h"
static void createEdge(HalfEdge*& e1, HalfEdge*& e2, Vertex* s, Vertex* e)
{
e1 = new HalfEdge();
e2 = new HalfEdge();
Edge* edge = new Edge();
edge->pre = edge->next = nullptr;
edge->e[0] = e1;
edge->e[1] = e2;
e1->start_v = e2->end_v = s;
e1->end_v = e2->start_v = e;
e1->pre = e... |
// napss_dot a single RNA sequence. Programmed by DHM, 8/17/05
//This has been modified to output dot plot information 11/26/07 in conjunction with a change to algorithm.cpp
#include "stdafx.h"
#include "platform.h"
#include "rna_library.h"
#include "structure.h"
#include "algorithm.h"
#include <iostream>
#include <... |
/*=========================================================================
Program: Slicer
Language: C++
Module: $HeadURL$
Date: $Date$
Version: $Revision$
Copyright (c) Brigham and Women's Hospital (BWH) All Rights Reserved.
See License.txt or http://www.slicer.org/copyright/copyright.tx... |
#define _CRT_SECURE_NO_WARNINGS
#include <ros/ros.h>
#include <ros/package.h>
#include <sys/time.h>
#include <typeinfo>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <cstdl... |
#include <iostream>
#include <math.h>
#include <vector>
#include <algorithm> // std::sort
#include <fstream>
#include <sstream>
#include "nn.h"
void read_csv( std::vector<std::vector<double>> & data, std::vector<double> & labels, std::string filename)
{
//training_data = {};
//labels = {};
//expects the ... |
//HW1 by <NAME>
//SU Net ID: yzuo12 SUID: 767440201
//CIS600/CSE691 HW1
//Due: 11:59PM, Friday(1/31)
/*
Implement the two member functions: merge_sort and merge, as defined below for a sequential merge sort.
Note that the merge will be called by merge_sort.
In implementing both functions, you are only allowed to m... |
/******************************************************************************
* This file, along with all other files and components of this project, is *
* subject to the Apache 2.0 license included at the root of the project. *
******************************************************************************/... |
//
// Copyright (c) 2018 <NAME>
//
#include "../include/DTNode.h"
double metis::DTNode::measureInfoGain(metis::DataLabeled *data, std::vector<unsigned> subSet, unsigned attr, std::vector<std::vector<unsigned>> *subSets, Eigen::VectorXd *entropies) const {
double gain = _entropy;
Eigen::MatrixXd *in = data->... |
/*-------------------------------------------------------------------------
*
* copydir.c
* copies a directory
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* While "xcopy /e /i /q" works fine for copying dire... |
#include "Game.h"
#include "Camera.h"
#include <cstdio>
using glm::vec3;
using glm::vec4;
using glm::mat4;
/**
* Everything is placed in here to builed the scene
*/
/**
* Constructer
*/
Game::Game()
{
}
/**
* Constructer
*/
Game::~Game()
{
}
/**
* Start of the loop
*/
int Game::run()
{
bool running = true;
bool... |
/*
* Author: <NAME>
* Project: Lab and Plane
* Purpose: Making a dynamic 2D array using pointers and assigning values to
* the arrays
* Lab - ask user for ID , lab room number and station and log in
* the user at the specific location and /or log out user
* from sy... |
/*********************************************************************
* This file is distributed as part of the C++ port of the APRIL tags
* library. The code is licensed under GPLv2.
*
* Original author: <NAME> <<EMAIL>>
* C++ port and modifications: <NAME> <<EMAIL>>
********************************************... |
#include "G4PhysicsVector.hh"
#include "G4MaterialPropertyVector.hh"
#include "X4Array.hh"
#include "NPY.hpp"
#include "NP.hh"
#include "OPTICKS_LOG.hh"
const char* FOLD = "/tmp/X4ArrayTest" ;
void test_convert()
{
size_t len = 10 ;
G4double* energy = new G4double[len] ;
G4double* value = new G4doub... |
// The following touch screen support code by maxpautsch was merged 1/10/17
// https://github.com/maxpautsch
// Define TOUCH_CS is the user setup file to enable this code
// A demo is provided in examples Generic folder
// Additions by Bodmer to double sample, use Z value to improve detection reliability
// and to c... |
// Copyright (c) 2019-2020 <NAME>
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#include <gtest/gtest.h>
#include <veriblock/crypto/progpow.hpp>
#include <veriblock/crypto/progpow/ethash.hpp>
#incl... |
#include "swgl.h"
#include "pugixml.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
static int g_chunk_id = 0;
template <typename VectorT>
void PutArrayToNode(const VectorT& a_vector, pugi::xml_node a_node)
{
if (a_vector.size() == 0)
return;
std::stringstream nameStream;
nameStream << "fra... |
// Sketchpad004_BasicCustomArray.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <assert.h>
#include <ostream>
/*Lets assume we do not want to use std::vector.
But what if we needed to emulate those characteristics?*/
... |
/*
* Copyright (c) 2015-2019, Texas Instruments Incorporated
* 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
* n... |
/*
* Publish the Nao humanoid's base_footprint frame according to REP-120
* Based on nao_common/remap_odometry.cpp
*
* Copyright 2013 <NAME>, <NAME>, University of Freiburg
* http://www.ros.org/wiki/nao
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... |
#include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
struct twosat_scc {
int N, C = 0; // N is the number of variables
vector<vector<int>> adj;
vector<int> assignment, cmap;
... |
// MIT License
//
// Copyright (c) 2020 <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, merg... |
#include "MicroManager.h"
#include "Micro.h"
#include "UnitUtil.h"
using namespace UAlbertaBot;
MicroManager::MicroManager(
shared_ptr<AKBot::OpponentView> opponentView,
shared_ptr<BaseLocationManager> bases,
const BotMicroConfiguration& microConfiguration)
: bases(bases)
, opponentView(opponentView)
, _microCo... |
#include<time.h>
#include<iostream>
#include<vector>
#include<fstream>
#include<random>
using namespace std;
#define ld long double
#define INF 1e200
vector<vector<long double>> universe;
vector<long double> temp;
vector<vector<long double>> codebook;
//this function is used to read data from universe file
// it sto... |
#include "botgrabber.h"
extern deque<deque<set<unsigned int> *> *> timewindow_list;
extern HostTable host_table;
extern FILE *output_file;
extern SqliteDB *sqlite_db;
set<unsigned int> *findAddress(DnsMessage &dns_msg, const char *name) {
set<unsigned int> *ips = new set<unsigned int>();
deque<DnsRR *> *answers = ... |
#include<algorithm>
#include<iostream>
#define N 1500000
#include<cstdio>
using namespace std;
int re[N],c[N][2],mx[N],val[N],fa[N];
int s[N],top;
bool isroot(int now)
{
return !fa[now]||(c[fa[now]][0]!=now&&c[fa[now]][1]!=now);
}
void down(int now)
{
if(re[now])
{
re[now]^=1;
re[c[now][0]]... |
#include <iostream>
#include <memory>
#include <chrono>
#include <thread>
#include <opencv\highgui.h>
#include <filesystem>
#include "Frame.h"
#include "Face.h"
#include "ImageListener.h"
#include "FrameDetector.h"
#include "AffdexException.h"
using namespace std;
using namespace affdex;
float last_t... |
/*-------<NAME>------------*/
/*-------amansinha6189---------*/
#include<bits/stdc++.h>
// #include<ext/pb_ds/assoc_container.hpp>
// #include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace chrono;
// using namespace __gnu_pbds;
#define fastio() ios_base::sync_with_stdio(false);cin.tie(NULL... |
/*
* gdominosa.cpp
* dominosa
*
* Created by <NAME> on 1/22/11.
* Copyright 2011 Stanford University. All rights reserved.
*
*/
#include "dominosa-graphics.h"
#include "gobjects.h"
#include "vector.h"
#include "simpio.h"
static const double kDominosaWindowWidth = 960;
static const double kDominosaWindowHe... |
/*
* File: model_function.h
* Author: b.steltner, g.antonopoulos
*
* Created on 10. Dezember 2014, 15:07
*/
#include "model/model_function.h"
#include "tiles/tile.h"
#include "model/monomial_function.h"
#include "algorithm/strand_tile_unwrapper.h"
#include "tiles/unit_cartesian_coordinate_system.h"
#include "... |
#include <cstdlib>
#include <iostream>
#include "Util.h"
#include "value/Byte.h"
#include "value/Short.h"
#include "value/Int.h"
#include "value/Long.h"
#include "value/Decimal.h"
#include "value/Equation.h"
#include "value/Group.h"
#include "value/Negative.h"
#include "parser/Parser.h"
#include "parser/ParseValue.h"
#... |
#include "ScriptingConcurrent.h"
//Class static members must be defined in source code
Persistent<v8::Context> ScriptingConcurrent::context_;
Persistent<v8::Function> ScriptingConcurrent::start_;
Persistent<v8::Function> ScriptingConcurrent::stop_;
void ScriptingConcurrent::chargeFunctions(Persistent<v8::Context> ... |
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <fstream>
using namespace std;
int createFiles();
int filesCheker();
bool is_file_exist_frame();
bool is_file_exist_loop();
void menu();
void selectvideo();
void mainProcess();
int main()
{
int createFile = createFiles();
menu();
return... |
#include "tatami/tatami.h"
#include "Rcpp.h"
#include "tatamize.h"
#include <cstdint>
#include <limits>
#include <type_traits>
#include <deque>
#include <vector>
template<typename I, typename V>
struct accumulated {
accumulated(int nr, int nc, bool byrow) : nrow(nr), ncol(nc), offsets((byrow ? nr :nc) + 1) {}
... |
/*
* Copyright 2004-2008, <NAME>, <EMAIL>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "AttributeWindow.h"
#include "ProbeView.h"
#include "TypeEditors.h"
#include <stdio.h>
#include <stdlib.h>
#include <Alert.h>
#include <Catalog.h>
#include <Directory.h>
#include <GroupVi... |
/******************************************************************************
* Copyright (c) 2019, Xilinx, 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:
*
* 1. Redistributio... |
#include <cstdio>
#include <iostream>
#include "utility.hpp"
// Includes common necessary includes for development using depthai library
#include "depthai/depthai.hpp"
// Optional. If set (true), the ColorCamera is downscaled from 1080p to 720p.
// Otherwise (false), the aligned depth is automatically upscaled to 10... |
#include "LowStretchSphereParametrization.h"
#include "Bitmap.h"
#if !defined(_WIN32) && !defined(WIN32)
#include <unistd.h>
#endif
LowStretchSphereParametrization::LowStretchSphereParametrization(
const Sphere &sphere)
: m_sphere(&sphere)
{
m_frame.Canonical();
}
void LowStretchSphereParametrization::Shape(const ... |
/** \copyright
* 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:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of ... |
/*
* Copyright 2017 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... |
// servo
#define SERVO_PIN D6
#include <Servo.h>
static Servo myservo;
#define HITTING_ANGLE 87
#define RELEASE_ANGLE 60
#define STABILIZE_ANGLE 53
//
extern Task hit_task;
//
extern Task pcontrol_task;
bool pcontrol_new = false;
int pcontrol_start = 0;
int pcontrol_target = 0;
int control_count = 0;
//
extern Task ... |
#pragma once
//{
auto call(reg64 rt) {
auto _rt = (uint)rt;
emit.rex(0, 0, 0, _rt & 8);
emit.byte(0xff);
emit.modrm(3, 2, _rt & 7);
}
auto mov(reg64 rt, imm32 is) {
auto _rt = (uint)rt;
emit.rex(1, 0, 0, _rt & 8);
emit.byte(0xc7);
emit.modrm(3, 0, _rt & 7);
emit.dword(is.data... |
// Copyright 2014 BitPay Inc.
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or https://opensource.org/licenses/mit-license.php.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cassert>
#include <string>
#include <ctype.h>
#include <univalue.h>
#include "ut... |
//--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
#include "aggregator_assignment.h"
#include <numeric>
#include <mpi.h>
#include <tbb/parallel_for.h>
#include "aggregation_tree_builder.h"
#include "profiling.h"
AggregatorInfo::AggregatorInfo(const int rank) : aggregator_rank(rank) {}
AggregatorInfo compute_aggregator_assignment(ParticleData *data)
{
// Collect ... |
// Copyright (c) 2016 <NAME>
//
// 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 <hpx/config.hpp>
#include <hpx/exception.hpp>
#include <hpx/runtime.hpp>
#include <hpx/runtime/applier/applier.hpp>
#inclu... |
// CodecRTComponent.cpp
#include <string.h>
#include <iostream>
#include BOSS_OPENH264_U_typedefs_h //original-code:"typedefs.h"
#include "CodecRTComponent.h"
using namespace CodecRTComponent;
using namespace Platform;
using namespace Windows::Storage;
extern "C" int EncMain (int argc, char** argv);
extern int32_t D... |
/*Criado por <NAME> - BCC - UNESP Bauru*/
/*
O clássico problema do SuDoKu:
linhas e colunas devem ter a mesma soma,
porém não podem ter elementos iguais
Resolvido com Backtracking:
1 - "Escolhas"
2 - "Restrições"
3 - "Objetivo"
Escolhas: Colocar de 1 a 9 em cada célula da matriz em que SE PERMITE preenc... |
#include "scene.h"
// Needed for memset
#include <string.h>
Scene::Scene() : m_width(1), m_height(1), m_ratio(1.0f) {
}
/**
* @brief Scene::resizeGL
* @param width
* @param height
* @return
*/
GLvoid Scene::resizeGL(GLint width, GLint height) noexcept {
m_width = width; m_height = height;
m_ratio = m_w... |
#include "StdAfx.h"
#include "StandardHough.h"
#include "cv.h"
#include "highgui.h"
StandardHough::StandardHough(void) { }
StandardHough::~StandardHough(void) { }
void StandardHough::run(IplImage* img, CvSeq *linesFound, double rhoResolution, double thetaResolution, int threshold, int linesMax) {
int height... |
#include "geometryengine.h"
#include <QVector2D>
#include <QVector3D>
#include <mprogram.h>
struct VertexData
{
QVector3D position;
QVector2D texCoord;
};
GeometryEngine::GeometryEngine() : vboIds(new GLuint[2])
{
}
GeometryEngine::~GeometryEngine()
{
glDeleteBuffers(2, vboIds);
dele... |
#include <ege/engine/flow.hxx>
#include <ege/engine/resources.hxx>
#include <ege/opengl/all.hxx>
#include <ege/opengl/util/matrix.hxx>
using namespace ege;
class MainScene: public flow::Scene
{
private:
static opengl::Program* createProgram()
{
static const std::string vCode =
... |
#include "block.hpp"
#include "blocks.hpp"
#include "droppedBlock.hpp"
using namespace Blocks;
Block::Block(const char * texpath){
textureID = ResourceManager::getTexture(texpath);
data.dataPos = 0;
}
Block::~Block(){
if(!doDrop) return;
glm::vec3 p(pos.x,pos.y,pos.z);
Block * droppedBlock = decodeBlock(d... |
/* Copyright (c) 2021, 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... |
/**********************************************************************
* Project App6
*
* planesim.cpp
*
* Author: <NAME>
*
* 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... |
#include <driver/gpio.h>
#include <esp_system.h>
#include <freertos/FreeRTOS.h>
#include <freertos/semphr.h>
#include <freertos/task.h>
#include <lvgl.h>
#include <lvgl_helpers.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LV_TICK_PERIOD_MS 1
#define LV_UPDATE_INTERVAL_... |
#include <retext_outputter.h>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <boost/filesystem.hpp>
static constexpr std::string_view config_py
{
R"(# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list s... |
/*
* 3iRoboticsLIDAR System II
* Driver Interface
*
* Copyright 2017 3iRobotics
* All rights reserved.
*
* Author: 3iRobotics, Data:2017-09-15
*
*/
#include "ros/ros.h"
#include "sensor_msgs/LaserScan.h"
#include "C3iroboticsLidar.h"
#include "../sdk/include/CSerialConnection.h"
#define DEG2RAD(x) ((x)*M_PI/180.... |
/**
* \class WCSimChargePredictor
*
* This class is used to calculate the predicted
* mean charge at a PMT due to a given track hypothesis
*/
#pragma once
#include <vector>
#include "WCSimDigitizerLikelihood.hh"
#include "WCSimRecoDigit.hh"
#include "WCSimLikelihoodDigit.hh"
#include "WCSimLikelihoodDigitArray.... |
/**
* -------------------------------------------------------------------------
* Apollo
* -------------------------------------------------------------------------
* a tiny game for the Gamebuino META retro gaming handheld
* inspired by the famous Lunar ... |
// DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//218. The Skyline Problem
//A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distan... |
#include <realm/sync/noinst/server/server_file_access_cache.hpp>
using namespace realm;
using namespace _impl;
void ServerFileAccessCache::proper_close_all()
{
while (m_first_open_file)
m_first_open_file->proper_close(); // Throws
}
void ServerFileAccessCache::access(Slot& slot)
{
poll_core_metrics... |
/* This is a filter that will separate a TimeSeries of ThreeComponent
seismogram into components stripping ensemble header values and
putting copies into the header of each member. This is a required
step before sort or any other process that operates on one seismogram
at a time.
*/
/* This set of system... |
/*
* main.cpp
*
* Created on: 13. 12. 2019
* Author: ondra
*/
#include <iostream>
#include <simpleServer/urlencode.h>
#include <imtjson/value.h>
#include <imtjson/object.h>
#include "../shared/default_app.h"
#include "../brokers/httpjson.h"
#include "../shared/countdown.h"
#include "../shared/msgqueue.h"
#i... |
/*************************** ex-evol1.cpp **********************************
* Author: <NAME>
* Date created: 2001-12-08
* Last modified: 2008-11-28
* Project: stocc.zip
* Source URL: www.agner.org/random
*
* Description:
* Example showing how to simulate biological evolution using the library ... |
#ifdef _WIN32
#pragma warning(disable:4996)
#pragma warning(disable:4244)
#pragma warning(disable:4309)
#pragma warning(disable:4018)
#pragma warning(disable:4305)
#endif
#include <glew/glew.h>
#include <aribeiro/aribeiro.h>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <... |
/*
* 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.... |
/**
* @file crc32c.cpp
* @brief Node.js bindings for CRC-32C calculation using hardware-acceleration, when available.
*
* The code below provides the bindings for the node-addon allowing for interfacing of C/C++ code with
* JavaScript. It chooses between two versions of the CRC-32C calculator:
* - The hardware-ac... |
#include "GNSSMTi.h"
#include "common/TextController.h"
#include "Module/serialport/SerialHandler.h"
#include <unistd.h>
#include <sys/stat.h>
#include <string>
#include <xstypes/xsdatapacket.h>
GNSSMTi::GNSSMTi()
{
_connected = false;
_recorded = false;
_serialHandler = new SerialHandler();
}
GNSSMTi::~GNSSMTi(... |
/**
@file
@ingroup ports
*/
// SDK includes
#include "ext.h"
#include "ext_obex.h"
#include "ext_common.h" // contains CLAMP macro
#include "z_dsp.h"
#include "ext_buffer.h"
// softcut headers
#include "Resampler.h"
#include "Interpolate.h"
#define BUFSIZE 4
#define BUFMASK 3
typedef struct _scdownsampler {
... |
// (C) Copyright <NAME> 2016.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
/// @file
/// @brief tests order of the running unit tests u... |
#include "lama_ff_synergy.h"
#include "exploration.h"
#include "landmark_count_heuristic.h"
#include "landmark_factory_rpg_sasp.h"
#include "../evaluation_context.h"
#include "../evaluation_result.h"
#include "../option_parser.h"
#include "../plugin.h"
#include "../utilities.h"
using namespace std;
/*
Implementa... |
#include "Transform.hpp"
#include "Flow3D/Log.hpp"
#include "GameObject.hpp"
Transform::Transform(const GameObject* gameObject, const Vec3& position, const Quaternion& orientation, const Vec3& scale)
: m_GameObject(gameObject), m_Position(position), m_Orientation(orientation), m_Scale(scale), m_Parent(nullptr)
{
m... |
#include <cppunit/extensions/HelperMacros.h>
#include "DetectorDescription/DDCMS/interface/DDFilteredView.h"
#include "DetectorDescription/DDCMS/interface/DDDetector.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "DD4hep/Detector.h"
#include <string>
#include <memory>
#include "cppunit/TestAssert.... |
/**The MIT License (MIT)
Copyright (c) 2018 by ThingPulse Ltd., https://thingpulse.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 ... |
/*
* Copyright (C) 2012-2013 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 b... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2020, PickNik Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
// g++ -DNDEBUG -O3 -I.. benchEigenSolver.cpp -o benchEigenSolver && ./benchEigenSolver
// options:
// -DBENCH_GMM
// -DBENCH_GSL -lgsl /usr/lib/libcblas.so.3
// -DEIGEN_DONT_VECTORIZE
// -msse2
// -DREPEAT=100
// -DTRIES=10
// -DSCALAR=double
#include <iostream>
#include <Eigen/Core>
#include <Eigen/QR>
#in... |
#include "fSnakeGame.h"
#include <unistd.h>
using namespace std;
// Unreal coding standards
using int32 = int;
CharPosition::CharPosition(int32 col, int32 row)
{
x = col;
y = row;
}
CharPosition::CharPosition()
{
x = 0;
y = 0;
}
fSnakeGame::fSnakeGame()
{
// variables initialisation:
partchar = 'x'; // chara... |
/**
* @file RadialGaussian.cxx
* @brief Implementation of Function object class for a 2D spatial gaussian.
*
* @author <NAME>
*
* $Header: /nfs/slac/g/glast/ground/cvs/ScienceTools-scons/Likelihood/src/RadialGaussian.cxx,v 1.3 2016/01/27 02:48:05 mdwood Exp $
*
*/
#include <algorithm>
#include <iostream>
#in... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
#include "L1Trigger/L1THGCal/interface/HGCalTriggerTools.h"
#include "L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h"
#include "DataFormats/ForwardDetId/interface/HGCalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "Geometry/HGCalGeometry/interface/HGCalGeometry.h"
#include "Geomet... |
/*
Spout OpenFrameworks multiple receiver example
Using the 2.007 SpoutLibrary C-compatible dll
1) Copy SpoutLibrary.h to the source files "src" folder
2) Copy SpoutLibrary.lib to any convenient folder e.g. "libs"
3) Tell the linker to input SpoutLibrary.lib to your project
For Visual Studio this will be... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.