Repository Analysis

galilai-group/stable-worldmodel

A platform for reproducible world model research and evaluation

30.7 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,161 GitHub stars. SynthScan v2.0 examined 73,823 lines of code across 278 source files, recording 1613 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 30.7 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.7
Adjusted Score
30.7
Raw Score
100%
Time Factor
2026-08-25
Last Push
2.2K
Stars
Python
Language
73.8K
Lines of Code
278
Files
1.6K
Pattern Hits
2026-08-29
Scan Date
0.31
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 161LOW 1365

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 1613 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 Identifiers984 hits · 880 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_buffer.py118 def test_n_negative_returns_none(self):CODE
LOWtests/test_buffer.py127 def test_warmup_pads_with_oldest(self):CODE
LOWtests/test_buffer.py137 def test_one_env_empty_returns_none(self):CODE
LOWtests/test_buffer.py41 def test_invalid_action_block(self):CODE
LOWtests/test_buffer.py63 def test_multiple_appends_increase_length(self):CODE
LOWtests/test_buffer.py85 def test_scalar_value_passes_through(self):CODE
LOWtests/test_buffer.py200 def test_desynced_envs_do_not_couple(self):CODE
LOWtests/test_buffer.py213 def test_env_ids_selects_and_orders_rows(self):CODE
LOWtests/test_buffer.py225 def test_env_ids_ignores_other_envs_emptiness(self):CODE
LOWtests/test_buffer.py244 def test_scalar_per_env_shape(self):CODE
LOWtests/test_buffer.py272 def test_mixed_keys_preserve_types(self):CODE
LOWtests/test_buffer.py299 def test_blocked_leaving_frame_alignment(self):CODE
LOWtests/test_buffer.py322 def test_blocked_warmup_zero_pads(self):CODE
LOWtests/test_buffer.py339 def test_blocked_with_action_block_one(self):CODE
LOWtests/test_buffer.py351 def test_blocked_omitted_at_n_one(self):CODE
LOWtests/test_buffer.py390 def test_grows_at_block_cadence(self):CODE
LOWtests/test_buffer.py399 def test_matches_unpadded_get(self):CODE
LOWtests/test_buffer.py414 def test_env_ids_selects_and_orders(self):CODE
LOWtests/test_buffer.py441 def test_reset_empty_list_is_noop(self):CODE
LOWtests/test_buffer.py468 def test_min_after_partial_reset(self):CODE
LOWtests/test_buffer.py511 def test_fallback_for_scalars(self):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.py201 def test_wait_stops_dead_envs(self):CODE
LOWtests/test_world.py212 def test_wait_dead_envs_get_nan(self):CODE
LOWtests/test_world.py229 def test_wait_skips_stepping_dead_envs(self):CODE
LOWtests/test_world.py258 def test_on_step_called_every_step(self):CODE
LOWtests/test_world.py275 def test_on_done_receives_correct_ep_idx(self):CODE
LOWtests/test_world.py290 def test_on_done_stops_at_episode_limit(self):CODE
LOWtests/test_world.py312 def test_no_episodes_or_max_steps_raises(self):CODE
LOWtests/test_world.py328 def test_max_steps_stops_even_without_termination(self):CODE
LOWtests/test_world.py338 def test_both_episodes_and_max_steps(self):CODE
LOWtests/test_world.py358 def test_flush_clears_buffer_on_auto_reset(self):CODE
LOWtests/test_world.py375 def test_flush_only_for_done_envs(self):CODE
924 more matches not shown…
Decorative Section Separators147 hits · 525 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.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py177# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/test_evaluator.py211# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/planning/solver/test_lagrangian.py52# ---------------------------------------------------------------------------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.py63# ─── Registry ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py202# ─── HDF5 writer ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py36# ─── Fixtures ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py143# ─── Detection ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py373# ─── Folder writer ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py504# ─── Video writer ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py615# ─── Convert ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py702# ─── load_dataset autodetect ──────────────────────────────────────────────────COMMENT
MEDIUMtests/data/test_format.py746# ─── 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 Imports186 hits · 174 pts
SeverityFileLineSnippetContext
LOWtests/data/test_lance_video.py7CODE
LOWtests/data/test_convert_video_formats.py27CODE
LOWtests/data/test_lance_wide_column_read_hang.py71CODE
LOWtests/data/test_cli_datasets.py13CODE
LOWtests/data/test_replay_buffer.py4CODE
LOWtests/data/test_episode_data.py4CODE
LOWtests/data/test_merge.py3CODE
LOWtests/data/test_lance.py4CODE
LOWtests/data/_guards.py8CODE
LOWtests/data/_guards.py26CODE
LOWtests/data/test_lerobot_adapter.py3CODE
LOWtests/data/test_cli_preview.py10CODE
LOWtests/data/test_format.py3CODE
LOWstable_worldmodel/__init__.py15CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py35CODE
LOWstable_worldmodel/__init__.py45CODE
LOWstable_worldmodel/__init__.py46CODE
LOWstable_worldmodel/__init__.py47CODE
LOWstable_worldmodel/cli.py642CODE
LOWstable_worldmodel/plot/video_utils.py1CODE
LOWstable_worldmodel/plot/__init__.py1CODE
LOWstable_worldmodel/plot/__init__.py1CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py16CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
LOWstable_worldmodel/wrapper/__init__.py51CODE
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
LOWstable_worldmodel/wm/pldm/__init__.py1CODE
LOWstable_worldmodel/wm/tdmpc2/__init__.py1CODE
126 more matches not shown…
Modern Structural Boilerplate88 hits · 92 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/policy.py109 def set_env(self, env: Any) -> None:CODE
LOWstable_worldmodel/policy.py210 def set_env(self, env: Any) -> None:CODE
LOWstable_worldmodel/policy.py222 def _set_seed(self, seed: int) -> None:CODE
LOWstable_worldmodel/policy.py378 def set_env(self, env: Any) -> None:CODE
LOWstable_worldmodel/__init__.py49__all__ = [CODE
LOWstable_worldmodel/spaces.py12logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/spaces.py165 def set_init_value(self, value: int) -> None:CODE
LOWstable_worldmodel/spaces.py180 def set_value(self, value: int) -> None:CODE
LOWstable_worldmodel/spaces.py298 def set_init_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py313 def set_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py435 def set_init_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py450 def set_value(self, value: Any) -> None:CODE
LOWstable_worldmodel/spaces.py761 def set_init_value(self, variations_values: dict) -> None:CODE
LOWstable_worldmodel/spaces.py782 def set_value(self, variations_values: dict) -> None:CODE
LOWstable_worldmodel/utils.py19logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/utils.py151__all__ = [CODE
LOWstable_worldmodel/plot/__init__.py4__all__ = ['save_video', 'save_panel_videos']CODE
LOWstable_worldmodel/wrapper/__init__.py91__all__ = [CODE
LOWstable_worldmodel/wm/loss.py127__all__ = [CODE
LOWstable_worldmodel/wm/utils.py12logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/wm/utils.py187__all__ = ['load_pretrained', 'save_pretrained']CODE
LOWstable_worldmodel/wm/probes.py38__all__ = [CODE
LOWstable_worldmodel/wm/pldm/pldm.py133__all__ = ['PLDM']CODE
LOWstable_worldmodel/wm/tdmpc2/tdmpc2.py468__all__ = [CODE
LOWstable_worldmodel/wm/gcrl/__init__.py9__all__ = [CODE
LOWstable_worldmodel/wm/gcrl/gcrl.py212__all__ = ['GCRL']CODE
LOWstable_worldmodel/wm/lewm/lewm.py125__all__ = ['LeWM']CODE
LOWstable_worldmodel/planning/__init__.py44__all__ = [CODE
LOW…able_worldmodel/planning/solver/predictive_sampling.py18logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/planning/solver/icem.py16logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/planning/solver/cem.py16logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/planning/solver/mppi.py15logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/planning/solver/__init__.py11__all__ = [CODE
LOWstable_worldmodel/planning/solver/lagrangian.py16logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/planning/solver/gd.py16logger = logging.getLogger(__name__)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__.py60__all__ = [CODE
LOWstable_worldmodel/data/format.py182__all__ = [CODE
LOWstable_worldmodel/data/dataset.py664__all__ = [CODE
LOWstable_worldmodel/data/utils.py27logger = logging.getLogger(__name__)CODE
LOWstable_worldmodel/data/utils.py508__all__ = [CODE
LOWstable_worldmodel/data/buffer.py500__all__ = ['ReplayBuffer', 'classic_filter']CODE
LOWstable_worldmodel/data/normalization.py21__all__ = [CODE
LOWstable_worldmodel/data/formats/lerobot.py379__all__ = ['LeRobot', 'LeRobotAdapter']CODE
LOWstable_worldmodel/data/formats/lance.py642 def _update_fetch_columns(self) -> None:CODE
LOWstable_worldmodel/data/formats/lance.py1401__all__ = ['Lance', 'LanceDataset', 'LanceWriter']CODE
LOWstable_worldmodel/data/formats/folder.py329__all__ = ['Folder', 'FolderDataset', 'FolderWriter', 'ImageDataset']CODE
28 more matches not shown…
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHstable_worldmodel/policy.py95Get action from the policy given the observation. Args: obs: The current observation from the envirSTRING
HIGHstable_worldmodel/policy.py118Pre-process and transform observations. Applies preprocessing (via `self.process`) and transformations (via `seSTRING
HIGHstable_worldmodel/policy.py291Get action via a forward pass through the neural network model. Args: info_dict: Current state infoSTRING
HIGHstable_worldmodel/spaces.py132Sample a random value using rejection sampling for constraints. Args: mask: Optional mask for samplSTRING
HIGHstable_worldmodel/spaces.py265Sample random values using rejection sampling for constraints. Args: mask: Optional mask for sampliSTRING
HIGHstable_worldmodel/spaces.py402Sample a random value using rejection sampling for constraints. Args: mask: Optional mask for samplSTRING
HIGHstable_worldmodel/spaces.py693Sample 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 Nesting54 hits · 54 pts
SeverityFileLineSnippetContext
LOWtests/data/test_integration_real.py198CODE
LOWstable_worldmodel/policy.py117CODE
LOWstable_worldmodel/policy.py411CODE
LOWstable_worldmodel/spaces.py581CODE
LOWstable_worldmodel/spaces.py653CODE
LOWstable_worldmodel/cli.py351CODE
LOWstable_worldmodel/buffer.py155CODE
LOW…able_worldmodel/planning/solver/predictive_sampling.py114CODE
LOWstable_worldmodel/planning/solver/icem.py152CODE
LOWstable_worldmodel/planning/solver/cem.py123CODE
LOWstable_worldmodel/planning/solver/mppi.py123CODE
LOWstable_worldmodel/planning/solver/lagrangian.py204CODE
LOWstable_worldmodel/planning/solver/pgd.py151CODE
LOWstable_worldmodel/planning/solver/gd.py165CODE
LOWstable_worldmodel/planning/solver/categorical_cem.py150CODE
LOWstable_worldmodel/world/world.py694CODE
LOWstable_worldmodel/world/world.py257CODE
LOWstable_worldmodel/world/world.py399CODE
LOWstable_worldmodel/world/world.py321CODE
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.py906CODE
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.py51CODE
LOWstable_worldmodel/data/formats/lance.py133CODE
LOWstable_worldmodel/data/formats/lance.py1141CODE
LOWstable_worldmodel/data/formats/folder.py205CODE
LOWstable_worldmodel/data/formats/video.py159CODE
LOWscripts/visualization/visualize_env.py59CODE
LOWscripts/visualization/visualize_env.py183CODE
LOWscripts/visualization/visualize_env.py358CODE
LOWscripts/visualization/utils.py172CODE
LOWscripts/visualization/visualize_trajectories.py613CODE
LOWscripts/visualization/visualize_value_function.py111CODE
LOWscripts/visualization/visualize_value_function.py188CODE
LOWscripts/expert/tdmpc2_online.py321CODE
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.py586 # Define a list of markers to distinguish variationsCOMMENT
MEDIUMscripts/visualization/utils.py240 # Create the meshgrid and reshape to (N, 2)COMMENT
MEDIUMscripts/visualization/visualize_dataset.py362 # Create a label entry for every point in this batchCOMMENT
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
Excessive Try-Catch Wrapping21 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/data/_guards.py27 except Exception as exc: # noqa: BLE001CODE
LOWtests/data/_guards.py43 except Exception as exc: # noqa: BLE001CODE
LOWtests/data/test_lerobot_adapter.py33 except Exception as exc: # pragma: no cover - network/disk dependentCODE
LOWstable_worldmodel/cli.py125 except Exception:CODE
LOWstable_worldmodel/cli.py288 except Exception:CODE
LOWstable_worldmodel/cli.py296 except Exception:CODE
LOWstable_worldmodel/cli.py321 except Exception:CODE
LOWstable_worldmodel/cli.py404 except Exception:CODE
LOWstable_worldmodel/cli.py772 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
LOWstable_worldmodel/data/formats/lance.py283 except Exception as exc:CODE
LOWstable_worldmodel/data/formats/lance.py291 except Exception as exc:CODE
LOWscripts/benchmark/compare_h5_lance.py209 except Exception as e:CODE
LOWscripts/visualization/visualize_trajectories.py593 except Exception as exc: # noqa: BLE001CODE
LOWscripts/expert/sac_online.py391 except Exception as e:CODE
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/wm/gcrl/module.py485CODE
LOWstable_worldmodel/planning/solver/icem.py43CODE
LOWstable_worldmodel/planning/solver/cem.py33CODE
LOWstable_worldmodel/planning/solver/mppi.py33CODE
LOWstable_worldmodel/planning/solver/lagrangian.py58CODE
LOWstable_worldmodel/planning/solver/gd.py41CODE
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.py320CODE
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 Vocabulary3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/data/test_datasets.py1479 # Should just return base dataset itemCOMMENT
MEDIUMstable_worldmodel/wrapper/default.py593 """Combines multiple wrappers for comprehensive environment preprocessing."""STRING
MEDIUMscripts/plan/eval_wm.py33 """Name of the episode-index column, robust across dataset formats.STRING
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/data/formats/lance.py201# or start runtimes, threads holding locks, or CUDA at import time. InCOMMENT
LOWscripts/benchmark/configs/benchmark.yaml41 format: hdf5COMMENT
LOWscripts/benchmark/configs/benchmark.yaml61# source: s3COMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMstable_worldmodel/envs/two_room/env.py341CODE