Repository Analysis

huggingface/lerobot

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

32.2 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of huggingface/lerobot, a Python project with 25,782 GitHub stars. SynthScan v2.0 examined 231,342 lines of code across 820 source files, recording 5533 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 32.2 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).

32.2
Adjusted Score
32.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
25.8K
Stars
Python
Language
231.3K
Lines of Code
820
Files
5.5K
Pattern Hits
2026-07-14
Scan Date
0.22
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 9HIGH 175MEDIUM 492LOW 4857

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 5533 distinct pattern matches across 21 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 Identifiers2344 hits · 2263 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py62def _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.py67def test_robomme_env_config_defaults():CODE
LOWtests/test_robomme_env.py79def test_robomme_env_config_type():CODE
LOWtests/test_robomme_env.py86def test_robomme_features_map():CODE
LOWtests/test_robomme_env.py97def test_robomme_features_action_dim_joint_angle():CODE
LOWtests/test_robomme_env.py105def test_robomme_features_action_dim_ee_pose():CODE
LOWtests/test_robomme_env.py119def test_convert_obs_list_format():CODE
LOWtests/test_robomme_env.py154def test_convert_obs_array_format():CODE
LOWtests/test_robomme_env.py182def test_create_robomme_envs_returns_correct_structure():CODE
LOWtests/test_robomme_env.py204def test_create_robomme_envs_multi_task():CODE
LOWtests/test_robomme_env.py222def test_create_robomme_envs_raises_on_invalid_env_cls():CODE
LOWtests/test_rollout.py32def test_rollout_top_level_imports():CODE
LOWtests/test_rollout.py39def test_inference_submodule_imports():CODE
LOWtests/test_rollout.py46def test_strategies_submodule_imports():CODE
LOWtests/test_rollout.py58def test_strategy_config_types():CODE
LOWtests/test_rollout.py74def test_dagger_config_invalid_input_device():CODE
LOWtests/test_rollout.py81def test_dagger_config_defaults():CODE
LOWtests/test_rollout.py90def test_inference_config_types():CODE
LOWtests/test_rollout.py101def test_sentry_config_defaults():CODE
LOWtests/test_rollout.py114def test_ring_buffer_append_and_eviction():CODE
LOWtests/test_rollout.py146def test_ring_buffer_tensor_bytes():CODE
LOWtests/test_rollout.py160def test_thread_safe_robot_delegates():CODE
LOWtests/test_rollout.py202def test_create_strategy_dispatches():CODE
LOWtests/test_rollout.py221def test_create_strategy_unknown_raises():CODE
LOWtests/test_rollout.py235def test_create_inference_engine_sync():CODE
LOWtests/test_rollout.py259def test_estimate_max_episode_seconds_no_video():CODE
LOWtests/test_rollout.py265def test_estimate_max_episode_seconds_with_video():CODE
LOWtests/test_rollout.py293def test_dagger_full_transition_cycle():CODE
LOWtests/test_rollout.py346def test_rollout_context_fields():CODE
LOWtests/test_rollout.py180def test_thread_safe_robot_properties():CODE
LOWtests/test_rollout.py320def test_dagger_invalid_transition_ignored():CODE
LOWtests/utils.py143def skip_if_package_arg_missing(func):CODE
LOWtests/test_cli_peft.py27def resolve_model_id_for_peft_training(policy_type):CODE
LOWtests/test_cli_peft.py37def test_peft_training_push_to_hub_works(policy_type, tmp_path):CODE
LOWtests/test_cli_peft.py125def test_peft_training_params_are_fewer(policy_type, tmp_path):CODE
LOWtests/test_yaml_policy_path.py22def test_extract_path_fields_from_yaml():CODE
LOWtests/test_yaml_policy_path.py58def test_extract_path_fields_from_json():CODE
LOWtests/test_yaml_policy_path.py82def test_extract_no_path_returns_original():CODE
LOWtests/test_yaml_policy_path.py101def test_extract_removes_empty_field():CODE
LOWtests/test_yaml_policy_path.py123def test_get_path_arg_fallback():CODE
LOWtests/test_yaml_policy_path.py135def test_get_path_arg_cli_takes_precedence():CODE
LOWtests/test_yaml_policy_path.py146def test_yaml_overrides_captured():CODE
LOWtests/test_yaml_policy_path.py167def test_yaml_overrides_excludes_type_and_path():CODE
LOWtests/test_yaml_policy_path.py189def test_get_yaml_overrides_empty_when_path_only():CODE
LOWtests/test_yaml_policy_path.py218def test_flatten_none_values_skipped():CODE
LOWtests/test_yaml_policy_path.py227def test_flatten_nested_with_bools():CODE
LOWtests/test_yaml_policy_path.py235def test_extract_removes_field_with_siblings_and_no_type():CODE
LOWtests/test_yaml_policy_path.py285def test_wrap_uses_cleaned_config_for_draccus_parse():CODE
LOW…age_transforms/save_image_transforms_to_safetensors.py34def save_default_config_transform(original_frame: torch.Tensor, output_dir: Path):CODE
LOWtests/artifacts/datasets/save_dataset_to_safetensors.py37def save_dataset_to_safetensors(output_dir, repo_id="lerobot/pusht"):CODE
LOWtests/artifacts/policies/save_policy_to_safetensors.py117def save_policy_to_safetensors(output_dir: Path, ds_repo_id: str, policy_name: str, policy_kwargs: dict):CODE
LOWtests/transport/test_transport_utils.py30def test_bytes_buffer_size_empty_buffer():CODE
LOWtests/transport/test_transport_utils.py41def test_bytes_buffer_size_small_buffer():CODE
LOWtests/transport/test_transport_utils.py51def test_bytes_buffer_size_large_buffer():CODE
LOWtests/transport/test_transport_utils.py62def test_send_bytes_in_chunks_empty_data():CODE
LOWtests/transport/test_transport_utils.py72def test_single_chunk_small_data():CODE
LOWtests/transport/test_transport_utils.py98def test_send_bytes_in_chunks_large_data():CODE
2284 more matches not shown…
Decorative Section Separators361 hits · 1336 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml96# ── Feature-scoped extras ──────────────────────────────────COMMENT
MEDIUMpyproject.toml130# ── User-facing composite extras (map to CLI scripts) ─────COMMENT
MEDIUMtests/test_robomme_env.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py177# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_robomme_env.py179# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py111# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py197# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py199# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py232# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py254# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py256# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py288# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py290# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py341# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rollout.py343# ---------------------------------------------------------------------------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
MEDIUMtests/async_inference/test_helpers.py141 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py143 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py210# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py212# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py156 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py158 # ------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py172# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_helpers.py174# ---------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_robot_client.py33# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_robot_client.py35# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_robot_client.py70# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_robot_client.py72# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_robot_client.py89# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/async_inference/test_robot_client.py91# -----------------------------------------------------------------------------COMMENT
301 more matches not shown…
Unused Imports913 hits · 836 pts
SeverityFileLineSnippetContext
LOWtests/test_robomme_env.py21CODE
LOWtests/test_rollout.py17CODE
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/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.py4CODE
LOWtests/policies/vla_jepa/test_configuration.py3CODE
LOWtests/policies/vla_jepa/test_vla_jepa.py3CODE
LOWtests/policies/vla_jepa/test_world_model.py3CODE
LOWtests/policies/vla_jepa/test_action_head.py3CODE
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_robotwin.py23CODE
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.py54CODE
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
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py24CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py25CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py25CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py25CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py26CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py26CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py27CODE
LOWexamples/isaac_teleop_to_so101/isaac_teleop/__init__.py28CODE
LOW…eleop_to_so101/isaac_teleop/xr_controller_processor.py24CODE
853 more matches not shown…
Over-Commented Block738 hits · 718 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOW.pre-commit-config.yaml101 # rev: v1.8.2COMMENT
LOWpyproject.toml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWpyproject.toml261# DevelopmentCOMMENT
LOWpyproject.toml281# via `uv pip install --override` (see docker/Dockerfile.benchmark.robomme).COMMENT
LOWpyproject.toml381COMMENT
LOWpyproject.toml461# TODO: Uncomment when ready to useCOMMENT
LOWpyproject.toml541# [[tool.mypy.overrides]]COMMENT
LOWpyproject.toml561COMMENT
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
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/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_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
LOWtests/rewards/test_topreward_processor.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/rewards/test_modeling_topreward.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/rewards/test_topreward.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/rewards/test_modeling_robometer.py1# Copyright 2026 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWtests/rewards/test_sarm_utils.py1#!/usr/bin/env pythonCOMMENT
LOWtests/rewards/test_sarm_processor.py1#!/usr/bin/env pythonCOMMENT
678 more matches not shown…
Cross-File Repetition113 hits · 565 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.py0computes sine-cosine positional embedding vectors for scalar positions.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0computes sine-cosine positional embedding vectors for scalar positions.STRING
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0computes sine-cosine positional embedding vectors for scalar positions.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0computes sine-cosine positional embedding vectors for scalar positions.STRING
HIGHsrc/lerobot/policies/eo1/modeling_eo1.py0computes sine-cosine positional embedding vectors for scalar positions.STRING
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theSTRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theSTRING
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theSTRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theSTRING
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.py0helper method to prepare 4d attention masks for transformer.STRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0helper method to prepare 4d attention masks for transformer.STRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0helper method to prepare 4d attention masks for transformer.STRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0helper method to prepare 4d attention masks for transformer.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
HIGHtests/policies/pi0_pi05/openpi_pytorch/image_tools.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with blaSTRING
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with blaSTRING
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with blaSTRING
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with blaSTRING
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
53 more matches not shown…
Docstring Block Structure61 hits · 305 pts
SeverityFileLineSnippetContext
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.py72A class decorator to register a ProcessorStep. Args: name: The name to register the class under. IfSTRING
HIGHsrc/lerobot/processor/pipeline.py103Retrieves a processor step class from the registry by its name. Args: name: The name of the step toSTRING
HIGHsrc/lerobot/processor/pipeline.py629Loads a pipeline from a local directory, single file, or Hugging Face Hub repository. This method implements a STRING
HIGHsrc/lerobot/processor/pipeline.py797Load configuration from local file or Hugging Face Hub. This method implements a super-simplified 3-way loadingSTRING
HIGHsrc/lerobot/processor/pipeline.py925Build all processor steps with overrides and state loading. This method orchestrates the complete step construcSTRING
HIGHsrc/lerobot/processor/pipeline.py1013Resolve step class from registry or import path. This method implements a two-tier resolution strategy: STRING
HIGHsrc/lerobot/processor/pipeline.py1084Instantiate 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.py332 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.py96Validates that all dataset metadata have consistent properties. Ensures all datasets have the same fps, robot_type,STRING
HIGHsrc/lerobot/datasets/compute_stats.py686Compute normalization statistics for relative actions over the full dataset. Iterates *all* valid action chunks (wiSTRING
HIGHsrc/lerobot/datasets/dataset_metadata.py259Return the relative parquet file path for the given episode index. Args: ep_index: Zero-based episoSTRING
HIGHsrc/lerobot/datasets/dataset_metadata.py283Return the relative video file path for the given episode and video key. Args: ep_index: Zero-basedSTRING
HIGHsrc/lerobot/datasets/factory.py70Handles the logic of setting up delta timestamps and image transforms before creating a dataset. Args: cfg STRING
HIGHsrc/lerobot/datasets/utils.py250Serialize a dictionary containing tensors or numpy arrays to be JSON-compatible. Converts torch.Tensor, np.ndarray,STRING
HIGHsrc/lerobot/datasets/utils.py349Return 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.py44Convert a LeRobot features dictionary to a `datasets.Features` object. Args: features (dict): A LeRobot-stySTRING
HIGHsrc/lerobot/datasets/feature_utils.py163Check if delta timestamps are multiples of 1/fps +/- tolerance. This ensures that adding these delta timestamps to STRING
HIGHsrc/lerobot/datasets/feature_utils.py273Validate the dtype and shape of a single feature's value. Args: name (str): The name of the feature. STRING
HIGHsrc/lerobot/datasets/lerobot_dataset.py482Return a single frame by index, with all transforms applied. Loads the frame from the underlying HF dataset, exSTRING
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.py166 Build AdamW optimizer with differential learning rates. Args: params: Must be a dict[str, STRING
HIGHsrc/lerobot/optim/optimizers.py249Build 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.py395 Applies color conversion, dimension validation, and rotation to a raw frame. Args: image (STRING
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py501 Reads the latest available frame asynchronously. This method retrieves the most recent frame captured STRING
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py422 Applies color conversion, dimension validation, and rotation to a raw color frame. Args: iSTRING
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py566 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.py88 Retrieves a policy class by its registered name. This function uses dynamic imports to avoid loading all policSTRING
HIGHsrc/lerobot/policies/factory.py188 Instantiates a policy configuration object based on the policy type. This factory function simplifies the creaSTRING
HIGHsrc/lerobot/policies/factory.py282 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.py522 Instantiate a policy model. This factory function handles the logic of creating a policy, which requires dSTRING
HIGHsrc/lerobot/policies/xvla/processor_xvla.py192 Convert batched rotation matrices (B, 3, 3) into 6D rotation representation (B, 6). Args: STRING
HIGHsrc/lerobot/policies/rtc/modeling_rtc.py126RTC guidance wrapper around an existing denoiser. This method wraps an original denoising callable that only taSTRING
HIGH…c/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py1640 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation:STRING
HIGHsrc/lerobot/common/train_utils.py204 Loads the training step, optimizer state, scheduler state, and rng state. This is used to resume a training runSTRING
HIGHsrc/lerobot/configs/parser.py130Load and initialize a plugin from a given Python package path. This function attempts to load a plugin by importingSTRING
HIGHsrc/lerobot/configs/parser.py195 Filters command-line arguments related to fields with specific path arguments. Args: fields_to_filter STRING
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
HIGHsrc/lerobot/envs/factory.py65Makes a gym vector environment according to the config or Hub reference. Args: cfg (EnvConfig | str): EitheSTRING
HIGHsrc/lerobot/rl/joint_observations_processor.py53 Computes joint velocities and adds them to the observation state. Args: observation: The iSTRING
HIGHsrc/lerobot/rl/joint_observations_processor.py149 Fetches motor currents and adds them to the observation state. Args: observation: The inpuSTRING
HIGHsrc/lerobot/rl/learner.py654 Handle the resume logic for training. If resume is True: - Verifies that a checkpoint exists - Loads tSTRING
HIGHsrc/lerobot/rl/algorithms/factory.py24Instantiate an `RLAlgorithmConfig` from its registered type name. Args: algorithm_type: Registry key of theSTRING
HIGHsrc/lerobot/rl/algorithms/factory.py47 Retrieves an RL algorithm class by its registered name. This function uses dynamic imports to avoid loading alSTRING
1 more matches not shown…
Self-Referential Comments91 hits · 284 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.py626 # Create a custom mock that tracks callsCOMMENT
MEDIUMtests/processor/test_tokenizer_processor.py787 # Create a mock tokenizer that tracks padding_side callsCOMMENT
MEDIUM…sts/processor/test_pipeline_from_pretrained_helpers.py40 # Create a config fileCOMMENT
MEDIUM…sts/processor/test_pipeline_from_pretrained_helpers.py57 # 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.py791 # Create a dataset with 5 episodes (0-4)COMMENT
MEDIUMtests/datasets/test_datasets.py825 # Create a dataset with only episodes 0, 1, 2COMMENT
MEDIUMtests/datasets/test_datasets.py852 # Create a filtered datasetCOMMENT
MEDIUMtests/optim/test_optimizers.py220 # 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
31 more matches not shown…
Modern Structural Boilerplate233 hits · 234 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_lerobot_dataset.py51def _set_default_cache_root(monkeypatch: pytest.MonkeyPatch, cache_root: Path) -> None:CODE
LOWtests/policies/vla_jepa/conftest.py39def 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/motors/__init__.py23__all__ = ["Motor", "MotorCalibration", "MotorNormMode"]CODE
LOWsrc/lerobot/motors/motors_bus.py54logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/motors_bus.py710 def set_baudrate(self, baudrate: int) -> None:CODE
LOWsrc/lerobot/motors/motors_bus.py1195 def _setup_sync_reader(self, motor_ids: list[int], addr: int, length: int) -> None:CODE
LOWsrc/lerobot/motors/motors_bus.py1282 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.py59logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/motors/damiao/damiao.py335 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__.py105__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/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.py86logger = 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/video_utils.py53logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/compute_stats.py160 def _update_histograms(self, batch: np.ndarray) -> None:CODE
LOWsrc/lerobot/datasets/__init__.py62__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.py75logger = logging.getLogger(__name__)STRING
LOWsrc/lerobot/datasets/lerobot_dataset.py43logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py535 def set_image_transforms(self, image_transforms: Callable | None) -> None:CODE
LOWsrc/lerobot/datasets/dataset_reader.py116 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.py100 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/__init__.py20__all__ = ["GamepadTeleop", "GamepadTeleopConfig"]CODE
LOW…/lerobot/teleoperators/bi_rebot_102_leader/__init__.py20__all__ = ["BiRebot102Leader", "BiRebot102LeaderConfig"]CODE
LOW…leoperators/bi_rebot_102_leader/bi_rebot_102_leader.py28logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/teleoperators/omx_leader/__init__.py20__all__ = ["OmxLeader", "OmxLeaderConfig"]CODE
LOWsrc/lerobot/teleoperators/omx_leader/omx_leader.py31logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/teleoperators/phone/teleop_phone.py45logger = logging.getLogger(__name__)CODE
LOWsrc/lerobot/teleoperators/phone/__init__.py20__all__ = ["Phone", "PhoneConfig"]CODE
173 more matches not shown…
Deep Nesting236 hits · 220 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py62CODE
LOWtests/datasets/test_depth.py256CODE
LOWtests/datasets/test_datasets.py1158CODE
LOWtests/datasets/test_compute_stats.py272CODE
LOWtests/datasets/test_dataset_writer.py40CODE
LOWtests/datasets/test_streaming.py74CODE
LOWtests/datasets/test_streaming.py226CODE
LOWtests/datasets/test_streaming.py307CODE
LOWtests/datasets/test_aggregate.py394CODE
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
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.py269CODE
LOWsrc/lerobot/motors/calibration_gui.py98CODE
LOWsrc/lerobot/motors/calibration_gui.py320CODE
LOWsrc/lerobot/motors/calibration_gui.py356CODE
LOWsrc/lerobot/motors/motors_bus.py430CODE
LOWsrc/lerobot/motors/motors_bus.py850CODE
LOWsrc/lerobot/motors/motors_bus.py879CODE
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.py296CODE
LOWsrc/lerobot/motors/damiao/damiao.py309CODE
LOWsrc/lerobot/motors/damiao/damiao.py355CODE
LOWsrc/lerobot/motors/damiao/damiao.py395CODE
LOWsrc/lerobot/motors/damiao/damiao.py705CODE
LOWsrc/lerobot/motors/damiao/damiao.py760CODE
LOWsrc/lerobot/motors/feetech/feetech.py187CODE
LOWsrc/lerobot/motors/feetech/feetech.py341CODE
LOWsrc/lerobot/processor/migrate_policy_normalization.py65CODE
LOWsrc/lerobot/processor/migrate_policy_normalization.py125CODE
LOWsrc/lerobot/processor/migrate_policy_normalization.py365CODE
LOWsrc/lerobot/processor/env_processor.py178CODE
LOWsrc/lerobot/processor/pipeline.py791CODE
LOWsrc/lerobot/processor/observation_processor.py131CODE
LOWsrc/lerobot/rewards/factory.py33CODE
176 more matches not shown…
Excessive Try-Catch Wrapping187 hits · 205 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py75 except Exception as e:CODE
LOWtests/datasets/test_aggregate.py279 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.py522def consumer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py556def producer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py586def consumer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py596def producer():CODE
MEDIUMtests/policies/rtc/test_action_queue.py634def reader():CODE
MEDIUMtests/policies/rtc/test_action_queue.py647def consumer():CODE
LOWtests/policies/rtc/test_action_queue.py529 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py563 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py593 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py603 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py641 except Exception as e:CODE
LOWtests/policies/rtc/test_action_queue.py652 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.py97 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py116 except Exception as e:CODE
LOWtests/policies/wall_x/test_wallx.py131 except Exception as e: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.py414 except Exception as e:CODE
LOWexamples/rtc/eval_dataset.py376 except Exception as e:CODE
LOWexamples/rtc/eval_dataset.py530 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.py455 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.py200 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py262 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py304 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py317 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py391 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py424 except Exception as e:CODE
LOWsrc/lerobot/motors/damiao/damiao.py583 except Exception as e:CODE
127 more matches not shown…
Hallucination Indicators9 hits · 125 pts
SeverityFileLineSnippetContext
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.py336 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_enable(CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py339 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_enable(CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py348 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_disable()CODE
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py349 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_disable()CODE
AI Structural Patterns111 hits · 104 pts
SeverityFileLineSnippetContext
LOWtests/training/test_multi_gpu.py139CODE
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.py612CODE
LOWsrc/lerobot/rewards/pretrained.py70CODE
LOWsrc/lerobot/rewards/sarm/modeling_sarm.py56CODE
LOWsrc/lerobot/rewards/sarm/modeling_sarm.py193CODE
LOWsrc/lerobot/rewards/topreward/modeling_topreward.py150CODE
LOWsrc/lerobot/datasets/streaming_dataset.py241CODE
LOWsrc/lerobot/datasets/dataset_tools.py1671CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py47CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py548CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py663CODE
LOWsrc/lerobot/datasets/lerobot_dataset.py776CODE
LOWsrc/lerobot/datasets/depth_utils.py152CODE
LOWsrc/lerobot/utils/hub.py154CODE
LOWsrc/lerobot/policies/pretrained.py162CODE
LOWsrc/lerobot/policies/pi_gemma.py212CODE
LOWsrc/lerobot/policies/xvla/configuration_florence2.py81CODE
LOWsrc/lerobot/policies/xvla/configuration_florence2.py216CODE
LOWsrc/lerobot/policies/xvla/modeling_xvla.py428CODE
LOWsrc/lerobot/policies/xvla/soft_transformer.py299CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py523CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py1341CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py1706CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py1990CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py2133CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py2214CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py2592CODE
LOWsrc/lerobot/policies/xvla/modeling_florence2.py2717CODE
LOWsrc/lerobot/policies/pi0/modeling_pi0.py971CODE
LOWsrc/lerobot/policies/groot/modeling_groot.py153CODE
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.py73CODE
LOWsrc/lerobot/policies/pi05/modeling_pi05.py944CODE
LOWsrc/lerobot/policies/evo1/modeling_evo1.py78CODE
LOWsrc/lerobot/policies/evo1/internvl3_embedder.py106CODE
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.py1874CODE
LOW…bot/policies/gaussian_actor/modeling_gaussian_actor.py604CODE
51 more matches not shown…
Redundant / Tautological Comments63 hits · 97 pts
SeverityFileLineSnippetContext
LOWtests/datasets/test_image_transforms.py426 # Check if the combined transforms directory exists and contains the right filesCOMMENT
LOWtests/datasets/test_image_transforms.py445 # 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.py345 # Check if torch.compile is available (PyTorch 2.0+)COMMENT
LOWsrc/lerobot/processor/pipeline.py1303 # 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.py232 # Iterate over the datasetSTRING
LOWsrc/lerobot/datasets/dataset_tools.py639 # Check if video stream exists.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py661 # Set time_base to match the frame rate for proper timestamp handling.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py681 # Check if frame is in any of our desired frame ranges.COMMENT
LOWsrc/lerobot/datasets/dataset_tools.py690 # 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.py138 # 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.py183 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]COMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py503 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1010 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1105 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1114 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1205 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWsrc/lerobot/policies/groot/modeling_groot.py200 # Check if this is a fine-tuned LeRobot checkpoint (has model.safetensors)COMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py180 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]COMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py500 # Check if gradient checkpointing is enabled for any of the modelsCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py983 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1078 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1087 # Check if the model actually has adaRMS enabled for the expertCOMMENT
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1183 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py99 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]COMMENT
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py906 # Check if dataset_stats were provided in kwargsCOMMENT
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py1071 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1CODE
LOWsrc/lerobot/policies/rtc/debug_tracker.py167 # Check if step with this time already existsCOMMENT
LOWsrc/lerobot/policies/wall_x/utils.py263 # Set labels to None if all are invalid to skip cross entropy lossCOMMENT
LOW…c/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py2666 # Check if we can ignore the causal mask and rely on SDPA's internal handlingCOMMENT
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.py180 # Set this to True to apply them in a random order.COMMENT
LOWsrc/lerobot/scripts/convert_dataset_v21_to_v30.py228 # Check if we need to start a new file BEFORE creating metadataCOMMENT
LOWsrc/lerobot/scripts/convert_dataset_v21_to_v30.py327 # 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.py42 # 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/so_follower.py164 # Set P_Coefficient to lower value to avoid shakiness (Default is 32)COMMENT
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
3 more matches not shown…
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.py819 # Step 3: Create dataset CCOMMENT
LOWtests/datasets/test_aggregate.py827 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURREDCOMMENT
LOWtests/datasets/test_aggregate.py843 # Step 5: Verify all data files referenced in metadata actually existCOMMENT
LOWtests/datasets/test_aggregate.py851 # Step 6: Verify we can iterate through the entire dataset without FileNotFoundErrorCOMMENT
LOWtests/datasets/test_aggregate.py784 # Step 1: Create datasets A and BCOMMENT
LOWtests/datasets/test_aggregate.py798 # 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.py395 # Step 1: Move policy to CPU to free GPU/MPS memoryCOMMENT
LOWexamples/rtc/eval_dataset.py398 # Step 2: Delete the policy objectCOMMENT
LOWexamples/rtc/eval_dataset.py401 # Step 3: Force garbage collection to reclaim memory immediatelyCOMMENT
LOWexamples/rtc/eval_dataset.py404 # Step 4: Clear device-specific cachesCOMMENT
LOWexamples/rtc/eval_dataset.py444 # Step 1: Generate previous chunk using policy_prev_chunkCOMMENT
LOWexamples/rtc/eval_dataset.py467 # Step 2: Generate actions WITHOUT RTC using policy_no_rtcCOMMENT
LOWexamples/rtc/eval_dataset.py500 # Step 3: Generate actions WITH RTC using policy_rtcCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py512 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py524 # Step 2: Collect responses and update state cacheCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py716 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py737 # 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.py189 # 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.py819 # Step 3: Create dataset CCOMMENT
LOWtests/datasets/test_aggregate.py827 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURREDCOMMENT
LOWtests/datasets/test_aggregate.py843 # Step 5: Verify all data files referenced in metadata actually existCOMMENT
LOWtests/datasets/test_aggregate.py851 # Step 6: Verify we can iterate through the entire dataset without FileNotFoundErrorCOMMENT
LOWtests/datasets/test_aggregate.py784 # Step 1: Create datasets A and BCOMMENT
LOWtests/datasets/test_aggregate.py798 # 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.py395 # Step 1: Move policy to CPU to free GPU/MPS memoryCOMMENT
LOWexamples/rtc/eval_dataset.py398 # Step 2: Delete the policy objectCOMMENT
LOWexamples/rtc/eval_dataset.py401 # Step 3: Force garbage collection to reclaim memory immediatelyCOMMENT
LOWexamples/rtc/eval_dataset.py404 # Step 4: Clear device-specific cachesCOMMENT
LOWexamples/rtc/eval_dataset.py444 # Step 1: Generate previous chunk using policy_prev_chunkCOMMENT
LOWexamples/rtc/eval_dataset.py467 # Step 2: Generate actions WITHOUT RTC using policy_no_rtcCOMMENT
LOWexamples/rtc/eval_dataset.py500 # Step 3: Generate actions WITH RTC using policy_rtcCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py512 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py524 # Step 2: Collect responses and update state cacheCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py716 # Step 1: Send all MIT control commandsCOMMENT
LOWsrc/lerobot/motors/damiao/damiao.py737 # 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.py189 # 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.py440 # 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.py440 """Compute comprehensive statistics for array features along specified axes.STRING
MEDIUMsrc/lerobot/datasets/compute_stats.py491 """Compute comprehensive statistics for all features in an episode.STRING
MEDIUMsrc/lerobot/cameras/opencv/camera_opencv.py242 # 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.py974 # To be robust, accept scalars or lists.COMMENT
MEDIUMsrc/lerobot/scripts/lerobot_eval.py1048 # compute aggregated metrics helper (robust to lists/scalars)COMMENT
MEDIUMsrc/lerobot/scripts/lerobot_dataset_viz.py235 # 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-Vocabulary6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMtests/rewards/test_reward_model_base.py130# Trainable vs zero-shot (general-purpose) reward models.COMMENT
MEDIUMtests/jobs/test_hf.py185 # `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.md428### Joint frame transform (SO-100/101 zero-shot)COMMENT
MEDIUMsrc/lerobot/jobs/hf.py397 # (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
HIGHexamples/annotations/run_hf_job.py46 "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.py160 # Configuration for concurrency settings (you can use threads or processes for the actor and learner)COMMENT
LOWsrc/lerobot/scripts/lerobot_eval.py546 # (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.py290 # TODO: implement g1_29 calibrationCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ons/steerable_pipeline/modules/plan_subtasks_memory.py188 "placeholder",CODE