AI Slop Code RIsk Monitor

galilai-group/stable-worldmodel

A platform for reproducible world model research and evaluation

30.9 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for galilai-group/stable-worldmodel, a Python project with 2,248 GitHub stars. SynthScan examined 75,406 lines of code across 286 source files, recording 1634 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 30.9 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

30.9
Adjusted Signal
30.9
Raw Pattern Score
100%
Time Factor
2026-10-02
Last Push
2.2K
Stars
Python
Language
75.4K
Lines of Code
286
Files
1.6K
Pattern Hits
2026-10-12
Scan Date
0.34
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 51.4/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 11.5/100 · LOW

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

Agent Over-Engineering Ratio 72.8/100 · HIGH

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

PR Review Velocity Impact 80.3/100 · CRITICAL

Which changes need focused human review? 1634 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 97MEDIUM 161LOW 1375

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers988 hits · 884 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_utils.py107def test_flatten_dict_empty_dict():CODE
LOW⚡tests/test_utils.py111def test_flatten_dict_single_level():CODE
LOW⚡tests/test_utils.py115def test_flatten_dict_nested_dict():CODE
LOW⚡tests/test_utils.py119def test_flatten_dict_information_loss():CODE
LOW⚡tests/test_utils.py123def test_flatten_dict_multiple_nested_levels():CODE
LOW⚡tests/test_utils.py127def test_flatten_dict_other_separators():CODE
LOW⚡tests/test_utils.py131def test_flatten_dict_parent_key():CODE
LOW⚡tests/test_utils.py135def test_flatten_dict_mixed_types():CODE
LOW⚡tests/test_utils.py142def test_flatten_dict_same_flatten():CODE
LOW⚡tests/test_utils.py153def test_get_in_existing_key_depth_one():CODE
LOW⚡tests/test_utils.py162def test_get_in_missing_key_depth_one():CODE
LOW⚡tests/test_utils.py171def test_get_in_existing_key_depth_two():CODE
LOW⚡tests/test_utils.py175def test_get_in_missing_key_depth_two():CODE
LOW⚡tests/test_utils.py180def test_get_in_missing_intermediate_key_depth_two():CODE
LOW⚡tests/test_utils.py185def test_get_in_empty_key_depth_two():CODE
LOW⚡tests/test_utils.py225def test_record_video_single_episode(tmp_path):CODE
LOW⚡tests/test_utils.py235def test_record_video_multiple_episodes(tmp_path):CODE
LOW⚡tests/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
LOW⚡tests/test_buffer.py118 def test_n_negative_returns_none(self):CODE
LOW⚡tests/test_buffer.py127 def test_warmup_pads_with_oldest(self):CODE
LOW⚡tests/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
928 more matches not shown…
Decorative Section Separators147 hits · 525 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/wm/test_utils.py57# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py59# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py142# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py144# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py159# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py161# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py186# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py188# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py226# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py228# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py289# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/wm/test_utils.py291# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/wm/test_utils.py23# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/planning/test_evaluator.py106# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/planning/test_evaluator.py108# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/planning/test_evaluator.py175# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/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
MEDIUM⚡tests/data/test_data_utils.py25# ─── get_cache_dir ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/data/test_data_utils.py62# ─── ensure_dir_exists ────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/data/test_data_utils.py77# ─── _resolve_dataset ─────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/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
MEDIUM⚡tests/data/test_format.py63# ─── Registry ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/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
MEDIUM⚡tests/data/test_normalization.py17# ─── IdentityScaler ───────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/data/test_normalization.py34# ─── ZScoreScaler ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/data/test_normalization.py86# ─── PercentileScaler ─────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/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
MEDIUM⚡stable_worldmodel/envs/ogbench/maze_env.py484 # ------------------------------------------------------------------COMMENT
MEDIUM⚡stable_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 Repetition73 hits · 365 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/genie.py0callback to save model checkpoint after each epoch using save_pretrained.STRING
HIGHscripts/train/gciql.py0callback to save model checkpoint after each epoch using save_pretrained.STRING
13 more matches not shown…
Unused Imports187 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
127 more matches not shown…
Modern Structural Boilerplate89 hits · 94 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.py471__all__ = [CODE
LOWstable_worldmodel/wm/genie/genie.py248__all__ = ['Genie']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
29 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 Nesting55 hits · 55 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
LOWstable_worldmodel/wm/genie/module.py16CODE
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
Empty Error Handlers10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHstable_worldmodel/envs/simple_point_maze.py390except Exception:CODE
HIGHstable_worldmodel/envs/__init__.py216except ImportError:CODE
HIGH…worldmodel/envs/rocket_landing/pyflyt_rocketlanding.py396except Exception:CODE
HIGHstable_worldmodel/data/__init__.py38except ImportError:CODE
HIGHstable_worldmodel/data/__init__.py43except ImportError:CODE
HIGHstable_worldmodel/data/__init__.py48except ImportError:CODE
HIGHstable_worldmodel/data/__init__.py56except ImportError:CODE
HIGHstable_worldmodel/data/formats/lance.py295except RuntimeError:CODE
HIGHstable_worldmodel/data/formats/lance.py743except (RuntimeError, TypeError):CODE
HIGHscripts/benchmark/compare_h5_lance.py245except RuntimeError: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.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
LOW⚡stable_worldmodel/envs/two_room/env.py513 # Check if agent is trying to enter the wall zoneCOMMENT
LOW⚡stable_worldmodel/envs/two_room/env.py517 # Check if in a doorCOMMENT
LOW⚡stable_worldmodel/envs/two_room/env.py524 # Check if in a doorCOMMENT
LOW⚡stable_worldmodel/envs/two_room/env.py543 # Check if agent is trying to enter the wall zoneCOMMENT
LOW⚡stable_worldmodel/envs/two_room/env.py547 # Check if in a doorCOMMENT
LOW⚡stable_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
LOW⚡scripts/visualization/visualize_trajectories.py593 except Exception as exc: # noqa: BLE001CODE
LOWscripts/expert/sac_online.py391 except Exception as e:CODE
AI Structural Patterns19 hits · 19 pts
SeverityFileLineSnippetContext
LOWstable_worldmodel/wm/genie/genie.py15CODE
LOWstable_worldmodel/wm/genie/module.py175CODE
LOWstable_worldmodel/wm/genie/module.py225CODE
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
LOW⚡tests/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