Repository Analysis

realsenseai/librealsense

RealSense SDK

5.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of realsenseai/librealsense, a C++ project with 8,979 GitHub stars. SynthScan v2.0 examined 703,239 lines of code across 3075 source files, recording 3296 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 5.1 places this repository in the Low AI signal 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).

5.1
Adjusted Score
5.1
Raw Score
100%
Time Factor
2026-08-27
Last Push
9.0K
Stars
C++
Language
703.2K
Lines of Code
3.1K
Files
3.3K
Pattern Hits
2026-08-29
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 30MEDIUM 173LOW 3093

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 3296 distinct pattern matches across 20 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 Block2090 hits · 1874 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
2030 more matches not shown…
Hyper-Verbose Identifiers504 hits · 538 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
LOW…-api/tools/react-viewer/src/components/DevicePanel.tsx16function showMetadataEnablePromptIfNeeded(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/api/endpoints/system.py15def _enable_metadata_elevated(timeout: float = 120.0) -> int:CODE
LOWwrappers/rest-api/app/api/endpoints/firmware.py38async def update_firmware_from_file(CODE
LOWwrappers/rest-api/app/services/rs_manager.py608 def _post_update_hardware_reset(update_dev) -> None:CODE
LOWwrappers/rest-api/app/services/rs_manager.py619 def _wait_for_device_reconnect(CODE
LOWwrappers/rest-api/app/services/rs_manager.py328 def update_firmware_from_bytes(self, device_id: str, fw_bytes: bytes) -> Dict[str, Any]:CODE
LOWwrappers/rest-api/app/services/rs_manager.py463 def _ensure_fw_update_allowed(self, device_id: str) -> None:CODE
LOWwrappers/rest-api/app/services/rs_manager.py478 def _resolve_firmware_update_id(target_dev: rs.device, device_id: str) -> str:CODE
LOWwrappers/rest-api/app/services/rs_manager.py495 def _make_fw_progress_callback(CODE
LOWwrappers/rest-api/app/services/rs_manager.py518 def _enter_dfu_and_get_update_dev(CODE
LOWwrappers/rest-api/app/services/rs_manager.py707 def _refresh_until_device_returns(CODE
LOWwrappers/rest-api/app/services/rs_manager.py1016 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.py1759 def _build_point_cloud_metadata(self, device_id: str, depth_frame, color_frame=None) -> Optional[Dict]:CODE
LOWwrappers/rest-api/app/services/rs_manager.py2271 def _validate_profile_compatibility(self, profiles: List[rs.stream_profile]) -> None:CODE
LOWwrappers/rest-api/tests/pyrealsense_mock.py652 def send_and_receive_raw_data(self, input_data):CODE
LOWwrappers/rest-api/tests/test_api_service.py648 def test_enable_metadata_noop_on_non_windows(self):CODE
LOWwrappers/rest-api/tests/test_api_service.py656 def test_enable_metadata_windows_ok(self):CODE
LOWwrappers/rest-api/tests/test_api_service.py664 def test_enable_metadata_windows_declined(self):CODE
LOWwrappers/rest-api/tests/test_api_service.py672 def test_enable_metadata_windows_failure(self):CODE
LOWwrappers/rest-api/tests/test_api_service.py680 def test_enable_metadata_windows_timeout(self):CODE
LOWwrappers/rest-api/tests/test_api_service.py343 def test_update_firmware_from_file_happy_path(self, patch_dependencies):CODE
LOWwrappers/rest-api/tests/test_api_service.py364 def test_update_firmware_from_file_rejects_non_bin_extension(self, patch_dependencies):CODE
LOWwrappers/rest-api/tests/test_api_service.py375 def test_update_firmware_from_file_rejects_empty(self, patch_dependencies):CODE
LOWwrappers/rest-api/tests/test_api_service.py386 def test_update_firmware_from_file_rejects_oversize(self, patch_dependencies):CODE
LOWwrappers/rest-api/tests/test_api_service.py404 def test_update_firmware_from_file_propagates_sdk_error(self, patch_dependencies):CODE
LOWwrappers/rest-api/tests/test_api_service.py450 async def test_process_webrtc_answer(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_api_service.py517 def test_hwm_command_with_params(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_api_service.py535 def test_hwm_command_unknown_device(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_api_service.py543 def test_hwm_command_unsupported_device(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_api_service.py582 def test_hwm_response_too_short(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_api_service.py601 def test_hwm_no_deadlock_on_unknown_device(self, patch_dependencies):CODE
LOWwrappers/rest-api/tests/test_api_service.py631 async def test_close_webrtc_session(self, setup_mock_managers):CODE
LOWwrappers/rest-api/tests/test_frame_metadata.py41def test_returns_only_supported_keys():CODE
LOWwrappers/rest-api/tests/test_frame_metadata.py51def test_cache_is_per_profile_uid():CODE
LOWwrappers/rest-api/tests/test_frame_metadata.py85def test_first_frame_does_not_populate_cache():CODE
LOWwrappers/rest-api/tests/test_frame_metadata.py122def test_register_new_device_is_atomic_on_sensors_raise():CODE
LOWwrappers/rest-api/tests/test_frame_metadata.py154def test_reset_device_success_evicts_state_and_emits():CODE
LOWwrappers/rest-api/tests/test_frame_metadata.py202def test_on_devices_changed_remove_evicts_only_target():CODE
LOWunit-tests/conftest.py387def pytest_collection_modifyitems(session, config, items):CODE
LOWunit-tests/conftest.py416def pytest_runtest_makereport(item, call):CODE
LOWunit-tests/conftest.py542def __pytest_repeat_step_number(request):CODE
444 more matches not shown…
Decorative Section Separators105 hits · 352 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.py2129 # =========================================================================COMMENT
MEDIUMwrappers/rest-api/app/services/rs_manager.py2131 # =========================================================================COMMENT
MEDIUMunit-tests/conftest.py82# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py84# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py115# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py117# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py476# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py478# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py520# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py522# ============================================================================COMMENT
MEDIUMunit-tests/live/calib/calibrations_common.py523# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/calib/calibrations_common.py525# ---------------------------------------------------------------------------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.py257# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py50# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py65# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py382 # -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1570# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1572# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1552# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1554# ============================================================================COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py167# ---------------------------------------------------------------------------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.cpp40// ── dlopen-based replacement for rs_depth::DepthRangeImprover ──────────────COMMENT
45 more matches not shown…
Excessive Try-Catch Wrapping229 hits · 240 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/hwm.py40 except Exception as e: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.py29 except Exception:CODE
LOWwrappers/rest-api/app/api/endpoints/firmware.py69 except Exception:CODE
LOWwrappers/rest-api/app/api/endpoints/firmware.py84 except Exception: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
MEDIUMwrappers/rest-api/app/services/rs_manager.py2126 print(f"Error calculating depth range: {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py2025 print(f"Error processing {active_stream}: {type(e).__name__}: {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py2047 print(f"Error collecting frames: {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py2086 print(f"Error getting depth at pixel ({x}, {y}): {str(e)}")CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py189def _info(key, default=None):CODE
MEDIUMwrappers/rest-api/app/services/rs_manager.py1500def _do_stop():CODE
LOWwrappers/rest-api/app/services/rs_manager.py602 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py616 except Exception as exc:CODE
LOWwrappers/rest-api/app/services/rs_manager.py2125 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py238 except Exception as exc:CODE
LOWwrappers/rest-api/app/services/rs_manager.py325 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py342 except Exception as exc:CODE
LOWwrappers/rest-api/app/services/rs_manager.py391 except Exception as exc:CODE
LOWwrappers/rest-api/app/services/rs_manager.py539 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py551 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py585 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py661 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py681 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py683 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py756 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1231 except Exception:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1233 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1504 except Exception as e:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1704 except Exception as exc:CODE
LOWwrappers/rest-api/app/services/rs_manager.py1719 except Exception:CODE
169 more matches not shown…
Unused Imports115 hits · 108 pts
SeverityFileLineSnippetContext
LOWwrappers/python/build_wheel.py30CODE
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.py16CODE
LOWwrappers/rest-api/app/services/rs_manager.py17CODE
LOWwrappers/rest-api/app/services/rs_manager.py18CODE
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.py9CODE
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/conftest.py110CODE
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/test.py350CODE
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/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
LOWunit-tests/live/rec-play/pytest-got-playback-frames.py7CODE
LOWunit-tests/live/fw-logs/pytest-legacy.py12CODE
55 more matches not shown…
Deep Nesting100 hits · 86 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.py441CODE
LOWwrappers/rest-api/app/services/rs_manager.py572CODE
LOWwrappers/rest-api/app/services/rs_manager.py619CODE
LOWwrappers/rest-api/app/services/rs_manager.py768CODE
LOWwrappers/rest-api/app/services/rs_manager.py875CODE
LOWwrappers/rest-api/app/services/rs_manager.py1016CODE
LOWwrappers/rest-api/app/services/rs_manager.py1144CODE
LOWwrappers/rest-api/app/services/rs_manager.py1190CODE
LOWwrappers/rest-api/app/services/rs_manager.py1248CODE
LOWwrappers/rest-api/app/services/rs_manager.py1598CODE
LOWwrappers/rest-api/app/services/rs_manager.py1655CODE
LOWwrappers/rest-api/app/services/rs_manager.py1904CODE
LOWwrappers/rest-api/app/services/rs_manager.py2089CODE
LOWwrappers/rest-api/app/services/rs_manager.py2300CODE
LOWwrappers/rest-api/app/services/rs_manager.py2375CODE
LOWwrappers/rest-api/app/services/rs_manager.py2805CODE
LOWwrappers/rest-api/app/services/webrtc_manager.py30CODE
LOW…appers/rest-api/app/services/metadata_socket_server.py44CODE
LOWwrappers/rest-api/tests/pyrealsense_mock.py680CODE
LOWwrappers/rest-api/tests/pyrealsense_mock.py448CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py536CODE
LOWtools/rs-imu-calibration/rs-imu-calibration.py106CODE
LOWunit-tests/run-unit-tests.py354CODE
LOWunit-tests/run-unit-tests.py443CODE
LOWunit-tests/unit-test-config.py171CODE
LOWunit-tests/unit-test-config.py204CODE
LOWunit-tests/py/rspy/json_compare.py11CODE
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.py130CODE
LOWunit-tests/py/rspy/test.py304CODE
LOWunit-tests/py/rspy/test.py437CODE
LOWunit-tests/py/rspy/test.py803CODE
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.py181CODE
LOWunit-tests/py/rspy/devices.py396CODE
LOWunit-tests/py/rspy/devices.py485CODE
LOWunit-tests/py/rspy/devices.py595CODE
LOWunit-tests/py/rspy/devices.py78CODE
LOWunit-tests/py/rspy/pytest/device_helpers.py140CODE
LOWunit-tests/py/rspy/pytest/collection.py35CODE
LOWunit-tests/py/rspy/pytest/logging_setup.py82CODE
LOWunit-tests/post-processing/test-filters.py14CODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py62CODE
LOWunit-tests/live/options/pytest-presets.py57CODE
40 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. module-scoped so the settle-sleep fires once per module STRING
HIGHunit-tests/live/frames/pytest-fps-performance.py0return (dev, ctx), waiting once for device to reach idle state. module-scoped so the settle-sleep fires once per module STRING
HIGHunit-tests/live/frames/pytest-t2ff-sensor.py0return (dev, ctx), waiting once for device to reach idle state. module-scoped so the settle-sleep fires once per module STRING
Self-Referential Comments24 hits · 69 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.py1923 # Create a single colorizer instance for depth (reuse for performance)COMMENT
MEDIUMwrappers/rest-api/tests/pyrealsense_mock.py569 # Create a colorized version of the depth frameCOMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py48 # Create a fake depth frame (grayscale)COMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py65 # Create a fake color frameCOMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py697 # Create a separate test client that doesn't use mocked dependenciesCOMMENT
MEDIUMwrappers/rest-api/tests/test_api_service.py710 # 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
MEDIUMunit-tests/dds/pytest-librs-options.py26 # Create the serverCOMMENT
MEDIUMunit-tests/dds/pytest-query-option.py29 # Create the serverCOMMENT
MEDIUMunit-tests/dds/pytest-control-reply.py28 # Create the serverCOMMENT
MEDIUMunit-tests/dds/pytest-query-filter.py28 # Create the serverCOMMENT
MEDIUMthird-party/realdds/scripts/fps.py69# Create the device and initializeCOMMENT
AI Slop Vocabulary22 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUM…ples/box_dimensioner_multicam/calculate_rmsd_kabsch.py350 # The most robust way to do this is probablyCOMMENT
MEDIUM…tools/react-viewer/src/components/PointCloudViewer.tsx100 // EMA-smoothed depth range, derived from robust percentiles of the cloud so theCOMMENT
MEDIUMtools/realsense-viewer/openvino-face-detection.cpp256 // Enlarge the bounding box around the detected face for more robust operation of face analyticsCOMMENT
MEDIUMunit-tests/conftest.py370 # Skip under --not-live: nothing reads harness devices then, and the DDS context itCOMMENT
MEDIUMunit-tests/test-fw-update.py253 # harness was tracking. Poll for the device to re-enumerate in normal modeCOMMENT
MEDIUMunit-tests/live/tools/pytest-rs-convert-to-db3.py24 # comparison is robust to how frames are batched into framesetsCOMMENT
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.py236 # Calculate 95th percentile gap (more robust than max which can be affected by outliers)COMMENT
MEDIUMunit-tests/live/camera-sync/pytest-intra-camera-sync.py367 # Use 95th percentile instead of max to be robust against occasional outliersCOMMENT
MEDIUMunit-tests/dds/adapter/pytest-depth.py76 # defaults to executable_name and reuses the harness's discoveryCOMMENT
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
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
Synthetic Comment Markers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGH.github/skills/pr-create.md35🤖 Generated by AICODE
HIGH.github/skills/pr-create.md41**AI signature:** every PR description ends with a `🤖 Generated by AI` footer (separated by a `---` rule, as shown aboveCODE
HIGH.github/skills/pr-review.md18- End every comment with a `🤖 Generated by AI` line.CODE
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
Redundant / Tautological Comments23 hits · 34 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.py1090 # Check if this is a post-processing filter option (starts with "PP_")COMMENT
LOWwrappers/rest-api/app/services/rs_manager.py1618 # Check if this stream type is active on this sensorCOMMENT
LOWwrappers/rest-api/app/services/rs_manager.py2398 # Check if we should stopCOMMENT
LOWwrappers/rest-api/app/services/rs_manager.py2495 # Check if already streaming - with recovery mechanismCOMMENT
LOWunit-tests/py/rspy/timer.py30 # Check if timer time expiredCOMMENT
LOWunit-tests/py/rspy/devices.py364 # Check if connection type changed (e.g., USB -> DDS)COMMENT
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.py1612 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1652 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1689 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/camera-sync/pytest-intra-camera-sync.py281 # 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.cpp337 // Step 1: get rid of negative width / heightCOMMENT
LOWcommon/stream-model.cpp346 // 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
Cross-Language Confusion5 hits · 18 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/pytest-option-value.py77 with pytest.raises( RuntimeError, match=re.escape( '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.py530 :param value: The value this variable storesSTRING
LOWcommon/stream-model.cpp337 // Step 1: get rid of negative width / heightCOMMENT
LOWcommon/stream-model.cpp346 // 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
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHwrappers/rest-api/app/services/rs_manager.py2964Send a hardware monitor (HWM) command and return the raw firmware response. Uses the SDK debug_protocol extensiSTRING
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.h108 static const int sensors = 4; // TODO: implement frame-counter for each GPIO orCODE
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWunit-tests/py/rspy/device_hub.py127CODE
LOWunit-tests/live/calib/calibrations_common.py133CODE
LOWunit-tests/live/calib/calibrations_common.py230CODE