Repository Analysis

huggingface/lerobot

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

33.1 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of huggingface/lerobot, a Python project with 27,018 GitHub stars. SynthScan v2.0 examined 253,411 lines of code across 890 source files, recording 6380 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 33.1 places this repository in the Strong AI signal band.

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

33.1
Adjusted Score
33.1
Raw Score
100%
Time Factor
2026-08-28
Last Push
27.0K
Stars
Python
Language
253.4K
Lines of Code
890
Files
6.4K
Pattern Hits
2026-08-29
Scan Date
0.19
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 12HIGH 157MEDIUM 563LOW 5648

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers2932 hits · 2831 pts
SeverityFileLineSnippetContext
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_robomme_env.py71def test_robomme_env_config_defaults():CODE
LOWtests/test_robomme_env.py101def test_robomme_rejects_duplicate_camera_names():CODE
LOWtests/test_robomme_env.py108def test_robomme_camera_feature_names_are_configurable():CODE
LOWtests/test_robomme_env.py117def test_robomme_preserves_explicit_feature_mapping():CODE
LOWtests/test_robomme_env.py135def test_robomme_features_action_dim_joint_angle():CODE
LOWtests/test_robomme_env.py143def test_robomme_features_action_dim_ee_pose():CODE
LOWtests/test_robomme_env.py157def test_reset_exposes_episode_task_description():CODE
LOWtests/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
LOWtests/test_control_robot.py159def test_record_reports_a_cadence_summary_per_episode_and_for_the_run(tmp_path, cadence_log):CODE
LOWtests/test_control_robot.py192def test_record_loop_without_a_teleoperator_paces_and_terminates():CODE
LOWtests/test_rollout.py41def test_rollout_top_level_imports():CODE
LOWtests/test_rollout.py48def test_inference_submodule_imports():CODE
LOWtests/test_rollout.py55def test_strategies_submodule_imports():CODE
LOWtests/test_rollout.py67def test_strategy_config_types():CODE
LOWtests/test_rollout.py83def test_dagger_config_invalid_input_device():CODE
LOWtests/test_rollout.py90def test_dagger_config_defaults():CODE
LOWtests/test_rollout.py99def test_inference_config_types():CODE
LOWtests/test_rollout.py348def test_ring_buffer_append_and_eviction():CODE
LOWtests/test_rollout.py380def test_ring_buffer_tensor_bytes():CODE
LOWtests/test_rollout.py394def test_thread_safe_robot_delegates():CODE
LOWtests/test_rollout.py436def test_create_strategy_dispatches():CODE
LOWtests/test_rollout.py455def test_create_strategy_unknown_raises():CODE
LOWtests/test_rollout.py469def test_create_inference_engine_sync():CODE
LOWtests/test_rollout.py493def test_align_state_feature_order_matches_checkpoint_and_preserves_cameras(caplog):CODE
LOWtests/test_rollout.py576def test_dagger_full_transition_cycle():CODE
LOWtests/test_rollout.py629def test_rollout_context_fields():CODE
LOWtests/test_rollout.py1025def test_base_strategy_reports_the_run_summary_when_the_loop_ends(caplog):CODE
LOWtests/test_rollout.py110def test_trained_rtc_retries_chunk_when_measured_delay_exceeds_conditioning():CODE
LOWtests/test_rollout.py127def test_trained_rtc_bootstraps_first_overlap_with_checkpoint_capacity():CODE
LOWtests/test_rollout.py152def test_trained_rtc_discards_chunk_measured_above_checkpoint_support():CODE
LOWtests/test_rollout.py164def test_trained_rtc_clamps_prefix_to_checkpoint_and_queue():CODE
LOWtests/test_rollout.py185def test_trained_rtc_rollout_requires_capacity_for_max_delay(execution_horizon, queue_threshold, match):CODE
LOWtests/test_rollout.py200def test_trained_rtc_rollout_accepts_valid_capacity():CODE
LOWtests/test_rollout.py214def test_sentry_config_defaults():CODE
LOWtests/test_rollout.py222def test_rollout_config_passes_policy_pretrained_revision(monkeypatch):CODE
LOWtests/test_rollout.py255def test_rollout_config_rejects_a_multiplier_below_one(multiplier):CODE
LOWtests/test_rollout.py265def test_load_pretrained_policy_passes_revision(monkeypatch):CODE
LOWtests/test_rollout.py289def test_load_pretrained_peft_policy_keeps_adapter_and_base_revisions_separate(monkeypatch):CODE
LOWtests/test_rollout.py414def test_thread_safe_robot_properties():CODE
LOWtests/test_rollout.py527def test_align_state_feature_order_is_noop_without_an_exact_name_match(policy_action_names, feature_names):CODE
LOWtests/test_rollout.py542def test_estimate_max_episode_seconds_no_video():CODE
LOWtests/test_rollout.py548def test_estimate_max_episode_seconds_with_video():CODE
LOWtests/test_rollout.py603def test_dagger_invalid_transition_ignored():CODE
LOWtests/test_rollout.py655def test_handle_warmup_paces_then_flushes_and_exempts_the_reprimed_group(caplog, clock):CODE
LOWtests/test_rollout.py802def test_sentry_records_once_per_interpolation_cycle():CODE
LOWtests/test_rollout.py813def test_sentry_runs_inference_once_per_cycle_and_reuses_processed_observation():CODE
LOWtests/test_rollout.py832def test_sentry_records_every_tick_at_default_multiplier():CODE
LOWtests/test_rollout.py842def test_highlight_buffers_once_per_interpolation_cycle():CODE
2872 more matches not shown…
Decorative Section Separators433 hits · 1580 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml96# ── Feature-scoped extras ──────────────────────────────────COMMENT
MEDIUMpyproject.toml138# ── User-facing composite extras (map to CLI scripts) ─────COMMENT
MEDIUMtests/test_robomme_env.py66# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py68# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py268# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py270# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py343# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py345# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py389# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py391# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py431# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py433# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py464# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py466# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py488# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py490# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py571# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py573# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py624# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py626# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py636# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py641# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py1020# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py1022# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py708# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py710# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py82# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py84# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py135# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py137# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py222# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py224# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py404# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/distributed/test_multigpu_training.py406# -------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py29# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py31# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py91# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py93# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py116# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_policy_server.py118# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py43# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py45# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py87 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py89 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py134 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py136 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py171 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py173 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py180 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_e2e.py182 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py39# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py41# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py104# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py106# ---------------------------------------------------------------------COMMENT
373 more matches not shown…
Unused Imports996 hits · 908 pts
SeverityFileLineSnippetContext
LOWtests/test_robomme_env.py21CODE
LOWtests/test_rollout.py17CODE
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/rewards/test_topreward_processor.py17CODE
LOWtests/rewards/test_modeling_topreward.py17CODE
LOWtests/rewards/test_modeling_robometer.py17CODE
LOWtests/rewards/test_robometer_processor.py27CODE
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/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
LOWexamples/backward_compatibility/replay.py39CODE
LOWexamples/isaac_teleop_to_so101/common.py55CODE
LOWexamples/isaac_teleop_to_so101/record.py57CODE
LOWexamples/isaac_teleop_to_so101/record.py58CODE
LOWexamples/isaac_teleop_to_so101/record.py71CODE
LOWexamples/isaac_teleop_to_so101/teleoperate.py43CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/clutch.py24CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py23CODE
936 more matches not shown…
Over-Commented Block808 hits · 782 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 exclude: ^(examples|benchmarks|tests)/COMMENT
LOWpyproject.toml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWpyproject.toml141# lerobot-eval -- base evaluation framework. You also need the policy's extra (e.g., lerobot[pi])COMMENT
LOWpyproject.toml281# NOTE: vlabench is NOT exposed as a `lerobot` extra. Its only distributionCOMMENT
LOWpyproject.toml401# UP: pyupgradeCOMMENT
LOWpyproject.toml621# module = "lerobot.robots.*"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/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_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_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
LOWtests/rewards/test_reward_model_base.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/rewards/test_modeling_classifier.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.COMMENT
748 more matches not shown…
Cross-File Repetition89 hits · 445 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
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
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.py0override the from_pretrained method to handle key remapping and display important disclaimer.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0override the from_pretrained method to handle key remapping and display important disclaimer.STRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0override the from_pretrained method to handle key remapping and display important disclaimer.STRING
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
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0preprocess images for the model. images from lerobot are typically in [b, c, h, w] format and normalized to [0, 1]. paliSTRING
29 more matches not shown…
Docstring Block Structure67 hits · 335 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.py305 Core logic to apply a normalization or unnormalization transformation to a tensor. This method selectsSTRING
HIGHsrc/lerobot/processor/env_processor.py115 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.py656Loads a pipeline from a local directory, single file, or Hugging Face Hub repository. This method implements a STRING
HIGHsrc/lerobot/processor/pipeline.py832Load configuration from local file or Hugging Face Hub. This method implements a super-simplified 3-way loadingSTRING
HIGHsrc/lerobot/processor/pipeline.py969Build all processor steps with overrides and state loading. This method orchestrates the complete step construcSTRING
HIGHsrc/lerobot/processor/pipeline.py1132Resolve step class from registry or import path. This method implements a two-tier resolution strategy: STRING
HIGHsrc/lerobot/processor/pipeline.py1203Instantiate a single processor step with config overrides. This method handles the configuration merging and inSTRING
HIGHsrc/lerobot/processor/converters.py37 Convert various data types to PyTorch tensors with configurable options. This is a unified tensor conversion fSTRING
HIGHsrc/lerobot/processor/converters.py336 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.py34 Retrieves a reward model class by its registered name. This function uses dynamic imports to avoid loading allSTRING
HIGHsrc/lerobot/rewards/factory.py74 Instantiates a reward model configuration object based on the reward type. This factory function simplifies thSTRING
HIGHsrc/lerobot/rewards/factory.py145 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.py692Compute normalization statistics for relative actions over the full dataset. Iterates *all* valid action chunks (wiSTRING
HIGHsrc/lerobot/datasets/dataset_metadata.py312Return the relative parquet file path for the given episode index. Args: ep_index: Zero-based episoSTRING
HIGHsrc/lerobot/datasets/dataset_metadata.py336Return the relative video file path for the given episode and video key. Args: ep_index: Zero-basedSTRING
HIGHsrc/lerobot/datasets/factory.py106Handles the logic of setting up delta timestamps and image transforms before creating a dataset. Args: cfg STRING
HIGHsrc/lerobot/datasets/utils.py309Serialize a dictionary containing tensors or numpy arrays to be JSON-compatible. Converts torch.Tensor, np.ndarray,STRING
HIGHsrc/lerobot/datasets/utils.py416Return 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.py45Convert a LeRobot features dictionary to a `datasets.Features` object. Args: features (dict): A LeRobot-stySTRING
HIGHsrc/lerobot/datasets/feature_utils.py180Check if delta timestamps are multiples of 1/fps +/- tolerance. This ensures that adding these delta timestamps to STRING
HIGHsrc/lerobot/datasets/feature_utils.py290Validate the dtype and shape of a single feature's value. Args: name (str): The name of the feature. STRING
HIGHsrc/lerobot/datasets/lerobot_dataset.py554Return one frame or a slice of frames, with all transforms applied. Loads the frame from the underlying HF dataSTRING
HIGHsrc/lerobot/datasets/depth_utils.py75Quantize depth to 12-bit codes (``uint16``, values ``0…DEPTH_QMAX``). Depth maps are packed into 12-bit integer fraSTRING
HIGHsrc/lerobot/datasets/depth_utils.py163Inverse 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.py145Interactively 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.py176Interactively 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.py140Convert dataset features to policy features. This function transforms the dataset's feature specification into a foSTRING
HIGHsrc/lerobot/utils/feature_utils.py186Merge LeRobot grouped feature dicts. - For 1D numeric specs (dtype not image/video/string) with "names": we merge tSTRING
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.py415 Applies color conversion, dimension validation, and rotation to a raw frame. Args: image (STRING
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py541 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.py81 Retrieves a policy class by its registered name. Resolution is convention-based: the draccus-registered configSTRING
HIGHsrc/lerobot/policies/factory.py104 Instantiates a policy configuration object based on the policy type. This factory function simplifies the creaSTRING
HIGHsrc/lerobot/policies/factory.py160 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.py267 Instantiate a policy model. This factory function handles the logic of creating a policy, which requires dSTRING
HIGHsrc/lerobot/policies/xvla/processor_xvla.py169 Convert batched rotation matrices (B, 3, 3) into 6D rotation representation (B, 6). Args: STRING
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/common/train_utils.py340Phase 1 — before `accelerator.prepare()`: restore RNG and return the step counter. Pure loaders only. The sampler rSTRING
HIGHsrc/lerobot/common/train_utils.py543Download the latest checkpoint of a Hub training repo into a local run dir. The symmetric counterpart to `push_checSTRING
HIGHsrc/lerobot/configs/parser.py151Load and initialize a plugin from a given Python package path. This function attempts to load a plugin by importingSTRING
HIGHsrc/lerobot/configs/parser.py288 Filters command-line arguments related to fields with specific path arguments. Args: fields_to_filter STRING
HIGHsrc/lerobot/scripts/lerobot_convert_dcp.py137Merge a checkpoint's DCP shards into `model.safetensors`, then optionally publish it. Args: cfg (ConvertDcpSTRING
HIGHsrc/lerobot/robots/lekiwi/lekiwi.py241 Convert desired body-frame velocities into wheel raw commands. Parameters: x_cmd : LineSTRING
HIGHsrc/lerobot/robots/lekiwi/lekiwi_client.py315Command lekiwi to move to a target joint configuration. Translates to motor space + sends over ZMQ Args: STRING
HIGH…ots/earthrover_mini_plus/robot_earthrover_mini_plus.py334Send action to robot via SDK. Args: action: Action dict with keys: - linear_velocitSTRING
7 more matches not shown…
Self-Referential Comments90 hits · 280 pts
SeverityFileLineSnippetContext
MEDIUMtests/async_inference/test_policy_server.py155 # Create a new, dissimilar observation.COMMENT
MEDIUMtests/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
MEDIUMtests/processor/test_pipeline.py1095 # Create a processor with steps that need overridesCOMMENT
MEDIUMtests/processor/test_pipeline.py1105 # Create a mock environment for overrideCOMMENT
MEDIUMtests/processor/test_pipeline.py68 # Create a new transition with updated complementary_dataCOMMENT
MEDIUMtests/processor/test_pipeline.py1846 # Define a transform functionCOMMENT
MEDIUMtests/processor/test_migration_detection.py189 # Create an invalid JSON fileCOMMENT
MEDIUMtests/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
MEDIUMtests/rl/test_learner_service.py67 # Create a gRPC server and add our servicer to it.COMMENT
MEDIUMtests/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.py31 # 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
30 more matches not shown…
Modern Structural Boilerplate259 hits · 260 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_lerobot_dataset.py52def _set_default_cache_root(monkeypatch: pytest.MonkeyPatch, cache_root: Path) -> None:CODE
LOWtests/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/relative_action_processor.py30__all__ = [CODE
LOWsrc/lerobot/processor/__init__.py109__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.py73logger = 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.py53logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/compute_stats.py161 def _update_histograms(self, batch: np.ndarray) -> None:CODE
LOWsrc/lerobot/datasets/__init__.py63__all__ = [CODE
LOWsrc/lerobot/datasets/image_writer.py26logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/dataset_writer.py70logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/utils.py86logger = logging.getLogger(__name__)STRING
LOWsrc/lerobot/datasets/lerobot_dataset.py49logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py606 def set_image_transforms(self, image_transforms: Callable | None) -> None:CODE
LOWsrc/lerobot/datasets/dataset_reader.py98 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
LOWsrc/lerobot/teleoperators/bi_openarm_leader/__init__.py20__all__ = ["BiOpenArmLeader", "BiOpenArmLeaderConfig"]CODE
LOWsrc/lerobot/teleoperators/so_leader/__init__.py25__all__ = [CODE
LOWsrc/lerobot/teleoperators/so_leader/so_leader.py30logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/teleoperators/bi_so_leader/__init__.py19__all__ = ["BiSOLeader", "BiSOLeaderConfig"]CODE
LOWsrc/lerobot/teleoperators/bi_so_leader/bi_so_leader.py28logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/teleoperators/gamepad/teleop_gamepad.py31logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/teleoperators/gamepad/__init__.py20__all__ = ["GamepadTeleop", "GamepadTeleopConfig"]CODE
LOW…/lerobot/teleoperators/bi_rebot_102_leader/__init__.py20__all__ = ["BiRebot102Leader", "BiRebot102LeaderConfig"]CODE
199 more matches not shown…
Deep Nesting260 hits · 240 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py63CODE
LOWtests/distributed/test_multigpu_training.py93CODE
LOWtests/distributed/test_multigpu_training.py202CODE
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.py114CODE
LOWtests/datasets/test_streaming.py314CODE
LOWtests/datasets/test_streaming.py395CODE
LOWtests/datasets/test_lance_backend.py342CODE
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.py74CODE
LOWsrc/lerobot/async_inference/robot_client.py282CODE
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
LOWsrc/lerobot/motors/feetech/feetech.py187CODE
200 more matches not shown…
Excessive Try-Catch Wrapping202 hits · 219 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py76 except Exception as e:CODE
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.py553def consumer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py587def producer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py617def consumer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py627def producer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py665def reader():CODE
MEDIUMtests/policies/rtc/test_action_queue.py678def consumer():CODE
LOWtests/policies/rtc/test_action_queue.py560 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py594 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py624 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py634 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py672 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py683 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.py141 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py160 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py175 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
LOWexamples/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
LOWexamples/isaac_teleop_to_so101/record.py287 except Exception:CODE
LOWexamples/isaac_teleop_to_so101/record.py292 except Exception:CODE
LOWexamples/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.py468 except Exception as e:CODE
LOWsrc/lerobot/async_inference/policy_server.py263 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
LOWsrc/lerobot/motors/damiao/damiao.py390 except Exception as e:CODE
142 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
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py70 list(self.vqbet.action_head.vqvae_model.encoder.parameters())CODE
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py71 + list(self.vqbet.action_head.vqvae_model.decoder.parameters())CODE
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py72 + list(self.vqbet.action_head.vqvae_model.vq_layer.parameters())CODE
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py145 if not self.vqbet.action_head.vqvae_model.discretized.item():CODE
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py164 if not self.vqbet.action_head.vqvae_model.discretized.item():CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py250 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_enable(CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py253 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_enable(CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py262 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_disable()CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py263 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_disable()CODE
AI Structural Patterns99 hits · 92 pts
SeverityFileLineSnippetContext
LOWtests/training/test_multi_gpu.py93CODE
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.py639CODE
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.py146CODE
LOWsrc/lerobot/datasets/lance_backend.py102CODE
LOWsrc/lerobot/datasets/streaming_dataset.py246CODE
LOWsrc/lerobot/datasets/dataset_tools.py1718CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py53CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py619CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py742CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py856CODE
LOWsrc/lerobot/datasets/depth_utils.py152CODE
LOWsrc/lerobot/datasets/multi_dataset.py41CODE
LOWsrc/lerobot/utils/hub.py167CODE
LOWsrc/lerobot/policies/pretrained.py147CODE
LOWsrc/lerobot/policies/pi_gemma.py225CODE
LOWsrc/lerobot/policies/xvla/modeling_xvla.py424CODE
LOWsrc/lerobot/policies/xvla/soft_transformer.py299CODE
LOWsrc/lerobot/policies/pi0/modeling_pi0.py782CODE
LOWsrc/lerobot/policies/groot/modeling_groot.py156CODE
LOWsrc/lerobot/policies/groot/groot_n1_7.py256CODE
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.py926CODE
LOWsrc/lerobot/policies/evo1/modeling_evo1.py81CODE
LOWsrc/lerobot/policies/evo1/internvl3_embedder.py108CODE
LOWsrc/lerobot/policies/evo1/evo1_model.py160CODE
LOWsrc/lerobot/policies/evo1/flow_matching.py107CODE
LOWsrc/lerobot/policies/evo1/flow_matching.py174CODE
LOWsrc/lerobot/policies/evo1/flow_matching.py393CODE
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.py1677CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py1787CODE
LOWsrc/lerobot/policies/fastwam/wan/modular.py1905CODE
LOW…bot/policies/gaussian_actor/modeling_gaussian_actor.py604CODE
LOWsrc/lerobot/policies/diffusion/modeling_diffusion.py823CODE
LOWsrc/lerobot/policies/vla_jepa/world_model.py100CODE
LOWsrc/lerobot/policies/vla_jepa/world_model.py256CODE
LOWsrc/lerobot/policies/vqbet/vqbet_utils.py545CODE
LOWsrc/lerobot/policies/vqbet/vqbet_utils.py1155CODE
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py794CODE
LOW…s/molmoact2/molmoact2_hf_model/processing_molmoact2.py92CODE
LOW…olmoact2/molmoact2_hf_model/configuration_molmoact2.py55CODE
39 more matches not shown…
Redundant / Tautological Comments58 hits · 90 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_image_transforms.py434 # Check if the combined transforms directory exists and contains the right filesCOMMENT
LOWtests/datasets/test_image_transforms.py453 # 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.py1433 # Check if any JSON file is a processor configCOMMENT
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py256 # Set preprocessor to eval mode to disable augmentationsCOMMENT
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py489 # 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.py237 # Iterate over the datasetSTRING
LOWsrc/lerobot/datasets/dataset_tools.py662 # Check if video stream exists.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py684 # Set time_base to match the frame rate for proper timestamp handling.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py704 # Check if frame is in any of our desired frame ranges.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py713 # Check if frame is in current range.COMMENT
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py442 # Check if RB is pressed then the intervention flag should be setCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py445 # Check if RT is pressedCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py448 # Check if LT is pressedCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py451 # Check if Y/Triangle button (bit 7) is pressed for savingCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py452 # Check if X/Square button (bit 5) is pressed for failureCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py453 # Check if A/Cross button (bit 4) is pressed for rerecordingCOMMENT
LOWsrc/lerobot/teleoperators/gamepad/teleop_gamepad.py146 # Check if intervention is activeCOMMENT
LOWsrc/lerobot/teleoperators/keyboard/teleop_keyboard.py248 # Check if any movement keys are currently pressed (indicates intervention)COMMENT
LOW…data_processing/sarm_annotations/subtask_annotation.py317 # Check if ffmpeg is availableCOMMENT
LOWsrc/lerobot/utils/import_utils.py39 # Check if the module spec exists using the import nameCOMMENT
LOWsrc/lerobot/utils/import_utils.py53 # Check if the version contains "dev"COMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py341 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py821 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py916 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py925 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1016 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWsrc/lerobot/policies/groot/modeling_groot.py203 # Check if this is a fine-tuned LeRobot checkpoint (has model.safetensors)COMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py459 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py965 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1075 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1084 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py833 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py998 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.py167 # Check if step with this time already existsCOMMENT
LOWsrc/lerobot/policies/wall_x/utils.py273 # Set labels to None if all are invalid to skip cross entropy lossCOMMENT
LOWsrc/lerobot/common/control_utils.py112 # Check if dataset_name starts with "eval_" but policy is missingCOMMENT
LOWsrc/lerobot/common/control_utils.py118 # Check if dataset_name does not start with "eval_" but policy is providedCOMMENT
LOWsrc/lerobot/common/wandb_utils.py136 # Check if this is a PEFT model (has adapter files instead of model.safetensors)COMMENT
LOWsrc/lerobot/transforms/transforms.py647 # 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.py330 # 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.py52 # 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 Indicators23 hits · 43 pts
SeverityFileLineSnippetContext
LOWtests/processor/test_normalize_processor.py2005 # Step 1: DeviceProcessor converts to bfloat16 + moves to CUDACOMMENT
LOWtests/processor/test_normalize_processor.py2011 # Step 2: NormalizerProcessor receives bfloat16 input and adaptsCOMMENT
LOWtests/datasets/test_aggregate.py879 # Step 3: Create dataset CCOMMENT
LOWtests/datasets/test_aggregate.py887 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURREDCOMMENT
LOWtests/datasets/test_aggregate.py903 # Step 5: Verify all data files referenced in metadata actually existCOMMENT
LOWtests/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
LOWtests/rl/test_sac_algorithm.py245 # Step 0: should update actorCOMMENT
LOWtests/rl/test_sac_algorithm.py249 # Step 1: should NOT update actorCOMMENT
LOWexamples/rtc/eval_dataset.py396 # Step 1: Move policy to CPU to free GPU/MPS memoryCOMMENT
LOWexamples/rtc/eval_dataset.py399 # Step 2: Delete the policy objectCOMMENT
LOWexamples/rtc/eval_dataset.py402 # Step 3: Force garbage collection to reclaim memory immediatelyCOMMENT
LOWexamples/rtc/eval_dataset.py405 # Step 4: Clear device-specific cachesCOMMENT
LOWexamples/rtc/eval_dataset.py445 # Step 1: Generate previous chunk using policy_prev_chunkCOMMENT
LOWexamples/rtc/eval_dataset.py468 # Step 2: Generate actions WITHOUT RTC using policy_no_rtcCOMMENT
LOWexamples/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/robots/openarm_follower/openarm_follower.py186 # Step 1: Set zero positionCOMMENT
Structural Annotation Overuse23 hits · 43 pts
SeverityFileLineSnippetContext
LOWtests/processor/test_normalize_processor.py2005 # Step 1: DeviceProcessor converts to bfloat16 + moves to CUDACOMMENT
LOWtests/processor/test_normalize_processor.py2011 # Step 2: NormalizerProcessor receives bfloat16 input and adaptsCOMMENT
LOWtests/datasets/test_aggregate.py879 # Step 3: Create dataset CCOMMENT
LOWtests/datasets/test_aggregate.py887 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURREDCOMMENT
LOWtests/datasets/test_aggregate.py903 # Step 5: Verify all data files referenced in metadata actually existCOMMENT
LOWtests/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
LOWtests/rl/test_sac_algorithm.py245 # Step 0: should update actorCOMMENT
LOWtests/rl/test_sac_algorithm.py249 # Step 1: should NOT update actorCOMMENT
LOWexamples/rtc/eval_dataset.py396 # Step 1: Move policy to CPU to free GPU/MPS memoryCOMMENT
LOWexamples/rtc/eval_dataset.py399 # Step 2: Delete the policy objectCOMMENT
LOWexamples/rtc/eval_dataset.py402 # Step 3: Force garbage collection to reclaim memory immediatelyCOMMENT
LOWexamples/rtc/eval_dataset.py405 # Step 4: Clear device-specific cachesCOMMENT
LOWexamples/rtc/eval_dataset.py445 # Step 1: Generate previous chunk using policy_prev_chunkCOMMENT
LOWexamples/rtc/eval_dataset.py468 # Step 2: Generate actions WITHOUT RTC using policy_no_rtcCOMMENT
LOWexamples/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/robots/openarm_follower/openarm_follower.py186 # 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.py1706# 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.py453 # Calculate comprehensive FPS metricsCOMMENT
MEDIUMsrc/lerobot/rewards/sarm/compute_rabc_weights.py449 """Linearly interpolate values to fill in gaps (robust to NaNs / edge cases)."""STRING
MEDIUMsrc/lerobot/datasets/compute_stats.py441 """Compute comprehensive statistics for array features along specified axes.STRING
MEDIUMsrc/lerobot/datasets/compute_stats.py492 """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.py369 # learned state-action value function in conjunction with the learned policy: Q(z, π(z)), FOWMCOMMENT
MEDIUMsrc/lerobot/scripts/lerobot_eval.py988 # To be robust, accept scalars or lists.COMMENT
MEDIUMsrc/lerobot/scripts/lerobot_eval.py1070 # compute aggregated metrics helper (robust to lists/scalars)COMMENT
MEDIUMsrc/lerobot/scripts/lerobot_dataset_viz.py237 # 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
MEDIUMtests/rewards/test_reward_model_base.py131# Trainable vs zero-shot (general-purpose) reward models.COMMENT
MEDIUMtests/jobs/test_annotate.py88 # --job.* is client-side orchestration; the pod must not re-dispatch itself.COMMENT
MEDIUMtests/jobs/test_hf.py199 # `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.py264 # (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.py558 # (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.py351 # TODO: implement g1_29 calibrationCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/datasets/test_streaming.py294CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ons/steerable_pipeline/modules/plan_subtasks_memory.py190 "placeholder",CODE