text stringlengths 3.08k 22k |
|---|
// File Name: B.cpp
// Author: YangYue
// Created Time: Thu Jun 19 19:20:11 2014
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream>
#include <vec... |
/*
* Copyright 2020~2021 SYSON, <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 applicabl... |
/*
* Copyright 2017 MapD Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/common/common_headers.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/console/parse.h>
#include <boost/program_options.... |
// Base class for HDD devices and image files
#include "SAMdisk.h"
#include "BlockDevice.h"
#include "HDFHDD.h"
#define SECTOR_BLOCK 2048 // access CF/HDD devices in 1MB chunks
/*static*/ bool HDD::IsRecognised(const std::string& path)
{
return BlockDevice::IsRecognised(path) ||
HDFHDD::IsRecogn... |
/***************************************************************************************[Main.cc]
Glucose -- Copyright (c) 2009-2014, <NAME>, <NAME>
CRIL - Univ. Artois, France
LRI - Univ. Paris Sud, France (2009-2013)
Lab... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.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.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
*
* Software distri... |
#include <test_defs.h>
// this enforces recompilation, responding to SINGLE...
#include "directft/dirft1d.cpp"
using namespace std;
using namespace finufft::utils;
const char* help[]={
"Tester for FINUFFT in 1d, vectorized, all 3 types, either precision.",
"",
"Usage: finufft1dmany_test ntrans Nmodes Nsrc [tol [... |
/**
* ActionServer interface to the control_msgs/GripperCommand action
* for a Robotiq 2F gripper
*/
#include "robotiq_2f_gripper_action_server/robotiq_2f_gripper_action_server.h"
// To keep the fully qualified names managable
//Anonymous namespaces are file local -> sort of like global static objects
namespace
{... |
#include "ros/ros.h"
#include "std_msgs/String.h"
#include "angles/angles.h"
#include "geometry_msgs/Twist.h"
#include "geometry_msgs/Pose2D.h"
#include "geometry_msgs/PoseWithCovarianceStamped.h"
#include "icmars_msgs/TwistDuration.h"
#include "icmars_onboard/MoveAction.h"
#include <actionlib/server/simple_action_serv... |
/**
* @file capture_filter/blank.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2013-2015 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Redistr... |
#include "voxel_box_mover.h"
#include "../meshers/blocky/voxel_mesher_blocky.h"
#include "../meshers/cubes/voxel_mesher_cubes.h"
#include "../util/godot/funcs.h"
static AABB expand_with_vector(AABB box, Vector3 v) {
if (v.x > 0) {
box.size.x += v.x;
} else if (v.x < 0) {
box.position.x += v.x;
box.size.x -= v.... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include <fstream>
#include <spine/HTTP.h>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <boost/asio.hpp>
#include <boost/foreach.hpp>
#include <boost/array.hpp>
#include <boost/bind.hpp>
#include <boost/date_... |
#include "Rannotation.h"
#include <R.h>
#include <Rdefines.h> // define SEXP
#include "AnnotationController.h"
#include "R_CPP_interface.h"
#include "BedReader.h"
#include "GenomeScore.h"
#include "TabixReader.h"
#include "AnnotationOutputFile.h"
OutputAnnotationString AnnotationString; // global variable
/**
* @p... |
// Copyright Google Inc. Apache 2.0.
#include "utils.h"
#include <stdint.h> // for uint8_t, int64_t
#include <stdlib.h> // for setenv
#include <string.h> // for memcmp, strlen
#include <sys/time.h> // for timeval
#include <time.h> // for tzset
#include "gtest/gtest.h" // for EXPECT_EQ, TEST, etc
using namespac... |
/******************************************************************************
** Copyright (C) 1997 CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 96/06/13
**
** File: MR_WaveCom... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "dlgaddvip.h"
#include "ui_dlgaddvip.h"
#include "discount_calc.h"
#include <QSqlQuery>
#include <QSqlQueryModel>
#include <QSqlError>
#include <QSqlRecord>
#include <QDebug>
#include <QDataWidgetMapper>
#include <QMessageBox>
#include <QTime>
... |
/*
Copyright 2014 Software Reliability Lab, ETH Zurich
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 applicabl... |
#include "es_statement.h"
#include "environ.h" // Critical section for statment
#include "es_apifunc.h"
#include "es_helper.h"
#include "misc.h"
#include "statement.h"
extern "C" void *common_cs;
RETCODE ExecuteStatement(StatementClass *stmt, BOOL commit) {
CSTR func = "ExecuteStatement";
int func_cs_count ... |
#include <mpi.h>
#include <stdexcept>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <fstream>
#include <iterator>
#include <limits>
inline int block_decompose(const int n, const int p,... |
#include "Prostopadloscian.hh"
#include "../include/lacze_do_gnuplota.hh"
#include <iomanip>
/*!
\brief Funkcja sprawdzajaca odpowieniej dlugosci bokow Prostopadlosciana
*sprawdzamy naprzeciwlegle boki Prostopadlosciana
* czy ich roznica jest mniejsza niz dokladnosc wyswietlania (do 0.0000000001)
* Jes... |
#include "test.h"
#include <sndfile.h>
#include <fvad.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <string>
#include <errno.h>
#include <unistd.h>
#include <boost/format.hpp>
#include <napi.h>
#include <iostream>
#define DEBUG=1;
using namespace std;
using namespace test;
struct BufFrame... |
/*
* Copyright 2013 <NAME>
* Copyright 2014 Canonical Ltd.
* Authors:
* <NAME>
* <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; version 3.
*
* This program is dist... |
#include "Arduino.h"
#include <Wire.h>
#include "vtf_driver.h"
Adafruit_DRV2605 drv;
vtf_driver::vtf_driver() {}
/**************************************************************************/
/*!
@brief Change to a single motor
@param motorNum Motor to be selected
*/
/*****************************... |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// Copyright <NAME> 2015
// 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 <quofil/quotient_filter_fp.hpp>
#include <algorithm> // for std::min, std::fill
#include <limits> // ... |
/*
* Copywrite 2021 <NAME>
*/
#include "Math/Shapes2D/Ray.h"
#include "gtest/gtest.h"
TEST(RayTest, ConstructedWith0Direction_CheckDirection_DirectionIsValid) {
Ray const ray;
EXPECT_FLOAT_EQ(ray.GetDirection().Length(), 1.0f);
}
TEST(RayTest, ConstructedWithAbnormalDirection_CheckDirection_DirectionIsValid) ... |
/***************************************************************************
* Copyright 2012 - 2013 Advanced Micro Devices, Inc.
* ... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <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 ri... |
#include "../include/gogos-stavros.h"
#include <chrono>
Matrix test_matrix_instantiation(matrix matrix_in){
std::cout << "------------------------------------------------------------------------------------------------------\n";
std::cout << "TEST: Instantiation of a " << matrix_in.size() << "-by-" << matrix_i... |
#include <iostream>
#include <wiringPi.h>
#include <cstring>
#include <csignal>
#include <unistd.h>
#include "u8g2_hal_rpi.h"
#include "u8g2_hal_rpi_i2c.h"
using namespace std;
u8g2_t u8g2;
static volatile bool complete = false;
static int forced_exit_attempts = 0;
// for drawBannerText()
static const char* scroll... |
#include "stdafx.h"
#include "Vertex.h"
#include "VertexRepository.h"
#include "HalfEdgeRepository.h"
#include "FaceRepository.h"
#include "PolygonBuilder.h"
#include "ParticleObject.h"
#include "PolygonMesh.h"
#include "Volume.h"
#include "VolumeCell.h"
#include "NodeGrid.h"
#include "OctTree.h"
using na... |
/*
* Copyright (c) 2011-2015, <NAME> and ARMINES
* 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... |
#include "ONI3DConverter.h"
#include "Stitcher.h"
#if defined(_WIN32) && !defined(_MSC_VER)
# define _MSC_VER 1300
#endif
#include <OpenNI.h>
#include <iostream>
#include "open3d/Open3D.h"
ONI3DConverter::ONI3DConverter()
: resX_(0), resY_(0), factorXZ_(0), factorYZ_(0),
convTermsSet_(false), term... |
/*
Copyright © 2016, The Pennsylvania State University
All rights reserved.
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include "muscle.h"
#include "msa.h"
#include "seqvect.h"
#include "textfile.h"
#include "muscle_context.h"
#define MEMDEBUG 0
#if MEMDEBUG
#include <crtdbg.h>
#endif
void MUSCLE(SeqVect &v, MSA &msaOut);
// Append msa2 at the end of msa1
void AppendMSA(MSA &msa1, const MSA &msa2)
{
const unsigned uSeqCount = msa... |
#include "Lagrangian.h"
#include "LocalSearch.h"
Lagrangian::Lagrangian(GeneralizedAssignemnt* GAPinstance, int & zz) : zub(zz)
{
//ctor
GAP = GAPinstance;
m = GAP->m;
n = GAP->n;
sol = GAP->sol;
solbest = GAP->solbest;
req = GAP->req;
}
Lagrangian::~Lagrangian()
{
//dtor
}
// Lagrangian, fe... |
/*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free... |
/*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2012 CaH4e3
* Copyright (C) 2002 Xodnizel
*
* 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 Foundati... |
/*
* Copyright (c) 2014-2021, 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 ... |
#include "Kriging_binding.hpp"
#include "LinearRegression_binding.hpp"
#include "NuggetKriging_binding.hpp"
#include "mex.h" // cf https://fr.mathworks.com/help/
#include "tools/MxException.hpp"
#include "tools/MxMapper.hpp"
#include "tools/string_hash.hpp"
void help_page() {
mexPrintf(R"(
mLibKriging help page
t... |
/*
* PhysicalButtons.cpp
*
* Created on: 2015-06-05
* Author: Roger
*/
#include <src/PhysicalButtons/PhysicalButtons.h>
#include <QDateTime>
PhysicalButtons::PhysicalButtons(QObject *_parent) {
if (_parent)
this->setParent(_parent);
m_ppsObject = new bb::PpsObject("/pps/sys... |
#include "camera_system.h"
#include <math.h>
#include <engine/pge.h>
#include <glm/glm.hpp>
#include <glm/gtx/projection.hpp>
#include <glm/gtx/random.hpp>
#include <runtime/array.h>
#include <game_types.h>
using namespace pge;
namespace app
{
const f32 DEFAULT_DAMPING = 4.0f;
const f32 DEFAULT_FOV = 45.0f;
co... |
//
// Stroustrup - Programming Principles & Practice
//
// Chapter 25 Exercise 15 - Performance testing
//
// Measure the time it takes to:
// - allocate 10000 objects of random sizes in the [1000:0) byte range using
// new, then measure the time it takes to deallocate them using delete
// - do this twice, deallocating... |
/*! \file Transform.cpp
* \author <NAME>
* \brief Implementation of Transform class.
*/
#include "Transform.h"
#include "BoundingBox.h"
#include "Ray.h"
Transform
::Transform(const float m00, const float m01, const float m02, const float m03,
const float m10, const float m11, const flo... |
/* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#include "AMRIO.H"
#include "BRMeshRefine.H"
#include "BiCGStabSolver.H"
#include "DebugDump.H"
#include "FABView.H"
#include "FArrayBox.H"
#include "LevelData.H"
#include "LoadBalance.H"
#include "Mu... |
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#include "LabSound/LabSound.h"
#include "LabSound/core/AudioContext.h"
#include "LabSound/core/AudioHardwareDeviceNode.h"
#include "LabSound/extended/AudioContextLock.h"
#include "LabSound/extended/Logging.h"
#... |
// $Id: scoreit.cc 1285 2012-03-22 01:12:42Z mikewong899 $
/**
* \page scoreit scoreit
*
* %Scores a set of given points in an unknown protein for similarity to a given active site model
*
* \section scoreit_input Input
* \li A \ref model "model file" that contains a protein function model, as produced by \ref b... |
#include "programStatus.h"
ProgramStatus::ProgramStatus(unsigned int width, unsigned int height)
{
SCR_WIDTH = width;
SCR_HEIGHT = height;
sizeMap = 10;
languagePath = "languages";
actualLan = 0;
updateLanguages();
lastParamPath = "manifolds";
lastParamFile = "lastParam.in";
dirPath = "manifolds";
para... |
#include "perf/perf_common.h"
#include "perf/wrappers/opencv_wrapper.h"
#include "perf/wrappers/popsift_wrapper.h"
#include "perf/wrappers/siftgpu_wrapper.h"
#include "perf/wrappers/vlfeat_wrapper.h"
#include "perf/wrappers/vulkansift_wrapper.h"
static const std::vector<std::string> detector_name_list = {"VulkanSift",... |
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "FastCaloSimAnalyzer/TFCSValidationEnergyAndHits.h"
#include "FastCaloSimAnalyzer/TFCSAnalyzerBase.h"
#include "ISF_FastCaloSimEvent/TFCSSimulationState.h"
#include "ISF_FastCaloSimEvent/ICaloGeometry.h"
#include "ISF_FastCaloSim... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
//
// ycsbc.cc
// YCSB-C
//
// Created by <NAME> on 12/19/14.
// Copyright (c) 2014 <NAME> <<EMAIL>>.
//
#include <cstring>
#include <string>
#include <iostream>
#include <vector>
#include <future>
#include <hdr_histogram.h>
#include <numa.h>
#include <unistd.h>
#include "core/utils.h"
#include "core/timer.h"
#inc... |
/***************************************************************************
**************************************************************************
Spherical Harmonic Transform Kit 2.6
<NAME>, <NAME>, <NAME>, <NAME>
<EMAIL>, {<EMAIL>,<EMAIL>,<EMAIL>
Contact: <NAME>
<E... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
#include "acCommentPaser.h"
#include <QFile>
#include <QDebug>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
#include <QRegularExpression>
AcCommentPaser::AcCommentPaser(QObject *parent)
: QObject(parent)
{
}
int AcCommentPaser::replyToId() const
{
return m_replyToId;
}
void AcComm... |
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <cmath>
#include "Settings.hpp"
#include "Coord.hpp"
#include "Grid.hpp"
#include "Error.hpp"
using namespace std;
Settings::Settings() {
this->readSettings();
this->dimnames[0] = 'z';
this->dimnames[1] = 'x';
this->dimnames[2] =... |
#include "KVStore.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
//#include <boost/program_options.hpp>
#include <typeinfo>
#include <map>
#include <vector>
#include <string>
#include <ios... |
#include <g3dxml/XMLGeometryWriter.h>
using namespace g3dxml;
XMLGeometryWriter::XMLGeometryWriter() {
}
XMLGeometryWriter::~XMLGeometryWriter() {
}
bool XMLGeometryWriter::Write(geo3dml::Geometry* geo, std::ostream& output, SchemaVersion v) {
output << "<Shape>" << std::endl;
geo3dml::TIN* tin = dynamic_cast<g... |
#include "solar.h"
using namespace std;
const int MAX_NUM_PLANETS=5;
const int MIN_SUN_RADI=600000;
//Solar System
solarSys::solarSys()
{
numPlanets=rand()%MAX_NUM_PLANETS+5;//Range of planets from 5 to 10
sun_radius=rand()%100000+MIN_SUN_RADI;//Range of sun radius from 600000-700000
sun_mass=3000;//trillion k... |
#include <type_traits>
#include <utility>
#include <cassert>
#include <queue>
#include <vector>
#include <string>
#include <type_traits>
#include <chrono>
#include <gtest/gtest.h>
#include <graph/static_graph.hpp>
#include <graph/graph.hpp>
#include <graph/properties.hpp>
#include <graph/io.hpp>
#include <arc-flags/arc... |
#include "../common_includes.hpp"
//aimtux
void math::correct_movement(vec3_t old_angles, c_usercmd* cmd, float old_forwardmove, float old_sidemove) {
float delta_view;
float f1;
float f2;
if (old_angles.y < 0.f)
f1 = 360.0f + old_angles.y;
else
f1 = old_angles.y;
if (cmd->viewangles.y < 0.0f)
f2 = 360.0... |
/*
* image_io.cpp
*
* Created on: 2017/8/22
* Author: ZhangHua
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <algorithm>
#include <image_io.hpp>
#include <device_instance.hpp>
using namespace std;
using namespace clnet;
int reverse_int(int i) {
... |
//
// Created by wangrl on 2021/3/7.
//
#include <fstream>
#include <iostream>
#include <cassert>
#include <cstring>
#include "WavCodec.h"
void dumpWavInfo();
template<class T>
WavCodec<T>::WavCodec() {
// static_assert(std::is_floating_point<T>::value,
// "Error: this version of WavCodec only su... |
#include <ros/ros.h>
#include <math.h>
#include "LaserScanner.h"
#include "OccGrid.h"
#include <vector>
#include <array>
#include <set>
#include <algorithm>
OccGrid::OccGrid(){
for(int i =0; i < static_cast<int>(map.size()); i++){
map[i].fill(0); //log odds value of map
smoothedMap[i].fill(-1); //set val... |
//
// sellist.h
// Shortest path functions (SGraph version)
//
// Copyright (c) 1997-1998 <NAME>
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#en... |
#include "bitbots_quintic_walk/walk_pywrapper.h"
/* Read a ROS message from a serialized string.
*/
template<typename M>
M from_python(const std::string &str_msg) {
size_t serial_size = str_msg.size();
boost::shared_array<uint8_t> buffer(new uint8_t[serial_size]);
for (size_t i = 0; i < serial_size; ++i) {
... |
/*
Copyright (c) 2007 <NAME>. 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 require... |
/*
autowah for the bela platform
author: <NAME>
*/
#include <Bela.h>
#include <algorithm>
#include <math.h>
#include <libraries/ADSR/ADSR.h>
#include <Biquad.h>
#include <libraries/Midi/Midi.h>
int gAudioInChannelNum; // number of audio in channels to iterate over
int gAudioOutChannelNum; // number of audio in channe... |
///////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// ██╗░░██╗░██╗░░░░░░░██╗░█████╗░████████╗████████╗░█████╗░
// ██║░██╔╝░██║░░██╗░░██║██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗
// █████═╝░░╚██╗████╗██╔╝███████║░░░██║░░░░░░██║░░░███████║
// ██╔═██╗░░░████╔═████║░██╔... |
// clang-format off
//
// Created by goksu on 4/6/19.
//
#include <algorithm>
#include <vector>
#include "rasterizer.hpp"
#include <opencv2/opencv.hpp>
#include <math.h>
rst::pos_buf_id rst::rasterizer::load_positions(const std::vector<Eigen::Vector3f> &positions)
{
auto id = get_next_id();
pos_buf.emplace(i... |
// Copyright 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
//
// Created by alandefreitas on 17/01/2022.
//
/** \file
* \brief A very simple amalgamator to generate the single header version of
* futures
*/
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <optional>
#include <regex>
#include <string>
#include <vector>
#include <st... |
#include "TransportLayerTCP.hpp"
#include "protocol/SIPMessage.hpp"
#include "Transaction.hpp"
#include "utils/LoggerFactory.hpp"
#include "utils/Logger.hpp"
#include "utils/Connection.hpp"
#include "utils/ConnectionManager.hpp"
#include "utils/InputTokenStream.hpp"
#include "parser/Parser.hpp"
using namespace sip0... |
#include "DirectoryWindow.h"
#include "Utils.h"
#include <Catalog.h>
#include <Entry.h>
#include <Message.h>
#include <StorageKit.h>
#include "DirectoryItem.h"
#include <ScrollView.h>
#include <Button.h>
#include <View.h>
#include "Logger.h"
#include "Utils.h"
static BBitmap* fItemIcon;
static BBitmap* fFolderIcon;... |
#include <ZoneResource.h>
#include <BasicATL.h>
#include <ATLFrame.h>
#include "CMillCommand.h"
#include "protocol.h"
// zone proxy commands
#include "OpName.h"
///////////////////////////////////////////////////////////////////////////////
// Interface methods
///////////////////////////////////////////... |
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/** das_behavior_test.cc -*- C++ -*-
<NAME>, 22 Oct 2012
Copyright (c) 2012 mldb.ai inc. All rights reserved.
Tests for teh DasDB backed behavior domain. This component requires more
testing... |
// 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 "hal/cpp/SerialHelper.h"
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <string_view>
#in... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
/*
* GuiControl.cpp
* Gui
*
* Created by <NAME> on 12/02/2010.
*
*/
#include "GuiControl.h"
// how big the triangle in the bottom
// right hand corner is for scaling in
// edit mode.
#define SCALE_TRIANGLE_SIZE 10
// what kind of edit are we doing now?
#define EDIT_NONE 0
#define EDIT_MOVE 1
#define EDIT... |
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleScene.h"
#include "ModuleCamera3D.h"
#include "ModuleGUI.h"
#include "Primitive.h"
#include "GameObject.h"
#include "ComponentMesh.h"
#include "ComponentTexture.h"
#include "ComponentCamera.h"
#inc... |
/*
//\class RPCGeometryValidate
Description: RPC GeometryValidate from DD & DD4hep
//
// Author: <NAME> (<EMAIL>) following what Ianna Osburne made for DTs (DD4hep migration)
// Created: Fri, 20 Sep 2019
*/
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Maker... |
#include "IEngine.hpp"
#include "IRenderWorld.hpp"
#include "Vector.hpp"
#include "GameEntity.hpp"
#include "SDL.h"
#include "Engine.hpp"
#include "glm/gtc/matrix_transform.hpp"
using namespace Entities;
//============================
// GameEntity
//============================
void GameEntity::Spaw... |
/* -------------------------------------------------------------------------- *
* OpenSim: AbstractProperty.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
/*
* MidiTrain -- MIDI sequencer and visualizer based on a train-inspired musical notation
*
* Author: <NAME> <<EMAIL>>
* This work is released under the MIT license
*/
#include "playthread.h"
#include "composition.h"
#include <QMidiOut.h>
#include <QTimer>
#include <QMidiFile.h>
#include <QElapsedTimer>
#include... |
#include <chrono>
#include <fstream>
#include <iostream>
#include <math.h>
#include <thread>
#include <uWS/uWS.h>
#include <vector>
#include "json.hpp"
#include "sdc_constants.h"
#include "sdc_utils.h"
#include "behavior_planner.h"
#include "trajectory_generator.h"
using namespace std;
// for convenience
using json... |
#include "cgwr.hpp"
// Token definitions
/***************************************/
const unsigned int _CGWR::C_CG = 1;
const unsigned int _CGWR::C_W3j = 2;
const unsigned int _CGWR::C_W6j = 3;
const unsigned int _CGWR::C_W9j = 4;
const unsigned int _CGWR::C_RACAH = 5;
/***********/
// Copy argumen... |
#include "RegView.h"
#include "imgui/imgui.h"
#include "struse/struse.h"
#include <malloc.h>
#include "Views.h"
#include "machine.h"
#include "Expressions.h"
#include "ImGui_Helper.h"
#include "Config.h"
#include "GLFW/include/GLFW/glfw3.h"
#include "ViceConnect.h"
#include "Image.h"
constexpr auto CursorFlashPeriod =... |
#include "rtcp.hh"
#include "../srtp/srtcp.hh"
#include "debug.hh"
uvgrtp::frame::rtcp_sender_report *uvgrtp::rtcp::get_sender_packet(uint32_t ssrc)
{
if (participants_.find(ssrc) == participants_.end())
return nullptr;
auto frame = participants_[ssrc]->s_frame;
participants_[ssrc]->s_frame = nul... |
// Copyright (c) 2015 <NAME>
// License: AFL 3.0 | https://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#include <utility>
#include <iostream>
#include <tuple>
#include <unordered_map>
// We're going to implement a `make_unordered_map` function in this
// code segment, similar to the previou... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/sockios.h>
#include <netinet/in.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <rfb/rfb.h>
#include <rfb/keysym.h>
#include "gfx.h"
#include "v... |
//
// SDK.cpp
// GOSX Pro
//
// Created by <NAME> on 15.02.17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "SDK.h"
ISurface* Interfaces::m_pSurface = nullptr;
IPanel* Interfaces::m_pPanel = nullptr;
ICvar* Interfaces::m_pC... |
//
// main.cpp
// AVTools
//
// Created by WorkSpace_Sun on 2021/4/26.
//
#include <iostream>
#include <getopt.h>
#include "RawVideo.h"
#include "RawAudio.h"
#include "Demuxer.h"
#include "MP4Mediainfo.h"
#include "FLVMediainfo.h"
#include "TSMediainfo.h"
#include "RGBToBMP.h"
#include "RGBToYUV.h"
#include "YUVToR... |
#include <iostream>
#include <fstream>
#include "Matrix.h"
#include "TfRunner.h"
#include "FuzzyController.h"
// Simulate open-loop system
void runOpenLoop(TfRunner tf, char* argv0)
{
const float Te = 0.1F; // [s]
const float runTime = 1000.F; // [s]
const int cycles = (int)ceil(runTime / Te);
// ope... |
/*
* Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/>
* By Asardial
*
* Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/>
*
* 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... |
#include "worldGenerator.hpp"
#include "chunk.hpp"
#include "structs.hpp"
#include "blockUtils.hpp"
std::vector<intvec3> WorldGenerator::generateQueue;
std::thread * WorldGenerator::generator;
unsigned long WorldGenerator::seed = 0;
bool WorldGenerator::generatorShouldEnd = false;
intvec3 WorldGenerator::currentChunk... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.