sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
b236b12ce42971b34dcc8c74c3a9636bf3cc08426face357b1b19d5e506b024c
C++
2,159
74
// Copyright 2017 Mike Fricker. All Rights Reserved. #include "PolygonTools.h" #include "StreetMapRuntime.h" #include "CompGeom/PolygonTriangulation.h" #if ENGINE_MAJOR_VERSION > 4 #include "IndexTypes.h" using UE::Geometry::FIndex3i; using V2 = FVector2f; #else using V2 = FVector2D; #endif // Based off "Efficient Po...
f1d706e3a16253a53432c4c6d258cf09ee8d78b7859ed96b1cce8cfc3654afb6
C++
2,162
65
// Copyright 2017 Mike Fricker. All Rights Reserved. #include "StreetMapImporting.h" #include "StreetMapAssetTypeActions.h" #include "Modules/ModuleManager.h" #include "StreetMapStyle.h" #include "StreetMapComponentDetails.h" DEFINE_LOG_CATEGORY(LogStreetMapImporting); class FStreetMapImportingModule : public IModu...
04f9b146877b13b3580db6041f6f45a47e386d11e8b5dfb9e581306f73f04052
C++
2,165
91
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderFrames.h" #include "CarlaRecorder.h" #include "CarlaRecorderHelpers.h" ...
d2ae1d88b776b3bc7d40718742ef6e4ad37666867da1bcc09926e7ab2414136b
C++
2,166
66
#include <stdio.h> #include <stdlib.h> #include <string> #include <math.h> #include <cstring> #include <iostream> #include <sstream> #include <cmath> #include <vector> #include <map> #include <algorithm> #include <assert.h> #include "../src/tools.h" // Numerical tools int main(int argc, char *...
5073d31e4e2cb668bdef0cba57b1b0be9ebe3e69dde48feeabb1a0c4fdf74603
C++
2,170
115
#include "Streaming.h" #include "DioPulse.h" #include "TimerOne.h" const int DioPulseDev::ALLOWED_PULSE_PIN[NUM_PULSE_PIN] = {2,3,4,5,6,7,8,9,10}; DioPulseDev::DioPulseDev() { pulsePin_ = DEFAULT_PULSE_PIN; pulseLength_ = DEFAULT_PULSE_LENGTH; interruptCnt_ = 0; } void DioPulseDev::initialize() { f...
81a1a3c71fabac52ce10d54c1f0d182eee7973b3c448f0e9b7728dee1ad47d2e
C++
2,182
91
#include <string.h> #include <stdlib.h> #include <assert.h> #include "str.hh" #include "Latticer.hh" Latticer::Latticer() : morph_set(NULL), word_boundary_label("<w>") { } void Latticer::create_lattice(FILE *input, FILE *output) { text.reserve(morph_set->max_morph_length * 2); int src_node_pos = 1; int...
9355e31c6f2e3da3afd4ca8b9a82dd3455096081a217448c0be35a70394a1b7f
C++
2,188
80
#include <algorithm> #include <fstream> #include <iostream> #include <iterator> #include <vector> #include <cstdio> #include <memory> #include <stdexcept> #include <string> #include <array> #include <json.hpp> #ifndef HCBR_UTILS_HPP #define HCBR_UTILS_HPP ////////////////////////////////////////////////////////////...
41c0c6eb99cbca6efa5fddc391178c79989b4557f1a5028dd2ef981374a874c7
C++
2,195
63
// Copyright (c) 2023 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "StreetMapImportBlueprintLibrary.h" #include "StreetMapFactory.h" #include "StreetMap....
27cad280bfd00781624c9ca18b967981662580c27aaeb43ed457ce3422e42567
C++
2,214
85
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderEventParent.h" #include "CarlaRecorder.h" #include "CarlaRecorderHelpers...
c6ab36408e2f98f9f7823dbb70803c4ebd81afc333663eef0ecde32ce4c5a5c4
C++
2,218
57
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/opendrive/parser/TrafficGroupParser.h" #include "carla/road/MapBuilder.h" #in...
9c2f96f551479e8ddbf6617f20e690d203b70dc2e71ee9bbedcfc898a460fe20
C++
2,229
68
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/ros2/publishers/CarlaSemanticLidarPublisher.h" #include <cstring> namespace c...
541cb5cf264ecc30b7bcbc07f524b85474aa52efb5ff95bd908858f98505c2f2
C++
2,238
118
#ifdef WITH_SPIN #include "camera_info_spin.hpp" #include <iostream> #include <sstream> #include "exception.hpp" #include "node_map_utils.hpp" namespace bias { const size_t MAX_BUF_LEN = 256; CameraInfo_spin::CameraInfo_spin() { } std::string CameraInfo_spin::toString() ...
13a13948571b77b50f3265b13be628814dec3339ad8e24063c68ec83508b07bb
C++
2,248
77
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
8180ed2501c9385f2164d6008775c1c7dc64ec0b83de18f6e7756b08af98301a
C++
2,262
65
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
fdabe139bf27063721ac9ac3537c0ad1adc274aabb369484a98690eef0d726f6
C++
2,262
76
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "GeoTrafficSign.h" #include "Carla.h" AGeoTrafficSign::AGeoTrafficSign(const FObjectI...
1e135496dd22593df121570cb9509031595b65901b7410e026bd0460908a4bc3
C++
2,269
83
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
5260d22343dba07bdce0632ea51634596ccd234211b987b78d3594ab5b0a33e1
C++
2,278
71
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/ros2/publishers/CarlaIMUPublisher.h" #include "carla/Logging.h" #include "carl...
4cd4962309fb78be996c3e08ad5d27f5fa824ad28a7f1c03c34afb10ce85cc6b
C++
2,293
91
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderWalkerBones.h" #include "CarlaRecorder.h" #include "CarlaRecorderHelpers...
fe46225bb62ef38738427cf09fca9b4c10171025c19dfed8cbbeedbcd2d61fc4
C++
2,293
62
#include "FstWithPhoneLoop.hh" void test_fstsearch(std::string fst_fname, std::string lna_name, std::string hmm_name, std::string dur_name) { fprintf(stderr, "Test fstsearch\n"); FstSearch fsts(fst_fname.c_str(), hmm_name.c_str(), dur_name.c_str()); //fsts.set_beam(200.0f); //fsts.set_token_limit(1000); fst...
cfcd38dcbe50b5bb291e307a61c41699a0ea10326b5862dc5243e63d9ae80b29
C++
2,307
85
#include <vector> #include <valarray> #include <fstream> #include <iostream> #include "commandline.h" #include "dnn_picker.h" #include "spectrum_simple_picking.h" #include "DeepConfig.h" int main(int argc, char **argv) { std::cout<<"DEEP Picker package Version "<<deep_picker_VERSION_MAJOR<<"."<<deep_picker_VE...
0fe0e8d163578d1571b287f0ac25f04ee8a33f0d876d1594af5a7eb6df81d307
C++
2,313
85
#include "hdbscan.hpp" #include <cstdint> #include <fstream> #include <iostream> #include <map> #include <set> #include <sstream> Hdbscan::Hdbscan(mat& X) { import_arma(X); } // Each row is a data point void Hdbscan::import_arma(mat& X) { vector<vector<double> > dataset; vector<double> row(X.n_cols); for (int ...
ea270bec72c6f3c25b76b4f03a731026ae677accd570dffdb18558c1edb2afcd
C++
2,321
97
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "TrafficLightGroup.h" #include "Carla.h" #include "Carla/Game/CarlaStatics.h" // Set...
edf2fdb63c58f9299e254002610fe2f30b1d06c2d12267ad1541742b0d0a0b1a
C++
2,327
82
#include <fstream> #include <iostream> #include <sstream> #include <cmath> #include <algorithm> #include <cstdio> #include <vector> #include <set> #include "json/json.h" #include "commandline.h" #include "contour.h" #include "spectrum_prediction.h" #include "DeepConfig.h" int main(int argc, char ** argv) { std::c...
c61cd346d4b3fdd7f90ebc88a2b3e65a5689628ff5e2f67a3a2589f5caf66c1b
C++
2,358
87
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderAnimVehicle.h" #include "CarlaRecorder.h" #include "CarlaRecorderHelpers...
834ee5f87e06536c93532f10d69b862ea8e2d4bd2b407cb2b125f3d212a2f8e4
C++
2,359
74
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Carla/Util/RayTracer.h" #include "Carla.h" #include "Carla/Game/CarlaStatics.h" #incl...
cb80d8c61b397b422a95fc30b91d6d511841195eb0f68dd3cff06bbdd4cbadfe
C++
2,362
70
#include "utils.h" // must be before all other includes. #include "Rcpp.h" #include "sanisizer/sanisizer.hpp" #include "singler_classic_markers/singler_classic_markers.hpp" #include <stdexcept> //[[Rcpp::export(rng=false)]] Rcpp::List find_classic_markers( Rcpp::RObject mat, int nlabels, Rcpp::IntegerVe...
5762e49a8b2ae21106534c79b09d8d693d8093e47f6afaab681a632f7c2beedd
C++
2,365
62
/*************************************************************************************************** * Copyright (c) 2015 - 2022 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * All rights reserved. Do not distribute without permission. * Author(s): * Nadir Roman Guerrero <nad...
daedf91458bbfd95f4e2e5090c42fecea7c62053644181429bc8ddf9a99c281d
C++
2,369
77
#include "HmmSet.hh" #include "io.hh" #include "str.hh" #include "conf.hh" #include "RegClassTree.hh" #include <fstream> using namespace aku; conf::Config config; HmmSet model; RegClassTree rtree; int main(int argc, char *argv[]) { try { config("usage: regtree [OPTION...]\n") ('h', "help", "", "", "disp...
a992c42030fab1f40c7354c33618ede57d938fe56b93766b322bd53a249723fe
C++
2,371
100
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderBoundingBox.h" #include "CarlaRecorder.h" #include "CarlaRecorderHelpers...
8b7975d5906a6dd870a23f92d270fcc43cc2d3ea36f1a5cd8178111efd09e2dc
C++
2,378
80
#include <ACTIONet.h> namespace ACTIONet { // Page 556 sp_mat get_Q(sp_mat& A, vec& ds_inv, double alpha) { sp_mat A_norm = A; double c = (1 - alpha) / 2.0; for (sp_mat::iterator it = A_norm.begin(); it != A_norm.end(); ++it) { (*it) *= c * (ds_inv[it.row()] * ds_inv[it.col()]); } sp_mat I = speye(size(A...
2b2268b1bae2153a6a37a5bd9e40b6e4026acd336481c386571e42d819582409
C++
2,401
64
#include "utils.h" // must be before all other includes. #include <vector> #include <memory> #include <cstddef> //[[Rcpp::export(rng=false)]] SEXP train_integrated( int test_nrow, Rcpp::List test_features, Rcpp::List references, Rcpp::List ref_features, Rcpp::List labels, Rcpp::List markers, ...
ddf9c9a4e0cbad55fb57e4132bd5bf42299ed5bd4e49307cb465c7ae62aebe91
C++
2,404
77
/*************************************************************************************************** * Copyright (c) 2015 - 2022 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * All rights reserved. Do not distribute without permission. * Author(s): * Nadir Roman Guerrero <nad...
bb94449fe1de1e4ca22b6abb44703d9d17d7ea32b596aeb3840b302c3f6a2905
C++
2,406
102
#ifdef _MSC_VER #include <boost/math/tr1.hpp> using namespace boost::math::tr1; #else #include <math.h> #endif #include "FstAcoustics.hh" FstAcoustics::FstAcoustics(const char *hmm_fname, const char *dur_fname): m_frame(0), m_acoustics(nullptr), m_hmm_reader(nullptr) { if (hmm_fname != nullptr) { hmm_read(hmm...
f0fad8985b099c541b5895fd5a48d361e08cbd8c316de305a0c06cca517c466e
C++
2,411
95
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaHUD.h" #include <util/ue-header-guard-begin.h> #include "Engine/Engine.h" #incl...
f2d6d91a3500e4019e9fe7b962d83f6ad317dcecae62cd623d7ca40a219c02de
C++
2,415
73
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/ros2/publishers/CarlaRadarPublisher.h" #include "carla/ros2/publishers/RadarPo...
d12a8b30c1eee6460f6b014b28d0a32dea6582796ab0db5c225b0258bec77e8d
C++
2,416
74
// #define QI_DEBUG_BUILD 1 #include "Macro.h" #include "parmesan.hpp" #include "ss_T2.h" auto SS_T1T2_Model::signal(VaryingArray const &v, FixedArray const &) const -> QI_ARRAY(double) { using T = double; using AugMat = Eigen::Matrix<T, 4, 4>; // Short for Augmented Matrix using AugVec = Eigen::Vecto...
12cad88c2f28173e7e47dec7395cde96a2495c3a29e8e0e096be3a2f2028d3a8
C++
2,420
70
/* * Copyright 2022. 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 applicabl...
99f2e6af6f34b9bc847670576ab88601c88292b6779e91e569118400ea03ad4e
C++
2,420
70
/* * Copyright 2021. 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 applicabl...
71b471370451b1485a490d81067f07ca05c74be5491cb4395a882c0e09c21f25
C++
2,423
68
/* * Copyright (c) 2021. Huawei Technologies Co., Ltd. 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 * * Unl...
a923e28d1320ce9e922d48bc7e02d066dc284ef5f2bd58386dd60338fbe0f32b
C++
2,423
82
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderWeather.h" #include "CarlaRecorder.h" #include "CarlaRecorderHelpers.h" ...
24e61f16aa47451e067ae48a627d7b586ed4198793ea682a6b5d07dce2f1334a
C++
2,430
80
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Carla/Util/NavigationMesh.h" #include "Carla.h" #include "Carla/ContentPacks/ContentP...
b37b69e3bf4d944e44710bcac25ff604e5c3267a573cbab1042a5e3c971ed1d7
C++
2,446
101
#include <vector> #include <cmath> #include "hungary.h" void MinCostMatching(const std::vector<std::vector<int>> &cost, std::vector<int> &Lmate, std::vector<int> &Rmate) { int n = int(cost.size()); // construct dual feasible solution std::vector<int> u(n); std::vector<int> v(n); for (int i = 0; i < n; i++)...
5018e1904383cb6df7572614ce726dec6e239a1aff3f58945c8c05dfa9f4e25b
C++
2,455
76
#include "utils.h" #include <vector> #include <memory> //' @importFrom Rcpp sourceCpp //' @useDynLib SingleR //[[Rcpp::export(rng=false)]] SEXP train_single( int test_nrow, Rcpp::IntegerVector test_features, Rcpp::RObject ref, Rcpp::IntegerVector ref_features, Rcpp::IntegerVector labels, Rcp...
ea4e55384fdcb55cd05585127668baf8a760d0146d2d3d646ffcae7eeaef2e16
C++
2,459
65
// Copyright 2022 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 or ...
1b865aeed4335e5fa518d7d887f1e214b9bd3476157d3cc3065e7efd2a7791db
C++
2,461
85
/* * JSON.cpp * Part of the QUantitative Image Toolbox * * Copyright (c) 2016 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #inclu...
38d0949a259c5c86db73d7c46f9222f29bd252fc18cd0d6a12f09e0a233724c3
C++
2,461
75
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include "cpu/vision.h" template <typename scalar_t> at::Tensor nms_cpu_kernel(const at::Tensor& dets, const at::Tensor& scores, const float threshold) { AT_ASSERTM(!dets.type().is_cuda(), "d...
040ac6466b17d32c74a068faa4dc23a25c77b380507ea43084aac551065547c3
C++
2,480
69
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Model.h" namespace twinmodel { const char *ToString(LaneType type) { switch (...
51eb49381a4377b51b5a276c4347c44c602d4b7cf348a0671169101578ce1fdd
C++
2,480
112
#include <stdlib.h> #include <vector> #include "MorphSet.hh" #include "str.hh" MorphSet::MorphSet() : max_morph_length(0) { } MorphSet::Node* MorphSet::insert(char letter, const std::string &morph, Node *node) { // Find a possible existing arc with the letter Arc *arc = node->first_arc; while (arc != NULL) { ...
879a799a6e8caf55d539882385eacc1bf57ead117a77ea662ef427adee8e6572
C++
2,503
64
/* * qi_tvmask.cpp * * Copyright (c) 2018 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include <Eigen/Core> #include <iostream> #...
171fd77b6ce0107782353fb88f99be6e675559c5a3b01a1d320d34bc5cd7bd69
C++
2,532
80
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Carla/Sensor/OpticalFlowCamera.h" #include "Carla.h" #include "Carla/Actor/ActorBluep...
1cac793965dd540f8c2f460b736c8f90e72f47371a84832153f7e4d42ceec676
C++
2,533
73
#include "parrots_cpp_helper.hpp" void CARAFENAIVEForwardCUDAKernelLauncher( const DArrayLite features, const DArrayLite masks, DArrayLite output, const int kernel_size, const int group_size, const int scale_factor, cudaStream_t stream); void CARAFENAIVEBackwardCUDAKernelLauncher( const DArrayLite top...
9fbd4491e3dcdbb0206254b78c3a1bac4d78f0fd04e48b7f53e9d22f2fc0df19
C++
2,538
72
/************************************************************************ ** This file is part of NLM Denoiser, a program for applying NLM filters ** on 2D/3D images. ** ** Copyright (C) 2022 Jesse Smith ** ** NLM Denoiser comes with ABSOLUTELY NO WARRANTY. ** This is free software, and you are welcome to redistribute ...
2ad2c57e92ba88beabdeb1832e32028a8f0e3daa8e888e92711c0d36f2373782
C++
2,553
77
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "Carla/Sensor/ShaderBasedSensor.h" #include "Carla.h" #include "Actor/ActorBlueprintFu...
03856d3650aba77dc4d0b840b22f42f7a3cab87f5e2375d8cd27d601e644f5fd
C++
2,555
92
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/client/Light.h" #include "carla/client/LightManager.h" #include <assert.h> n...
56599d71cd42898a0f266158d4d85ea022e678d98b22b55bd6dfd4f81db359cf
C++
2,559
88
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #ifndef LIBCARLA_ENABLE_PROFILER # define LIBCARLA_ENABLE_PROFILER #endif // LIBCARLA_ENABLE_P...
8c03bcaa105c4373c8d9476e8201dead9b617a6051a341fd86ecbc5ae5584fff
C++
2,575
79
/*************************************************************************************************** * Copyright (c) 2015 - 2022 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * All rights reserved. Do not distribute without permission. * Author(s): * Nadir Roman Guerrero <nad...
de559b3697830437a2db84abc4386c758428b1905ecaabf2b3c9c97ef05ff1e1
C++
2,578
110
// Most codes of C++ functions are based on Dirk Eddelbuettel's // 'RcppArmadillo' examples. RISC package rebuilds them to support // the calculation of sparse matrices. #include <RcppArmadillo.h> // [[Rcpp::depends(RcppArmadillo)]] using namespace Rcpp; using namespace arma; // [[Rcpp::export]] arma::sp_mat sqrt...
8734ab62db3fef17844b08cacd83c5f9d237cd4c5fbb9ed41360d7a9186921a6
C++
2,579
66
#include "pytorch_cpp_helper.hpp" #ifdef MMCV_WITH_CUDA void ROIPoolForwardCUDAKernelLauncher(Tensor input, Tensor rois, Tensor output, Tensor argmax, int pooled_height, int pooled_width, float spatial_scale); void ROIPoolBackwardCUDAKernelLa...
48e9e630ff2a63119aa11d86e8ddf04242af99ec68d3124d48933853490de22c
C++
2,607
94
#include "bool_node_spin.hpp" #include "basic_types.hpp" #include "exception.hpp" #include <sstream> #include <iostream> namespace bias { spinNodeType BoolNode_spin::ExpectedType() { return BooleanNode; } BoolNode_spin::BoolNode_spin() : BaseNode_spin() {} BoolNod...
ba795b38ee56e6d07952b7abba124442cbe519898971717d85abb4b288fe4f80
C++
2,609
91
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
ac5a097ccae057ef4bf3b7d37f2f3c155e933c2cc10a36dcb820200713dd43a5
C++
2,614
89
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/client/BlueprintLibrary.h" #include "carla/Exception.h" #include <algorithm> ...
ddcfc970e9f222d8435f77c1375ac974cc1868b576bcdde1a2bc76ea8b4d62b3
C++
2,621
93
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/client/DebugHelper.h" #include "carla/client/detail/Simulator.h" #include "car...
3b11c01643e345ee1e73d5a6e3e3a9b40c68eed16e139e6f9759de919a276089
C++
2,626
58
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include <PythonAPI.h> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> names...
926ef67c6419458b0a92fcfbdfe05c23c370b919c77a3978068c9bbdd8727852
C++
2,630
90
#include "integer_node_spin.hpp" #include "basic_types.hpp" #include "exception.hpp" #include <sstream> namespace bias { spinNodeType IntegerNode_spin::ExpectedType() { return IntegerNode; } IntegerNode_spin::IntegerNode_spin() : NumberNode_spin() { initialize();...
3171ee0a2f75808840a8da8b5c1b1289f8a881f8f210466fcb1675a3c4d04a6d
C++
2,639
67
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/nav/Navigation.h" #include "carla/nav/WalkerManager.h" #include "carla/nav/Walk...
6714c3f256168ce0e69870214ff22a7d0987e0cd546d9c53be0c5f648c5e07d7
C++
2,661
86
/* * Spline.cpp * * Copyright (c) 2017 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "Log.h" #include "Spline.h" #include ...
2196ef2efcf2496561629068b8fd69996305c4717e37ff115c1b3a0a06fee460
C++
2,680
104
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "CarlaRecorderAnimVehicleWheels.h" #include "CarlaRecorder.h" #include "CarlaRecorderH...
8264e5e0417e0b544693e1db2d35d9694c6df1a2e7939730ffb8a10891450c76
C++
2,682
75
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "test.h" #include <carla/MsgPack.h> #include <carla/rpc/VehicleTelemetryData.h> #incl...
d26cff152d76f847c05fb194d48bbc563d22a2fe2956647e58e5f351af266c6b
C++
2,686
85
/*************************************************************************************************** * Copyright (c) 2016 - 2022 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
9588987a595ead546a5884e7901e5ae565d0b3a7047dc3602fbb3cbfdd9070f5
C++
2,690
94
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "SkyPreviewSubsystem.h" #include "Carla/Weather/Sky.h" #include "CarlaTools.h" #incl...
1f40f62895c7ae39e79eb235bd54531982dbe48c64d969bac74eb14c9f640400
C++
2,700
86
/* * Copyright 2021 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...
63f41e72f020b7fc160391e2c3474db95600fba7568c16f4627570763827f44e
C++
2,737
101
#include <queue> #include "ACTIONet.h" #define UNDEFINED -1 #define NOISE 0 namespace ACTIONet { // -1: Undefined, 0: Noise, 1...: Cluster IDs vec NetDBSCAN(sp_mat& G, int minPts, double eps = 0.5, double alpha_val = 0.85) { int n = G.n_rows; G.diag().zeros(); // Remove self-loops // Process ve...
a17e00ce01982640f90ff34a47e0e1a2643e2be4b1fbe5b7fe1571d7059f7673
C++
2,747
105
#include "msg_pass.h" void n2n_construct(GraphStruct* graph, long long* idxes, Dtype* vals) { int nnz = 0; long long* row_ptr = idxes; long long* col_ptr = idxes + graph->num_edges; for (uint i = 0; i < graph->num_nodes; ++i) { auto& list = graph->in_edges->head[i]; for (size_t j = 0; j < list.s...
c055edde3d9112290dc17cba18f22326fbe103a2ed2897aa43e1be811ea8953d
C++
2,754
83
// Modified from // https://github.com/princeton-vl/CornerNet-Lite/tree/master/core/models/py_utils/_cpools/src #include "parrots_cpp_helper.hpp" void bottom_pool_forward_cuda(CudaContext& ctx, const SSElement& attr, const OperatorBase::in_list_t& ins, Operat...
43f635040a6d9fd7dab106761084a12aa6af0861f0408a1c49efde4bc14dee90
C++
2,759
95
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // Copyright (c) 2019 Intel Corporation // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "BaseCarlaMovementComponent.h" #include "Carla...
034eaef92f5bbd0f31260432fcd917af692752ec8391bf3d19b80c9dcc5ccbed
C++
2,762
99
/* File Name: midwt.c Last Modification Date: 06/14/95 12:55:58 Current Version: midwt.c 1.4 File Creation Date: Wed Oct 12 08:44:43 1994 Author: Markus Lang <lang@jazz.rice.edu> Copyright: All software, documentation, and related files in this distribution are Copyright (c) 1994 Rice University ...
6187c2bea29b8ceb51689fd2599242e8719604e264cf8aa22121b5e26c495e48
C++
2,770
61
/* * qi_lineshape.cpp - Part of QUantitative Imaging Tools * * Copyright (c) 2018 Tobias Wood, Samuel Hurley, Erika Raven * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla...
9bbdad0a0b5dcb04467481a45f89971ad0f29f756a1eac2251a43fa4f56db3c2
C++
2,797
55
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include <PythonAPI.h> #include <osm2odr/OSM2ODR.h> // Empty class to emulate the namespace i...
4ea9715f8b2057d942f95edcc9f6b43da0da3273b3e8d78ddbb56fdbaa3bab67
C++
2,798
68
#include "pytorch_cpp_helper.hpp" #ifdef MMCV_WITH_CUDA void CARAFENAIVEForwardCUDAKernelLauncher(const Tensor features, const Tensor masks, Tensor output, const int kernel_size, const int grou...
8e1dd4b59921dbcaf370d4cfd9efff73f4c5c42f46d0d02a4acc8990976fbfbc
C++
2,801
75
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "test.h" #include <carla/ros2/publishers/RadarPolarToCartesian.h> #include <cmath> ...
3a6f41918b406a38a919b3e151f194bc8993f14d81f300384dcd23909dc15ac9
C++
2,808
87
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/client/TrafficLight.h" #include "carla/client/detail/Simulator.h" #include "car...
fe512898d59c4cc09612fb2f5723e1774cc0c4a45147443c5295c6962003fe8e
C++
2,809
85
/* * Copyright 2021 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...
5ec73aea45248d5b1269aa1dfee0aeaf1c67c5213a94b158d97e55a4df7cebf8
C++
2,810
85
/* * Copyright 2021 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...
5dda13baaeff266ea23a28e10a19e7acac01df43e76c52b3969d6f050ed1cef2
C++
2,815
87
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. /* #include "HoudiniImportNodeWrapper.h" #include "HoudiniAsset.h" UHoudiniImportNodeWrapper::...
d1d853a7c86298d91816051c028721ca8370193113356cfa4cbe062276cbadcc
C++
2,816
77
#include "parrots_cpp_helper.hpp" void ROIPoolForwardCUDAKernelLauncher(const DArrayLite input, const DArrayLite rois, DArrayLite output, DArrayLite argmax, int pooled_height, int pooled_width, float spati...
2b2e1d2e8876aa6b9f93a85a55fe9225e5a4f7f6c2c3a5f9baf6656bfc90089e
C++
2,818
94
/* * SSFP.cpp * * Copyright (c) 2018 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ // #define QI_DEBUG_BUILD #include "Macro.h" #in...
678ace95461bcfeb8e0632e37c55b7de32c68b09a40c92297dbb6d168499b436
C++
2,819
74
#include <vector> #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> at::Tensor dcn_v2_cpu_forward(const at::Tensor &input, const at::Tensor &weight, const at::Tensor &bias, const at::Tensor &offset, const at::Tensor &mask, ...
cf07f51c640f560d3cfbd3277a2927004137de25eec9b567b2f65ebc5232442e
C++
2,821
84
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include "carla/road/element/LaneMarking.h" #include "carla/Exception.h" #include "carla/Strin...
b8261e9a0c8f59a46e74ddb8c8f895d6d92b95a04f8d48fce2b8f733afd72a03
C++
2,824
72
/* * qi_select.cpp * * Copyright (c) 2019 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include <string> #include "Args.h" #includ...
8c7db9c5237db2f8bf2dad45b5991730694d61ec0f08d4ad6af51943fce4b7c4
C++
2,829
103
#include "Fst.hh" #include "misc/str.hh" #include <cstdlib> #define strtof strtod Fst::Fst(): initial_node_idx(-1) { } void Fst::read(std::string &fname) { std::string line; FILE *ifh = fopen(fname.c_str(), "r"); if (ifh==nullptr) { perror("Error"); exit(-1); // FIXME: we should use exceptions } ...
92ed6a6ccc62884602cca046fb5dbed8b8b16d5769209cb581518ad4ff798ea1
C++
2,830
100
/* File Name: mdwt.cpp Last Modification Date: 06/14/95 12:56:43 Current Version: mdwt.cpp 1.5 File Creation Date: Wed Oct 12 08:44:43 1994 Author: Markus Lang <lang@jazz.rice.edu> Copyright: All software, documentation, and related files in this distribution are Copyright (c) 1994 Rice University ...
5b7e1462acfce6408b91aaa44b3f0c34ce411023c9969b8c93e7b8e1f615cf68
C++
2,833
88
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
9b2c70930ad305119cb60ce3060ac4ba46d4c9c110ea2328eb0f866a443286b5
C++
2,838
83
/*************************************************************************************************** * Copyright (c) 2016 - 2022 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * * This file is part of Ultraliser < http...
73948da318906f274d0b69ec6ceea584734cfb2aeb9aebe0eeeddc9e435297b0
C++
2,841
132
#include "io.hh" namespace io { Stream::Stream() : file(NULL), is_pipe(false), close_allowed(true) { } Stream::Stream(std::string file_name, std::string mode, bool allow_close) : file(NULL), is_pipe(false), close_allowed(true) { open(file_name, mode, allow_close); } ...
4efff712f94fd4534b8eac113819ad42c70e24c92e5e1f43aea407c4c038abba
C++
2,848
72
/* * kcGLM_mex_clear.cu * Mex function to clear a GLM object from the GPU. * Takes two arguments: ptr (in long int form) to GLM object * boolean (is double) for if the object is double precision (or single) * * Package GMLM_dmc for dimensionality reduction of neural data. * * Referenc...
e9b78147487a09e51b54cacf86b1fabd9ab387e7fafd86ce5e6ddaa93b8a39ab
C++
2,855
73
/* * ReliabilityFilter.cpp * * Copyright (c) 2018 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This is part of an implementation of ...
1be0ec1bdb72cc2b9cceb6fcf61bd17e232cd121bf4e061063d27e7cda8186b0
C++
2,858
72
/* * qi_cestasym.cpp * * Copyright (c) 2017 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include <Eigen/Core> #include "itkImageR...
70cc18b6acfc2815d7b1f75b2fe4fdb9cd18a7aeb76da81333348d3092961a2d
C++
2,859
73
/* * kcGMLM_mex_clear.cu * Mex function to clear a GMLM object from the GPU. * Takes two arguments: ptr (in long int form) to GMLM object * boolean (is double) for if the object is double precision (or single) * * Package GMLM_dmc for dimensionality reduction of neural data. * * Refer...
3e1ad7166131d3e3458b71a3ef2a7683f607275439103829e4efcfa3df9ea1cb
C++
2,861
82
/* * transient_main.cpp * * Copyright (c) 2019 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include <Eigen/Core> // #define QI_DE...
310916d183f19ddd9b56781a5bf8bd55677992f9ee7754dd25fcc43029c0ce01
C++
2,862
103
#include "gnn_lib.h" #include "config.h" #include "msg_pass.h" #include "graph_struct.h" #include <random> #include <algorithm> #include <cstdlib> #include <signal.h> int Init(const int argc, const char **argv) { cfg::LoadParams(argc, argv); return 0; } void *GetGraphStruct() { auto *batch_graph = new Gra...