AI Slop Code RIsk Monitor

realsenseai/librealsense

RealSense SDK

5.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for realsenseai/librealsense, a C++ project with 9,046 GitHub stars. SynthScan examined 711,759 lines of code across 3127 source files, recording 3456 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 5.6 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.6
Adjusted Signal
5.6
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
9.0K
Stars
C++
Language
711.8K
Lines of Code
3.1K
Files
3.5K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2917 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

Are imports declared and package/API names verified? 117 finding(s).

Agent Over-Engineering Ratio 10.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 983 finding(s).

PR Review Velocity Impact 25.9/100 · MEDIUM

Which changes need focused human review? 3456 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 89MEDIUM 182LOW 3185

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3456 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block2121 hits · 1904 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
2061 more matches not shown…
Hyper-Verbose Identifiers558 hits · 592 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
LOW⚡wrappers/rest-api/app/services/rs_manager.py608 def _post_update_hardware_reset(update_dev) -> None:CODE
LOW⚡wrappers/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
LOW⚡wrappers/rest-api/tests/test_api_service.py648 def test_enable_metadata_noop_on_non_windows(self):CODE
LOW⚡wrappers/rest-api/tests/test_api_service.py656 def test_enable_metadata_windows_ok(self):CODE
LOW⚡wrappers/rest-api/tests/test_api_service.py664 def test_enable_metadata_windows_declined(self):CODE
LOW⚡wrappers/rest-api/tests/test_api_service.py672 def test_enable_metadata_windows_failure(self):CODE
LOW⚡wrappers/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
LOW⚡unit-tests/conftest.py392def pytest_collection_modifyitems(session, config, items):CODE
LOWunit-tests/conftest.py429def pytest_runtest_makereport(item, call):CODE
LOWunit-tests/conftest.py491def _reset_pytest_timeout_for_retry(item):CODE
498 more matches not shown…
Decorative Section Separators109 hits · 356 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
MEDIUM⚡wrappers/rest-api/app/api/endpoints/sensor_streaming.py56# =============================================================================COMMENT
MEDIUM⚡wrappers/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
MEDIUM⚡wrappers/rest-api/app/services/rs_manager.py2129 # =========================================================================COMMENT
MEDIUM⚡wrappers/rest-api/app/services/rs_manager.py2131 # =========================================================================COMMENT
MEDIUMunit-tests/conftest.py90# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py92# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py123# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py125# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py453# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py455# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py557# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py559# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py611# ============================================================================COMMENT
MEDIUMunit-tests/conftest.py613# ============================================================================COMMENT
MEDIUM⚡unit-tests/live/calib/calibrations_common.py523# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡unit-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.py56# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py75# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py234# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py380 # -----------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/d400/pytest-depth-ae-convergence.py408# -----------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡unit-tests/live/frames/pytest-fps-performance.py1686# ============================================================================COMMENT
MEDIUM⚡unit-tests/live/frames/pytest-fps-performance.py1688# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py45# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py47# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1658# ============================================================================COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1660# ============================================================================COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_fixture_guard.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡unit-tests/infra-tests/test_fixture_guard.py72# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡unit-tests/infra-tests/test_fixture_guard.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡unit-tests/infra-tests/test_fixture_guard.py165# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡unit-tests/infra-tests/test_fixture_guard.py167# ---------------------------------------------------------------------------COMMENT
MEDIUMunit-tests/infra-tests/test_device_helpers.py218# =============================================================================COMMENT
MEDIUMunit-tests/infra-tests/test_device_helpers.py220# =============================================================================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
49 more matches not shown…
Empty Error Handlers58 hits · 285 pts
SeverityFileLineSnippetContext
HIGH…ples/box_dimensioner_multicam/calculate_rmsd_kabsch.py28except NameError:CODE
HIGHwrappers/rest-api/main.py38except (OSError, FileNotFoundError):CODE
HIGHwrappers/rest-api/app/services/rs_manager.py488except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py539except Exception:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py1131except (ValueError, TypeError):CODE
HIGHwrappers/rest-api/app/services/rs_manager.py1719except Exception:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py205except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py921except RuntimeError as e:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py1045except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py1011except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py1449except (ValueError, IndexError):CODE
HIGHwrappers/rest-api/app/services/rs_manager.py2073except Exception:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py2504except:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py2508except:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py2640except:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py2644except:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py597except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py1231except Exception:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py659except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py677except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py2840except:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py651except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/rs_manager.py992except RuntimeError:CODE
HIGHwrappers/rest-api/app/services/webrtc_manager.py249except Exception:CODE
HIGHwrappers/rest-api/app/services/webrtc_manager.py269except Exception:CODE
HIGHwrappers/rest-api/tests/test_api_service.py827except Exception:CODE
HIGHwrappers/rest-api/tests/test_api_service.py124except RuntimeError:CODE
HIGHunit-tests/conftest.py119except ImportError:CODE
HIGHunit-tests/conftest.py570except Exception:CODE
HIGHunit-tests/py/rspy/test.py60except ValueError as e:CODE
HIGHunit-tests/py/rspy/unifi.py215except Exception:CODE
HIGHunit-tests/py/rspy/unifi.py284except Exception:CODE
HIGHunit-tests/py/rspy/pytest/log_live_format.py83except Exception:CODE
HIGHunit-tests/py/rspy/pytest/log_live_format.py95except Exception:CODE
HIGHunit-tests/py/rspy/pytest/logging_setup.py83except Exception:CODE
HIGHunit-tests/live/calib/calibrations_common.py225except Exception:CODE
HIGHunit-tests/live/calib/calibrations_common.py297except Exception:CODE
HIGH…-tests/live/calib/pytest-advanced-tare-calibrations.py246except Exception:CODE
HIGH…sts/live/hw-reset/pytest-notifications-callback-gil.py144except Exception:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-metadata.py291except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-metadata.py278except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-metadata.py263except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-convergence.py116except Exception:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-convergence.py186except Exception:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-convergence.py377except Exception:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-toggle.py274except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-toggle.py332except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-toggle.py340except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-toggle.py510except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-toggle.py261except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-depth-ae-toggle.py246except RuntimeError:CODE
HIGHunit-tests/live/d400/pytest-hdr-long.py166except Exception:CODE
HIGHunit-tests/live/fw/pytest-fw-errors.py141except Exception:CODE
HIGHunit-tests/live/camera-sync/pytest-intra-camera-sync.py108except RuntimeError:CODE
HIGHunit-tests/dds/adapter/pytest-depth.py28except Exception:CODE
HIGHunit-tests/infra-tests/test_signals_watchdog.py53except OSError:CODE
HIGH…mples/enhanced-depth-range/live_close_range_compare.py119except KeyboardInterrupt:CODE
HIGHexamples/enhanced-depth-range/range_depth.py84except KeyboardInterrupt:CODE
Excessive Try-Catch Wrapping240 hits · 238 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.py20 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
LOW⚡wrappers/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
LOW⚡wrappers/rest-api/app/api/endpoints/point_cloud.py21 except Exception as e:CODE
LOW⚡wrappers/rest-api/app/api/endpoints/point_cloud.py31 except Exception as e:CODE
LOW⚡wrappers/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
MEDIUM⚡wrappers/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
LOW⚡wrappers/rest-api/app/services/rs_manager.py602 except Exception as e:CODE
LOW⚡wrappers/rest-api/app/services/rs_manager.py616 except Exception as exc:CODE
LOW⚡wrappers/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
180 more matches not shown…
Unused Imports112 hits · 105 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.py118CODE
LOWunit-tests/unit-test-config.py17CODE
LOWunit-tests/unit-test-config.py17CODE
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/pytest/device_helpers.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/tools/pytest-realsense-viewer.py4CODE
LOWunit-tests/live/fw-logs/pytest-legacy.py12CODE
LOWunit-tests/live/d400/pytest-depth-ae-convergence.py42CODE
LOWunit-tests/live/d400/pytest-depth-ae-convergence.py43CODE
52 more matches not shown…
Deep Nesting102 hits · 88 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.py363CODE
LOWunit-tests/run-unit-tests.py452CODE
LOWunit-tests/unit-test-config.py171CODE
LOWunit-tests/unit-test-config.py204CODE
LOWunit-tests/pytest-fw-update.py210CODE
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.py396CODE
LOWunit-tests/py/rspy/acroname.py207CODE
LOWunit-tests/py/rspy/acroname.py361CODE
LOWunit-tests/py/rspy/unifi.py61CODE
LOWunit-tests/py/rspy/unifi.py258CODE
LOWunit-tests/py/rspy/devices.py181CODE
LOWunit-tests/py/rspy/devices.py396CODE
LOWunit-tests/py/rspy/devices.py485CODE
LOWunit-tests/py/rspy/devices.py78CODE
LOWunit-tests/py/rspy/pytest/device_helpers.py141CODE
LOWunit-tests/py/rspy/pytest/collection.py35CODE
LOWunit-tests/py/rspy/pytest/logging_setup.py133CODE
LOW…t-tests/live/calib/pytest-advanced-occ-calibrations.py62CODE
LOWunit-tests/live/options/pytest-presets.py62CODE
42 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
AI Slop Vocabulary25 hits · 69 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
MEDIUM⚡unit-tests/conftest.py375 # Skip under --not-live: nothing reads harness devices then, and the DDS context itCOMMENT
MEDIUMunit-tests/run-unit-tests.py747 # Legacy harness has no teardown hook, so isolate statelessly each test:COMMENT
MEDIUMunit-tests/pytest-fw-update.py223 # FW-compat pre-flash gate (was harness-side, in run-unit-tests.py): refuse to flash aCOMMENT
MEDIUMunit-tests/pytest-fw-update.py225 # rspy/fw_fallback.json. A refusal is a FAILURE (not a skip), matching the legacy harness.COMMENT
MEDIUMunit-tests/pytest-fw-update.py286 # 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/frames/pytest-fps-performance.py777 # Calculate comprehensive statisticsCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1002 # Calculate comprehensive statisticsCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1331 # Generate all combinations (removed restrictions for comprehensive testing)COMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1346 # 3. Mixed configurations for comprehensive testingCOMMENT
MEDIUMunit-tests/live/frames/pytest-fps-performance.py969 """Print a comprehensive summary of configuration test results with detailed statistics"""STRING
MEDIUMunit-tests/live/frames/pytest-fps-performance.py1553 """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
MEDIUM…500/safety/pytest-preset-active-index-safety-signal.py224 # Bind the pipeline to the harness context so it attaches to the device the test selected,COMMENT
MEDIUMunit-tests/dds/adapter/pytest-depth.py76 # defaults to executable_name and reuses the harness's discoveryCOMMENT
MEDIUMcommon/ux-window.cpp139 // 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
Self-Referential Comments24 hits · 68 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
Synthetic Comment Markers9 hits · 48 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/frame.h161 // Logical byte-size of the pixel payload as requested at allocation. Normally equalsCOMMENT
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.cpp241 uint32_t calib_version = 0; // ignoring this field, as requested by sw architectCODE
Slop Phrases21 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMwrappers/csharp/tutorial/processing/Window.xaml.cs97 // For demonstration purposes it will:COMMENT
LOWcommon/metadata-helper.cpp100 // Don't forget to release in the end:COMMENT
LOWcommon/metadata-helper.cpp264 // Don't forget to release in the end:COMMENT
LOWcommon/metadata-helper.cpp339 // Don't forget to release in the end:COMMENT
LOW⚡third-party/implot/implot.h1029// Turns the current plot's plotting area into a drag and drop target. Don't forget to call EndDragDropTarget!COMMENT
LOW⚡third-party/implot/implot.h1031// Turns the current plot's X-axis into a drag and drop target. Don't forget to call EndDragDropTarget!COMMENT
LOW⚡third-party/implot/implot.h1033// Turns the current plot's legend into a drag and drop target. Don't forget to call EndDragDropTarget!COMMENT
LOW⚡third-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
LOW⚡third-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
LOW⚡third-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
LOW⚡third-party/implot/implot.h1099// Temporarily modify a style color. Don't forget to call PopStyleColor!COMMENT
LOW⚡third-party/implot/implot.h1105// Temporarily modify a style variable of float type. Don't forget to call PopStyleVar!COMMENT
LOW⚡third-party/implot/implot.h1107// Temporarily modify a style variable of int type. Don't forget to call PopStyleVar!COMMENT
LOW⚡third-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
Redundant / Tautological Comments22 hits · 30 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.py55 # 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.py1724 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1827 # Check if device has no color sensor (like D421, D405)COMMENT
LOWunit-tests/live/frames/pytest-fps-performance.py1866 # 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
LOW⚡common/stream-model.cpp379 // Step 1: get rid of negative width / heightCOMMENT
LOW⚡common/stream-model.cpp388 // 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
HIGH⚡unit-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
LOW⚡common/stream-model.cpp379 // Step 1: get rid of negative width / heightCOMMENT
LOW⚡common/stream-model.cpp388 // 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.py358# 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