Repository Analysis

realsenseai/librealsense

RealSense SDK

4.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of realsenseai/librealsense, a C++ project with 8,884 GitHub stars. SynthScan v2.0 examined 692,112 lines of code across 3029 source files, recording 3061 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 4.8 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.8
Adjusted Score
4.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.9K
Stars
C++
Language
692.1K
Lines of Code
3.0K
Files
3.1K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 26MEDIUM 156LOW 2879

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3061 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block2066 hits · 1851 pts
SeverityFileLineSnippetContext
LOW…ppers/unity/Assets/RealSenseSDK2.0/Scripts/RsDevice.cs21 }COMMENT
LOW…nseSDK2.0/Scripts/ProcessingBlocks/RsTemporalFilter.cs21 public int _filterSmoothDelta = 20;COMMENT
LOW…/unity/Assets/RealSenseSDK2.0/Editor/RsDeviceEditor.cs21 // int selectedSerial = 0;COMMENT
LOW…/unity/Assets/RealSenseSDK2.0/Editor/RsDeviceEditor.cs61 {COMMENT
LOWwrappers/python/pybackend.cpp1/* License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/python/pyrs_device.cpp1/* License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/python/pyrealsense2.h1/* License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/python/examples/align-depth2color.py1## License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/python/examples/object_detection_example.py1## License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/python/examples/align-with-software-device.py1## License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOW…_dimensioner_multicam/box_dimensioner_multicam_demo.py1########################################################################################################################COMMENT
LOWwrappers/python/pyrealsense2/__init__.py1# py libs (pyd/so) should be copied to pyrealsense2 folderCOMMENT
LOWwrappers/open3d/cpp/RealSenseRecorder.cpp1// ----------------------------------------------------------------------------COMMENT
LOWwrappers/open3d/cpp/RealSenseBagReader.cpp1// ----------------------------------------------------------------------------COMMENT
LOWwrappers/open3d/cpp/RealSenseBagReader.cpp21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWwrappers/openvino/face/rs-face-vino.cpp1// License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/openvino/rs-vino/openvino-helpers.h1// License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/openvino/dnn/rs-dnn-vino.cpp1// License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/pcl/pcl-color/rs-pcl-color.cpp21#include <boost/thread/thread.hpp>COMMENT
LOWwrappers/opencv/latency-tool/latency-detector.h1// License: Apache 2.0. See LICENSE file in root directory.COMMENT
LOWwrappers/opencv/latency-tool/rs-latency-tool.cpp21 //cfg.enable_stream(RS2_STREAM_INFRARED, 1280, 720, RS2_FORMAT_Y8);COMMENT
LOW…rce/RealSense/Private/RealSenseDetailCustomization.cpp1#include "RealSenseDetailCustomization.h"COMMENT
LOW…gine4/Plugins/RealSense/Source/RealSense/Private/PCH.h1#pragma onceCOMMENT
LOW…e4/Plugins/RealSense/Source/RealSense/Private/Shared.h1#pragma onceCOMMENT
LOW…e4/Plugins/RealSense/Source/RealSense/Private/Shared.h21 #define REALSENSE_TRACE(Format, ...) UE_LOG(LogRealSense, Display, Format, ## __VA_ARGS__)COMMENT
LOW…/Plugins/RealSense/Source/RealSense/Private/Profiler.h1#pragma onceCOMMENT
LOW…/Plugins/RealSense/Source/RealSense/Private/Profiler.h21 #include <sys/time.h>COMMENT
LOW…/Plugins/RealSense/Source/RealSense/Private/Profiler.h41COMMENT
LOW…entEditor/Private/RuntimeMeshComponentEditorPlugin.cpp161#undef LOCTEXT_NAMESPACECOMMENT
LOW…omponentEditor/Private/RuntimeMeshComponentDetails.cpp1// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.COMMENT
LOW…t/Source/RuntimeMeshComponent/Public/RuntimeMeshCore.h1// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.COMMENT
LOW…RuntimeMeshComponent/Public/RuntimeMeshGenericVertex.h1// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.COMMENT
LOW…RuntimeMeshComponent/Public/RuntimeMeshGenericVertex.h281};COMMENT
LOW…RuntimeMeshComponent/Public/RuntimeMeshGenericVertex.h301// Tangent declarationCOMMENT
LOW…RuntimeMeshComponent/Public/RuntimeMeshGenericVertex.h341#define RUNTIMEMESH_VERTEX_DECLARE_UVCHANNEL_8(UVType) \COMMENT
LOW…RuntimeMeshComponent/Public/RuntimeMeshGenericVertex.h421#define RUNTIMEMESH_VERTEX_PARAMETER_UVCHANNEL_0COMMENT
LOW…ce/RuntimeMeshComponent/Private/RuntimeMeshSection.cpp221 // {COMMENT
LOW…ce/RuntimeMeshComponent/Private/RuntimeMeshSection.cpp241 // else if (VertexBuffer2.GetStructure().HasUVs())COMMENT
LOW…ce/RuntimeMeshComponent/Private/RuntimeMeshLibrary.cpp1// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.COMMENT
LOW…ce/RuntimeMeshComponent/Private/RuntimeMeshLibrary.cpp501COMMENT
LOW…nt/Source/RuntimeMeshComponent/Private/RuntimeMesh.cpp1// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.COMMENT
LOW…/RuntimeMeshComponent/Private/RuntimeMeshComponent.cpp1// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.COMMENT
LOWwrappers/matlab/types.h241// rs_processing.hppCOMMENT
LOWwrappers/csharp/Intel.RealSense/Pipeline/Pipeline.cs81 return prof;COMMENT
LOWwrappers/csharp/Intel.RealSense/Processing/Syncer.cs21 {COMMENT
LOW…ppers/csharp/Intel.RealSense/Processing/FrameSource.cs41COMMENT
LOW…s/csharp/Intel.RealSense/Processing/ProcessingBlock.cs61 /// <summary>COMMENT
LOWwrappers/csharp/Intel.RealSense/Frames/FrameQueue.cs21 /// </summary>COMMENT
LOWwrappers/csharp/Intel.RealSense/Frames/Frame.cs101 return Create(Handle);COMMENT
LOW…pers/csharp/Intel.RealSense/Properties/AssemblyInfo.cs21// to COM components. If you need to access a type in this assembly fromCOMMENT
LOW…csharp/Intel.RealSense/StreamProfiles/StreamProfile.cs101 /// </summary>COMMENT
LOWwrappers/csharp/Intel.RealSense/Devices/Device.cs101 }COMMENT
LOWwrappers/csharp/Intel.RealSense/Devices/RecordDevice.cs21 return NativeMethods.rs2_create_record_device(dev.Handle, file, out error);COMMENT
LOW…ppers/csharp/Intel.RealSense/Devices/PlaybackDevice.cs41 /// </summary>COMMENT
LOW…ers/csharp/tutorial/capture/Properties/AssemblyInfo.cs21COMMENT
LOW…ppers/csharp/tutorial/depth/Properties/AssemblyInfo.cs21COMMENT
LOW…/csharp/tutorial/processing/Properties/AssemblyInfo.cs21COMMENT
LOW…rs/csharp/tutorial/d400-occ/Properties/AssemblyInfo.cs21COMMENT
LOW…appers/csharp/tutorial/pose/Properties/AssemblyInfo.cs21COMMENT
LOW…s/csharp/tutorial/load-json/Properties/AssemblyInfo.cs21COMMENT
2006 more matches not shown…
Hyper-Verbose Identifiers320 hits · 342 pts
SeverityFileLineSnippetContext
LOW…/python/examples/python-rs400-advanced-mode-example.py15def find_device_that_supports_advanced_mode() :CODE
LOWwrappers/python/examples/d500_triggered_calibration.py94def get_depth_calib_from_device():CODE
LOWwrappers/python/examples/d500_triggered_calibration.py140def switch_device_to_service_mode(device):CODE
LOWwrappers/python/examples/d500_triggered_calibration.py155def exit_if_calibrations_are_equal():CODE
LOW…pers/python/examples/depth_auto_calibration_example.py138def run_focal_length_calibration(target_size, adjust_side):STRING
LOWwrappers/python/examples/embedded_filters.py22def list_embedded_filter_options(embedded_filter):CODE
LOW…/examples/box_dimensioner_multicam/measurement_task.py14def calculate_cumulative_pointcloud(frames_devices, calibration_info_devices, roi_2d, depth_threshold = 0.01):CODE
LOW…/examples/box_dimensioner_multicam/measurement_task.py71def calculate_boundingbox_points(point_cloud, calibration_info_devices, depth_threshold = 0.01):CODE
LOW…/examples/box_dimensioner_multicam/helper_functions.py121def convert_depth_pixel_to_metric_coordinate(depth, pixel_x, pixel_y, camera_intrinsics):CODE
LOW…/examples/box_dimensioner_multicam/helper_functions.py151def convert_depth_frame_to_pointcloud(depth_image, camera_intrinsics ):CODE
LOW…/examples/box_dimensioner_multicam/helper_functions.py191def convert_pointcloud_to_depth(pointcloud, camera_intrinsics):CODE
LOW…xamples/box_dimensioner_multicam/calibration_kabsch.py23def calculate_transformation_kabsch(src_points, dst_points):CODE
LOW…xamples/box_dimensioner_multicam/calibration_kabsch.py221 def find_chessboard_boundary_for_depth_image(self):CODE
LOW…s/box_dimensioner_multicam/realsense_device_manager.py27def enumerate_connected_devices(context):CODE
LOW…s/box_dimensioner_multicam/realsense_device_manager.py282 def get_depth_to_color_extrinsics(self, frames):CODE
LOW…pers/rest-api/tools/react-viewer/tests/e2e/fixtures.ts71async function dismissWhatsNewModalInternal(page: Page): Promise<void> {CODE
LOWwrappers/rest-api/app/core/errors.py16 async def realsense_exception_handler(request: Request, exc: RealSenseError):CODE
LOWwrappers/rest-api/app/core/errors.py30 async def validation_exception_handler(request: Request, exc: RequestValidationError):CODE
LOWwrappers/rest-api/app/core/errors.py37 async def generic_exception_handler(request: Request, exc: Exception):CODE
LOWwrappers/rest-api/app/services/rs_manager.py505 def _get_or_create_processing_blocks(self, device_id: str, sensor_id: str, sensor) -> List[Dict[str, Any]]:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1540 def _validate_profile_compatibility(self, profiles: List[rs.stream_profile]) -> None:CODE
LOWwrappers/rest-api/tests/test_api_service.py370 async def test_process_webrtc_answer(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_api_service.py423 async def test_close_webrtc_session(self, setup_mock_managers):CODE
LOWunit-tests/conftest.py349def pytest_collection_modifyitems(config, items):CODE
LOWunit-tests/conftest.py374def pytest_runtest_makereport(item, call):CODE
LOWunit-tests/test-fw-update.py41def send_hardware_monitor_command(device, command):CODE
LOWunit-tests/test-fw-update.py50def extract_version_from_filename(file_path):CODE
LOWunit-tests/py/rspy/config_file.py36def get_domain_from_config_file_or_default():CODE
LOWunit-tests/py/rspy/test.py130def find_first_device_or_exit():CODE
LOWunit-tests/py/rspy/test.py145def find_devices_by_product_line_or_exit( product_line ):CODE
LOWunit-tests/py/rspy/acroname.py165 def port_state_bitmask_to_strings(self, bitmask ):CODE
LOWunit-tests/py/rspy/devices.py159def wait_until_all_ports_disabled( timeout = 5 ):CODE
LOWunit-tests/py/rspy/pytest/device_helpers.py140def resolve_device_each_serials(metafunc):CODE
LOWunit-tests/py/rspy/pytest/device_helpers.py227def find_matching_devices_multi(device_markers, cli_includes=None, cli_excludes=None):CODE
LOW…tests/post-processing/test-post-processing-from-bag.py82def compare_processed_frames_vs_recorded_frames(file):CODE
LOWunit-tests/post-processing/test-rotation-filter.py65def validate_rotation_results(filtered_frame, angle):CODE
LOWunit-tests/post-processing/test-filters.py66def produce_sequence_extensions(source, target):CODE
LOWunit-tests/post-processing/test-filters.py264def check_load_test_configuration(test_config):CODE
LOWunit-tests/sw-dev/pytest-metadata.py20def test_nothing_supported_by_default():CODE
LOWunit-tests/sw-dev/pytest-metadata.py57def test_post_frame_metadata_does_not_affect_frame():CODE
LOWunit-tests/sw-dev/pytest-metadata.py72def test_metadata_is_kept_from_frame_to_frame():CODE
LOWunit-tests/sw-dev/pytest-metadata.py86def test_prev_frame_does_not_pick_up_new_data_from_new_frame():CODE
LOWunit-tests/sw-dev/pytest-metadata.py104def test_multiple_streams_per_sensor_should_share_metadata():CODE
LOWunit-tests/sw-dev/pytest-metadata.py136def test_two_sensors_intermixed_frames():CODE
LOWunit-tests/sw-dev/pytest-motion.py7def test_software_device_motion_stream():CODE
LOWunit-tests/live/calib/calibrations_common.py307def restore_calibration_table(device, saved_table=None):CODE
LOWunit-tests/live/calib/calibrations_common.py367def write_calibration_table_with_crc(device, modified_data):CODE
LOWunit-tests/live/calib/calibrations_common.py394def modify_intrinsic_calibration(device, pixel_correction, modify_ppy=True):CODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py64def run_advanced_occ_calibration_test(host_assistance, config, pipeline, calib_dev, image_width, image_height, fps, modiCODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py216def test_advanced_occ_calibration(test_device):CODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py241def test_advanced_occ_calibration_with_host_assistance(test_device):CODE
LOWunit-tests/live/calib/pytest-tare-calibrations.py98def test_tare_calibration_with_host_assistance(test_device):STRING
LOWunit-tests/live/calib/pytest-occ-calibrations.py69def test_occ_calibration_with_host_assistance(test_device):CODE
LOW…-tests/live/calib/pytest-advanced-tare-calibrations.py116def run_advanced_tare_calibration_test(host_assistance, config, pipeline, calib_dev, image_width, image_height, fps, tarCODE
LOW…-tests/live/calib/pytest-advanced-tare-calibrations.py252def test_advanced_tare_calibration(test_device):CODE
LOW…-tests/live/calib/pytest-advanced-tare-calibrations.py285def test_advanced_tare_calibration_with_host_assistance(test_device):STRING
LOWunit-tests/live/options/pytest-timestamp-domain.py31def set_and_verify_timestamp_domain(sensor, frame_queue, global_time_enabled: bool, sleep_time: float = 0.5):CODE
LOWunit-tests/live/options/pytest-timestamp-domain.py53def _run_timestamp_domain_test(sensor, stream_type, global_time_enabled):CODE
LOWunit-tests/live/options/pytest-timestamp-domain.py65def test_depth_timestamp_domain_off(test_device):CODE
LOWunit-tests/live/options/pytest-timestamp-domain.py71def test_depth_timestamp_domain_on(test_device):CODE
260 more matches not shown…
Decorative Section Separators98 hits · 326 pts
SeverityFileLineSnippetContext
MEDIUMwrappers/python/examples/object_detection_example.py5# ========================COMMENT
MEDIUMwrappers/python/examples/object_detection_example.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMwrappers/python/examples/object_detection_example.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMwrappers/python/examples/object_detection_example.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMwrappers/python/examples/object_detection_example.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMwrappers/python/examples/object_detection_example.py57 # ---------------------------------------------------------------COMMENT
MEDIUMwrappers/python/examples/object_detection_example.py61 # ---------------------------------------------------------------COMMENT
MEDIUMwrappers/python/examples/numpy_to_frame.py63# =========================================================================COMMENT
MEDIUMwrappers/python/examples/numpy_to_frame.py66# =========================================================================COMMENT
MEDIUMwrappers/python/examples/numpy_to_frame.py77# =========================================================================COMMENT
MEDIUMwrappers/python/examples/numpy_to_frame.py90# =========================================================================COMMENT
MEDIUMwrappers/rest-api/app/api/endpoints/sensor_streaming.py56# =============================================================================COMMENT
MEDIUMwrappers/rest-api/app/api/endpoints/sensor_streaming.py58# =============================================================================COMMENT
MEDIUMwrappers/rest-api/app/api/endpoints/sensor_streaming.py120# =============================================================================COMMENT
MEDIUMwrappers/rest-api/app/api/endpoints/sensor_streaming.py122# =============================================================================COMMENT
MEDIUMwrappers/rest-api/app/services/rs_manager.py1398 # =========================================================================COMMENT
MEDIUMwrappers/rest-api/app/services/rs_manager.py1400 # =========================================================================COMMENT
MEDIUMunit-tests/conftest.py76# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py78# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py97# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py99# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py416# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py418# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py460# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py462# ============================================================================COMMENT
MEDIUMunit-tests/live/calib/calibrations_common.py435# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/calib/calibrations_common.py437# ---------------------------------------------------------------------------COMMENT
MEDIUM…sts/live/hw-reset/pytest-notifications-callback-gil.py40# ============================================================================COMMENT
MEDIUM…sts/live/hw-reset/pytest-notifications-callback-gil.py42# ============================================================================COMMENT
MEDIUM…sts/live/hw-reset/pytest-notifications-callback-gil.py80# ============================================================================COMMENT
MEDIUM…sts/live/hw-reset/pytest-notifications-callback-gil.py85# ============================================================================COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py265# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py58# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py73# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py390 # -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1569# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1571# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1552# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1554# ============================================================================COMMENT
MEDIUMunit-tests/infra-tests/test_device_helpers.py198# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/test_device_helpers.py200# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/helpers.py16# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/helpers.py18# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/helpers.py82# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/helpers.py84# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/helpers.py133# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/helpers.py135# =============================================================================COMMENT
MEDIUM…mples/enhanced-depth-range/live_close_range_compare.py31# ── 1. Open the camera ──────────────────────────────────────────────────COMMENT
MEDIUM…mples/enhanced-depth-range/live_close_range_compare.py53# ── 3. Construct the improver ───────────────────────────────────────────COMMENT
MEDIUM…mples/enhanced-depth-range/live_close_range_compare.py58# ── 4. Helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUM…mples/enhanced-depth-range/live_close_range_compare.py78# ── 5. Stream + improve + display loop ──────────────────────────────────COMMENT
MEDIUMexamples/enhanced-depth-range/range_depth.py24# ── 1. Open the camera ──────────────────────────────────────────────────COMMENT
MEDIUMexamples/enhanced-depth-range/range_depth.py52# ── 4. Stream + improve + live status line ──────────────────────────────COMMENT
MEDIUMexamples/enhanced-depth-range/range_depth.cpp39 // ── 1. Open the camera ────────────────────────────────────────────COMMENT
MEDIUMexamples/enhanced-depth-range/range_depth.cpp67 // ── 4. Stream + improve + live status line ────────────────────────COMMENT
MEDIUM.github/workflows/buildsCI.yaml24 #--------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/buildsCI.yaml38 #--------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/buildsCI.yaml80 #--------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/buildsCI.yaml122 #--------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/buildsCI.yaml188 #--------------------------------------------------------------------------------COMMENT
38 more matches not shown…
Excessive Try-Catch Wrapping203 hits · 222 pts
SeverityFileLineSnippetContext
LOW…/python/examples/python-rs400-advanced-mode-example.py85except Exception as e:CODE
LOWwrappers/python/examples/python-tutorial-1-depth.py49except Exception as e:CODE
LOWwrappers/python/examples/pybackend_example_1_general.py101except Exception as e:CODE
LOWwrappers/python/examples/align-with-software-device.py112except Exception as e:CODE
MEDIUMwrappers/python/examples/depth_ucal_example.py23 print('Error reading occ_json_file: ', occ_json_file)CODE
MEDIUMwrappers/python/examples/depth_ucal_example.py49 print('Error reading tare_json_file: ', tare_json_file)CODE
LOWwrappers/python/examples/depth_ucal_example.py215 except Exception as e:CODE
LOWwrappers/python/examples/frame_queue_example.py81except Exception as e:CODE
LOWwrappers/rest-api/app/api/router.py16 except Exception:CODE
LOWwrappers/rest-api/app/api/endpoints/options.py26 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/options.py41 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/options.py61 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/sensor_streaming.py48 except Exception as e:CODE
MEDIUMwrappers/rest-api/app/api/endpoints/sensor_streaming.py43def wrapper(*args, **kwargs):CODE
LOWwrappers/rest-api/app/api/endpoints/point_cloud.py21 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/point_cloud.py31 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/point_cloud.py41 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py37 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py55 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py68 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py85 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py100 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/sensors.py24 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/sensors.py38 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/firmware.py23 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/webrtc.py33 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/webrtc.py51 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/webrtc.py70 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/webrtc.py83 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/webrtc.py100 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/webrtc.py117 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/devices.py37 except Exception as e:CODE
LOWwrappers/rest-api/app/api/endpoints/devices.py63 except Exception as e:CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py1395 print(f"Error calculating depth range: {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py1297 print(f"Error processing {active_stream}: {type(e).__name__}: {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py1319 print(f"Error collecting frames: {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py1355 print(f"Error getting depth at pixel ({x}, {y}): {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py993def _do_stop():CODE
LOWwrappers/rest-api/app/services/rs_manager.py1394 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py108 except Exception as exc:CODE
LOWwrappers/rest-api/app/services/rs_manager.py720 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py722 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py997 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1295 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1322 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1342 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1354 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1707 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1712 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1864 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1927 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py2037 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py2081 except Exception as e:CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py69 except Exception as e:CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py170 except Exception as e:CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py198 except Exception as e:CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py227 except Exception:CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py249 except Exception:CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py269 except Exception:CODE
MEDIUMwrappers/rest-api/app/services/webrtc_manager.py30def recv(self):CODE
143 more matches not shown…
Unused Imports137 hits · 131 pts
SeverityFileLineSnippetContext
LOWwrappers/python/examples/depth_ucal_example.py11CODE
LOW…s/box_dimensioner_multicam/realsense_device_manager.py9CODE
LOWwrappers/python/pyrealsense2/__init__.py2CODE
LOWwrappers/python/pyrealsense2/__init__.py5CODE
LOWwrappers/python/pyrealsense2/__init__.py5CODE
LOWwrappers/tensorflow/tools/rmse.py6CODE
LOWwrappers/rest-api/install.py23CODE
LOWwrappers/rest-api/app/core/security.py5CODE
LOWwrappers/rest-api/app/models/sensor.py5CODE
LOWwrappers/rest-api/app/models/device.py4CODE
LOWwrappers/rest-api/app/models/stream.py4CODE
LOWwrappers/rest-api/app/models/stream.py5CODE
LOWwrappers/rest-api/app/api/dependencies.py4CODE
LOWwrappers/rest-api/app/api/dependencies.py6CODE
LOWwrappers/rest-api/app/api/endpoints/options.py6CODE
LOWwrappers/rest-api/app/api/endpoints/sensor_streaming.py13CODE
LOWwrappers/rest-api/app/api/endpoints/sensor_streaming.py13CODE
LOWwrappers/rest-api/app/api/endpoints/point_cloud.py5CODE
LOWwrappers/rest-api/app/api/endpoints/point_cloud.py5CODE
LOWwrappers/rest-api/app/api/endpoints/point_cloud.py8CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py5CODE
LOWwrappers/rest-api/app/api/endpoints/streams.py5CODE
LOWwrappers/rest-api/app/services/rs_manager.py13CODE
LOWwrappers/rest-api/app/services/rs_manager.py14CODE
LOWwrappers/rest-api/app/services/rs_manager.py15CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py7CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py8CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py10CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py18CODE
LOWwrappers/rest-api/tests/test_api_service.py6CODE
LOWwrappers/rest-api/tests/test_api_service.py8CODE
LOWwrappers/rest-api/tests/setup_fake_devices.py4CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py2CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py6CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py11CODE
LOWunit-tests/unit-test-config.py17CODE
LOWunit-tests/unit-test-config.py17CODE
LOWunit-tests/py/rspy/signals.py5CODE
LOWunit-tests/py/rspy/test.py17CODE
LOWunit-tests/py/rspy/librs.py8CODE
LOWunit-tests/py/rspy/file.py4CODE
LOWunit-tests/py/rspy/file.py4CODE
LOWunit-tests/py/rspy/lsusb.py11CODE
LOWunit-tests/py/rspy/unifi.py10CODE
LOWunit-tests/py/rspy/unifi.py10CODE
LOWunit-tests/py/rspy/pytest/device_helpers.py7CODE
LOWunit-tests/post-processing/test-rotation-filter.py7CODE
LOWunit-tests/rsutils/test-version.py4CODE
LOWunit-tests/rsutils/number/stabilized/test-stabilized.py4CODE
LOWunit-tests/rsutils/string/test-shorten-json.py4CODE
LOWunit-tests/rsutils/string/test-split.py4CODE
LOWunit-tests/live/calib/calibrations_common.py4CODE
LOWunit-tests/live/calib/calibrations_common.py6CODE
LOWunit-tests/live/calib/calibrations_common.py11CODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py5CODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py7CODE
LOWunit-tests/live/calib/pytest-occ-calibrations.py5CODE
LOWunit-tests/live/rec-play/pytest-playback-stress.py9CODE
LOWunit-tests/live/rec-play/pytest-non-realtime.py8CODE
LOWunit-tests/live/rec-play/pytest-got-playback-frames.py7CODE
77 more matches not shown…
Deep Nesting93 hits · 80 pts
SeverityFileLineSnippetContext
LOWwrappers/python/examples/opencv_pointcloud_viewer.py101CODE
LOWwrappers/python/examples/depth_ucal_example.py81CODE
LOW…ples/box_dimensioner_multicam/calculate_rmsd_kabsch.py323CODE
LOW…xamples/box_dimensioner_multicam/calibration_kabsch.py129CODE
LOW…_dimensioner_multicam/box_dimensioner_multicam_demo.py27CODE
LOW…s/box_dimensioner_multicam/realsense_device_manager.py212CODE
LOWwrappers/tensorflow/tools/rmse.py59CODE
LOWwrappers/rest-api/app/services/rs_manager.py111CODE
LOWwrappers/rest-api/app/services/rs_manager.py257CODE
LOWwrappers/rest-api/app/services/rs_manager.py364CODE
LOWwrappers/rest-api/app/services/rs_manager.py505CODE
LOWwrappers/rest-api/app/services/rs_manager.py633CODE
LOWwrappers/rest-api/app/services/rs_manager.py679CODE
LOWwrappers/rest-api/app/services/rs_manager.py737CODE
LOWwrappers/rest-api/app/services/rs_manager.py1088CODE
LOWwrappers/rest-api/app/services/rs_manager.py1145CODE
LOWwrappers/rest-api/app/services/rs_manager.py1180CODE
LOWwrappers/rest-api/app/services/rs_manager.py1358CODE
LOWwrappers/rest-api/app/services/rs_manager.py1569CODE
LOWwrappers/rest-api/app/services/rs_manager.py1624CODE
LOWwrappers/rest-api/app/services/rs_manager.py2008CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py30CODE
LOW…appers/rest-api/app/services/metadata_socket_server.py44CODE
LOWwrappers/rest-api/tests/pyrealsense_mock.py628CODE
LOWwrappers/rest-api/tests/pyrealsense_mock.py436CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py536CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py106CODE
LOWunit-tests/conftest.py471CODE
LOWunit-tests/run-unit-tests.py356CODE
LOWunit-tests/run-unit-tests.py436CODE
LOWunit-tests/unit-test-config.py171CODE
LOWunit-tests/unit-test-config.py204CODE
LOWunit-tests/py/rspy/ykush.py209CODE
LOWunit-tests/py/rspy/ykush.py121CODE
LOWunit-tests/py/rspy/ykush.py157CODE
LOWunit-tests/py/rspy/libci.py33CODE
LOWunit-tests/py/rspy/libci.py173CODE
LOWunit-tests/py/rspy/libci.py390CODE
LOWunit-tests/py/rspy/test.py282CODE
LOWunit-tests/py/rspy/test.py328CODE
LOWunit-tests/py/rspy/test.py463CODE
LOWunit-tests/py/rspy/test.py828CODE
LOWunit-tests/py/rspy/librs.py23CODE
LOWunit-tests/py/rspy/acroname.py378CODE
LOWunit-tests/py/rspy/acroname.py207CODE
LOWunit-tests/py/rspy/acroname.py346CODE
LOWunit-tests/py/rspy/unifi.py191CODE
LOWunit-tests/py/rspy/devices.py171CODE
LOWunit-tests/py/rspy/devices.py386CODE
LOWunit-tests/py/rspy/devices.py475CODE
LOWunit-tests/py/rspy/devices.py585CODE
LOWunit-tests/py/rspy/devices.py72CODE
LOWunit-tests/py/rspy/pytest/device_helpers.py140CODE
LOWunit-tests/py/rspy/pytest/logging_setup.py65CODE
LOWunit-tests/post-processing/test-filters.py14CODE
LOW…ive/options/pytest-rgb-options-metadata-consistency.py54CODE
LOWunit-tests/live/rec-play/pytest-got-playback-frames.py116CODE
LOWunit-tests/live/hw-reset/pytest-advanced-mode-toggle.py49CODE
LOW…sts/live/hw-reset/pytest-notifications-callback-gil.py87CODE
LOWunit-tests/live/hw-reset/pytest-stress.py56CODE
33 more matches not shown…
Cross-File Repetition15 hits · 75 pts
SeverityFileLineSnippetContext
HIGH…/examples/box_dimensioner_multicam/helper_functions.py0_ _ _ _____ _ _ | | | | ___ | | _ __ ___ _ __ | ___|_ _ _ __ ___ | |_ (_) ___ _ __ ___ | |_| | / _ \| || '_ \ / _ \| '__STRING
HIGH…xamples/box_dimensioner_multicam/calibration_kabsch.py0_ _ _ _____ _ _ | | | | ___ | | _ __ ___ _ __ | ___|_ _ _ __ ___ | |_ (_) ___ _ __ ___ | |_| | / _ \| || '_ \ / _ \| '__STRING
HIGH…s/box_dimensioner_multicam/realsense_device_manager.py0_ _ _ _____ _ _ | | | | ___ | | _ __ ___ _ __ | ___|_ _ _ __ ___ | |_ (_) ___ _ __ ___ | |_| | / _ \| || '_ \ / _ \| '__STRING
HIGHunit-tests/py/rspy/ykush.py0:return: a list of all possible ports, even if currently unoccupied or disabledSTRING
HIGHunit-tests/py/rspy/device_hub.py0:return: a list of all possible ports, even if currently unoccupied or disabledSTRING
HIGHunit-tests/py/rspy/acroname.py0:return: a list of all possible ports, even if currently unoccupied or disabledSTRING
HIGHunit-tests/py/rspy/ykush.py0set enable state to provided ports :param ports: list of port numbers; if not provided, enable all ports :param disable_STRING
HIGHunit-tests/py/rspy/device_hub.py0set enable state to provided ports :param ports: list of port numbers; if not provided, enable all ports :param disable_STRING
HIGHunit-tests/py/rspy/acroname.py0set enable state to provided ports :param ports: list of port numbers; if not provided, enable all ports :param disable_STRING
HIGHunit-tests/py/rspy/ykush.py0:param ports: list of port numbers; if not provided, disable all ports :param sleep_on_change: number of seconds to sleeSTRING
HIGHunit-tests/py/rspy/device_hub.py0:param ports: list of port numbers; if not provided, disable all ports :param sleep_on_change: number of seconds to sleeSTRING
HIGHunit-tests/py/rspy/acroname.py0:param ports: list of port numbers; if not provided, disable all ports :param sleep_on_change: number of seconds to sleeSTRING
HIGHunit-tests/live/frames/pytest-t2ff-pipeline.py0return (dev, ctx), waiting once for device to reach idle state.STRING
HIGHunit-tests/live/frames/pytest-fps-performance.py0return (dev, ctx), waiting once for device to reach idle state.STRING
HIGHunit-tests/live/frames/pytest-t2ff-sensor.py0return (dev, ctx), waiting once for device to reach idle state.STRING
Self-Referential Comments20 hits · 57 pts
SeverityFileLineSnippetContext
MEDIUMwrappers/python/examples/python-tutorial-1-depth.py12 # Create a context object. This object owns the handles to all connected realsense devicesCOMMENT
MEDIUMwrappers/python/examples/align-depth2color.py15# Create a pipelineCOMMENT
MEDIUMwrappers/python/examples/align-depth2color.py18# Create a config and configure the pipeline to streamCOMMENT
MEDIUMwrappers/python/examples/align-depth2color.py53# Create an align objectCOMMENT
MEDIUMwrappers/python/examples/pybackend_example_1_general.py51 xu = rs.extension_unit(0, 3, 2, rs.guid("C9606CCB-594C-4D25-af47-ccc496435995")) # Define the Depth XUCODE
MEDIUMwrappers/python/examples/pyglet_pointcloud_viewer.py151# Create a VertexList to hold pointcloud dataCOMMENT
MEDIUMwrappers/python/examples/frame_queue_example.py27 # Create a pipelineCOMMENT
MEDIUMwrappers/python/examples/frame_queue_example.py30 # Create a config and configure the pipeline to streamCOMMENT
MEDIUMwrappers/python/examples/read_bag_example.py38 # Create a config objectCOMMENT
MEDIUM…ples/box_dimensioner_multicam/calculate_rmsd_kabsch.py555 # Create the centroid of P and Q which is the geometric center of aSTRING
MEDIUMwrappers/rest-api/app/services/rs_manager.py1199 # Create a single colorizer instance for depth (reuse for performance)COMMENT
MEDIUMwrappers/rest-api/tests/pyrealsense_mock.py557 # Create a colorized version of the depth frameCOMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py45 # Create a fake depth frame (grayscale)COMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py62 # Create a fake color frameCOMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py447 # Create a separate test client that doesn't use mocked dependenciesCOMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py460 # Create a real RealSenseManager (not mocked)COMMENT
MEDIUMwrappers/rest-api/tests/setup_fake_devices.py12 # Create a mock contextCOMMENT
MEDIUMunit-tests/unit-test-config.py117# This file is automatically generated!!COMMENT
MEDIUMunit-tests/live/options/pytest-uvc-power-stress-test.py52 # Create a DDS-disabled context to test UVC locking specificallyCOMMENT
MEDIUMthird-party/realdds/scripts/fps.py69# Create the device and initializeCOMMENT
Slop Phrases21 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMwrappers/csharp/tutorial/processing/Window.xaml.cs97 // For demonstration purposes it will:COMMENT
LOWcommon/metadata-helper.cpp99 // Don't forget to release in the end:COMMENT
LOWcommon/metadata-helper.cpp255 // Don't forget to release in the end:COMMENT
LOWcommon/metadata-helper.cpp330 // Don't forget to release in the end:COMMENT
LOWthird-party/implot/implot.h1029// Turns the current plot's plotting area into a drag and drop target. Don't forget to call EndDragDropTarget!COMMENT
LOWthird-party/implot/implot.h1031// Turns the current plot's X-axis into a drag and drop target. Don't forget to call EndDragDropTarget!COMMENT
LOWthird-party/implot/implot.h1033// Turns the current plot's legend into a drag and drop target. Don't forget to call EndDragDropTarget!COMMENT
LOWthird-party/implot/implot.h1041// Turns the current plot's plotting area into a drag and drop source. You must hold Ctrl. Don't forget to call EndDragDCOMMENT
LOWthird-party/implot/implot.h1043// Turns the current plot's X-axis into a drag and drop source. You must hold Ctrl. Don't forget to call EndDragDropSourCOMMENT
LOWthird-party/implot/implot.h1045// Turns an item in the current plot's legend into drag and drop source. Don't forget to call EndDragDropSource!COMMENT
LOWthird-party/implot/implot.h1099// Temporarily modify a style color. Don't forget to call PopStyleColor!COMMENT
LOWthird-party/implot/implot.h1105// Temporarily modify a style variable of float type. Don't forget to call PopStyleVar!COMMENT
LOWthird-party/implot/implot.h1107// Temporarily modify a style variable of int type. Don't forget to call PopStyleVar!COMMENT
LOWthird-party/implot/implot.h1109// Temporarily modify a style variable of ImVec2 type. Don't forget to call PopStyleVar!COMMENT
LOWthird-party/implot/implot.h1165// Temporarily switch to one of the built-in (i.e. ImPlotColormap_XXX) or user-added colormaps (i.e. a return value of ACOMMENT
LOWthird-party/implot/implot.h1167// Push a colormap by string name. Use built-in names such as "Default", "Deep", "Jet", etc. or a string you provided toCOMMENT
MEDIUMthird-party/imgui/imgui_widgets.cpp6592// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image.COMMENT
LOWthird-party/imgui/imgui.cpp791 - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. PreviCODE
MEDIUM…bag2/rcutils/include/rcutils/testing/fault_injection.h145 * Here's a simple example:COMMENT
MEDIUM…bag2/rcutils/include/rcutils/testing/fault_injection.h180 * Here's a simple example:COMMENT
LOWthird-party/glfw/deps/nuklear.h9355 * and don't forget to specify the new element size in your drawingCOMMENT
AI Slop Vocabulary17 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUM…ples/box_dimensioner_multicam/calculate_rmsd_kabsch.py350 # The most robust way to do this is probablyCOMMENT
MEDIUMtools/realsense-viewer/openvino-face-detection.cpp256 // Enlarge the bounding box around the detected face for more robust operation of face analyticsCOMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py4# CI timeout set to 10 minutes to accommodate comprehensive testing of allCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py753 # Calculate comprehensive statisticsCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py969 # Calculate comprehensive statisticsCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1285 # Generate all combinations (removed restrictions for comprehensive testing)COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1300 # 3. Mixed configurations for comprehensive testingCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py936 """Print a comprehensive summary of configuration test results with detailed statistics"""STRING
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1455 """Print comprehensive summary of multi-stream test results"""STRING
MEDIUMunit-tests/live/camera-sync/pytest-intra-camera-sync.py241 # Calculate 95th percentile gap (more robust than max which can be affected by outliers)COMMENT
MEDIUMunit-tests/live/camera-sync/pytest-intra-camera-sync.py372 # Use 95th percentile instead of max to be robust against occasional outliersCOMMENT
MEDIUMcommon/ux-window.cpp125 // Absolutely arbitrary list of manufacturers that are likely to benefit from GLSL optimisationCOMMENT
MEDIUMcommon/reflectivity/reflectivity.cpp82 // Normalized IR instead of IR is used to be robust to high ambient, RSS is assumed between echo to noiseCOMMENT
LOWscripts/lrs_options-to-html.py9 # if we see an option more than once at add_row, just set its value to be 'Environment dependant'COMMENT
MEDIUMthird-party/imgui/imgui.cpp5792 // FIXME: Essentially we want to restrict manual resizing to WindowMinSize+Decoration, and allow api resizing to be COMMENT
MEDIUMthird-party/realsense-file/rosbag/roslz4/src/xxhash.c276 if ((((size_t)input) & 3)) // Input is aligned, let's leverage the speed advantageCODE
MEDIUMthird-party/glfw/deps/nuklear.h53/// - Absolutely no platform dependent codeCOMMENT
Redundant / Tautological Comments28 hits · 42 pts
SeverityFileLineSnippetContext
LOWwrappers/python/examples/export_ply_example.py38 # Set options to the desired valuesCOMMENT
LOWwrappers/python/examples/read_bag_example.py29# Check if the given file have bag extensionCOMMENT
LOWwrappers/rest-api/app/services/rs_manager.py579 # Check if this is a post-processing filter option (starts with "PP_")COMMENT
LOWwrappers/rest-api/app/services/rs_manager.py1108 # Check if this stream type is active on this sensorCOMMENT
LOWwrappers/rest-api/app/services/rs_manager.py1647 # Check if we should stopCOMMENT
LOWwrappers/rest-api/app/services/rs_manager.py1744 # Check if already streaming - with recovery mechanismCOMMENT
LOWunit-tests/py/rspy/timer.py30 # Check if timer time expiredCOMMENT
LOWunit-tests/py/rspy/devices.py354 # Check if connection type changed (e.g., USB -> DDS)COMMENT
LOWunit-tests/rsutils/number/stabilized/test-stabilized.py12# Verify if history is filled with a stable value at the required percentage, the userCOMMENT
LOWunit-tests/rsutils/number/stabilized/test-stabilized.py114# Verify if history is not the logic works as expected and the percentage is calculatedCOMMENT
LOWunit-tests/rsutils/number/stabilized/test-stabilized.py142# Verify if history is full with a specific value, the stabilized value is always the sameCOMMENT
LOWunit-tests/rsutils/number/stabilized/test-stabilized.py164# Verify if history is filled with less stable percantage than required the last stableCOMMENT
LOWunit-tests/rsutils/number/stabilized/test-stabilized.py187# Verify if history is filled with a stable value and then filled with required percentageCOMMENT
LOWunit-tests/live/d400/pytest-emitter-on-off.py250 # Check if emitter_enabled option is supportedCOMMENT
LOWunit-tests/live/d400/pytest-emitter-on-off.py671 # Check if we have sufficient laser power metadataCOMMENT
LOWunit-tests/live/fw/pytest-fw-errors.py54 # Check if this is a known error that should be ignoredCOMMENT
LOWunit-tests/live/frames/fps_helper.py85 # Check if this profile is expectedCOMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1218 # Check if we have sufficient measurementsCOMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1611 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1651 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1688 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/camera-sync/pytest-intra-camera-sync.py286 # Set device to MASTER sync mode (inter_cam_sync_mode = 1)COMMENT
LOWscripts/patch-utils-hwe.sh142 #Check if the module is loaded, and if does - are there dependent kernel modules.COMMENT
LOWscripts/patch-utils.sh93 #Check if the module is loaded, and if does - are there dependent kernel modules.COMMENT
LOWscripts/rs-enum.sh295 # Check if this is a valid tegra video deviceCOMMENT
LOWscripts/lrs_options-to-html.py108 if last_option: # Check if last_option is setCODE
LOW.github/workflows/static_analysis.yaml125 # Check if the line already exists to avoid duplicatesCOMMENT
LOW.github/workflows/static_analysis.yaml181 # Check if the line already exists to avoid duplicatesCOMMENT
Structural Annotation Overuse16 hits · 26 pts
SeverityFileLineSnippetContext
LOWwrappers/unity/readme.md24### Step 1 - Build Dependencies And Open The Unity ProjectCOMMENT
LOWwrappers/unity/readme.md46### Step 2 - Open a Unity SceneCOMMENT
LOWwrappers/rest-api/tools/react-viewer/build-all.sh69# Step 1: Build FastAPI executableCOMMENT
LOWwrappers/rest-api/tools/react-viewer/build-all.sh111# Step 2: Build React UICOMMENT
LOWwrappers/rest-api/tools/react-viewer/build-all.sh127# Step 3: Build Tauri bundlesCOMMENT
LOW…pers/rest-api/tools/react-viewer/tests/INSTALLATION.md7## Step 1: Install DependenciesCOMMENT
LOW…pers/rest-api/tools/react-viewer/tests/INSTALLATION.md21## Step 2: Install Playwright BrowsersCOMMENT
LOW…pers/rest-api/tools/react-viewer/tests/INSTALLATION.md29## Step 3: Verify InstallationCOMMENT
LOW…pers/rest-api/tools/react-viewer/tests/INSTALLATION.md41## Step 4: Run with CoverageCOMMENT
LOWcommon/stream-model.cpp332 // Step 1: get rid of negative width / heightCOMMENT
LOWcommon/stream-model.cpp341 // Step 2: send it to firmwareCOMMENT
LOWthird-party/imgui/imgui.cpp3003 // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element hCOMMENT
LOWthird-party/imgui/imgui.cpp3020 // Step 1: Let the clipper infer height from first rangeCOMMENT
LOWthird-party/imgui/imgui.cpp15952 // Step 0: stack queryCOMMENT
LOWthird-party/glfw/src/x11_window.c379// NOTE: This function destroys the provided stringCOMMENT
LOWthird-party/glfw/src/glx_context.c426 // NOTE: This function must not call any X11 functions, as it is calledCOMMENT
Synthetic Comment Markers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHthird-party/imgui/imgui_draw.cpp2733 const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0xCODE
HIGHsrc/ds/d500/d500-safety.cpp460 uint32_t calib_version = 0; // ignoring this field, as requested by sw architectCODE
HIGHsrc/ds/d500/d500-safety.cpp520 uint32_t calib_version = 0; // ignoring this field, as requested by sw architectCODE
HIGHsrc/ds/d500/d500-safety.cpp577 uint32_t calib_version = 0; // ignoring this field, as requested by sw architectCODE
HIGHsrc/ds/d500/d500-debug-protocol-calibration-engine.cpp168 uint32_t calib_version = 0; // ignoring this field, as requested by sw architectCODE
Cross-Language Confusion5 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…/examples/box_dimensioner_multicam/helper_functions.py15 | _ || __/| || |_) || __/| | | _| | |_| || | | || (__ | |_ | || (_) || | | |\__ \STRING
HIGH…xamples/box_dimensioner_multicam/calibration_kabsch.py17 | _ || __/| || |_) || __/| | | _| | |_| || | | || (__ | |_ | || (_) || | | |\__ \STRING
HIGH…s/box_dimensioner_multicam/realsense_device_manager.py15 | _ || __/| || |_) || __/| | | _| | |_| || | | || (__ | |_ | || (_) || | | |\__ \STRING
HIGHunit-tests/py/rspy/pytest/log_live_format.py24`publish_frame()` returns null, `allocate_composite_frame()` returns null,STRING
HIGHunit-tests/dds/test-option-value.py85 RuntimeError, 'cannot deduce value type: ["a",null,"desc",["optional"]]' )CODE
Verbosity Indicators9 hits · 14 pts
SeverityFileLineSnippetContext
LOWwrappers/rest-api/tools/react-viewer/build-all.sh69# Step 1: Build FastAPI executableCOMMENT
LOWwrappers/rest-api/tools/react-viewer/build-all.sh111# Step 2: Build React UICOMMENT
LOWwrappers/rest-api/tools/react-viewer/build-all.sh127# Step 3: Build Tauri bundlesCOMMENT
LOWunit-tests/py/rspy/test.py556 :param value: The value this variable storesSTRING
LOWcommon/stream-model.cpp332 // Step 1: get rid of negative width / heightCOMMENT
LOWcommon/stream-model.cpp341 // Step 2: send it to firmwareCOMMENT
LOWthird-party/imgui/imgui.cpp3003 // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element hCOMMENT
LOWthird-party/imgui/imgui.cpp3020 // Step 1: Let the clipper infer height from first rangeCOMMENT
LOWthird-party/imgui/imgui.cpp15952 // Step 0: stack queryCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwrappers/python/examples/export_ply_example.py39 # In this example we'll generate a textual PLY with normals (mesh is already created by default)COMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWunit-tests/py/rspy/unifi.py291# Example usage:COMMENT
LOWscripts/Tegra/sync.sh39# Usage:COMMENT
LOW…rd-party/rsutils/include/rsutils/time/periodic-timer.h14 // Usage example:COMMENT
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/stream.cpp117 // TODO: implement or remove inheritance from recordable<T>COMMENT
LOWsrc/ds/ds-timestamp.h107 static const int sensors = 4; // TODO: implement frame-counter for each GPIO orCODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWunit-tests/py/rspy/device_hub.py127CODE
LOWunit-tests/live/calib/calibrations_common.py128CODE