AI Slop Code RIsk Monitor

DLR-RM/stable-baselines3

PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.

12.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for DLR-RM/stable-baselines3, a Python project with 13,883 GitHub stars. SynthScan examined 34,786 lines of code across 161 source files, recording 348 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 12.2 (Moderate 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.

12.2
Adjusted Signal
12.2
Raw Pattern Score
100%
Time Factor
2026-09-09
Last Push
13.9K
Stars
Python
Language
34.8K
Lines of Code
161
Files
348
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 30.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.1/100 · LOW

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

Agent Over-Engineering Ratio 32.8/100 · MEDIUM

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

PR Review Velocity Impact 45.2/100 · MEDIUM

Which changes need focused human review? 348 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 0HIGH 9MEDIUM 13LOW 326

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 348 distinct pattern matches across 13 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 Identifiers138 hits · 146 pts
SeverityFileLineSnippetContext
LOWtests/test_deterministic.py12def test_deterministic_training_common(algo):CODE
LOWtests/test_monitor.py70def test_monitor_load_results(tmp_path):CODE
LOW⚡tests/test_vec_stacked_obs.py12def test_compute_stacking_box():CODE
LOW⚡tests/test_vec_stacked_obs.py21def test_compute_stacking_multidim_box():CODE
LOW⚡tests/test_vec_stacked_obs.py30def test_compute_stacking_multidim_box_channel_first():CODE
LOW⚡tests/test_vec_stacked_obs.py41def test_compute_stacking_image_channel_first():CODE
LOW⚡tests/test_vec_stacked_obs.py51def test_compute_stacking_image_channel_last():CODE
LOW⚡tests/test_vec_stacked_obs.py61def test_compute_stacking_image_channel_first_stack_last():CODE
LOWtests/test_vec_stacked_obs.py73def test_compute_stacking_image_channel_last_stack_first():CODE
LOWtests/test_vec_stacked_obs.py106def test_reset_update_multidim_box():CODE
LOWtests/test_vec_stacked_obs.py127def test_reset_update_multidim_box_channel_first():CODE
LOWtests/test_vec_stacked_obs.py146def test_reset_update_image_channel_first():CODE
LOWtests/test_vec_stacked_obs.py165def test_reset_update_image_channel_last():CODE
LOWtests/test_vec_stacked_obs.py186def test_reset_update_image_channel_first_stack_last():CODE
LOWtests/test_vec_stacked_obs.py207def test_reset_update_image_channel_last_stack_first():CODE
LOWtests/test_vec_stacked_obs.py271def test_episode_termination_box():CODE
LOWtests/test_vec_stacked_obs.py292def test_episode_termination_dict():CODE
LOWtests/test_utils.py60def test_make_vec_env_func_checker():CODE
LOWtests/test_utils.py126def test_vec_env_wrapper_kwargs():CODE
LOWtests/test_utils.py131def test_vec_env_monitor_kwargs():CODE
LOWtests/test_utils.py150def test_env_auto_monitor_wrap():CODE
LOWtests/test_utils.py291def test_evaluate_policy_monitors(vec_env_class):CODE
LOWtests/test_utils.py389def test_get_parameters_by_name():CODE
LOWtests/test_utils.py459def test_is_vectorized_observation():CODE
LOWtests/test_utils.py535def test_policy_is_vectorized_obs():CODE
LOWtests/test_utils.py604def test_deprecated_schedules():CODE
LOWtests/test_utils.py652 def test_centered_momentum_weight_decay(self):CODE
LOWtests/test_vec_envs.py367def test_subproc_start_method():CODE
LOWtests/test_vec_envs.py412def test_vecenv_wrapper_getattr():CODE
LOWtests/test_vec_envs.py450 def make_transposed_image_env():CODE
LOWtests/test_callbacks.py121def test_eval_callback_vec_env():CODE
LOWtests/test_callbacks.py161def test_callbacks_can_cancel_runs(model_class, model_kwargs, callback_false_value):CODE
LOWtests/test_callbacks.py171def test_eval_success_logging(tmp_path):CODE
LOWtests/test_callbacks.py195def test_eval_callback_logs_are_written_with_the_correct_timestep(tmp_path):CODE
LOWtests/test_callbacks.py252def test_checkpoint_additional_info(tmp_path):CODE
LOWtests/test_callbacks.py278def test_eval_callback_chaining(tmp_path):CODE
LOWtests/test_envs.py90def test_high_dimension_action_space():CODE
LOWtests/test_envs.py177def test_non_default_action_spaces(new_action_space):CODE
LOWtests/test_envs.py226def test_common_failures_reset():CODE
LOWtests/test_envs.py293def test_common_failures_step():CODE
LOWtests/test_n_step_replay.py38def test_n_steps_warns_with_custom_replay_buffer_class(replay_buffer_class):CODE
LOWtests/test_n_step_replay.py47def test_n_steps_with_dict_obs(replay_buffer_class):CODE
LOWtests/test_n_step_replay.py58def test_n_steps_custom_class_no_warnings():CODE
LOWtests/test_n_step_replay.py123def compute_expected_nstep_reward(gamma, n_steps, stop_idx=None):CODE
LOWtests/test_n_step_replay.py141def test_nstep_early_termination(done_at, n_steps, base_idx):CODE
LOWtests/test_n_step_replay.py156def test_nstep_early_truncation(truncated_at, n_steps, base_idx):CODE
LOWtests/test_n_step_replay.py169def test_nstep_no_terminations(n_steps):CODE
LOWtests/test_cnn.py132def test_features_extractor_target_net(model_class, share_features_extractor):CODE
LOWtests/test_sde.py10def test_state_dependent_exploration_grad():CODE
LOWtests/test_sde.py72def test_state_dependent_noise(model_class, use_expln, squash_output):CODE
LOWtests/test_run.py42def test_advantage_normalization(model_class, normalize_advantage):CODE
LOWtests/test_env_checker.py33def test_check_env_dict_action():CODE
LOWtests/test_env_checker.py121def test_check_env_detailed_error(obs_tuple, method):CODE
LOWtests/test_env_checker.py183def test_check_env_single_step_env():CODE
LOWtests/test_env_checker.py212def test_check_env_graph_space():CODE
LOWtests/test_env_checker.py253def test_check_env_sequence_obs(env_class):CODE
LOWtests/test_env_checker.py258def test_check_env_sequence_tuple():CODE
LOWtests/test_predict.py113def test_subclassed_space_env(model_class):CODE
LOWtests/test_predict.py121def test_mixing_gym_vecenv_api():CODE
LOWtests/test_her.py88def test_goal_selection_strategy(goal_selection_strategy):CODE
78 more matches not shown…
Unused Imports66 hits · 66 pts
SeverityFileLineSnippetContext
LOWtests/test_vec_envs.py19CODE
LOWtests/test_logger.py682CODE
LOWtests/test_logger.py702CODE
LOWtests/test_logger.py722CODE
LOWdocs/conf.py21CODE
LOWdocs/conf.py29CODE
LOWstable_baselines3/__init__.py3CODE
LOWstable_baselines3/__init__.py4CODE
LOWstable_baselines3/__init__.py5CODE
LOWstable_baselines3/__init__.py6CODE
LOWstable_baselines3/__init__.py7CODE
LOWstable_baselines3/__init__.py8CODE
LOWstable_baselines3/__init__.py9CODE
LOWstable_baselines3/__init__.py10CODE
LOWstable_baselines3/sac/__init__.py1CODE
LOWstable_baselines3/sac/__init__.py1CODE
LOWstable_baselines3/sac/__init__.py1CODE
LOWstable_baselines3/sac/__init__.py2CODE
LOWstable_baselines3/ddpg/__init__.py1CODE
LOWstable_baselines3/ddpg/__init__.py2CODE
LOWstable_baselines3/ddpg/__init__.py2CODE
LOWstable_baselines3/ddpg/__init__.py2CODE
LOWstable_baselines3/ddpg/policies.py2CODE
LOWstable_baselines3/ddpg/policies.py2CODE
LOWstable_baselines3/ddpg/policies.py2CODE
LOWstable_baselines3/common/type_aliases.py13CODE
LOWstable_baselines3/common/type_aliases.py14CODE
LOWstable_baselines3/common/evaluation.py8CODE
LOWstable_baselines3/common/logger.py16CODE
LOWstable_baselines3/common/callbacks.py28CODE
LOWstable_baselines3/common/envs/__init__.py1CODE
LOWstable_baselines3/common/envs/__init__.py2CODE
LOWstable_baselines3/common/envs/__init__.py2CODE
LOWstable_baselines3/common/envs/__init__.py2CODE
LOWstable_baselines3/common/envs/__init__.py2CODE
LOWstable_baselines3/common/envs/__init__.py2CODE
LOWstable_baselines3/common/envs/__init__.py9CODE
LOWstable_baselines3/common/vec_env/vec_video_recorder.py77CODE
LOWstable_baselines3/common/vec_env/__init__.py4CODE
LOWstable_baselines3/common/vec_env/__init__.py5CODE
LOWstable_baselines3/common/vec_env/__init__.py6CODE
LOWstable_baselines3/common/vec_env/__init__.py7CODE
LOWstable_baselines3/common/vec_env/__init__.py8CODE
LOWstable_baselines3/common/vec_env/__init__.py9CODE
LOWstable_baselines3/common/vec_env/__init__.py10CODE
LOWstable_baselines3/common/vec_env/__init__.py11CODE
LOWstable_baselines3/common/vec_env/__init__.py13CODE
LOWstable_baselines3/common/vec_env/__init__.py14CODE
LOWstable_baselines3/dqn/__init__.py1CODE
LOWstable_baselines3/dqn/__init__.py2CODE
LOWstable_baselines3/dqn/__init__.py2CODE
LOWstable_baselines3/dqn/__init__.py2CODE
LOWstable_baselines3/her/__init__.py1CODE
LOWstable_baselines3/her/__init__.py2CODE
LOWstable_baselines3/ppo/__init__.py1CODE
LOWstable_baselines3/ppo/__init__.py1CODE
LOWstable_baselines3/ppo/__init__.py1CODE
LOWstable_baselines3/ppo/__init__.py2CODE
LOWstable_baselines3/a2c/__init__.py1CODE
LOWstable_baselines3/a2c/__init__.py2CODE
6 more matches not shown…
Modern Structural Boilerplate48 hits · 50 pts
SeverityFileLineSnippetContext
LOWtests/test_vec_extract_dict_obs.py62 def set_attr(self, attr_name, value, indices=None) -> None:CODE
LOWstable_baselines3/__init__.py25__all__ = [CODE
LOWstable_baselines3/sac/__init__.py4__all__ = ["SAC", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"]CODE
LOWstable_baselines3/sac/sac.py165 def _setup_model(self) -> None:CODE
LOWstable_baselines3/sac/policies.py355 def set_training_mode(self, mode: bool) -> None:CODE
LOWstable_baselines3/ddpg/__init__.py4__all__ = ["DDPG", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"]CODE
LOWstable_baselines3/common/monitor.py1__all__ = ["Monitor", "ResultsWriter", "get_monitor_files", "load_results"]CODE
LOWstable_baselines3/common/base_class.py252 def _setup_model(self) -> None:CODE
LOWstable_baselines3/common/base_class.py255 def set_logger(self, logger: Logger) -> None:CODE
LOW⚡stable_baselines3/common/base_class.py274 def _setup_lr_schedule(self) -> None:CODE
LOW⚡stable_baselines3/common/base_class.py278 def _update_current_progress_remaining(self, num_timesteps: int, total_timesteps: int) -> None:CODE
LOW⚡stable_baselines3/common/base_class.py287 def _update_learning_rate(self, optimizers: list[th.optim.Optimizer] | th.optim.Optimizer) -> None:CODE
LOWstable_baselines3/common/base_class.py438 def _update_info_buffer(self, infos: list[dict[str, Any]], dones: np.ndarray | None = None) -> None:CODE
LOWstable_baselines3/common/base_class.py476 def set_env(self, env: GymEnv, force_reset: bool = True) -> None:CODE
LOWstable_baselines3/common/base_class.py559 def set_random_seed(self, seed: int | None = None) -> None:CODE
LOWstable_baselines3/common/logger.py604 def set_level(self, level: int) -> None:CODE
LOWstable_baselines3/common/utils.py28def set_random_seed(seed: int, using_cuda: bool = False) -> None:CODE
LOWstable_baselines3/common/utils.py68def update_learning_rate(optimizer: th.optim.Optimizer, learning_rate: float) -> None:CODE
LOWstable_baselines3/common/running_mean_std.py41 def update_from_moments(self, batch_mean: np.ndarray, batch_var: np.ndarray, batch_count: float) -> None:CODE
LOWstable_baselines3/common/off_policy_algorithm.py177 def _setup_model(self) -> None:CODE
LOWstable_baselines3/common/callbacks.py129 def update_locals(self, locals_: dict[str, Any]) -> None:CODE
LOWstable_baselines3/common/callbacks.py138 def update_child_locals(self, locals_: dict[str, Any]) -> None:CODE
LOWstable_baselines3/common/callbacks.py181 def update_child_locals(self, locals_: dict[str, Any]) -> None:CODE
LOWstable_baselines3/common/callbacks.py235 def update_child_locals(self, locals_: dict[str, Any]) -> None:CODE
LOWstable_baselines3/common/callbacks.py534 def update_child_locals(self, locals_: dict[str, Any]) -> None:CODE
LOWstable_baselines3/common/on_policy_algorithm.py115 def _setup_model(self) -> None:CODE
LOWstable_baselines3/common/policies.py203 def set_training_mode(self, mode: bool) -> None:CODE
LOWstable_baselines3/common/envs/__init__.py11__all__ = [CODE
LOWstable_baselines3/common/vec_env/subproc_vec_env.py196 def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:CODE
LOWstable_baselines3/common/vec_env/__init__.py87__all__ = [CODE
LOWstable_baselines3/common/vec_env/vec_normalize.py155 def set_venv(self, venv: VecEnv) -> None:CODE
LOWstable_baselines3/common/vec_env/vec_normalize.py209 def _update_reward(self, reward: np.ndarray) -> None:CODE
LOWstable_baselines3/common/vec_env/base_vec_env.py177 def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:CODE
LOWstable_baselines3/common/vec_env/base_vec_env.py311 def set_options(self, options: list[dict] | dict | None = None) -> None:CODE
LOWstable_baselines3/common/vec_env/base_vec_env.py398 def set_options(self, options: list[dict] | dict | None = None) -> None:CODE
LOWstable_baselines3/common/vec_env/base_vec_env.py416 def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:CODE
LOWstable_baselines3/common/vec_env/dummy_vec_env.py121 def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:CODE
LOWstable_baselines3/dqn/__init__.py4__all__ = ["DQN", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"]CODE
LOWstable_baselines3/dqn/dqn.py149 def _setup_model(self) -> None:CODE
LOWstable_baselines3/dqn/policies.py202 def set_training_mode(self, mode: bool) -> None:CODE
LOWstable_baselines3/her/her_replay_buffer.py124 def set_env(self, env: VecEnv) -> None:CODE
LOWstable_baselines3/her/__init__.py4__all__ = ["GoalSelectionStrategy", "HerReplayBuffer"]CODE
LOWstable_baselines3/ppo/__init__.py4__all__ = ["PPO", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"]CODE
LOWstable_baselines3/ppo/ppo.py173 def _setup_model(self) -> None:CODE
LOWstable_baselines3/a2c/__init__.py4__all__ = ["A2C", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"]CODE
LOWstable_baselines3/td3/td3.py145 def _setup_model(self) -> None:CODE
LOWstable_baselines3/td3/__init__.py4__all__ = ["TD3", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"]CODE
LOWstable_baselines3/td3/policies.py244 def set_training_mode(self, mode: bool) -> None:CODE
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHstable_baselines3/sac/policies.py0put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and dropSTRING
HIGHstable_baselines3/common/policies.py0put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and dropSTRING
HIGHstable_baselines3/dqn/policies.py0put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and dropSTRING
HIGHstable_baselines3/td3/policies.py0put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and dropSTRING
HIGHstable_baselines3/common/type_aliases.py0get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observSTRING
HIGHstable_baselines3/common/base_class.py0get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observSTRING
HIGHstable_baselines3/common/policies.py0get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observSTRING
Deep Nesting32 hits · 32 pts
SeverityFileLineSnippetContext
LOWtests/test_vec_envs.py241CODE
LOWtests/test_distributions.py174CODE
LOWtests/test_buffers.py114CODE
LOWtests/test_logger.py97CODE
LOWtests/test_logger.py98CODE
LOWstable_baselines3/common/env_checker.py95CODE
LOWstable_baselines3/common/env_checker.py254CODE
LOWstable_baselines3/common/env_checker.py331CODE
LOWstable_baselines3/common/evaluation.py12CODE
LOWstable_baselines3/common/logger.py450CODE
LOWstable_baselines3/common/logger.py177CODE
LOWstable_baselines3/common/logger.py338CODE
LOWstable_baselines3/common/distributions.py670CODE
LOWstable_baselines3/common/preprocessing.py91CODE
LOWstable_baselines3/common/preprocessing.py142CODE
LOWstable_baselines3/common/preprocessing.py188CODE
LOWstable_baselines3/common/off_policy_algorithm.py461CODE
LOWstable_baselines3/common/off_policy_algorithm.py526CODE
LOWstable_baselines3/common/save_util.py76CODE
LOWstable_baselines3/common/save_util.py131CODE
LOWstable_baselines3/common/save_util.py244CODE
LOWstable_baselines3/common/save_util.py294CODE
LOWstable_baselines3/common/save_util.py376CODE
LOWstable_baselines3/common/on_policy_algorithm.py162CODE
LOWstable_baselines3/common/policies.py684CODE
LOWstable_baselines3/common/envs/multi_input_envs.py122CODE
LOWstable_baselines3/common/sb2_compat/rmsprop_tf_like.py78CODE
LOWstable_baselines3/common/vec_env/subproc_vec_env.py20CODE
LOW…able_baselines3/common/vec_env/stacked_observations.py119CODE
LOWstable_baselines3/common/vec_env/vec_normalize.py35CODE
LOWstable_baselines3/common/vec_env/vec_check_nan.py67CODE
LOWstable_baselines3/ppo/ppo.py184CODE
Self-Referential Comments8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_save_load.py777 # Create a PPO agent and save itCOMMENT
MEDIUMtests/test_save_load.py875 # Create a simple envCOMMENT
MEDIUMstable_baselines3/sac/policies.py294 # Create a separate features extractor for the criticCOMMENT
MEDIUMstable_baselines3/common/env_util.py110 # Create the monitor folder if neededCOMMENT
MEDIUMstable_baselines3/common/save_util.py318 # Create a zip-archive and write our objects there.COMMENT
MEDIUMstable_baselines3/common/vec_env/base_vec_env.py272 # Create a big image by tiling images from subprocessesCOMMENT
MEDIUMstable_baselines3/ppo/policies.py1# This file is here just to define MlpPolicy/CnnPolicyCOMMENT
MEDIUMstable_baselines3/a2c/policies.py1# This file is here just to define MlpPolicy/CnnPolicyCOMMENT
AI Structural Patterns23 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/test_train_eval_mode.py41CODE
LOWstable_baselines3/sac/sac.py94CODE
LOWstable_baselines3/sac/policies.py214CODE
LOWstable_baselines3/sac/policies.py398CODE
LOWstable_baselines3/sac/policies.py464CODE
LOWstable_baselines3/ddpg/ddpg.py60CODE
LOWstable_baselines3/common/env_util.py40CODE
LOWstable_baselines3/common/env_util.py132CODE
LOWstable_baselines3/common/base_class.py106CODE
LOWstable_baselines3/common/off_policy_algorithm.py84CODE
LOWstable_baselines3/common/callbacks.py370CODE
LOWstable_baselines3/common/on_policy_algorithm.py61CODE
LOWstable_baselines3/common/policies.py448CODE
LOWstable_baselines3/common/policies.py798CODE
LOWstable_baselines3/common/policies.py871CODE
LOWstable_baselines3/common/vec_env/vec_normalize.py35CODE
LOWstable_baselines3/dqn/dqn.py80CODE
LOWstable_baselines3/ppo/ppo.py80CODE
LOWstable_baselines3/a2c/a2c.py66CODE
LOWstable_baselines3/td3/td3.py83CODE
LOWstable_baselines3/td3/policies.py114CODE
LOWstable_baselines3/td3/policies.py283CODE
LOWstable_baselines3/td3/policies.py337CODE
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMstable_baselines3/common/logger.py474# ================================================================COMMENT
MEDIUMstable_baselines3/common/logger.py476# ================================================================COMMENT
MEDIUMstable_baselines3/common/logger.py603 # ----------------------------------------COMMENT
MEDIUMstable_baselines3/common/logger.py629 # ----------------------------------------COMMENT
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWsetup.py161# twine upload --repository-url https://test.pypi.org/legacy/ dist/*COMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py81 extensions.append("sphinx_copybutton")COMMENT
LOWdocs/conf.py121 app.add_css_file("css/baselines_theme.css")COMMENT
LOWdocs/conf.py141# 'searchbox.html']``.COMMENT
LOWdocs/conf.py161 # Additional stuff for the LaTeX preamble.COMMENT
LOWdocs/conf.py221]COMMENT
LOWdocs/guide/callbacks.md21 """COMMENT
LOWdocs/guide/vec_envs.md121 # Do something, depending on the action and current value of mu the next state is computedCOMMENT
LOWstable_baselines3/common/save_util.py101COMMENT
LOWstable_baselines3/her/her_replay_buffer.py201 )COMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/test_save_load.py139 # Check if the model loads as expected for every possible choice of device:COMMENT
LOWtests/test_save_load.py267 # Check if exclude worksCOMMENT
LOWtests/test_save_load.py276 # Check if include worksCOMMENT
LOWstable_baselines3/common/base_class.py59 # Set render_mode to `rgb_array` as default, so we can record videoCOMMENT
LOWstable_baselines3/common/base_class.py716 # Check if given env is validCOMMENT
LOWstable_baselines3/common/utils.py18# Check if tensorboard is available for pytorchCOMMENT
LOWstable_baselines3/common/save_util.py119 # Check if serializable. If not, just include theCOMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHstable_baselines3/common/env_checker.py546except NotImplementedError:CODE
HIGHstable_baselines3/common/utils.py624except ImportError:CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_callbacks.py68 # but here in an event-driven mannerCOMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWstable_baselines3/common/base_class.py608 except Exception as e:CODE