Repository Analysis

galilai-group/stable-worldmodel

A platform for reproducible world model research and evaluation

30.5 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of galilai-group/stable-worldmodel, a Python project with 2,040 GitHub stars. SynthScan v2.0 examined 68,265 lines of code across 268 source files, recording 1452 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 30.5 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).

30.5
Adjusted Score
30.5
Raw Score
100%
Time Factor
2026-07-06
Last Push
2.0K
Stars
Python
Language
68.3K
Lines of Code
268
Files
1.5K
Pattern Hits
2026-07-14
Scan Date
0.32
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 1HIGH 86MEDIUM 160LOW 1205

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 1452 distinct pattern matches across 15 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 Identifiers864 hits · 767 pts
SeverityFileLineSnippetContext
LOWtests/test_utils.py107def test_flatten_dict_empty_dict():CODE
LOWtests/test_utils.py111def test_flatten_dict_single_level():CODE
LOWtests/test_utils.py115def test_flatten_dict_nested_dict():CODE
LOWtests/test_utils.py119def test_flatten_dict_information_loss():CODE
LOWtests/test_utils.py123def test_flatten_dict_multiple_nested_levels():CODE
LOWtests/test_utils.py127def test_flatten_dict_other_separators():CODE
LOWtests/test_utils.py131def test_flatten_dict_parent_key():CODE
LOWtests/test_utils.py135def test_flatten_dict_mixed_types():CODE
LOWtests/test_utils.py142def test_flatten_dict_same_flatten():CODE
LOWtests/test_utils.py153def test_get_in_existing_key_depth_one():CODE
LOWtests/test_utils.py162def test_get_in_missing_key_depth_one():CODE
LOWtests/test_utils.py171def test_get_in_existing_key_depth_two():CODE
LOWtests/test_utils.py175def test_get_in_missing_key_depth_two():CODE
LOWtests/test_utils.py180def test_get_in_missing_intermediate_key_depth_two():CODE
LOWtests/test_utils.py185def test_get_in_empty_key_depth_two():CODE
LOWtests/test_utils.py225def test_record_video_single_episode(tmp_path):CODE
LOWtests/test_utils.py235def test_record_video_multiple_episodes(tmp_path):CODE
LOWtests/test_utils.py245def test_record_video_max_steps(tmp_path):CODE
LOWtests/test_utils.py20def test_raises_when_script_not_exists(monkeypatch):CODE
LOWtests/test_utils.py39def test_pretraining_exits_on_failure(monkeypatch):CODE
LOWtests/test_utils.py50def test_pretraining_parses_single_arg(monkeypatch):CODE
LOWtests/test_utils.py67def test_pretraining_parses_multiple_args(monkeypatch):CODE
LOWtests/test_utils.py88def test_pretraining_with_empty_args(monkeypatch):CODE
LOWtests/test_utils.py256def test_record_video_multiple_views(tmp_path):CODE
LOWtests/test_utils.py271def test_record_video_invalid_view_raises(tmp_path):CODE
LOWtests/check_world.py180def test_ep_idx_in_recorded_dataset(temp_path):CODE
LOWtests/test_world.py139 def test_auto_sets_needs_flush(self):CODE
LOWtests/test_world.py169 def test_auto_infos_updated_after_reset(self):CODE
LOWtests/test_world.py198 def test_wait_stops_dead_envs(self):CODE
LOWtests/test_world.py209 def test_wait_dead_envs_get_nan(self):CODE
LOWtests/test_world.py226 def test_wait_skips_stepping_dead_envs(self):CODE
LOWtests/test_world.py255 def test_on_step_called_every_step(self):CODE
LOWtests/test_world.py270 def test_on_done_receives_correct_ep_idx(self):CODE
LOWtests/test_world.py285 def test_on_done_stops_at_episode_limit(self):CODE
LOWtests/test_world.py307 def test_no_episodes_or_max_steps_raises(self):CODE
LOWtests/test_world.py323 def test_max_steps_stops_even_without_termination(self):CODE
LOWtests/test_world.py333 def test_both_episodes_and_max_steps(self):CODE
LOWtests/test_world.py353 def test_flush_clears_buffer_on_auto_reset(self):CODE
LOWtests/test_world.py370 def test_flush_only_for_done_envs(self):CODE
LOWtests/test_world.py388 def test_needs_flush_not_present_initially(self):CODE
LOWtests/test_world.py401 def test_evaluate_returns_results(self):CODE
LOWtests/test_world.py414 def test_evaluate_default_mode_is_auto(self):CODE
LOWtests/test_world.py446 def test_set_policy_seeds_policy(self):CODE
LOWtests/test_world.py461 def test_reset_initializes_state(self):CODE
LOWtests/test_world.py470 def test_reset_per_env_options_passed_through(self):CODE
LOWtests/test_world.py494 def test_num_envs_matches_pool(self):CODE
LOWtests/test_world.py498 def test_close_calls_every_env(self):CODE
LOWtests/test_new_world.py139 def test_auto_sets_needs_flush(self):CODE
LOWtests/test_new_world.py169 def test_auto_infos_updated_after_reset(self):CODE
LOWtests/test_new_world.py198 def test_wait_stops_dead_envs(self):CODE
LOWtests/test_new_world.py209 def test_wait_dead_envs_get_nan(self):CODE
LOWtests/test_new_world.py226 def test_wait_skips_stepping_dead_envs(self):CODE
LOWtests/test_new_world.py255 def test_on_step_called_every_step(self):CODE
LOWtests/test_new_world.py270 def test_on_done_receives_correct_ep_idx(self):CODE
LOWtests/test_new_world.py285 def test_on_done_stops_at_episode_limit(self):CODE
LOWtests/test_new_world.py307 def test_no_episodes_or_max_steps_raises(self):CODE
LOWtests/test_new_world.py323 def test_max_steps_stops_even_without_termination(self):CODE
LOWtests/test_new_world.py333 def test_both_episodes_and_max_steps(self):CODE
LOWtests/test_new_world.py353 def test_flush_clears_buffer_on_auto_reset(self):CODE
LOWtests/test_new_world.py370 def test_flush_only_for_done_envs(self):CODE
804 more matches not shown…
Decorative Section Separators147 hits · 501 pts
SeverityFileLineSnippetContext
MEDIUMtests/wm/test_utils.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py159# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py161# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py186# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py188# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py226# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py289# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py291# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py106# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py108# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py153# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py189# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py48# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/data/test_data_utils.py25# ─── get_cache_dir ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_data_utils.py62# ─── ensure_dir_exists ────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_data_utils.py77# ─── _resolve_dataset ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_data_utils.py121# ─── _resolve_dataset_hf ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_data_utils.py212# ─── _hf_find_dataset_entry ──────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_data_utils.py310# ─── _download ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_data_utils.py343# ─── load_dataset ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py61# ─── Registry ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py200# ─── HDF5 writer ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py34# ─── Fixtures ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py141# ─── Detection ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py344# ─── Folder writer ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py475# ─── Video writer ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py593# ─── Convert ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py680# ─── load_dataset autodetect ──────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py724# ─── World.collect with non-default format ────────────────────────────────────COMMENT
MEDIUMtests/data/test_normalization.py17# ─── IdentityScaler ───────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_normalization.py34# ─── ZScoreScaler ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_normalization.py86# ─── PercentileScaler ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_normalization.py151# ─── Picklability (DataLoader spawn-safe) ─────────────────────────────────────COMMENT
MEDIUMtests/data/test_normalization.py131# ─── get_scaler ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_normalization.py169# ─── column_normalizer ────────────────────────────────────────────────────────COMMENT
MEDIUMstable_worldmodel/wm/tdmpc2/module.py5# ---------------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/wm/tdmpc2/module.py7# ---------------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/wm/tdmpc2/module.py70# ---------------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/wm/tdmpc2/module.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/envs/ogbench/maze_env.py274 # ------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/envs/ogbench/maze_env.py276 # ------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/envs/ogbench/maze_env.py484 # ------------------------------------------------------------------COMMENT
MEDIUMstable_worldmodel/envs/ogbench/maze_env.py486 # ------------------------------------------------------------------COMMENT
MEDIUMdocs/api/solver.md234# ── 1. Define a world model with cost and optional constraints ──────────────COMMENT
MEDIUMdocs/api/solver.md254# ── 2. Build and configure the solver ──────────────────────────────────────COMMENT
MEDIUMdocs/api/solver.md276# ── 3. Solve ────────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/api/solver.md286# ── 4. Receding-horizon planning (warm start) ───────────────────────────────COMMENT
MEDIUMdocs/api/solver.md332# ── 1. World model: cost defined over one-hot candidates ────────────────────COMMENT
MEDIUMdocs/api/solver.md346# ── 2. Build and configure the solver ──────────────────────────────────────COMMENT
87 more matches not shown…
Cross-File Repetition72 hits · 360 pts
SeverityFileLineSnippetContext
HIGHtests/wm/test_lewm.py0a pre-populated goal_emb is reused; encode is not called again.STRING
HIGHtests/wm/test_pldm.py0a pre-populated goal_emb is reused; encode is not called again.STRING
HIGHtests/planning/test_evaluator.py0a pre-populated goal_emb is reused; encode is not called again.STRING
HIGH…able_worldmodel/planning/solver/predictive_sampling.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/icem.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/cem.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/mppi.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/lagrangian.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/pgd.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/gd.py0configure the solver with environment specifications.STRING
HIGHstable_worldmodel/planning/solver/categorical_cem.py0configure the solver with environment specifications.STRING
HIGH…able_worldmodel/planning/solver/predictive_sampling.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/solver.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/icem.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/cem.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/mppi.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/lagrangian.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/pgd.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/gd.py0flattened action dimension including action_block grouping.STRING
HIGHstable_worldmodel/planning/solver/icem.py0initialize the action distribution parameters (mean and variance).STRING
HIGHstable_worldmodel/planning/solver/cem.py0initialize the action distribution parameters (mean and variance).STRING
HIGHstable_worldmodel/planning/solver/mppi.py0initialize the action distribution parameters (mean and variance).STRING
HIGHstable_worldmodel/envs/dmcontrol/quadruped.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/humanoid.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/ball_in_cup.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/walker.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/cheetah.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/cartpole.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/hopper.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/acrobot.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/pendulum.py0apply gravity variation directly on the compiled physics model.STRING
HIGHstable_worldmodel/envs/dmcontrol/quadruped.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/humanoid.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/ball_in_cup.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/manipulator.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/reacher.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/walker.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/cheetah.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/cartpole.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/hopper.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/acrobot.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/pendulum.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/dmcontrol/finger.py0apply visual variations to the mujoco model based on variation space. modifies the mjcf model xml to apply sampled variaSTRING
HIGHstable_worldmodel/envs/two_room/expert_policy.py0set the random seed for action sampling. args: seed: the seed value.STRING
HIGHstable_worldmodel/envs/pusht/expert_policy.py0set the random seed for action sampling. args: seed: the seed value.STRING
HIGHstable_worldmodel/envs/ogbench/expert_policy.py0set the random seed for action sampling. args: seed: the seed value.STRING
HIGHscripts/visualization/visualize_env.py0setup dataset with image transforms and normalization.STRING
HIGHscripts/visualization/visualize_value_function.py0setup dataset with image transforms and normalization.STRING
HIGHscripts/train/gciql.py0setup dataset with image transforms and normalization.STRING
HIGHscripts/train/gcivl.py0setup dataset with image transforms and normalization.STRING
HIGHscripts/train/gcbc.py0setup dataset with image transforms and normalization.STRING
HIGHscripts/train/hilp.py0setup dataset with image transforms and normalization.STRING
HIGHscripts/visualization/visualize_env.py0factory function to create encoder based on backbone type.STRING
HIGHscripts/visualization/visualize_dataset.py0factory function to create encoder based on backbone type.STRING
HIGHscripts/visualization/visualize_trajectories.py0factory function to create encoder based on backbone type.STRING
HIGHscripts/visualization/visualize_env.py0load and setup world model. for visualization, we only need the model to implement the `encode` method.STRING
HIGHscripts/visualization/visualize_dataset.py0load and setup world model. for visualization, we only need the model to implement the `encode` method.STRING
HIGHscripts/visualization/visualize_trajectories.py0load and setup world model. for visualization, we only need the model to implement the `encode` method.STRING
HIGHscripts/train/gciql.py0forward: encode observations and goals, predict actions, compute losses.STRING
HIGHscripts/train/gcivl.py0forward: encode observations and goals, predict actions, compute losses.STRING
12 more matches not shown…
Unused Imports181 hits · 170 pts
SeverityFileLineSnippetContext
LOWtests/data/test_lance_video.py7CODE
LOWtests/data/test_lance_video.py21CODE
LOWtests/data/test_convert_video_formats.py27CODE
LOWtests/data/test_convert_video_formats.py106CODE
LOWtests/data/test_datasets.py151CODE
LOWtests/data/test_lance_wide_column_read_hang.py71CODE
LOWtests/data/test_integration_real.py357CODE
LOWtests/data/test_cli_datasets.py13CODE
LOWtests/data/test_cli_datasets.py293CODE
LOWtests/data/test_replay_buffer.py4CODE
LOWtests/data/test_merge.py3CODE
LOWtests/data/test_lance.py3CODE
LOWtests/data/test_lerobot_adapter.py3CODE
LOWtests/data/test_cli_preview.py10CODE
LOWtests/data/test_format.py3CODE
LOWtests/data/test_format.py519CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py1CODE
LOWstable_worldmodel/__init__.py11CODE
LOWstable_worldmodel/__init__.py12CODE
LOWstable_worldmodel/__init__.py13CODE
LOWstable_worldmodel/cli.py624CODE
LOWstable_worldmodel/plot/video_utils.py1CODE
LOWstable_worldmodel/plot/__init__.py1CODE
LOWstable_worldmodel/plot/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wrapper/__init__.py11CODE
LOWstable_worldmodel/wm/__init__.py1CODE
LOWstable_worldmodel/wm/__init__.py2CODE
LOWstable_worldmodel/wm/__init__.py5CODE
LOWstable_worldmodel/wm/__init__.py6CODE
LOWstable_worldmodel/wm/__init__.py7CODE
121 more matches not shown…
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHstable_worldmodel/policy.py61Get action from the policy given the observation. Args: obs: The current observation from the envirSTRING
HIGHstable_worldmodel/policy.py84Pre-process and transform observations. Applies preprocessing (via `self.process`) and transformations (via `seSTRING
HIGHstable_worldmodel/policy.py250Get action via a forward pass through the neural network model. Args: info_dict: Current state infoSTRING
HIGHstable_worldmodel/spaces.py130Sample a random value using rejection sampling for constraints. Args: mask: Optional mask for samplSTRING
HIGHstable_worldmodel/spaces.py263Sample random values using rejection sampling for constraints. Args: mask: Optional mask for sampliSTRING
HIGHstable_worldmodel/spaces.py400Sample a random value using rejection sampling for constraints. Args: mask: Optional mask for samplSTRING
HIGHstable_worldmodel/spaces.py691Sample a random element from the Dict space. Args: mask: Optional mask for sampling. maSTRING
HIGHstable_worldmodel/wrapper/default.py95Perform step and validate image shape. Args: action: Action to perform. Returns: STRING
HIGHstable_worldmodel/wrapper/default.py114Reset and validate image shape. Args: *args: Positional arguments for reset. **kwargs: STRING
HIGHstable_worldmodel/wrapper/default.py152Reset and validate goal presence. Args: *args: Positional arguments for reset. **kwargsSTRING
HIGHstable_worldmodel/wrapper/default.py172Perform step and validate goal presence. Args: action: Action to perform. Returns: STRING
HIGHstable_worldmodel/wrapper/default.py349Rename mapped keys in info. Args: info: The info dictionary to modify. Returns: STRING
HIGHstable_worldmodel/envs/ogbench/cube_env.py777Reset the environment to an initial state. Resets the environment and optionally samples from the variation spaSTRING
HIGHstable_worldmodel/envs/ogbench/cube_env.py1218Set a new random target for data collection mode. Randomly selects one of the "top" cubes (not stacked under anSTRING
Deep Nesting53 hits · 53 pts
SeverityFileLineSnippetContext
LOWtests/data/test_integration_real.py197CODE
LOWstable_worldmodel/policy.py83CODE
LOWstable_worldmodel/policy.py348CODE
LOWstable_worldmodel/spaces.py579CODE
LOWstable_worldmodel/spaces.py651CODE
LOWstable_worldmodel/cli.py350CODE
LOW…able_worldmodel/planning/solver/predictive_sampling.py110CODE
LOWstable_worldmodel/planning/solver/icem.py148CODE
LOWstable_worldmodel/planning/solver/cem.py119CODE
LOWstable_worldmodel/planning/solver/mppi.py119CODE
LOWstable_worldmodel/planning/solver/lagrangian.py196CODE
LOWstable_worldmodel/planning/solver/pgd.py148CODE
LOWstable_worldmodel/planning/solver/gd.py158CODE
LOWstable_worldmodel/planning/solver/categorical_cem.py150CODE
LOWstable_worldmodel/world/world.py601CODE
LOWstable_worldmodel/world/world.py257CODE
LOWstable_worldmodel/world/world.py376CODE
LOWstable_worldmodel/world/world.py310CODE
LOWstable_worldmodel/world/env_pool.py162CODE
LOWstable_worldmodel/world/env_pool.py185CODE
LOWstable_worldmodel/envs/robocasa.py382CODE
LOWstable_worldmodel/envs/robocasa.py792CODE
LOWstable_worldmodel/envs/gymnasium_robotics/fetch.py253CODE
LOWstable_worldmodel/envs/gymnasium_robotics/fetch.py330CODE
LOWstable_worldmodel/envs/dmcontrol/custom_tasks/walker.py142CODE
LOW…able_worldmodel/envs/dmcontrol/custom_tasks/cheetah.py151CODE
LOWstable_worldmodel/envs/dmcontrol/custom_tasks/hopper.py51CODE
LOWstable_worldmodel/envs/piecewise/piecewise_env.py384CODE
LOWstable_worldmodel/envs/two_room/env.py477CODE
LOWstable_worldmodel/envs/two_room/expert_policy.py42CODE
LOWstable_worldmodel/envs/pusht/env.py907CODE
LOWstable_worldmodel/envs/ogbench/cube_env.py95CODE
LOWstable_worldmodel/envs/ogbench/cube_env.py323CODE
LOWstable_worldmodel/envs/ogbench/cube_env.py844CODE
LOWstable_worldmodel/envs/ogbench/cube_env.py951CODE
LOWstable_worldmodel/envs/ogbench/expert_policy.py81CODE
LOWstable_worldmodel/envs/ogbench/expert_policy.py196CODE
LOWstable_worldmodel/envs/ogbench/scene_env.py484CODE
LOWstable_worldmodel/envs/ogbench/scene_env.py755CODE
LOW…worldmodel/envs/rocket_landing/pyflyt_rocketlanding.py270CODE
LOWstable_worldmodel/data/utils.py42CODE
LOWstable_worldmodel/data/formats/lance.py764CODE
LOWstable_worldmodel/data/formats/lance.py858CODE
LOWstable_worldmodel/data/formats/folder.py205CODE
LOWstable_worldmodel/data/formats/video.py159CODE
LOWscripts/visualization/visualize_env.py57CODE
LOWscripts/visualization/visualize_env.py181CODE
LOWscripts/visualization/visualize_env.py356CODE
LOWscripts/visualization/utils.py170CODE
LOWscripts/visualization/visualize_trajectories.py614CODE
LOWscripts/visualization/visualize_value_function.py109CODE
LOWscripts/visualization/visualize_value_function.py186CODE
LOWscripts/expert/tdmpc2_online.py319CODE
Modern Structural Boilerplate53 hits · 53 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/policy.py75 def set_env(self, env: Any) -> None:CODE
LOWstable_worldmodel/policy.py176 def set_env(self, env: Any) -> None:CODE
LOWstable_worldmodel/policy.py181 def _set_seed(self, seed: int) -> None:CODE
LOWstable_worldmodel/policy.py329 def set_env(self, env: Any) -> None:CODE
LOWstable_worldmodel/__init__.py15__all__ = [CODE
LOWstable_worldmodel/spaces.py163 def set_init_value(self, value: int) -> None:CODE
LOWstable_worldmodel/spaces.py178 def set_value(self, value: int) -> None:CODE
LOWstable_worldmodel/spaces.py296 def set_init_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py311 def set_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py433 def set_init_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py448 def set_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py759 def set_init_value(self, variations_values: dict) -> None:CODE
LOWstable_worldmodel/spaces.py780 def set_value(self, variations_values: dict) -> None:CODE
LOWstable_worldmodel/utils.py149__all__ = [CODE
LOWstable_worldmodel/plot/__init__.py4__all__ = ['save_video', 'save_panel_videos']CODE
LOWstable_worldmodel/wrapper/__init__.py31__all__ = [CODE
LOWstable_worldmodel/wm/loss.py127__all__ = [CODE
LOWstable_worldmodel/wm/utils.py185__all__ = ['load_pretrained', 'save_pretrained']CODE
LOWstable_worldmodel/wm/probes.py38__all__ = [CODE
LOWstable_worldmodel/wm/pldm/pldm.py114__all__ = ['PLDM']CODE
LOWstable_worldmodel/wm/tdmpc2/tdmpc2.py468__all__ = [CODE
LOWstable_worldmodel/wm/gcrl/gcrl.py212__all__ = ['GCRL']CODE
LOWstable_worldmodel/wm/lewm/lewm.py110__all__ = ['LeWM']CODE
LOWstable_worldmodel/planning/__init__.py42__all__ = [CODE
LOWstable_worldmodel/planning/solver/__init__.py11__all__ = [CODE
LOWstable_worldmodel/planning/solver/callbacks/__init__.py20__all__ = [CODE
LOWstable_worldmodel/world/world.py168 def set_policy(self, policy: Policy) -> None:CODE
LOWstable_worldmodel/world/__init__.py4__all__ = ['World', 'EnvPool']CODE
LOWstable_worldmodel/envs/gymnasium_robotics/fetch.py12logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/envs/gymnasium_robotics/__init__.py9__all__ = ['FetchWrapper']CODE
LOWstable_worldmodel/envs/dmcontrol/__init__.py3__all__ = ['ExpertPolicy']CODE
LOWstable_worldmodel/envs/piecewise/expert_policy.py26 def set_seed(self, seed: int | None) -> None:CODE
LOWstable_worldmodel/envs/two_room/expert_policy.py30 def set_seed(self, seed: int | None) -> None:CODE
LOWstable_worldmodel/envs/two_room/__init__.py4__all__ = ['ExpertPolicy', 'TwoRoomEnv']CODE
LOWstable_worldmodel/envs/pusht/expert_policy.py27 def set_seed(self, seed: int | None) -> None:CODE
LOWstable_worldmodel/envs/pusht/__init__.py6__all__ = ['PushT', 'PushTDiscrete', 'WeakPolicy']CODE
LOWstable_worldmodel/envs/ogbench/expert_policy.py53 def set_seed(self, seed: int | None) -> None:CODE
LOWstable_worldmodel/envs/ogbench/__init__.py7__all__ = ['CubeEnv', 'MazeEnv', 'SceneEnv', 'ExpertPolicy']CODE
LOWstable_worldmodel/envs/rocket_landing/__init__.py5__all__ = [CODE
LOWstable_worldmodel/data/__init__.py54__all__ = [CODE
LOWstable_worldmodel/data/format.py126__all__ = [CODE
LOWstable_worldmodel/data/dataset.py496__all__ = [CODE
LOWstable_worldmodel/data/utils.py458__all__ = [CODE
LOWstable_worldmodel/data/buffer.py437__all__ = ['ReplayBuffer', 'classic_filter']CODE
LOWstable_worldmodel/data/normalization.py19__all__ = [CODE
LOWstable_worldmodel/data/formats/lerobot.py379__all__ = ['LeRobot', 'LeRobotAdapter']CODE
LOWstable_worldmodel/data/formats/lance.py326 def _update_fetch_columns(self) -> None:CODE
LOWstable_worldmodel/data/formats/lance.py1001__all__ = ['Lance', 'LanceDataset', 'LanceWriter']CODE
LOWstable_worldmodel/data/formats/folder.py329__all__ = ['Folder', 'FolderDataset', 'FolderWriter', 'ImageDataset']CODE
LOWstable_worldmodel/data/formats/lance_video.py223 def _update_fetch_columns(self) -> None:CODE
LOWstable_worldmodel/data/formats/lance_video.py650__all__ = ['LanceVideo', 'LanceVideoDataset', 'LanceVideoWriter']CODE
LOWstable_worldmodel/data/formats/hdf5.py336__all__ = ['HDF5', 'HDF5Dataset', 'HDF5Writer']CODE
LOWstable_worldmodel/data/formats/video.py287__all__ = ['Video', 'VideoDataset', 'VideoWriter']CODE
Self-Referential Comments10 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_wrappers.py1228 # Create a simple transform mockCOMMENT
MEDIUMtests/test_wrappers.py1348 # Create a simple transform mockCOMMENT
MEDIUMtests/test_spaces.py1913 # Create a vanilla gymnasium space without init_valueCOMMENT
MEDIUMstable_worldmodel/envs/image_positioning.py350 # Create a Pygame Surface from the PIL image dataCOMMENT
MEDIUMstable_worldmodel/envs/image_positioning.py388 # Create a CartPole environment with "rgb_array" render mode to get image dataCOMMENT
MEDIUMstable_worldmodel/envs/ogbench/cube_env.py17 # Create a double cube environment with pixel observationsSTRING
MEDIUMstable_worldmodel/envs/rocket_landing/expert_policy.py548 # Create the GNC controller with provided or default parametersCOMMENT
MEDIUMscripts/visualization/visualize_env.py584 # Define a list of markers to distinguish variationsCOMMENT
MEDIUMscripts/visualization/utils.py238 # Create the meshgrid and reshape to (N, 2)COMMENT
MEDIUMscripts/visualization/visualize_dataset.py360 # Create a label entry for every point in this batchCOMMENT
Excessive Try-Catch Wrapping23 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/data/test_lance_video.py22except Exception as exc: # noqa: BLE001CODE
LOWtests/data/test_convert_video_formats.py107 except Exception as exc: # noqa: BLE001CODE
LOWtests/data/test_datasets.py152 except Exception as exc: # noqa: BLE001CODE
LOWtests/data/test_integration_real.py358 except Exception as exc: # noqa: BLE001CODE
LOWtests/data/test_cli_datasets.py294 except Exception as exc:CODE
LOWtests/data/test_lerobot_adapter.py33 except Exception as exc: # pragma: no cover - network/disk dependentCODE
LOWtests/data/test_format.py520 except Exception as exc: # noqa: BLE001CODE
LOWstable_worldmodel/cli.py124 except Exception:CODE
LOWstable_worldmodel/cli.py287 except Exception:CODE
LOWstable_worldmodel/cli.py295 except Exception:CODE
LOWstable_worldmodel/cli.py320 except Exception:CODE
LOWstable_worldmodel/cli.py394 except Exception:CODE
LOWstable_worldmodel/cli.py754 except Exception as e:CODE
LOWstable_worldmodel/envs/simple_point_maze.py390 except Exception:CODE
MEDIUMstable_worldmodel/envs/simple_point_maze.py384def close(self):CODE
LOWstable_worldmodel/envs/robocasa.py885 except Exception as e:CODE
LOWstable_worldmodel/envs/gymnasium_robotics/fetch.py293 except Exception as e:CODE
LOWstable_worldmodel/envs/dmcontrol/dmcontrol.py14 except Exception:CODE
LOWstable_worldmodel/envs/rocket_landing/expert_policy.py169 except Exception as e:CODE
LOW…worldmodel/envs/rocket_landing/pyflyt_rocketlanding.py396 except Exception:CODE
LOWscripts/benchmark/compare_h5_lance.py209 except Exception as e:CODE
LOWscripts/visualization/visualize_trajectories.py594 except Exception as exc: # noqa: BLE001CODE
LOWscripts/expert/sac_online.py391 except Exception as e:CODE
Redundant / Tautological Comments13 hits · 24 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/envs/simple_point_maze.py241 # Check if goal reachedCOMMENT
LOWstable_worldmodel/envs/image_positioning.py249 # Check if agent reached the targetCOMMENT
LOWstable_worldmodel/envs/two_room/env.py513 # Check if agent is trying to enter the wall zoneCOMMENT
LOWstable_worldmodel/envs/two_room/env.py517 # Check if in a doorCOMMENT
LOWstable_worldmodel/envs/two_room/env.py524 # Check if in a doorCOMMENT
LOWstable_worldmodel/envs/two_room/env.py543 # Check if agent is trying to enter the wall zoneCOMMENT
LOWstable_worldmodel/envs/two_room/env.py547 # Check if in a doorCOMMENT
LOWstable_worldmodel/envs/two_room/env.py554 # Check if in a doorCOMMENT
LOWstable_worldmodel/envs/two_room/env.py586 # Check if agent x is in wall zoneCOMMENT
LOWstable_worldmodel/envs/two_room/env.py590 # Check if agent y is in wall zoneCOMMENT
LOWstable_worldmodel/envs/two_room/env.py696 # Check if min_steps constraint is satisfiedCOMMENT
LOWstable_worldmodel/envs/ogbench/cube_env.py1377 # Check if the cubes are in the target positions.COMMENT
LOWstable_worldmodel/envs/ogbench/scene_env.py1007 # Check if the object is out of bounds.COMMENT
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/wm/gcrl/module.py485CODE
LOWstable_worldmodel/planning/solver/icem.py41CODE
LOWstable_worldmodel/planning/solver/cem.py31CODE
LOWstable_worldmodel/planning/solver/mppi.py31CODE
LOWstable_worldmodel/planning/solver/lagrangian.py56CODE
LOWstable_worldmodel/planning/solver/gd.py39CODE
LOWstable_worldmodel/planning/solver/categorical_cem.py32CODE
LOWstable_worldmodel/world/world.py114CODE
LOWstable_worldmodel/world/world.py188CODE
LOWstable_worldmodel/envs/pusht/env.py29CODE
LOWstable_worldmodel/envs/pusht/env_discrete.py22CODE
LOW…worldmodel/envs/rocket_landing/pyflyt_rocketlanding.py35CODE
LOWstable_worldmodel/data/formats/lerobot.py73CODE
LOWstable_worldmodel/data/formats/lance.py150CODE
LOWstable_worldmodel/data/formats/folder.py31CODE
LOWstable_worldmodel/data/formats/hdf5.py35CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALstable_worldmodel/envs/robocasa.py755 in self.env.sim.model._camera_name2id.keys()CODE
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/data/test_datasets.py1482 # Should just return base dataset itemCOMMENT
MEDIUMstable_worldmodel/wrapper/default.py593 """Combines multiple wrappers for comprehensive environment preprocessing."""STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMstable_worldmodel/envs/two_room/env.py341CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/benchmark/configs/benchmark.yaml41 format: hdf5COMMENT
LOWscripts/benchmark/configs/benchmark.yaml61# source: s3COMMENT