AI Slop Code RIsk Monitor

huggingface/lerobot

🤗 LeRobot: Making AI for Robotics more accessible with end-to-end learning

32.4 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for huggingface/lerobot, a Python project with 28,064 GitHub stars. SynthScan examined 297,659 lines of code across 1023 source files, recording 7440 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 32.4 (High 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.

32.4
Adjusted Signal
32.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
28.1K
Stars
Python
Language
297.7K
Lines of Code
1.0K
Files
7.4K
Pattern Hits
2026-10-12
Scan Date
0.20
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 61.1/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 17.7/100 · LOW

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

Agent Over-Engineering Ratio 66.3/100 · HIGH

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

PR Review Velocity Impact 80.5/100 · CRITICAL

Which changes need focused human review? 7440 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 12HIGH 188MEDIUM 619LOW 6621

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 7440 distinct pattern matches across 22 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.

Hyper-Verbose Identifiers3625 hits · 3505 pts
SeverityFileLineSnippetContext
LOWtests/test_streaming_location.py47def test_parse_rejects_incomplete_bucket_roots(root: str) -> None:CODE
LOWtests/test_streaming_location.py52def test_storage_options_only_carry_the_token_to_hub_roots() -> None:CODE
LOWtests/test_streaming_location.py73def test_pinned_resolves_dataset_branches_only(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/conftest.py63def _check_component_availability(component_type, available_components, make_component):CODE
LOWtests/test_available.py31def test_require_package_raises_when_missing():CODE
LOWtests/test_available.py43def test_require_package_passes_when_available():CODE
LOWtests/test_available.py54def test_require_package_error_message_includes_uv():CODE
LOWtests/test_streaming_core_imports.py17def test_streaming_core_imports_without_dataset_extra() -> None:CODE
LOW⚡tests/test_robomme_env.py71def test_robomme_env_config_defaults():CODE
LOW⚡tests/test_robomme_env.py101def test_robomme_rejects_duplicate_camera_names():CODE
LOW⚡tests/test_robomme_env.py108def test_robomme_camera_feature_names_are_configurable():CODE
LOW⚡tests/test_robomme_env.py117def test_robomme_preserves_explicit_feature_mapping():CODE
LOW⚡tests/test_robomme_env.py135def test_robomme_features_action_dim_joint_angle():CODE
LOW⚡tests/test_robomme_env.py143def test_robomme_features_action_dim_ee_pose():CODE
LOW⚡tests/test_robomme_env.py157def test_reset_exposes_episode_task_description():CODE
LOW⚡tests/test_robomme_env.py273def test_create_robomme_envs_returns_correct_structure():CODE
LOWtests/test_robomme_env.py83def test_robomme_env_config_type():CODE
LOWtests/test_robomme_env.py90def test_robomme_features_map():CODE
LOWtests/test_robomme_env.py171def test_close_releases_underlying_simulator():CODE
LOWtests/test_robomme_env.py188def test_reset_closes_previous_simulator():CODE
LOWtests/test_robomme_env.py204def test_convert_obs_list_format():CODE
LOWtests/test_robomme_env.py245def test_convert_obs_array_format():CODE
LOWtests/test_robomme_env.py295def test_create_robomme_envs_multi_task():CODE
LOWtests/test_robomme_env.py313def test_create_robomme_envs_raises_on_invalid_env_cls():CODE
LOW⚡tests/test_streaming_sidecar.py88def test_sidecar_cache_path_is_revision_keyed(tmp_path: Path) -> None:CODE
LOW⚡tests/test_streaming_sidecar.py97def test_mutable_or_local_source_still_requires_revision_match(root: str) -> None:CODE
LOW⚡tests/test_streaming_sidecar.py102def test_existing_alias_cache_is_reused_without_rebuild(tmp_path: Path) -> None:CODE
LOW⚡tests/test_streaming_sidecar.py451def test_temporary_validation_does_not_prepare_index(tmp_path: Path) -> None:CODE
LOW⚡tests/test_streaming_sidecar.py458def test_wrong_revision_does_not_prepare_index(tmp_path: Path) -> None:CODE
LOW⚡tests/test_streaming_sidecar.py465def test_missing_array_is_rejected_without_publishing_index(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py119def test_source_generation_round_trip_and_replacement(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py141def test_ensure_reuses_valid_local_sidecar(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py157def test_ensure_rebuilds_sidecar_without_composition_timing(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py182def test_ensure_downloads_valid_published_sidecar(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py203def test_ensure_rebuilds_invalid_local_sidecar(tmp_path: Path, invalid_kind: str) -> None:CODE
LOWtests/test_streaming_sidecar.py224def test_concurrent_ensure_builds_once(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py247def test_failed_build_does_not_replace_existing_file(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py264def test_lock_timeout_is_actionable(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py277def test_sidecar_arrays_are_read_only_file_backed(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py289def test_warm_validation_does_not_decompress_arrays(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/test_streaming_sidecar.py303def test_sidecar_replacement_preserves_live_arrays(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py316def test_sidecar_generation_uses_open_file_not_stale_path_attributes(CODE
LOWtests/test_streaming_sidecar.py339def test_sidecar_payload_does_not_reuse_stale_path_generation(CODE
LOWtests/test_streaming_sidecar.py356def test_rewrite_with_repeated_stat_identity_is_not_served_stale(CODE
LOWtests/test_streaming_sidecar.py376def test_source_change_during_conversion_is_not_published(CODE
LOWtests/test_streaming_sidecar.py397def test_sidecar_load_projects_source_files(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py405def test_concurrent_index_conversion_runs_once(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/test_streaming_sidecar.py423def test_invalid_derived_index_is_recreated(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py433def test_invalid_derived_metadata_is_recreated(tmp_path: Path, corruption: str) -> None:CODE
LOWtests/test_streaming_sidecar.py476def test_read_only_source_uses_writable_local_index_cache(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py490def test_full_index_cache_does_not_rebuild_valid_source(CODE
LOWtests/test_streaming_sidecar.py509def test_sidecar_array_reads_do_not_scan_npz_member_lists(CODE
LOWtests/test_streaming_sidecar.py528def test_sidecar_rejects_object_arrays_without_publication(tmp_path: Path, prepare_cache: bool) -> None:CODE
LOWtests/test_streaming_sidecar.py540def test_resolved_sidecar_decompresses_each_array_once(CODE
LOWtests/test_streaming_sidecar.py563def test_invalid_build_preserves_previous_source_and_mapped_generation(tmp_path: Path) -> None:CODE
LOWtests/test_streaming_sidecar.py584def test_parallel_mapping_protects_legacy_zip_relative_seeks(CODE
LOWtests/test_streaming_sidecar.py614def test_parallel_mapping_decompresses_outside_source_lock(CODE
LOWtests/test_streaming_sidecar.py635def test_parallel_mapping_is_ordered_and_matches_serial_bytes(CODE
LOWtests/test_streaming_sidecar.py664def test_parallel_read_ahead_obeys_count_and_byte_bounds(CODE
LOWtests/test_streaming_sidecar.py691def test_parallel_failure_drains_workers_and_removes_partial_index(CODE
3565 more matches not shown…
Decorative Section Separators491 hits · 1774 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml99# ── Feature-scoped extras ──────────────────────────────────COMMENT
MEDIUMpyproject.toml141# ── User-facing composite extras (map to CLI scripts) ─────COMMENT
MEDIUM⚡tests/test_robomme_env.py66# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_robomme_env.py68# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_robomme_env.py152# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_robomme_env.py154# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_robomme_env.py268# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_robomme_env.py270# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py37# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py39# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py63# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py65# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py424# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py426# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py470# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py472# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py512# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py514# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py552# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py554# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py624# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py626# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py647# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py649# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py787# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py789# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py840# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py842# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py852# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py857# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py924# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py926# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py966# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py968# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py1278# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout.py1280# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py1387# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py1389# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout_action_ordering.py101# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_rollout_action_ordering.py103# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py48# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py183# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py185# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py215# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py217# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py243# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py245# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py458# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout_action_ordering.py460# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py89# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py91# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py160# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py162# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py267# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py269# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py586# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py588# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py29# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py31# -----------------------------------------------------------------------------COMMENT
431 more matches not shown…
Unused Imports1098 hits · 998 pts
SeverityFileLineSnippetContext
LOWtests/test_streaming_core_imports.py11CODE
LOWtests/test_robomme_env.py21CODE
LOWtests/test_streaming_sidecar.py11CODE
LOWtests/test_rollout.py17CODE
LOWtests/test_rollout_action_ordering.py26CODE
LOWtests/test_interactive_rollout.py18CODE
LOWtests/distributed/test_accelerate_canaries.py121CODE
LOWtests/distributed/test_accelerate_canaries.py125CODE
LOWtests/distributed/test_accelerate_canaries.py125CODE
LOWtests/async_inference/test_policy_server.py18CODE
LOWtests/async_inference/test_e2e.py30CODE
LOWtests/async_inference/test_robot_client.py20CODE
LOWtests/async_inference/test_robot_client.py254CODE
LOWtests/processor/test_render_messages_runtime.py5CODE
LOWtests/rewards/test_topreward_processor.py17CODE
LOWtests/rewards/test_modeling_topreward.py17CODE
LOWtests/rewards/test_modeling_robometer.py17CODE
LOWtests/rewards/test_robometer_processor.py27CODE
LOWtests/datasets/test_episode_parquet_reader.py11CODE
LOWtests/datasets/test_streaming_production.py11CODE
LOWtests/datasets/test_streaming_mp4_timing.py11CODE
LOWtests/utils/test_stdin_input.py17CODE
LOWtests/policies/test_pretrained_interactive_contracts.py18CODE
LOWtests/policies/test_gaussian_actor_policy.py32CODE
LOWtests/policies/groot/test_groot_vs_original.py52CODE
LOWtests/policies/evo1/test_evo1.py17CODE
LOWtests/policies/vla_jepa/conftest.py19CODE
LOWtests/policies/vla_jepa/test_vla_jepa.py17CODE
LOWtests/policies/vla_jepa/test_world_model.py17CODE
LOWtests/policies/vla_jepa/test_action_head.py17CODE
LOWtests/policies/vla_jepa/test_configuration_vla_jepa.py17CODE
LOWtests/policies/vla_jepa/test_processor_vla_jepa.py27CODE
LOWtests/policies/lawam/test_lawam.py17CODE
LOWtests/policies/molmoact2/test_molmoact2.py19CODE
LOWtests/policies/pi0_pi05/utils/openpi_parity.py17CODE
LOWtests/policies/eo1/test_eo1.py19CODE
LOW…s/policies/lingbot_va/test_configuration_lingbot_va.py17CODE
LOWtests/policies/lingbot_va/test_factory.py17CODE
LOWtests/policies/lingbot_va/test_processor.py17CODE
LOWtests/policies/lingbot_va/test_modules.py19CODE
LOWtests/annotations/conftest.py23CODE
LOWtests/annotations/test_frames.py30CODE
LOWtests/annotations/test_writer.py18CODE
LOWtests/annotations/test_vlm_client.py18CODE
LOWtests/annotations/run_e2e_smoke.py25CODE
LOWtests/annotations/test_validator.py18CODE
LOWtests/annotations/test_modules.py18CODE
LOWtests/annotations/test_pipeline_recipe_render.py18CODE
LOWtests/annotations/_helpers.py18CODE
LOWtests/scripts/test_train_remote_dispatch.py25CODE
LOWtests/jobs/conftest.py17CODE
LOWtests/envs/test_dispatch.py3CODE
LOWtests/envs/test_robocasa.py1CODE
LOWtests/envs/test_robotwin.py23CODE
LOWtests/envs/test_freeze_after_episode_end.py21CODE
LOWexamples/dataset/create_progress_videos.py38CODE
LOWexamples/omx/record_grab.py30CODE
LOWexamples/omx/record_grab.py31CODE
LOWexamples/backward_compatibility/replay.py39CODE
LOWexamples/backward_compatibility/replay.py39CODE
1038 more matches not shown…
Over-Commented Block899 hits · 869 pts
SeverityFileLineSnippetContext
LOWconftest.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOW.pre-commit-config.yaml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOW.pre-commit-config.yaml101 types_or: [python, pyi, toml]COMMENT
LOWpyproject.toml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWpyproject.toml141# ── User-facing composite extras (map to CLI scripts) ─────COMMENT
LOWpyproject.toml301pusht = ["lerobot[dataset]", "gym-pusht>=0.1.5,<0.2.0", "pymunk>=6.6.0,<7.0.0"] # TODO: Fix pymunk version in gym-pusht COMMENT
LOWpyproject.toml421target-version = "py312"COMMENT
LOWsetup.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/conftest.py1#!/usr/bin/env pythonCOMMENT
LOWtests/test_available.py1#!/usr/bin/env pythonCOMMENT
LOWtests/test_robomme_env.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/__init__.py1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/test_control_robot.py1#!/usr/bin/env pythonCOMMENT
LOWtests/test_rollout.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/test_rollout_action_ordering.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/utils.py1#!/usr/bin/env pythonCOMMENT
LOWtests/test_interactive_rollout.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOW…age_transforms/save_image_transforms_to_safetensors.py1#!/usr/bin/env pythonCOMMENT
LOWtests/artifacts/datasets/save_dataset_to_safetensors.py1#!/usr/bin/env pythonCOMMENT
LOWtests/artifacts/policies/save_policy_to_safetensors.py1#!/usr/bin/env pythonCOMMENT
LOWtests/transport/test_transport_utils.py1#!/usr/bin/env pythonCOMMENT
LOWtests/distributed/test_checkpoint_wrappers.py1#!/usr/bin/env pythonCOMMENT
LOWtests/distributed/test_parallel_dims_and_factory.py1#!/usr/bin/env pythonCOMMENT
LOWtests/distributed/test_accelerate_canaries.py1#!/usr/bin/env pythonCOMMENT
LOWtests/distributed/test_policy_surface.py1#!/usr/bin/env pythonCOMMENT
LOWtests/distributed/test_multigpu_training.py1#!/usr/bin/env pythonCOMMENT
LOWtests/async_inference/test_policy_server.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/async_inference/test_e2e.py1# Copyright 2025 The HuggingFace Inc. team.COMMENT
LOWtests/async_inference/test_helpers.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/async_inference/test_robot_client.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/motors/test_feetech.py1#!/usr/bin/env pythonCOMMENT
LOWtests/motors/test_motors_bus.py1#!/usr/bin/env pythonCOMMENT
LOWtests/motors/test_dynamixel.py1#!/usr/bin/env pythonCOMMENT
LOWtests/training/test_ema.py1#!/usr/bin/env pythonCOMMENT
LOWtests/training/test_visual_validation.py1#!/usr/bin/env pythonCOMMENT
LOWtests/training/test_multi_gpu.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_observation_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_converters.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_diffusion_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_normalize_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_normalize_processor.py1161# """Test that unsupported normalization modes raise appropriate errors."""COMMENT
LOWtests/processor/test_act_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_image_augmentation_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_pi05_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_tokenizer_processor.py1#!/usr/bin/env pythonCOMMENT
LOW…sts/processor/test_pipeline_from_pretrained_helpers.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_smolvla_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_pi0_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_gaussian_actor_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_device_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_batch_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_pi_tokenizer_configuration.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_vqbet_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_libero_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_rename_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_tdmpc_processor.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_batch_conversion.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_pipeline.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_migration_detection.py1#!/usr/bin/env pythonCOMMENT
LOWtests/processor/test_policy_robot_bridge.py1#!/usr/bin/env pythonCOMMENT
839 more matches not shown…
Cross-File Repetition90 hits · 450 pts
SeverityFileLineSnippetContext
HIGHtests/motors/test_feetech.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.STRING
HIGHtests/motors/test_dynamixel.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.STRING
HIGHtests/cameras/test_realsense.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.STRING
HIGHtests/cameras/test_opencv.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.STRING
HIGHtests/processor/test_diffusion_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptationSTRING
HIGHtests/processor/test_act_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptationSTRING
HIGHtests/processor/test_smolvla_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptationSTRING
HIGHtests/processor/test_gaussian_actor_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptationSTRING
HIGHtests/processor/test_vqbet_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptationSTRING
HIGHtests/processor/test_tdmpc_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptationSTRING
HIGHtests/policies/xvla/test_xvla_original_vs_lerobot.py0set random seed for all rng sources to ensure reproducibility.STRING
HIGHtests/policies/groot/test_groot_lerobot.py0set random seed for all rng sources to ensure reproducibility.STRING
HIGH…policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py0set random seed for all rng sources to ensure reproducibility.STRING
HIGHtests/policies/smolvla/test_smolvla_rtc.py0test pi0 policy inference with rtc but no previous chunk (rtc should have no effect).STRING
HIGHtests/policies/pi0_pi05/test_pi05_rtc.py0test pi0 policy inference with rtc but no previous chunk (rtc should have no effect).STRING
HIGHtests/policies/pi0_pi05/test_pi0_rtc.py0test pi0 policy inference with rtc but no previous chunk (rtc should have no effect).STRING
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0enable gradient checkpointing for memory optimization.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0enable gradient checkpointing for memory optimization.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0enable gradient checkpointing for memory optimization.STRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0enable gradient checkpointing for memory optimization.STRING
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0helper method to apply gradient checkpointing if enabled.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0helper method to apply gradient checkpointing if enabled.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0helper method to apply gradient checkpointing if enabled.STRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0helper method to apply gradient checkpointing if enabled.STRING
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0embed noisy_actions, timestep to prepare for expert gemma processing.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0embed noisy_actions, timestep to prepare for expert gemma processing.STRING
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0embed noisy_actions, timestep to prepare for expert gemma processing.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0embed noisy_actions, timestep to prepare for expert gemma processing.STRING
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0apply one denoising step of the noise `x_t` at a given timestep.STRING
HIGH…c/lerobot/policies/fineart_vla/modeling_fineart_vla.py0apply one denoising step of the noise `x_t` at a given timestep.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0apply one denoising step of the noise `x_t` at a given timestep.STRING
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0apply one denoising step of the noise `x_t` at a given timestep.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0apply one denoising step of the noise `x_t` at a given timestep.STRING
HIGHsrc/lerobot/teleoperators/teleoperator.py0context manager entry. automatically connects to the camera.STRING
HIGHsrc/lerobot/cameras/camera.py0context manager entry. automatically connects to the camera.STRING
HIGHsrc/lerobot/robots/robot.py0context manager entry. automatically connects to the camera.STRING
HIGHsrc/lerobot/teleoperators/teleoperator.py0context manager exit. automatically disconnects, ensuring resources are released even on error.STRING
HIGHsrc/lerobot/cameras/camera.py0context manager exit. automatically disconnects, ensuring resources are released even on error.STRING
HIGHsrc/lerobot/robots/robot.py0context manager exit. automatically disconnects, ensuring resources are released even on error.STRING
HIGHsrc/lerobot/teleoperators/teleoperator.py0destructor safety net. attempts to disconnect if the object is garbage collected without cleanup.STRING
HIGHsrc/lerobot/cameras/camera.py0destructor safety net. attempts to disconnect if the object is garbage collected without cleanup.STRING
HIGHsrc/lerobot/robots/robot.py0destructor safety net. attempts to disconnect if the object is garbage collected without cleanup.STRING
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py0return the most recent (color) frame captured immediately (peeking). this method is non-blocking and returns whatever isSTRING
HIGHsrc/lerobot/cameras/zmq/camera_zmq.py0return the most recent (color) frame captured immediately (peeking). this method is non-blocking and returns whatever isSTRING
HIGHsrc/lerobot/cameras/reachy2_camera/reachy2_camera.py0return the most recent (color) frame captured immediately (peeking). this method is non-blocking and returns whatever isSTRING
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py0return the most recent (color) frame captured immediately (peeking). this method is non-blocking and returns whatever isSTRING
HIGH…c/lerobot/policies/fineart_vla/modeling_fineart_vla.py0do a full training forward pass and compute the loss.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0do a full training forward pass and compute the loss.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0do a full training forward pass and compute the loss.STRING
HIGHsrc/lerobot/policies/pi0/processor_pi0.py0constructs pre-processor and post-processor pipelines for the pi0fast policy. the pre-processing pipeline prepares inputSTRING
HIGHsrc/lerobot/policies/pi05/processor_pi05.py0constructs pre-processor and post-processor pipelines for the pi0fast policy. the pre-processing pipeline prepares inputSTRING
HIGHsrc/lerobot/policies/pi0_fast/processor_pi0_fast.py0constructs pre-processor and post-processor pipelines for the pi0fast policy. the pre-processing pipeline prepares inputSTRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0fix state dict keys to match current model architecture.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0fix state dict keys to match current model architecture.STRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0fix state dict keys to match current model architecture.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0initialize rtc processor if rtc is enabled in config.STRING
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0initialize rtc processor if rtc is enabled in config.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0initialize rtc processor if rtc is enabled in config.STRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0initialize rtc processor if rtc is enabled in config.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0preprocess images for the model. images from lerobot are typically in [b, c, h, w] format and normalized to [0, 1]. paliSTRING
30 more matches not shown…
Docstring Block Structure73 hits · 365 pts
SeverityFileLineSnippetContext
HIGHutils/check_docstrings.py161Evaluate one node of a arithmetic-only AST. Args: node (`ast.AST`): The node to evaluate. STRING
HIGHsrc/lerobot/distributed/checkpoint.py83The accelerator's FSDP plugin, required by every DCP save/load helper below. Args: accelerator (AcceleratorSTRING
HIGHsrc/lerobot/distributed/factory.py70Resolve the topology against the launched world and build the `Accelerator`. Must run once per process, before any STRING
HIGHsrc/lerobot/distributed/parallel_dims.py45Bind a *resolved* config to the actual runtime world size (cross-checked here). Args: cfg (ParallelSTRING
HIGHsrc/lerobot/processor/normalize_processor.py308 Core logic to apply a normalization or unnormalization transformation to a tensor. This method selectsSTRING
HIGHsrc/lerobot/processor/env_processor.py111 Convert batched quaternions to axis-angle format. Only accepts torch tensors of shape (B, 4). STRING
HIGHsrc/lerobot/processor/pipeline.py79A class decorator to register a ProcessorStep. Args: name: The name to register the class under. IfSTRING
HIGHsrc/lerobot/processor/pipeline.py110Retrieves a processor step class from the registry by its name. Args: name: The name of the step toSTRING
HIGHsrc/lerobot/processor/pipeline.py665Loads a pipeline from a local directory, single file, or Hugging Face Hub repository. This method implements a STRING
HIGHsrc/lerobot/processor/pipeline.py841Load configuration from local file or Hugging Face Hub. This method implements a super-simplified 3-way loadingSTRING
HIGHsrc/lerobot/processor/pipeline.py978Build all processor steps with overrides and state loading. This method orchestrates the complete step construcSTRING
HIGHsrc/lerobot/processor/pipeline.py1141Resolve step class from registry or import path. This method implements a two-tier resolution strategy: STRING
HIGHsrc/lerobot/processor/pipeline.py1212Instantiate a single processor step with config overrides. This method handles the configuration merging and inSTRING
HIGHsrc/lerobot/processor/converters.py54 Convert various data types to PyTorch tensors with configurable options. This is a unified tensor conversion fSTRING
HIGHsrc/lerobot/processor/converters.py353 Convert a batch dictionary from a dataset/dataloader into an `EnvTransition`. This function maps recognized keSTRING
HIGHsrc/lerobot/processor/observation_processor.py56 Processes a single NumPy image array into a channel-first, normalized tensor. Args: img: ASTRING
HIGHsrc/lerobot/rewards/factory.py35 Retrieves a reward model class by its registered name. This function uses dynamic imports to avoid loading allSTRING
HIGHsrc/lerobot/rewards/factory.py75 Instantiates a reward model configuration object based on the reward type. This factory function simplifies thSTRING
HIGHsrc/lerobot/rewards/factory.py157 Create pre- and post-processor pipelines for a given reward model. Each reward model type has a dedicated factSTRING
HIGHsrc/lerobot/datasets/aggregate.py124Validates that all dataset metadata have consistent properties. Ensures all datasets have the same fps, robot_type,STRING
HIGHsrc/lerobot/datasets/aggregate.py729Appends data to an existing parquet file or creates a new one based on size constraints. Manages file rotation whenSTRING
HIGHsrc/lerobot/datasets/compute_stats.py714Compute normalization statistics for relative actions over the full dataset. Iterates *all* valid action chunks (wiSTRING
HIGHsrc/lerobot/datasets/dataset_metadata.py313Return the relative parquet file path for the given episode index. Args: ep_index: Zero-based episoSTRING
HIGHsrc/lerobot/datasets/dataset_metadata.py337Return the relative video file path for the given episode and video key. Args: ep_index: Zero-basedSTRING
HIGHsrc/lerobot/datasets/factory.py109Handles the logic of setting up delta timestamps and image transforms before creating a dataset. Args: cfg STRING
HIGHsrc/lerobot/datasets/utils.py339Serialize a dictionary containing tensors or numpy arrays to be JSON-compatible. Converts torch.Tensor, np.ndarray,STRING
HIGHsrc/lerobot/datasets/utils.py446Return the specified version if available on repo, or the latest compatible one. If the exact version is not found,STRING
HIGHsrc/lerobot/datasets/feature_utils.py42Convert a LeRobot features dictionary to a `datasets.Features` object. Args: features (dict): A LeRobot-stySTRING
HIGHsrc/lerobot/datasets/feature_utils.py177Check if delta timestamps are multiples of 1/fps +/- tolerance. This ensures that adding these delta timestamps to STRING
HIGHsrc/lerobot/datasets/feature_utils.py287Validate the dtype and shape of a single feature's value. Args: name (str): The name of the feature. STRING
HIGHsrc/lerobot/datasets/lerobot_dataset.py582Return one frame or a slice of frames, with all transforms applied. Loads the frame from the underlying HF dataSTRING
HIGHsrc/lerobot/datasets/depth_utils.py77Quantize depth to 12-bit codes (``uint16``, values ``0…DEPTH_QMAX``). Depth maps are packed into 12-bit integer fraSTRING
HIGHsrc/lerobot/datasets/depth_utils.py165Inverse of :func:`quantize_depth`. Decoding inverts the same normalized code mapping as :func:`quantize_depth` STRING
HIGHsrc/lerobot/teleoperators/phone/phone_processor.py48 Processes the phone action dictionary to create a robot action dictionary. Args: act: The STRING
HIGHsrc/lerobot/teleoperators/homunculus/homunculus_arm.py147Interactively record the min/max encoder values of each joint. Move the joints while the method streams live poSTRING
HIGH…c/lerobot/teleoperators/homunculus/homunculus_glove.py178Interactively record the min/max encoder values of each joint. Move the joints while the method streams live poSTRING
HIGHsrc/lerobot/optim/optimizers.py171 Build AdamW optimizer with differential learning rates. Args: params: Must be a dict[str, STRING
HIGHsrc/lerobot/optim/optimizers.py258Build multiple Adam optimizers. Args: params: Must be a dict[str, Iterable[Parameter]] mapping paraSTRING
HIGHsrc/lerobot/utils/feature_utils.py141Convert dataset features to policy features. This function transforms the dataset's feature specification into a foSTRING
HIGHsrc/lerobot/utils/feature_utils.py187Merge LeRobot grouped feature dicts. - For 1D numeric specs (dtype not image/video/string) with "names": we merge tSTRING
HIGHsrc/lerobot/utils/eval_stats.py46Wilson score interval for a binomial proportion. Preferred over the normal-approximation ("Wald") interval because STRING
HIGHsrc/lerobot/utils/eval_stats.py141Two-sided Fisher's exact test on two success counts. Answers "could these two success rates come from the same undeSTRING
HIGHsrc/lerobot/cameras/camera.py123Return the most recent new frame. This method retrieves the latest frame captured by the background thread. STRING
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py418 Applies color conversion, dimension validation, and rotation to a raw frame. Args: image (STRING
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py544 Reads the latest available frame asynchronously. This method retrieves the most recent frame captured STRING
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py625 Applies color conversion, dimension validation, and rotation to a raw color frame. Args: iSTRING
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py793 Reads the latest available frame data (color) asynchronously. This method retrieves the most recent coSTRING
HIGHsrc/lerobot/cameras/zmq/camera_zmq.py309 Reads the latest available frame asynchronously. Args: timeout_ms (float): Maximum time inSTRING
HIGHsrc/lerobot/policies/factory.py57 Retrieves a policy class by its registered name. Resolution is convention-based: the draccus-registered configSTRING
HIGHsrc/lerobot/policies/factory.py105 Instantiates a policy configuration object based on the policy type. This factory function simplifies the creaSTRING
HIGHsrc/lerobot/policies/factory.py161 Create or load pre- and post-processor pipelines for a given policy. This function acts as a factory. It can eSTRING
HIGHsrc/lerobot/policies/factory.py229 Instantiate a policy model. This factory function handles the logic of creating a policy, which requires dSTRING
HIGHsrc/lerobot/policies/xvla/processor_xvla.py161 Convert batched rotation matrices (B, 3, 3) into 6D rotation representation (B, 6). Args: STRING
HIGHsrc/lerobot/policies/fineart_vla/fit_fast_tokenizer.py242Fit a FAST tokenizer on a LeRobot dataset's action distribution. Args: dataset_repo_id: HF Hub repo id of tSTRING
HIGHsrc/lerobot/policies/rtc/modeling_rtc.py131RTC guidance wrapper around an existing denoiser. This method wraps an original denoising callable that only taSTRING
HIGHsrc/lerobot/streaming/episode_cache.py258Decode source-timeline timestamps from an episode-local MP4. Args: episode_index (`int`): STRING
HIGHsrc/lerobot/streaming/episode_parquet.py67Read and validate one complete episode with column projection. Args: relative_path (`str | Path`): STRING
HIGHsrc/lerobot/common/train_utils.py365Phase 1 — before `accelerator.prepare()`: restore RNG and return the step counter. Pure loaders only. The sampler rSTRING
HIGHsrc/lerobot/common/train_utils.py582Download the latest checkpoint of a Hub training repo into a local run dir. The symmetric counterpart to `push_checSTRING
HIGHsrc/lerobot/transforms/transforms.py1523Build the batched transform for a configured type. Types with a batched implementation (`_BATCHED_TRANSFORMS`) get STRING
13 more matches not shown…
Modern Structural Boilerplate286 hits · 286 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_lerobot_dataset.py52def _set_default_cache_root(monkeypatch: pytest.MonkeyPatch, cache_root: Path) -> None:CODE
LOW⚡tests/policies/vla_jepa/conftest.py54def set_seed_all(seed: int) -> None:CODE
LOWtests/envs/test_dispatch.py19logger = logging.getLogger(__name__)CODE
LOWexamples/omx/record_grab.py133logger = logging.getLogger(__name__)CODE
LOWexamples/omx/reset_environment.py33logger = logging.getLogger(__name__)CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py30__all__ = [CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/base.py67logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/__init__.py51__all__ = ["__version__", "available_extras"]CODE
LOWsrc/lerobot/distributed/__init__.py35__all__ = [CODE
LOWsrc/lerobot/distributed/factory.py104def set_fsdp_wrap_modules(accelerator: "Accelerator", policy: "PreTrainedPolicy") -> None:CODE
LOWsrc/lerobot/motors/__init__.py23__all__ = ["Motor", "MotorCalibration", "MotorNormMode"]CODE
LOWsrc/lerobot/motors/motors_bus.py55logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/motors_bus.py711 def set_baudrate(self, baudrate: int) -> None:CODE
LOWsrc/lerobot/motors/motors_bus.py1199 def _setup_sync_reader(self, motor_ids: list[int], addr: int, length: int) -> None:CODE
LOWsrc/lerobot/motors/motors_bus.py1286 def _setup_sync_writer(self, ids_values: dict[int, int], addr: int, length: int) -> None:CODE
LOWsrc/lerobot/motors/robstride/__init__.py20__all__ = ["RobstrideMotorsBus"]CODE
LOWsrc/lerobot/motors/robstride/robstride.py57logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/robstride/robstride.py426 def set_zero_position(self, motors: str | list[str] | None = None) -> None:CODE
LOWsrc/lerobot/motors/dynamixel/dynamixel.py50logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/dynamixel/__init__.py20__all__ = ["DriveMode", "DynamixelMotorsBus", "OperatingMode", "TorqueMode"]CODE
LOWsrc/lerobot/motors/damiao/__init__.py20__all__ = ["DamiaoMotorsBus"]CODE
LOWsrc/lerobot/motors/damiao/damiao.py58logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/damiao/damiao.py334 def set_zero_position(self, motors: str | list[str] | None = None) -> None:CODE
LOWsrc/lerobot/motors/feetech/feetech.py49logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/feetech/__init__.py20__all__ = ["DriveMode", "FeetechMotorsBus", "OperatingMode", "TorqueMode"]CODE
LOWsrc/lerobot/processor/hil_processor.py82def _set_event(info: dict[str, Any], event: TeleopEvents, value: Any) -> None:CODE
LOWsrc/lerobot/processor/relative_action_processor.py33__all__ = [CODE
LOWsrc/lerobot/processor/__init__.py106__all__ = [CODE
LOWsrc/lerobot/rewards/__init__.py27__all__ = [CODE
LOWsrc/lerobot/rewards/classifier/__init__.py19__all__ = ["RewardClassifierConfig", "Classifier", "make_classifier_processor"]CODE
LOWsrc/lerobot/rewards/sarm/__init__.py19__all__ = ["SARMConfig", "SARMRewardModel", "make_sarm_pre_post_processors"]CODE
LOWsrc/lerobot/rewards/sarm/processor_sarm.py78logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/rewards/robometer/modeling_robometer.py69logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/rewards/robometer/__init__.py19__all__ = ["RobometerConfig", "RobometerRewardModel", "make_robometer_pre_post_processors"]CODE
LOWsrc/lerobot/rewards/topreward/modeling_topreward.py82logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/rewards/topreward/__init__.py19__all__ = ["TOPRewardConfig", "TOPRewardModel", "make_topreward_pre_post_processors"]CODE
LOWsrc/lerobot/datasets/pyav_utils.py29logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/aggregate.py54logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/video_utils.py58logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/streaming_dataset.py533 def update_frontier() -> None:CODE
LOWsrc/lerobot/datasets/streaming_dataset.py847 def set_epoch(self, epoch: int) -> None:CODE
LOWsrc/lerobot/datasets/compute_stats.py29logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/compute_stats.py172 def _update_histograms(self, batch: np.ndarray) -> None:CODE
LOWsrc/lerobot/datasets/__init__.py57__all__ = [CODE
LOWsrc/lerobot/datasets/dataset_metadata.py62logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/factory.py36logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/image_writer.py27logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/dataset_writer.py70logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/utils.py89logger = logging.getLogger(__name__)STRING
LOWsrc/lerobot/datasets/dataset_tools.py84logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/feature_utils.py38logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py49logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py634 def set_image_transforms(self, image_transforms: Callable | None) -> None:CODE
LOWsrc/lerobot/datasets/dataset_reader.py100 def set_image_transforms(self, image_transforms: Callable | None) -> None:CODE
LOWsrc/lerobot/datasets/sampler.py23logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/sampler.py118 def set_epoch(self, epoch: int) -> None:CODE
LOWsrc/lerobot/datasets/multi_dataset.py31logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/multi_dataset.py103 def set_image_transforms(self, image_transforms: Callable | None) -> None:CODE
LOWsrc/lerobot/teleoperators/__init__.py21__all__ = ["Teleoperator", "TeleoperatorConfig", "TeleopEvents", "make_teleoperator_from_config"]CODE
LOW…t/teleoperators/bi_openarm_leader/bi_openarm_leader.py28logger = logging.getLogger(__name__)CODE
226 more matches not shown…
Self-Referential Comments89 hits · 278 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/async_inference/test_policy_server.py155 # Create a new, dissimilar observation.COMMENT
MEDIUM⚡tests/async_inference/test_policy_server.py166 # Create a new, very similar observation.COMMENT
MEDIUMtests/async_inference/test_e2e.py64 # Create a stub policy similar to test_policy_server.pyCOMMENT
MEDIUMtests/async_inference/test_helpers.py421 # Create an image with a specific patternCOMMENT
MEDIUMtests/processor/test_observation_processor.py33 # Create a mock image (H, W, C) format, uint8COMMENT
MEDIUMtests/processor/test_observation_processor.py82 # Create a batched image (B, H, W, C)COMMENT
MEDIUMtests/processor/test_normalize_processor.py809 # Create a new processor from the config (deserialization)COMMENT
MEDIUMtests/processor/test_normalize_processor.py1164# # Create an invalid norm_map (this would never happen in practice, but tests error handling)COMMENT
MEDIUMtests/processor/test_normalize_processor.py1771 # Create a normalizer with original stats and save its stateCOMMENT
MEDIUMtests/processor/test_normalize_processor.py1775 # Create a new normalizer with override stats (simulating from_pretrained with overrides)COMMENT
MEDIUMtests/processor/test_normalize_processor.py1838 # Create a normalizer with original stats and save its stateCOMMENT
MEDIUMtests/processor/test_normalize_processor.py1842 # Create a new normalizer without stats (simulating normal from_pretrained)COMMENT
MEDIUMtests/processor/test_normalize_processor.py1966 # Create a reference pipeline with override stats for comparisonCOMMENT
MEDIUMtests/processor/test_tokenizer_processor.py675 # Create a custom mock that tracks callsCOMMENT
MEDIUMtests/processor/test_tokenizer_processor.py836 # Create a mock tokenizer that tracks padding_side callsCOMMENT
MEDIUM…sts/processor/test_pipeline_from_pretrained_helpers.py49 # Create a config fileCOMMENT
MEDIUM…sts/processor/test_pipeline_from_pretrained_helpers.py66 # Create a config fileCOMMENT
MEDIUMtests/processor/test_device_processor.py32 # Create a transition with CPU tensorsCOMMENT
MEDIUMtests/processor/test_device_processor.py59 # Create a transition with CPU tensorsCOMMENT
MEDIUMtests/processor/test_device_processor.py290 # Create a pipeline with DeviceProcessorStepCOMMENT
MEDIUM⚡tests/processor/test_pipeline.py1099 # Create a processor with steps that need overridesCOMMENT
MEDIUM⚡tests/processor/test_pipeline.py1109 # Create a mock environment for overrideCOMMENT
MEDIUMtests/processor/test_pipeline.py80 # Create a new transition with updated complementary_dataCOMMENT
MEDIUMtests/processor/test_pipeline.py1850 # Define a transform functionCOMMENT
MEDIUM⚡tests/processor/test_migration_detection.py189 # Create an invalid JSON fileCOMMENT
MEDIUM⚡tests/processor/test_migration_detection.py193 # Create a valid non-processor configCOMMENT
MEDIUMtests/processor/test_migration_detection.py69 # Create a valid processor configCOMMENT
MEDIUMtests/processor/test_migration_detection.py93 # Create an empty processor configCOMMENT
MEDIUMtests/processor/test_migration_detection.py112 # Create a model config (like old LeRobot format)COMMENT
MEDIUMtests/processor/test_migration_detection.py234 # Create a model config but no processorCOMMENT
MEDIUMtests/processor/test_migration_detection.py256 # Create a valid processor configCOMMENT
MEDIUMtests/processor/test_migration_detection.py335 # Create a model configCOMMENT
MEDIUMtests/datasets/test_datasets.py805 # Create a dataset with 5 episodes (0-4)COMMENT
MEDIUMtests/datasets/test_datasets.py839 # Create a dataset with only episodes 0, 1, 2COMMENT
MEDIUMtests/datasets/test_datasets.py866 # Create a filtered datasetCOMMENT
MEDIUMtests/optim/test_optimizers.py181 # Create a dummy loss and do backwardCOMMENT
MEDIUMtests/utils/test_replay_buffer.py590 # Create a batch of 2 images with known patternsCOMMENT
MEDIUMtests/policies/pi0_pi05/openpi_pytorch/gemma_pytorch.py170 # Define the complete layer computation function for gradient checkpointingCOMMENT
MEDIUM…icies/pi0_pi05/openpi_pytorch/preprocessing_pytorch.py165 # Create a simple object with the required attributes instead of using the complex Observation classCOMMENT
MEDIUM⚡tests/rl/test_learner_service.py67 # Create a gRPC server and add our servicer to it.COMMENT
MEDIUM⚡tests/rl/test_learner_service.py73 # Create a client channel and stub connected to the server's port.COMMENT
MEDIUMtests/rl/test_actor.py54 # Create a gRPC server and add our servicer to it.COMMENT
MEDIUMtests/rl/test_actor.py60 # Create a client channel and stub connected to the server's port.COMMENT
MEDIUMexamples/tutorial/act/act_training_example.py58 # Create the optimizer and dataloader for offline trainingCOMMENT
MEDIUM…mples/tutorial/diffusion/diffusion_training_example.py59 # Create the optimizer and dataloader for offline trainingCOMMENT
MEDIUMexamples/so100_to_so100_EE/record.py51 # Create the robot and teleoperator configurationsCOMMENT
MEDIUMexamples/so100_to_so100_EE/record.py117 # Create the dataset, deriving features from the pipelines so the on-disk schemaCOMMENT
MEDIUMexamples/so100_to_so100_EE/evaluate.py61 # Create the robot configuration & robotCOMMENT
MEDIUMexamples/so100_to_so100_EE/evaluate.py106 # Create the datasetCOMMENT
MEDIUMexamples/training/train_policy.py29 # Create a directory to store the training checkpoint.COMMENT
MEDIUMexamples/training/train_with_streaming.py35 # Create a directory to store the training checkpoint.COMMENT
MEDIUMexamples/lekiwi/record.py38 # Create the robot and teleoperator configurationsCOMMENT
MEDIUMexamples/lekiwi/record.py53 # Create the datasetCOMMENT
MEDIUMexamples/lekiwi/evaluate.py46 # Create the robot configuration & robotCOMMENT
MEDIUMexamples/lekiwi/evaluate.py59 # Create the datasetCOMMENT
MEDIUMexamples/lekiwi/teleoperate.py29 # Create the robot and teleoperator configurationsCOMMENT
MEDIUMexamples/phone_to_so100/record.py54 # Create the robot and teleoperator configurationsCOMMENT
MEDIUMexamples/phone_to_so100/record.py122 # Create the dataset, deriving features from the pipelines so the on-disk schemaCOMMENT
MEDIUMexamples/phone_to_so100/evaluate.py61 # Create the robot configuration & robotCOMMENT
MEDIUMexamples/phone_to_so100/evaluate.py106 # Create the datasetCOMMENT
29 more matches not shown…
Deep Nesting280 hits · 259 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py63CODE
LOWtests/distributed/test_multigpu_training.py118CODE
LOWtests/distributed/test_multigpu_training.py247CODE
LOWtests/processor/test_image_augmentation_processor.py269CODE
LOWtests/datasets/test_depth.py256CODE
LOWtests/datasets/test_datasets.py1172CODE
LOWtests/datasets/test_compute_stats.py272CODE
LOWtests/datasets/test_dataset_writer.py40CODE
LOWtests/datasets/test_streaming.py70CODE
LOWtests/datasets/test_streaming.py210CODE
LOWtests/datasets/test_streaming.py291CODE
LOWtests/datasets/test_lance_backend.py449CODE
LOWtests/datasets/test_aggregate.py454CODE
LOWtests/datasets/test_aggregate.py922CODE
LOWtests/utils/test_replay_buffer.py116CODE
LOWtests/utils/test_replay_buffer.py365CODE
LOWtests/policies/groot/test_groot_n1_7_oss_parity.py140CODE
LOWtests/policies/pi0_pi05/openpi_pytorch/gemma_pytorch.py104CODE
LOW…icies/pi0_pi05/openpi_pytorch/preprocessing_pytorch.py20CODE
LOWtests/annotations/run_e2e_smoke.py44CODE
LOWtests/annotations/_helpers.py26CODE
LOWtests/annotations/_helpers.py37CODE
LOWutils/check_docstrings.py131CODE
LOWutils/check_docstrings.py202CODE
LOWutils/check_docstrings.py298CODE
LOWutils/check_config_docstrings.py98CODE
LOWexamples/tutorial/rl/hilserl_example.py27CODE
LOWexamples/tutorial/rl/hilserl_example.py115CODE
LOWexamples/so100_to_so100_EE/evaluate.py57CODE
LOWexamples/dataset/slurm_compute_rabc.py62CODE
LOWexamples/dataset/use_dataset_image_transforms.py46CODE
LOWexamples/dataset/use_dataset_image_transforms.py86CODE
LOWexamples/dataset/use_dataset_image_transforms.py135CODE
LOWexamples/lekiwi/evaluate.py42CODE
LOWexamples/port_datasets/slurm_upload.py108CODE
LOWexamples/isaac_teleop_to_so101/common.py237CODE
LOWexamples/isaac_teleop_to_so101/record.py172CODE
LOWexamples/phone_to_so100/evaluate.py57CODE
LOWscripts/ci/extract_task_descriptions.py160CODE
LOWsrc/lerobot/transport/utils.py73CODE
LOWsrc/lerobot/async_inference/robot_client.py276CODE
LOWsrc/lerobot/motors/calibration_gui.py98CODE
LOWsrc/lerobot/motors/calibration_gui.py320CODE
LOWsrc/lerobot/motors/calibration_gui.py356CODE
LOWsrc/lerobot/motors/motors_bus.py431CODE
LOWsrc/lerobot/motors/motors_bus.py854CODE
LOWsrc/lerobot/motors/motors_bus.py883CODE
LOWsrc/lerobot/motors/robstride/robstride.py280CODE
LOWsrc/lerobot/motors/robstride/robstride.py381CODE
LOWsrc/lerobot/motors/robstride/robstride.py395CODE
LOWsrc/lerobot/motors/robstride/robstride.py438CODE
LOWsrc/lerobot/motors/robstride/robstride.py481CODE
LOWsrc/lerobot/motors/robstride/robstride.py840CODE
LOWsrc/lerobot/motors/robstride/robstride.py962CODE
LOWsrc/lerobot/motors/damiao/damiao.py295CODE
LOWsrc/lerobot/motors/damiao/damiao.py308CODE
LOWsrc/lerobot/motors/damiao/damiao.py354CODE
LOWsrc/lerobot/motors/damiao/damiao.py394CODE
LOWsrc/lerobot/motors/damiao/damiao.py704CODE
LOWsrc/lerobot/motors/damiao/damiao.py759CODE
220 more matches not shown…
Excessive Try-Catch Wrapping218 hits · 237 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py76 except Exception as e:CODE
LOWtests/distributed/test_multigpu_training.py113 except Exception as error: # noqa: PERF203CODE
LOWtests/datasets/test_aggregate.py285 except Exception as e:CODE
LOWtests/policies/groot/test_groot_vs_original.py104 except Exception as exc: # noqa: BLE001CODE
LOWtests/policies/groot/utils/dump_original_n1_7.py202 except Exception as exc: # noqa: BLE001CODE
LOW…policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py515 except Exception as e:CODE
MEDIUMtests/policies/rtc/test_action_queue.py573def consumer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py607def producer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py637def consumer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py647def producer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py685def reader():CODE
MEDIUMtests/policies/rtc/test_action_queue.py698def consumer():CODE
LOWtests/policies/rtc/test_action_queue.py580 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py614 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py644 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py654 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py692 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py703 except Exception as e:CODE
LOWtests/policies/pi0_pi05/test_pi05.py110 except Exception as e:CODE
LOWtests/policies/pi0_pi05/test_pi05.py119 except Exception as e:CODE
LOWtests/policies/pi0_pi05/test_pi05.py161 except Exception as e:CODE
LOWtests/policies/pi0_pi05/test_pi0.py96 except Exception as e:CODE
LOWtests/policies/pi0_pi05/test_pi0.py106 except Exception as e:CODE
LOWtests/policies/pi0_pi05/test_pi0.py125 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py432 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py451 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py466 except Exception as e:CODE
LOWutils/check_docstrings.py490 except Exception as error: # An optional extra is missing; not this check's problem.CODE
LOWutils/check_docstrings.py522 except Exception as error:CODE
LOWexamples/dataset/create_progress_videos.py192 except Exception as exc:CODE
LOWexamples/dataset/slurm_compute_rabc.py169 except Exception as e:CODE
LOWexamples/dataset/use_dataset_image_transforms.py82 except Exception as e:CODE
LOWexamples/dataset/use_dataset_image_transforms.py131 except Exception as e:CODE
LOWexamples/dataset/use_dataset_image_transforms.py163 except Exception as e:CODE
LOWexamples/port_datasets/slurm_port_shards.py50 except Exception:CODE
LOW⚡examples/rtc/eval_dataset.py415 except Exception as e:CODE
LOWexamples/rtc/eval_dataset.py377 except Exception as e:CODE
LOWexamples/rtc/eval_dataset.py531 except Exception as e:CODE
LOWexamples/isaac_teleop_to_so101/common.py259 except Exception:CODE
LOW⚡examples/isaac_teleop_to_so101/record.py287 except Exception:CODE
LOW⚡examples/isaac_teleop_to_so101/record.py292 except Exception:CODE
LOW⚡examples/isaac_teleop_to_so101/record.py299 except Exception:CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/base.py147 except Exception:CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/base.py151 except Exception:CODE
LOW⚡…c_teleop_to_so101/isaac_teleop/teleop_xr_controller.py109 except Exception:CODE
LOWscripts/ci/extract_task_descriptions.py196 except Exception as exc:CODE
LOWsrc/lerobot/async_inference/robot_client.py462 except Exception as e:CODE
LOWsrc/lerobot/async_inference/policy_server.py265 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py215 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py296 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py339 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py390 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py403 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py477 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py506 except Exception as e:CODE
LOWsrc/lerobot/motors/robstride/robstride.py800 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py199 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py261 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py303 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py316 except Exception as e:CODE
158 more matches not shown…
Hallucination Indicators12 hits · 155 pts
SeverityFileLineSnippetContext
CRITICALtests/policies/molmoact2/test_molmoact2.py2465 optimizer = torch.optim.AdamW(policy.model.model.action_expert.block.parameters())CODE
CRITICALtests/policies/molmoact2/test_molmoact2.py2745 model.model.action_expert.action_embed.weight.copy_(action_sentinel)CODE
CRITICALtests/policies/molmoact2/test_molmoact2.py2746 model.model.transformer.rotary_emb.inv_freq.copy_(rope_sentinel)CODE
CRITICAL⚡src/lerobot/policies/vqbet/modeling_vqbet.py71 list(self.vqbet.action_head.vqvae_model.encoder.parameters())CODE
CRITICAL⚡src/lerobot/policies/vqbet/modeling_vqbet.py72 + list(self.vqbet.action_head.vqvae_model.decoder.parameters())CODE
CRITICAL⚡src/lerobot/policies/vqbet/modeling_vqbet.py73 + list(self.vqbet.action_head.vqvae_model.vq_layer.parameters())CODE
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py146 if not self.vqbet.action_head.vqvae_model.discretized.item():CODE
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py165 if not self.vqbet.action_head.vqvae_model.discretized.item():CODE
CRITICAL⚡src/lerobot/policies/pi0_fast/modeling_pi0_fast.py260 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_enable(CODE
CRITICAL⚡src/lerobot/policies/pi0_fast/modeling_pi0_fast.py263 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_enable(CODE
CRITICAL⚡src/lerobot/policies/pi0_fast/modeling_pi0_fast.py272 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_disable()CODE
CRITICAL⚡src/lerobot/policies/pi0_fast/modeling_pi0_fast.py273 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_disable()CODE
Empty Error Handlers24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHexamples/tutorial/rl/hilserl_example.py68except Empty:CODE
HIGHexamples/tutorial/rl/hilserl_example.py108except Full:CODE
HIGHexamples/tutorial/rl/hilserl_example.py153except Empty: # No new updated parameters available from learner, waitingCODE
HIGHexamples/port_datasets/slurm_port_shards.py50except Exception:CODE
HIGHexamples/isaac_teleop_to_so101/teleoperate.py101except KeyboardInterrupt:CODE
HIGHsrc/lerobot/datasets/video_utils.py1048except queue.Empty:CODE
HIGHsrc/lerobot/teleoperators/teleoperator.py84except Exception: # nosec B110CODE
HIGHsrc/lerobot/teleoperators/gamepad/gamepad_utils.py162except AttributeError:CODE
HIGHsrc/lerobot/teleoperators/gamepad/gamepad_utils.py183except AttributeError:CODE
HIGHsrc/lerobot/utils/stdin_input.py69except (OSError, ValueError, AttributeError):CODE
HIGHsrc/lerobot/utils/pedal.py76except (FileNotFoundError, PermissionError):CODE
HIGHsrc/lerobot/utils/utils.py331except ImportError:CODE
HIGHsrc/lerobot/cameras/camera.py75except Exception: # nosec B110CODE
HIGHsrc/lerobot/cameras/zmq/image_server.py169except KeyboardInterrupt:CODE
HIGH…c/lerobot/policies/fineart_vla/modeling_fineart_vla.py1351except Exception: # noqa: BLE001 # nosec B110CODE
HIGHsrc/lerobot/policies/molmoact2/processor_molmoact2.py547except (OSError, json.JSONDecodeError, AttributeError):CODE
HIGHsrc/lerobot/streaming/sidecar_utils.py117except (OSError, ValueError, KeyError, TypeError, BadZipFile):CODE
HIGH…c/lerobot/annotations/steerable_pipeline/vlm_client.py102except (ValueError, json.JSONDecodeError):CODE
HIGH…c/lerobot/annotations/steerable_pipeline/vlm_client.py166except (ValueError, json.JSONDecodeError):CODE
HIGHsrc/lerobot/scripts/lerobot_info.py88except ImportError:CODE
HIGHsrc/lerobot/scripts/lerobot_info.py106except PackageNotFoundError:CODE
HIGHsrc/lerobot/scripts/lerobot_teleoperate.py286except KeyboardInterrupt:CODE
HIGHsrc/lerobot/robots/robot.py84except Exception: # nosec B110CODE
HIGHsrc/lerobot/rl/queue.py42except Empty:CODE
AI Structural Patterns115 hits · 106 pts
SeverityFileLineSnippetContext
LOWtests/training/test_multi_gpu.py108CODE
LOWtests/rewards/test_sarm_processor.py50CODE
LOWtests/policies/multi_task_dit/test_multi_task_dit.py89CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py128CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py155CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py182CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py209CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py337CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py364CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py391CODE
LOWsrc/lerobot/transport/services_pb2_grpc.py418CODE
LOWsrc/lerobot/processor/pipeline.py648CODE
LOWsrc/lerobot/rewards/pretrained.py84CODE
LOWsrc/lerobot/rewards/sarm/modeling_sarm.py56CODE
LOWsrc/lerobot/rewards/sarm/modeling_sarm.py193CODE
LOWsrc/lerobot/rewards/topreward/modeling_topreward.py147CODE
LOWsrc/lerobot/datasets/lance_backend.py125CODE
LOWsrc/lerobot/datasets/streaming_dataset.py163CODE
LOWsrc/lerobot/datasets/dataset_tools.py1725CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py53CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py647CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py771CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py885CODE
LOWsrc/lerobot/datasets/depth_utils.py154CODE
LOWsrc/lerobot/datasets/multi_dataset.py41CODE
LOWsrc/lerobot/utils/hub.py167CODE
LOWsrc/lerobot/policies/pretrained.py156CODE
LOWsrc/lerobot/policies/pi_gemma.py228CODE
LOWsrc/lerobot/policies/xvla/modeling_xvla.py418CODE
LOWsrc/lerobot/policies/xvla/soft_transformer.py299CODE
LOW…c/lerobot/policies/fineart_vla/modeling_fineart_vla.py1317CODE
LOWsrc/lerobot/policies/fineart_vla/fit_fast_tokenizer.py66CODE
LOWsrc/lerobot/policies/fineart_vla/fit_fast_tokenizer.py222CODE
LOWsrc/lerobot/policies/pi0/modeling_pi0.py801CODE
LOWsrc/lerobot/policies/groot/modeling_groot.py158CODE
LOWsrc/lerobot/policies/groot/groot_n1_7.py262CODE
LOW…obot/policies/groot/action_head/cross_attention_dit.py91CODE
LOW…obot/policies/groot/action_head/cross_attention_dit.py212CODE
LOW…obot/policies/groot/action_head/cross_attention_dit.py394CODE
LOWsrc/lerobot/policies/smolvla/smolvlm_with_expert.py75CODE
LOWsrc/lerobot/policies/pi05/modeling_pi05.py512CODE
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1102CODE
LOWsrc/lerobot/policies/evo1/modeling_evo1.py75CODE
LOWsrc/lerobot/policies/evo1/internvl3_embedder.py109CODE
LOWsrc/lerobot/policies/evo1/evo1_model.py160CODE
LOWsrc/lerobot/policies/evo1/flow_matching.py115CODE
LOWsrc/lerobot/policies/evo1/flow_matching.py182CODE
LOWsrc/lerobot/policies/evo1/flow_matching.py402CODE
LOWsrc/lerobot/policies/fastwam/wan/video_dit.py412CODE
LOWsrc/lerobot/policies/fastwam/wan/model.py179CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py831CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py918CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py1679CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py1789CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py1907CODE
LOW…bot/policies/gaussian_actor/modeling_gaussian_actor.py626CODE
LOWsrc/lerobot/policies/flux3/f3/video_vae.py617CODE
LOWsrc/lerobot/policies/diffusion/modeling_diffusion.py850CODE
LOWsrc/lerobot/policies/vla_jepa/world_model.py102CODE
LOWsrc/lerobot/policies/vla_jepa/world_model.py258CODE
55 more matches not shown…
Redundant / Tautological Comments58 hits · 90 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_image_transforms.py444 # Check if the combined transforms directory exists and contains the right filesCOMMENT
LOWtests/datasets/test_image_transforms.py463 # Check if the transformed images exist for each transform typeCOMMENT
LOWtests/policies/pi0_pi05/openpi_pytorch/gemma_pytorch.py143 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWtests/policies/pi0_pi05/openpi_pytorch/image_tools.py23 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]COMMENT
LOW…icies/pi0_pi05/openpi_pytorch/preprocessing_pytorch.py42 is_channels_first = image.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWtests/rl/test_learner_service.py266 # Check if the time difference is close to the expected push frequencyCOMMENT
LOWexamples/rtc/eval_dataset.py346 # Check if torch.compile is available (PyTorch 2.0+)COMMENT
LOWsrc/lerobot/processor/pipeline.py1442 # Check if any JSON file is a processor configCOMMENT
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py258 # Set preprocessor to eval mode to disable augmentationsCOMMENT
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py491 # Set preprocessor to eval mode to disable augmentationsCOMMENT
LOWsrc/lerobot/rewards/sarm/rabc.py107 # Check if the requested head mode column existsCOMMENT
LOWsrc/lerobot/datasets/streaming_dataset.py154 # Iterate over the datasetSTRING
LOWsrc/lerobot/datasets/dataset_tools.py669 # Check if video stream exists.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py691 # Set time_base to match the frame rate for proper timestamp handling.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py711 # Check if frame is in any of our desired frame ranges.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py720 # Check if frame is in current range.COMMENT
LOW⚡src/lerobot/teleoperators/gamepad/gamepad_utils.py442 # Check if RB is pressed then the intervention flag should be setCOMMENT
LOW⚡src/lerobot/teleoperators/gamepad/gamepad_utils.py445 # Check if RT is pressedCOMMENT
LOW⚡src/lerobot/teleoperators/gamepad/gamepad_utils.py448 # Check if LT is pressedCOMMENT
LOW⚡src/lerobot/teleoperators/gamepad/gamepad_utils.py451 # Check if Y/Triangle button (bit 7) is pressed for savingCOMMENT
LOW⚡src/lerobot/teleoperators/gamepad/gamepad_utils.py452 # Check if X/Square button (bit 5) is pressed for failureCOMMENT
LOW⚡src/lerobot/teleoperators/gamepad/gamepad_utils.py453 # Check if A/Cross button (bit 4) is pressed for rerecordingCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/teleop_gamepad.py155 # Check if intervention is activeCOMMENT
LOWsrc/lerobot/teleoperators/keyboard/teleop_keyboard.py250 # Check if any movement keys are currently pressed (indicates intervention)COMMENT
LOW…data_processing/sarm_annotations/subtask_annotation.py316 # Check if ffmpeg is availableCOMMENT
LOWsrc/lerobot/utils/import_utils.py58 # Check if the module spec exists using the import nameCOMMENT
LOWsrc/lerobot/utils/import_utils.py72 # Check if the version contains "dev"COMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py353 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py840 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py935 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py944 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1035 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWsrc/lerobot/policies/groot/modeling_groot.py205 # Check if this is a fine-tuned LeRobot checkpoint (has model.safetensors)COMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py563 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1156 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1270 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1279 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py841 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py1006 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWsrc/lerobot/policies/common/vla_utils.py162 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]COMMENT
LOWsrc/lerobot/policies/rtc/debug_tracker.py168 # Check if step with this time already existsCOMMENT
LOWsrc/lerobot/policies/wall_x/utils.py275 # Set labels to None if all are invalid to skip cross entropy lossCOMMENT
LOW⚡src/lerobot/common/control_utils.py113 # Check if dataset_name starts with "eval_" but policy is missingCOMMENT
LOW⚡src/lerobot/common/control_utils.py119 # Check if dataset_name does not start with "eval_" but policy is providedCOMMENT
LOWsrc/lerobot/common/wandb_utils.py139 # Check if this is a PEFT model (has adapter files instead of model.safetensors)COMMENT
LOWsrc/lerobot/transforms/transforms.py1476 # Set this to True to apply them in a random order.COMMENT
LOWsrc/lerobot/scripts/convert_dataset_v21_to_v30.py231 # Check if we need to start a new file BEFORE creating metadataCOMMENT
LOWsrc/lerobot/scripts/convert_dataset_v21_to_v30.py332 # Check if adding this episode would exceed the limitCOMMENT
LOWsrc/lerobot/robots/hope_jr/config_hope_jr.py47 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motorCOMMENT
LOWsrc/lerobot/robots/reachy2/configuration_reachy2.py27 # Set this to a positive scalar to have the same value for all motors.COMMENT
LOWsrc/lerobot/robots/lekiwi/config_lekiwi.py53 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motorCOMMENT
LOWsrc/lerobot/robots/lekiwi/lekiwi.py196 # Set P_Coefficient to lower value to avoid shakiness (Default is 32)COMMENT
LOW…c/lerobot/robots/koch_follower/config_koch_follower.py31 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motorCOMMENT
LOWsrc/lerobot/robots/omx_follower/config_omx_follower.py31 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motorCOMMENT
LOWsrc/lerobot/robots/so_follower/config_so_follower.py34 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motorCOMMENT
LOWsrc/lerobot/envs/vlabench.py566 # Check if it's a suite name, otherwise treat as individual taskCOMMENT
LOWsrc/lerobot/rl/buffer.py646 # Check if the dataset has "next.done" keyCOMMENT
LOWsrc/lerobot/rl/gym_manipulator.py313 # Check if this is a GymHIL simulation environmentCOMMENT
Verbosity Indicators27 hits · 46 pts
SeverityFileLineSnippetContext
LOW⚡tests/processor/test_normalize_processor.py2005 # Step 1: DeviceProcessor converts to bfloat16 + moves to CUDACOMMENT
LOW⚡tests/processor/test_normalize_processor.py2011 # Step 2: NormalizerProcessor receives bfloat16 input and adaptsCOMMENT
LOW⚡tests/datasets/test_aggregate.py879 # Step 3: Create dataset CCOMMENT
LOW⚡tests/datasets/test_aggregate.py887 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURREDCOMMENT
LOW⚡tests/datasets/test_aggregate.py903 # Step 5: Verify all data files referenced in metadata actually existCOMMENT
LOW⚡tests/datasets/test_aggregate.py911 # Step 6: Verify we can iterate through the entire dataset without FileNotFoundErrorCOMMENT
LOWtests/datasets/test_aggregate.py844 # Step 1: Create datasets A and BCOMMENT
LOWtests/datasets/test_aggregate.py858 # Step 2: Merge A+B into AB with small file size to force multiple filesCOMMENT
LOW⚡tests/rl/test_sac_algorithm.py245 # Step 0: should update actorCOMMENT
LOW⚡tests/rl/test_sac_algorithm.py249 # Step 1: should NOT update actorCOMMENT
LOW⚡examples/rtc/eval_dataset.py396 # Step 1: Move policy to CPU to free GPU/MPS memoryCOMMENT
LOW⚡examples/rtc/eval_dataset.py399 # Step 2: Delete the policy objectCOMMENT
LOW⚡examples/rtc/eval_dataset.py402 # Step 3: Force garbage collection to reclaim memory immediatelyCOMMENT
LOW⚡examples/rtc/eval_dataset.py405 # Step 4: Clear device-specific cachesCOMMENT
LOW⚡examples/rtc/eval_dataset.py445 # Step 1: Generate previous chunk using policy_prev_chunkCOMMENT
LOW⚡examples/rtc/eval_dataset.py468 # Step 2: Generate actions WITHOUT RTC using policy_no_rtcCOMMENT
LOW⚡examples/rtc/eval_dataset.py501 # Step 3: Generate actions WITH RTC using policy_rtcCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py511 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py523 # Step 2: Collect responses and update state cacheCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py715 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py736 # Step 2: Collect responses and update state cacheCOMMENT
LOW…lerobot/teleoperators/openarm_leader/openarm_leader.py144 # Step 1: Set zero positionCOMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1496 # Step 1: prefix forward fills the KV cache.COMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1522 # Step 2: suffix forward for flow matching.COMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1722 # Step 1: get KV cache.COMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1738 # Step 2: Euler sampling.COMMENT
LOWsrc/lerobot/robots/openarm_follower/openarm_follower.py187 # Step 1: Set zero positionCOMMENT
Structural Annotation Overuse27 hits · 46 pts
SeverityFileLineSnippetContext
LOW⚡tests/processor/test_normalize_processor.py2005 # Step 1: DeviceProcessor converts to bfloat16 + moves to CUDACOMMENT
LOW⚡tests/processor/test_normalize_processor.py2011 # Step 2: NormalizerProcessor receives bfloat16 input and adaptsCOMMENT
LOW⚡tests/datasets/test_aggregate.py879 # Step 3: Create dataset CCOMMENT
LOW⚡tests/datasets/test_aggregate.py887 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURREDCOMMENT
LOW⚡tests/datasets/test_aggregate.py903 # Step 5: Verify all data files referenced in metadata actually existCOMMENT
LOW⚡tests/datasets/test_aggregate.py911 # Step 6: Verify we can iterate through the entire dataset without FileNotFoundErrorCOMMENT
LOWtests/datasets/test_aggregate.py844 # Step 1: Create datasets A and BCOMMENT
LOWtests/datasets/test_aggregate.py858 # Step 2: Merge A+B into AB with small file size to force multiple filesCOMMENT
LOW⚡tests/rl/test_sac_algorithm.py245 # Step 0: should update actorCOMMENT
LOW⚡tests/rl/test_sac_algorithm.py249 # Step 1: should NOT update actorCOMMENT
LOW⚡examples/rtc/eval_dataset.py396 # Step 1: Move policy to CPU to free GPU/MPS memoryCOMMENT
LOW⚡examples/rtc/eval_dataset.py399 # Step 2: Delete the policy objectCOMMENT
LOW⚡examples/rtc/eval_dataset.py402 # Step 3: Force garbage collection to reclaim memory immediatelyCOMMENT
LOW⚡examples/rtc/eval_dataset.py405 # Step 4: Clear device-specific cachesCOMMENT
LOW⚡examples/rtc/eval_dataset.py445 # Step 1: Generate previous chunk using policy_prev_chunkCOMMENT
LOW⚡examples/rtc/eval_dataset.py468 # Step 2: Generate actions WITHOUT RTC using policy_no_rtcCOMMENT
LOW⚡examples/rtc/eval_dataset.py501 # Step 3: Generate actions WITH RTC using policy_rtcCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py511 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py523 # Step 2: Collect responses and update state cacheCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py715 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py736 # Step 2: Collect responses and update state cacheCOMMENT
LOW…lerobot/teleoperators/openarm_leader/openarm_leader.py144 # Step 1: Set zero positionCOMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1496 # Step 1: prefix forward fills the KV cache.COMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1522 # Step 2: suffix forward for flow matching.COMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1722 # Step 1: get KV cache.COMMENT
LOWsrc/lerobot/policies/dm05/core/modeling.py1738 # Step 2: Euler sampling.COMMENT
LOWsrc/lerobot/robots/openarm_follower/openarm_follower.py187 # Step 1: Set zero positionCOMMENT
AI Slop Vocabulary14 hits · 29 pts
SeverityFileLineSnippetContext
MEDIUMtests/processor/test_batch_processor.py801 """Test task processing with comprehensive string cases and edge cases."""STRING
MEDIUMtests/processor/test_pipeline.py1710# More comprehensive override testsCOMMENT
LOWexamples/training/train_policy.py51 # we'll just use the defaults and so no arguments other than input/output features need to be passed.COMMENT
MEDIUMsrc/lerobot/async_inference/robot_client.py447 # Calculate comprehensive FPS metricsCOMMENT
MEDIUMsrc/lerobot/rewards/sarm/compute_rabc_weights.py451 """Linearly interpolate values to fill in gaps (robust to NaNs / edge cases)."""STRING
MEDIUMsrc/lerobot/datasets/compute_stats.py458 """Compute comprehensive statistics for array features along specified axes.STRING
MEDIUMsrc/lerobot/datasets/compute_stats.py509 """Compute comprehensive statistics for all features in an episode.STRING
MEDIUMsrc/lerobot/cameras/opencv/camera_opencv.py258 # Use math.isclose for robust float comparisonCOMMENT
MEDIUMsrc/lerobot/policies/tdmpc/modeling_tdmpc.py371 # learned state-action value function in conjunction with the learned policy: Q(z, π(z)), FOWMCOMMENT
MEDIUMsrc/lerobot/scripts/lerobot_eval.py1044 # To be robust, accept scalars or lists.COMMENT
MEDIUMsrc/lerobot/scripts/lerobot_eval.py1126 # compute aggregated metrics helper (robust to lists/scalars)COMMENT
MEDIUMsrc/lerobot/scripts/lerobot_dataset_viz.py239 # Use the dataset's q01/q99 depth statistics for robust depth range boundsCOMMENT
LOWsrc/lerobot/envs/utils.py153 # TODO(jadechoghari, imstevenpmwork): remove this hardcoding of keys and just use the nested keys as isCOMMENT
LOWsrc/lerobot/rl/crop_dataset_roi.py201 # (Here we simply set the shape to be the final resize_size.)COMMENT
Modern AI Meta-Vocabulary7 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/rewards/test_reward_model_base.py131# Trainable vs zero-shot (general-purpose) reward models.COMMENT
MEDIUM⚡tests/jobs/test_annotate.py88 # --job.* is client-side orchestration; the pod must not re-dispatch itself.COMMENT
MEDIUM⚡tests/jobs/test_hf.py289 # `job` is client-only orchestration and must be stripped for the pod.COMMENT
MEDIUM…c/lerobot/rewards/topreward/configuration_topreward.py23# Default prompt scaffolding from the upstream TOPReward paper / referenceCOMMENT
MEDIUMsrc/lerobot/policies/molmoact2/README.md486### Joint frame transform (SO-100/101 zero-shot)COMMENT
MEDIUMsrc/lerobot/jobs/hf.py271 # (e.g. an orchestration framework) skip the Ctrl-C-detaches-instead-of-cancelsCOMMENT
MEDIUMsrc/lerobot/rl/learner.py596 # Save policy artifacts (pretrained_model/) + Trainer scaffolding (training_state/).COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/lerobot/jobs/annotate.py82 "apt-get update -qq && apt-get install -y -qq git ffmpeg && "CODE
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…olicies/gaussian_actor/configuration_gaussian_actor.py166 # Configuration for concurrency settings (you can use threads or processes for the actor and learner)COMMENT
LOWsrc/lerobot/scripts/lerobot_eval.py576 # (batch-element-wise). Note the `done_indices + 1` to make sure to keep the data from the done step.COMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/lerobot/robots/hope_jr/hope_jr_arm.py129 # TODO: add docstringCOMMENT
LOWsrc/lerobot/robots/hope_jr/hope_jr_hand.py159 # TODO: add docstringCOMMENT
LOWsrc/lerobot/robots/unitree_g1/unitree_g1.py357 # TODO: implement g1_29 calibrationCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ons/steerable_pipeline/modules/plan_subtasks_memory.py190 "placeholder",CODE