sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
f1b763d6373725236edc4d174aef853d1835135d49fc52e1b9f848732adc9dc6
C++
3,640
91
/* * qiafi.cpp * * Created by Tobias Wood on 2015/06/04. * Copyright (c) 2015 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...
928cb47433f8c5ec7f2c03e4ec2d80b9617982d5e7b9a1432751a8aebbd8bb15
C++
3,650
119
// 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/LaneCrossingCalculator.h" #include "carla/road/element/LaneMarking...
060d554985261df1cfc95800b39dc538875a10c624ba5c8730eca5e49a6695c5
C++
3,651
109
// 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/LaneSection.h" #include "carla/client/Lane.h" #include "carla/client/Ma...
c00b8f5c23932197728ec8a4fa1021cd81a7bbc61a330ed357758db4fdbf7b1d
C++
3,657
105
/** * 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...
d22de596a080c26e6c3ebb91c1d6b8279ff961a4ec4f89a174268134dbdec350
C++
3,658
139
#include "Arrays.h" #include <cstddef> #include <cstring> namespace Ultraliser { namespace Array { uint8_t* convertStringTo8UIArray(const std::string &stringArray) { // Array size const auto arraySize = stringArray.size(); // Create the data array uint8_t* data = new uint8_t[arraySize]; // Fill...
393731f7344302fb0435715b3a6ee80832ac478328d734046a2a0fd20d9ed9ac
C++
3,662
110
#include "misc/conf.hh" #include "misc/io.hh" #include "misc/str.hh" #include "Morpheus.hh" using namespace std; using namespace fsalm; conf::Config config; LM lm; int main(int argc, char *argv[]) { try { config("usage: morpheus [OPTION...]\n") ('h', "help", "", "", "display help") ('\0',...
895f112fe3bda1292cccee7560754de7539a669bc7970d0e3171b801605756be
C++
3,672
95
/* * qi_unwrap_path.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 an implementation of the algorit...
37ff54f2c53d55398815905229762177e8e9319a3aaa4d06fd474a31aefef26f
C++
3,685
125
#include <vector> #include <valarray> #include <fstream> #include <iostream> #include "json/json.h" #include "spectrum_fwhh_1d.h" namespace fwhh_1d { template <typename T> void sortArr(std::vector<T> &arr, std::vector<int> &ndx) { std::vector<std::pair<T, int>> vp; for (int i = 0; i < arr...
e53ff6bedf4767ca94865a1133d3d1acb046a8f835d47f1826f799e59cc06455
C++
3,691
118
/* * ThreePoolModel.hxx * * Copyright (c) 2018 Tobias Wood. * * Based on code by Sean Deoni * * 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/. * */ // #...
77fef3f51464b30588574279d9b07fbb3a138a43d57a5a0557c80b014a1b8b0e
C++
3,699
109
/** * 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 law...
de5603127e128f293791a1fb384c38663e0d225734786b9713cb2c8d506119a9
C++
3,709
193
#include <iomanip> #include <vector> #include <map> #include <math.h> #include "NowayHmmReader.hh" #include "LnaReaderCircular.hh" struct Label { Label() { } Label(const char *name, int end) : name(name), end(end) { } const char *name; int end; }; struct State { bool first; char label; char state; f...
456f8d2b82034a74f4e1240bea930c892bb5052474f1c2dec046e2d1c75f0ea2
C++
3,715
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 "test.h" #include <carla/ros2/publishers/OpticalFlowEncoding.h> #include <algorithm>...
336f80843c4b0cabb288067be7372187ea391962ac801db4aeb24d0fc16ce598
C++
3,716
112
// 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 "SpeedLimitComponent.h" #include "Carla/Game/CarlaStatics.h" #include "Carla/MapGen/La...
32e7741f16600e848f27ae39210933f69635ae1a3263ede00fb15e31b6791d46
C++
3,723
107
/*************************************************************************************************** * 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...
09f874fe9380384fa82ed97e414caad9edfbc8c1e2ecedc035c975e18a8c3e40
C++
3,727
111
/** * 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 ...
26f0197f8e7f84feed1fbd009f0a268e87d2861426e6e367754d7fa74d53a79f
C++
3,731
107
// 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/CarlaDVSCameraPublisher.h" #include "carla/ros2/publishers/Dvs...
7961ae2226d4129fe9318111883a971c8768bdede3920e9c4ea6c65613b53d9e
C++
3,734
116
/* * 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...
7a35710302925859869700e672674e7c0df3267d83812549d97a60da12b9583f
C++
3,743
112
/** * 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 ...
8dcc32beb5098cbe2179a16a428577f2d74e82abcdab3298e555e55419286984
C++
3,746
134
/*************************************************************************************************** * Copyright (c) 2013 * Consiglio Nazionale delle Ricerche, Istituto di Matematica Applicata e Tecnologie Informatiche * Sezione di Genova, IMATI-GE / CNR * * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / ...
c2358f374e2f07859ae57d28f33790992e8fc40f62f09ad1705e7ecb7d802851
C++
3,761
114
#include <cstdlib> #include <cassert> #include <cmath> #include <sstream> #include "NowayHmmReader.hh" int main(int argc, char *argv[]) { // Read the phone specs if (argc != 3) { fprintf(stderr, "Use: %s model.ph Hout.fst\n", argv[0]); exit(-1); } std::string ph_fname(argv[1]); std::ifstream in(ph_...
d0587157350d58a2f7f8895906022f4a48e86ce55b327b89a0899fa5939d91f3
C++
3,773
110
/** * 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...
ef2ae1d423c6b0ff1d3cfdf35877063b93f27652c9f87ed14f30ba45dcf227d0
C++
3,775
119
// 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/ServerSideSensor.h" #include "carla/Logging.h" #include "carla/client/d...
4e0acccd19ecfe9f3a593b2fc4a1238def390acd4064b5868b92a3e7217596f8
C++
3,776
103
#include <fstream> #include <string> #include <string.h> #include <iostream> #include "io.hh" #include "conf.hh" #include "HmmSet.hh" #include "Distributions.hh" using namespace aku; int main(int argc, char *argv[]) { conf::Config config; HmmSet first_model; HmmSet second_model; try { config("usage: c...
2c0d60fb01924eb62ea2258fd37af1894c94bdd82faed334b56b05a80da23e1b
C++
3,802
102
// 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/detail/ActorFactory.h" #include "carla/Logging.h" #include "carla/Strin...
26f9a6843326001c1db1c295adb7206c17464c6747c27b6a24a92918814779b5
C++
3,838
102
/** * 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 la...
c748f8ad2c2df305e53e669c5716ebab6a63f4e088b6c4b3cd20020667ae2ab5
C++
3,841
108
// 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/TransformQuaternion.h> #include <cmath> na...
81048edaa70d3cff235bd9327aa5b20a9038680d74a316c2e9786c700005a89d
C++
3,853
119
// 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/ActorAttacher.h" #include "Carla.h" #include "GameFramework/SpringArmCompo...
993c26711b18d9dc577bd8f9b62d52578c6d1f6282e5e19ce3a0bcff609d1e05
C++
3,860
104
/*************************************************************************************************** * 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...
4de6908f5be2275b018180754e99618bc3240621481d668479ec001b94e5b142
C++
3,884
104
#include "BasicListener.h" #include <iostream> #include <fastdds/dds/subscriber/DataReader.hpp> #include <fastdds/dds/subscriber/DataReaderListener.hpp> #include <fastdds/dds/core/status/SubscriptionMatchedStatus.hpp> #include <fastdds/dds/subscriber/SampleInfo.hpp> #include "carla/ros2/types/msg/String.h" #include "c...
484cbd757ea19619adc45953e3fbd0e8a59455ace4cde923601196f237c6561f
C++
3,895
125
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * Juan Jose Garcia Cantero < juanjose....
a4d71175bcf91febff85cdc01deb099b457d6830ec3bd455870db094825d543d
C++
3,896
101
#include "cluster.hpp" #include <iostream> int cluster::counter = 0; cluster::cluster() { _id = ++counter; } cluster::cluster( int label, cluster* parent, double birthLevel, int numPoints) //:Label(label), Parent(parent), _birthLevel(birthLevel), //_numPoints(numPoints) { _id = ++counter...
51dc54c72f8cc312e3ddfc223dd18250059e496de3d0c2e2ceab7f5e6cf7c42c
C++
3,900
137
#include <climits> #include "io.hh" #include "conf.hh" #include "FeatureGenerator.hh" #include "SpeakerConfig.hh" #include "ziggurat.hh" using namespace aku; conf::Config config; FeatureGenerator gen; bool raw_output = false; SpeakerConfig speaker_conf(gen); void print_feature(const FeatureVec &fea) { // Raw outpu...
7b3d15ba15eef972177b2981325566ac0364740b37fadf7e31dc0e13e205b196
C++
3,908
97
// 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 "DigitalTwinsBaseWidget.h" #include "OpenDriveToMap.h" #include "Misc/FileHelper.h" #i...
c0817d5e9e62b865719a77c92a6d69c46f107b194fd848ca8dbce7d5bd17acfc
C++
3,914
115
/** * 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 law...
db5471d433912defc9ef78279f2e3060523879df8342a7bb7467efa26c83578d
C++
3,918
129
#include <cstdlib> #include <iostream> #include <sstream> #include <cmath> #include <cassert> #include "WordClasses.hh" #include "Toolbox.hh" using namespace std; bool log_probs_equal(float a, float b) { return fabs(a - b) < 0.00001; } void test_search() { Toolbox t; t.set_verbose(1); t.select_decoder(0); t.s...
19930bf82f04c448f85c2144c2e7de15db397079f40e4471481b527a52bd3cce
C++
3,919
110
// 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 "FrictionTrigger.h" #include "Carla.h" #include "Vehicle/CarlaWheeledVehicle.h" AFrictionTr...
a43a3f28c4b5d4ae39c752c90980c0307ef643edebef8fe6d5f4b88f7e996294
C++
3,936
120
/* * 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 ...
5176d72188c30bf370890b9c58a49ade5bbfd61afa56773d9f08a4f226a366f1
C++
3,942
117
/** * 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 law...
ed50b09226cddbc3f60dfbc8e67fdb531b1c2c8e0e37b36acf2b129faf8c2a3b
C++
3,973
114
// 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 "OsmIngest.h" #include <limits> #include <stdexcept> #include <third-party/pugixml/p...
484245c08cf0c34cd95865cfbf79c0d11ec564c5be605b86a9239ee7b929cfa0
C++
3,980
116
// 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/CarlaPointCloudPublisher.h" #include "carla/Logging.h" #includ...
875050bb4e2b7a6286637fb3b8ab1e4768bbe326f0a9403b61156dcb0e52c832
C++
3,981
168
#include <cstdio> #include <cassert> #include <cmath> #include "TPNowayLexReader.hh" using namespace std; TPNowayLexReader::TPNowayLexReader( std::map<std::string,int> &hmm_map, std::vector<Hmm> &hmms, TPLexPrefixTree &lex_tree, Vocabulary &vocab) : m_hmm_map(hmm_map), m_hmms(hmms), m_lexicon(lex_t...
4acb2fd8718717cc8bf64580428d6624ef2a02d5c5dfee836663e9af9fc2d169
C++
3,985
125
// 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/CarlaCameraPublisher.h" #include "carla/Logging.h" #include "c...
abb93be1b2941bfd336afb755f0adf418b9d95c61d30e8d8a22707cd21b9505f
C++
3,993
141
// 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/OpenDriveMap.h" #include "Carla.h" #include <util/disable-ue4-macros...
0a4fa14b976b05d8045676d62367efddbce49df3bc3b60916248628a4565df8b
C++
4,000
111
// 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/subscribers/AckermannControlConversion.h> #include <cm...
098863c799aebf7c61cfb3cad706ae5456b3d2df93ab626e5bc4431af586d0ac
C++
4,026
179
#include <ACTIONet.h> #include <set> namespace ACTIONet { uvec compute_core_number(sp_mat &G) { unsigned int i, j = 0; unsigned int no_of_nodes = G.n_rows; // Construct node neighborhood sets vector<vector<unsigned int>> N(no_of_nodes); sp_mat::const_iterator it = G.begin(); sp_mat::const_iterator it_end ...
6cc2b4e872b9e4afca779657202cf36bf1d284b8a25793858539f001c359f0a7
C++
4,055
124
/** * 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 law...
6ce510db0624d7dc280a17a9947d703e8b2da026ed759e34fe6412412cd0183a
C++
4,063
108
// 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/Weather/SkyLightMap.h" #include "Carla.h" #include <util/ue-header-guard-begin...
4180b261fab2569c2879f5376b5727279f6c9063484bd3d705d50cad44fb01d9
C++
4,069
139
// 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 "SignalType.h" #include <vector> #include <algorithm> namespace carla { namespace ro...
9b1020a347d22e5cb2f7ba8b03ab6f672e088dd8ae2a25e648488487a547430d
C++
4,075
116
/** * 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 ...
641cfacb6bddfe5493b8a4125dfa212963f4e91f89a60c5858937febe595fde7
C++
4,094
143
// 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/Sensor.h> #include <Carla.h> #include <Carla/Sensor/SensorManager.h> #in...
fe7c576633f8e8cecea7ce0d628e7955f987ad12c0a9baba8eb7fd465eeac51c
C++
4,096
117
#include <ACTIONet.h> namespace ACTIONet { multilevel_archetypal_decomposition prune_archetypes( field<mat> C_trace, field<mat> H_trace, double min_specificity_z_threshold, int min_cells = 3) { mat C_stacked; mat H_stacked; int depth = H_trace.size(); multilevel_archetypal_decomposition results; //...
2fc99fe3695c46c0e5cbb365eb71840c2b215718ce92ef6561f7c2f42daa4026
C++
4,107
169
#include <cstddef> // NULL #include "io.hh" namespace io { bool Stream::verbose=false; Stream::Stream() : file(NULL), is_pipe(false), close_allowed(true) { } Stream::Stream(std::string file_name, std::string mode, SeekType seek_type, bool allow_close) : file(NULL), is_pipe(false)...
ab479a8bec99fc916b2c84529d6d97504e67f520e80f838bd98c36c43cbd49c2
C++
4,135
117
/*************************************************************************************************** * 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...
d3f4a620522ae78c9a1d7a6328e82bcafbfbfa5930b6feb3f6b566fed592cb8a
C++
4,136
130
/*************************************************************************************************** * Copyright (c) 2016 - 2021 * Blue Brain Project (BBP) / Ecole Polytechnique Federale de Lausanne (EPFL) * * Author(s) * Marwan Abdellah < marwan.abdellah@epfl.ch > * Juan Jose Garcia Cantero < juanjose....
5f0d60720f791de012d47bc767b2b785435a5b4ab1d3cf1f206c9cae0bec66b2
C++
4,154
176
#include "guid.hpp" namespace bias { Guid::Guid() { guidDevicePtr_ = GuidDevicePtr(new GuidDevice()); } Guid::~Guid() {}; CameraLib Guid::getCameraLib() { return guidDevicePtr_ -> getCameraLib(); } std::string Guid::toString() { re...
8c30ea2532c69dfe87c1fbaf7be18320c606ce5e758296bbc896f803602b155a
C++
4,162
136
#include "entry_node_spin.hpp" #include "basic_types.hpp" #include "exception.hpp" #include <iostream> #include <sstream> namespace bias { spinNodeType EntryNode_spin::ExpectedType() { return EnumEntryNode; } EntryNode_spin::EntryNode_spin() : BaseNode_spin() {} E...
fa559619b71e2d6e7dd49bfcd054326455bc2e66352faef3e5b9b91c7d65048b
C++
4,162
124
/** * 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 ...
4e5ca671c3ba48f006f2bde59564e939e898b9ae1077d553ab03eec8333dfee4
C++
4,187
139
/************************************************************************ ** 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 ...
a967da89bec350b662e255a302f294d14691092c3e39252c23726c313ebdccfa
C++
4,188
110
// 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>. // Regression guard for boost::asio steady_timer after the Boost 1.84 -> 1.90 // upgrade. CARL...
9553ed4b967242700849b1dcc310509695c61cd4c3bddbe2a92d952c8c85e02d
C++
4,209
123
/** * 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 law...
8f6ad51b008264c18d54de3a4fd251f0fffa4e349766720fa9fbdec0847b0af3
C++
4,210
128
/* Copyright (C) 2016 Diego Darriba This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distrib...
d3f6071df29de4a22a232ca78aa7f380824c7611adc5d248cde71e66bc4a3426
C++
4,224
154
/* Copyright (C) 2016 Diego Darriba This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distrib...
f724c405cf247c5787adb317dd86990a0cc9b3c4833bdbb5d6116b1505225c29
C++
4,234
135
#include <fstream> #include <iostream> #include <sstream> #include <cmath> #include <algorithm> #include <cstdio> #include <array> #include <vector> #include <time.h> #include <sys/time.h> #include <Eigen/Dense> #include <Eigen/Sparse> #include <Eigen/Cholesky> #include <Eigen/SparseCholesky> #include <Eigen/SparseQR...
68f61eebd73be538e06dd590829e673d1dad2b8eadbb9c70fccd552e98e423a7
C++
4,257
121
/** * 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 law...
019adf2181e2cb4b04809c04b1cda1142cf87f6f6c12e0e896388d7ffa52c92e
C++
4,259
140
/* Copyright (C) 2016 Diego Darriba This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distrib...
6d2f58ace949b0b5fa47a4ef56ff2aafe9acc1c5a1d088a935f5f329be6f62c6
C++
4,264
138
// 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/CarlaLidarSubsystem.h" #include "Carla.h" #include "Carla/Game/CarlaEpis...
e4291d09f8d06eb22df3b55b0161fc779f710bb45db8a198545cac059eb01bd9
C++
4,283
129
/************************************************************************ ** 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 ...
73dadea134a0c4b266a7408ec564263754e5273fe0036af76c7f0a5806b8b2b4
C++
4,301
177
#include <cstddef> // NULL #include "io.hh" // pipe not defined in VS varjokal 18.3.2010 #ifdef _MSC_VER #include <fcntl.h> #define pipe(f) _pipe(f, 2000000, O_BINARY) #define popen(f, m) _popen(f, m) #define pclose(f) _pclose(f) #endif namespace io { bool Stream::verbose=false; Stream::Stream() : file(NULL...
066b32bb980c615340852d37cc7b8478f6a1d3cd8a40efeb32fff648d11a959f
C++
4,302
181
#include <math.h> #include <string.h> #include <cstdlib> #include "NowayHmmReader.hh" NowayHmmReader::NowayHmmReader() : m_num_models(0) { } void NowayHmmReader::read_hmm(std::istream &in, Hmm &hmm) { int hmm_id = 0; int num_states = 0; std::string label; std::vector<HmmState> states; in >> hmm_id; ...
3a10e8100004c797e182ea8283d8eea2958403cc77e3d3f703c12ec49d5be35b
C++
4,312
113
// 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 "GraphGenerator.h" #include "Carla.h" #include <vector> namespace MapGen { using ...
0b768b11e00fcaafe4f84632efb8e1f1e1bff539e6676facb792614dbb6fbec3
C++
4,338
116
/** * 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 ...
5db822b9d168909c881ec2f41b433fc4d27f0cdfb045c42bbcbaa3e4d82471a2
C++
4,338
116
/** * 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 ...
53b315ba341e33ce65937c713b39420f16d01ca752fdefc2ee585aaed7d9c279
C++
4,354
147
#include <ACTIONet.h> double r8_normal_01_cdf_inverse(double p); namespace ACTIONet { template <class Function> inline void ParallelFor(size_t start, size_t end, size_t thread_no, Function fn) { if (thread_no <= 0) { thread_no = std::thread::hardware_concurrency(); } if (thread_no =...
70b3d3f812eb89ca4a6f95aa3446f209927508ea317e78b73d87b535dbfccbdd
C++
4,362
142
// 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/ProfilesParser.h" #include "carla/road/MapBuilder.h" #includ...
87e31aaf464d42a879fd8d0db3c175c7ef81a19357219333fea0dc07f41baa4c
C++
4,378
152
#include <errno.h> #include <sys/stat.h> #include "TreeGram.hh" #include "Lattice.hh" #include "Rescore.hh" #include "conf.hh" #include "io.hh" #include "str.hh" conf::Config config; /** Read a list of file names from a file. */ std::vector<std::string> read_file_list(FILE *file) { std::vector<std::string> files; ...
3eaa5b3ea3c4d2d9ffd2582e79719cb42567c760bd8ff0e38ad8d335d6a0a0fa
C++
4,384
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 "test.h" #include <carla/ros2/publishers/CarlaCameraPublisher.h> #include <carla/ros2...
76a1fafa841dafdb5d211b898e4fdb55753e5aad08480150faabf3b80ce53e85
C++
4,417
114
/** * 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 ...
b7bde15fd0f693c4959fc15f74427a5a6a6bac795b8527449cb0e02954c6e6a5
C++
4,419
131
/** * 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 law...
5616e23b239b601226c2b8e6613fc7fe9e7b829a5ad766512dec1c77998672a6
C++
4,420
151
/* * Util.cpp * Part of the QUantitative Image Toolbox * * Copyright (c) 2015 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/. * */ #includ...
9ab62fe369510f36d3b1ee71600c88f37ce7d0e55338395347481ad022f911f8
C++
4,420
136
/* * rf_integral.cpp * * Copyright (c) 2020 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 <unsupporte...
47bb47404faf9c97fd7c807be567c97a35dbb74a320ccb025ab9bb2c550e7f5c
C++
4,426
148
#include <ACTIONet.h> namespace ACTIONet { template <class Function> inline void ParallelFor(size_t start, size_t end, size_t thread_no, Function fn) { if (thread_no <= 0) { thread_no = SYS_THREADS_DEF; } if (thread_no == 1) { for (size_t id = start; id < end; id++) { fn(i...
0a3f08ef24b21eec6d491c6fa88eca3cb8f105d9dfb8142f6688bf756375771e
C++
4,431
138
// 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/Buffer.h> #include <carla/BufferPool.h> #include <array> #i...
0142b01f25e2029ebba0dbd6d9b10e60a71b8e471cfe212e2077333ebdf207b3
C++
4,438
128
// #define QI_DEBUG_BUILD 1 #include "Macro.h" #include "parmesan.hpp" #include "transient_mt_model.h" using AugMat = Eigen::Matrix<double, 5, 5>; // Short for Augmented Matrix using AugVec = Eigen::Vector<double, 5>; auto MUPAMTModel::signal(VaryingArray const &v, FixedArray const &) const -> QI_ARRAY(double) { ...
3a8ea8ecd991c19c94ea1d1b1cbef12044e4eb3e2b91ca2535f594a08e454ac0
C++
4,442
120
/*************************************************************************** coul_wolf_ext.cpp ------------------- Functions for LAMMPS access to coul/wolf acceleration routines. __________________________________________________________________________...
bfb96cb74423f2ecc688018a54a494bba8ba6b1230360d9159feca98cbfee953
C++
4,442
153
// 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/geom/Math.h" #include "carla/trafficmanager/SimpleWaypoint.h" namespace carla...
e5adc8f8c948ca833b096c59b9443ff7f24cbbeb41d794ab20306565167499c4
C++
4,453
124
/*************************************************************************** mie_ext.cpp ------------------- Trung Dac Nguyen (ORNL) Functions for LAMMPS access to mie acceleration routines. __________________________________...
15c07fc147abbbe323cecf29dd236271791882e82fe9337c5c958499a95fc229
C++
4,454
123
/*************************************************************************** sw_ext.cpp ------------------- W. Michael Brown (ORNL) Functions for LAMMPS access to sw acceleration routines. ____________________________________...
e0a5f4a25cf7cf1204798a538714a38d3a64a2add43799ddd0908dfab95ec271
C++
4,457
130
// Copyright (c) 2018, SenseTime. #include "parrots_cpp_helper.hpp" void SigmoidFocalLossForwardCUDAKernelLauncher( const DArrayLite input, const DArrayLite target, const DArrayLite weight, DArrayLite output, float gamma, float alpha, cudaStream_t stream); void SigmoidFocalLossBackwardCUDAKernelLauncher( ...
dd9a4ee538a37ad146525f6fbf1f667ddb0795e300bdc5d67652f6b3e331ef7a
C++
4,487
115
// 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/RTLensEngineAdapter.h" #include "Carla.h" #include <util/ue-header-guar...
bf467472de0f26f9ab3a76c3679bc34fe24b03fa5630666fa7803c39896db6db
C++
4,507
125
// Example: CARLA Studio community tool — dockable + standalone. // // This file is a template for community-built Qt tool windows that can be: // // 1. Compiled as a standalone executable and launched on its own. // 2. Compiled as a shared plugin (.so / .dylib / .dll) and loaded by // CARLA Studio, which dock...
486145969743b76f94b2e8877d7ba79daf91f73a8107ff375c04e2e9b5499abc
C++
4,509
120
/*************************************************************************** coul_wolf_cs_ext.cpp ------------------- Functions for LAMMPS access to coul/wolf/cs acceleration routines. ____________________________________________________________________...
c2b107de7c3f8712d6b7539d0a0ffb5cfd39cb37c48e8e05c2ca6e48bf46db95
C++
4,516
127
// 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 CARLA_ROS2_MIDDLEWARE_TESTING #ifdef CARLA_ROS2_MIDDLEWARE_ZENOH #include "carla/ros2/middle...
716151d5012a013f8db4663f7a4d6c67402068ec015ca60ba6053f4b56863941
C++
4,524
108
// 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 ...
a2e212f02048c31dbdb1c3dc1fd23f9e4fa89df780228723a4b245b41c752fa8
C++
4,537
125
/** * 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 law...
cd4b4c68f19279bee1afd90d4f579c98ea5a3b65b651b6606c37a89bac115a0e
C++
4,542
109
// 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 "RoadPainterWrapper.h" #include <util/ue-header-guard-begin.h> #if WITH_EDITOR #i...
18331f280b4d431e0d4dce2fd3aa6a02fb1b7d5aba75a13e42aba8edabccfd51
C++
4,557
132
/** * 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 law...
33170875e0efa72d6608eca3eda5370c3af1e64b50d4f8f062f485623b62e5ab
C++
4,583
179
#include <cstddef> // NULL #include <algorithm> #include <iomanip> #include <fstream> #include <errno.h> #include "Timer.hh" #include "LnaReaderCircular.hh" #include "NowayHmmReader.hh" #include "NowayLexiconReader.hh" #include "Expander.hh" using namespace std; class Main { public: Main(); void run(); void ...
b5884b34df4447a2421345d56e28455692b4537977a8819ada22252b82bf5ef5
C++
4,587
133
/** * 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 law...
df7c930e127187237c96ec7904fd1fe3bf88604aa7be601a84605eb555c329a5
C++
4,593
160
// Routines for reading and writing arpa format files from and to the // internal prefix tree format. #include <cstddef> // NULL #include <stdlib.h> #include <cassert> #include "GramSorter.hh" #include "TreeGramArpaReader.hh" #include "misc/str.hh" #include "ArpaReader.hh" #include "def.hh" TreeGramArpaReader::Tre...
0443469c6a0d5f07da0807f0e97e8b3a52575c857b8c2d9be738340747cf5272
C++
4,606
40
// 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/rpc/WeatherParameters.h" namespace carla { namespace rpc { using WP = Weath...