PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.
This report presents the forensic synthetic code analysis of DLR-RM/stable-baselines3, a Python project with 13,640 GitHub stars. SynthScan v2.0 examined 34,692 lines of code across 161 source files, recording 343 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 11.8 places this repository in the Low 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 343 distinct pattern matches across 12 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_deterministic.py | 12 | def test_deterministic_training_common(algo): | CODE |
| LOW | tests/test_monitor.py | 70 | def test_monitor_load_results(tmp_path): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 12 | def test_compute_stacking_box(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 21 | def test_compute_stacking_multidim_box(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 30 | def test_compute_stacking_multidim_box_channel_first(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 41 | def test_compute_stacking_image_channel_first(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 51 | def test_compute_stacking_image_channel_last(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 61 | def test_compute_stacking_image_channel_first_stack_last(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 73 | def test_compute_stacking_image_channel_last_stack_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 106 | def test_reset_update_multidim_box(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 127 | def test_reset_update_multidim_box_channel_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 146 | def test_reset_update_image_channel_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 165 | def test_reset_update_image_channel_last(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 186 | def test_reset_update_image_channel_first_stack_last(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 207 | def test_reset_update_image_channel_last_stack_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 271 | def test_episode_termination_box(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 292 | def test_episode_termination_dict(): | CODE |
| LOW | tests/test_utils.py | 60 | def test_make_vec_env_func_checker(): | CODE |
| LOW | tests/test_utils.py | 126 | def test_vec_env_wrapper_kwargs(): | CODE |
| LOW | tests/test_utils.py | 131 | def test_vec_env_monitor_kwargs(): | CODE |
| LOW | tests/test_utils.py | 150 | def test_env_auto_monitor_wrap(): | CODE |
| LOW | tests/test_utils.py | 291 | def test_evaluate_policy_monitors(vec_env_class): | CODE |
| LOW | tests/test_utils.py | 389 | def test_get_parameters_by_name(): | CODE |
| LOW | tests/test_utils.py | 459 | def test_is_vectorized_observation(): | CODE |
| LOW | tests/test_utils.py | 535 | def test_policy_is_vectorized_obs(): | CODE |
| LOW | tests/test_utils.py | 604 | def test_deprecated_schedules(): | CODE |
| LOW | tests/test_utils.py | 652 | def test_centered_momentum_weight_decay(self): | CODE |
| LOW | tests/test_vec_envs.py | 367 | def test_subproc_start_method(): | CODE |
| LOW | tests/test_vec_envs.py | 412 | def test_vecenv_wrapper_getattr(): | CODE |
| LOW | tests/test_vec_envs.py | 450 | def make_transposed_image_env(): | CODE |
| LOW | tests/test_callbacks.py | 121 | def test_eval_callback_vec_env(): | CODE |
| LOW | tests/test_callbacks.py | 161 | def test_callbacks_can_cancel_runs(model_class, model_kwargs, callback_false_value): | CODE |
| LOW | tests/test_callbacks.py | 171 | def test_eval_success_logging(tmp_path): | CODE |
| LOW | tests/test_callbacks.py | 195 | def test_eval_callback_logs_are_written_with_the_correct_timestep(tmp_path): | CODE |
| LOW | tests/test_callbacks.py | 252 | def test_checkpoint_additional_info(tmp_path): | CODE |
| LOW | tests/test_callbacks.py | 278 | def test_eval_callback_chaining(tmp_path): | CODE |
| LOW | tests/test_envs.py | 90 | def test_high_dimension_action_space(): | CODE |
| LOW | tests/test_envs.py | 177 | def test_non_default_action_spaces(new_action_space): | CODE |
| LOW | tests/test_envs.py | 226 | def test_common_failures_reset(): | CODE |
| LOW | tests/test_envs.py | 293 | def test_common_failures_step(): | CODE |
| LOW | tests/test_n_step_replay.py | 78 | def compute_expected_nstep_reward(gamma, n_steps, stop_idx=None): | CODE |
| LOW | tests/test_n_step_replay.py | 96 | def test_nstep_early_termination(done_at, n_steps, base_idx): | CODE |
| LOW | tests/test_n_step_replay.py | 111 | def test_nstep_early_truncation(truncated_at, n_steps, base_idx): | CODE |
| LOW | tests/test_n_step_replay.py | 124 | def test_nstep_no_terminations(n_steps): | CODE |
| LOW | tests/test_cnn.py | 132 | def test_features_extractor_target_net(model_class, share_features_extractor): | CODE |
| LOW | tests/test_sde.py | 10 | def test_state_dependent_exploration_grad(): | CODE |
| LOW | tests/test_sde.py | 72 | def test_state_dependent_noise(model_class, use_expln, squash_output): | CODE |
| LOW | tests/test_run.py | 42 | def test_advantage_normalization(model_class, normalize_advantage): | CODE |
| LOW | tests/test_env_checker.py | 33 | def test_check_env_dict_action(): | CODE |
| LOW | tests/test_env_checker.py | 121 | def test_check_env_detailed_error(obs_tuple, method): | CODE |
| LOW | tests/test_env_checker.py | 183 | def test_check_env_single_step_env(): | CODE |
| LOW | tests/test_env_checker.py | 212 | def test_check_env_graph_space(): | CODE |
| LOW | tests/test_env_checker.py | 253 | def test_check_env_sequence_obs(env_class): | CODE |
| LOW | tests/test_env_checker.py | 258 | def test_check_env_sequence_tuple(): | CODE |
| LOW | tests/test_predict.py | 113 | def test_subclassed_space_env(model_class): | CODE |
| LOW | tests/test_predict.py | 121 | def test_mixing_gym_vecenv_api(): | CODE |
| LOW | tests/test_her.py | 88 | def test_goal_selection_strategy(goal_selection_strategy): | CODE |
| LOW | tests/test_her.py | 227 | def test_save_load_replay_buffer(n_envs, tmp_path, recwarn, truncate_last_trajectory): | CODE |
| LOW | tests/test_her.py | 329 | def test_truncate_last_trajectory(n_envs, recwarn, n_steps, handle_timeout_termination): | CODE |
| LOW⚡ | tests/test_preprocessing.py | 7 | def test_get_obs_shape_discrete(): | CODE |
| 75 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_vec_envs.py | 19 | CODE | |
| LOW | tests/test_logger.py | 682 | CODE | |
| LOW | tests/test_logger.py | 702 | CODE | |
| LOW | tests/test_logger.py | 722 | CODE | |
| LOW | docs/conf.py | 21 | CODE | |
| LOW | docs/conf.py | 29 | CODE | |
| LOW | stable_baselines3/__init__.py | 3 | CODE | |
| LOW | stable_baselines3/__init__.py | 4 | CODE | |
| LOW | stable_baselines3/__init__.py | 5 | CODE | |
| LOW | stable_baselines3/__init__.py | 6 | CODE | |
| LOW | stable_baselines3/__init__.py | 7 | CODE | |
| LOW | stable_baselines3/__init__.py | 8 | CODE | |
| LOW | stable_baselines3/__init__.py | 9 | CODE | |
| LOW | stable_baselines3/__init__.py | 10 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/policies.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/policies.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/policies.py | 2 | CODE | |
| LOW | stable_baselines3/common/type_aliases.py | 13 | CODE | |
| LOW | stable_baselines3/common/type_aliases.py | 14 | CODE | |
| LOW | stable_baselines3/common/evaluation.py | 8 | CODE | |
| LOW | stable_baselines3/common/logger.py | 16 | CODE | |
| LOW | stable_baselines3/common/callbacks.py | 28 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 9 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_video_recorder.py | 77 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 4 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 5 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 6 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 7 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 8 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 9 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 10 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 11 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 13 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 14 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/her/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/her/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/a2c/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/a2c/__init__.py | 2 | CODE | |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_vec_extract_dict_obs.py | 62 | def set_attr(self, attr_name, value, indices=None) -> None: | CODE |
| LOW | stable_baselines3/__init__.py | 25 | __all__ = [ | CODE |
| LOW | stable_baselines3/sac/__init__.py | 4 | __all__ = ["SAC", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/sac/sac.py | 162 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/sac/policies.py | 355 | def set_training_mode(self, mode: bool) -> None: | CODE |
| LOW | stable_baselines3/ddpg/__init__.py | 4 | __all__ = ["DDPG", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/common/monitor.py | 1 | __all__ = ["Monitor", "ResultsWriter", "get_monitor_files", "load_results"] | CODE |
| LOW | stable_baselines3/common/base_class.py | 252 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 255 | def set_logger(self, logger: Logger) -> None: | CODE |
| LOW⚡ | stable_baselines3/common/base_class.py | 274 | def _setup_lr_schedule(self) -> None: | CODE |
| LOW⚡ | stable_baselines3/common/base_class.py | 278 | def _update_current_progress_remaining(self, num_timesteps: int, total_timesteps: int) -> None: | CODE |
| LOW⚡ | stable_baselines3/common/base_class.py | 287 | def _update_learning_rate(self, optimizers: list[th.optim.Optimizer] | th.optim.Optimizer) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 438 | def _update_info_buffer(self, infos: list[dict[str, Any]], dones: np.ndarray | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 476 | def set_env(self, env: GymEnv, force_reset: bool = True) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 559 | def set_random_seed(self, seed: int | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/logger.py | 604 | def set_level(self, level: int) -> None: | CODE |
| LOW | stable_baselines3/common/utils.py | 28 | def set_random_seed(seed: int, using_cuda: bool = False) -> None: | CODE |
| LOW | stable_baselines3/common/utils.py | 68 | def update_learning_rate(optimizer: th.optim.Optimizer, learning_rate: float) -> None: | CODE |
| LOW | stable_baselines3/common/running_mean_std.py | 41 | def update_from_moments(self, batch_mean: np.ndarray, batch_var: np.ndarray, batch_count: float) -> None: | CODE |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 174 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 129 | def update_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 138 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 181 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 235 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 534 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/on_policy_algorithm.py | 115 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/common/policies.py | 203 | def set_training_mode(self, mode: bool) -> None: | CODE |
| LOW | stable_baselines3/common/envs/__init__.py | 11 | __all__ = [ | CODE |
| LOW | stable_baselines3/common/vec_env/subproc_vec_env.py | 190 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/__init__.py | 87 | __all__ = [ | CODE |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 155 | def set_venv(self, venv: VecEnv) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 209 | def _update_reward(self, reward: np.ndarray) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 177 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 311 | def set_options(self, options: list[dict] | dict | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 398 | def set_options(self, options: list[dict] | dict | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 416 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/dummy_vec_env.py | 121 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/dqn/__init__.py | 4 | __all__ = ["DQN", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/dqn/dqn.py | 146 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/dqn/policies.py | 202 | def set_training_mode(self, mode: bool) -> None: | CODE |
| LOW | stable_baselines3/her/her_replay_buffer.py | 124 | def set_env(self, env: VecEnv) -> None: | CODE |
| LOW | stable_baselines3/her/__init__.py | 4 | __all__ = ["GoalSelectionStrategy", "HerReplayBuffer"] | CODE |
| LOW | stable_baselines3/ppo/__init__.py | 4 | __all__ = ["PPO", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/ppo/ppo.py | 173 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/a2c/__init__.py | 4 | __all__ = ["A2C", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/td3/td3.py | 142 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/td3/__init__.py | 4 | __all__ = ["TD3", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/td3/policies.py | 244 | def set_training_mode(self, mode: bool) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | stable_baselines3/sac/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/common/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/dqn/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/td3/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/common/type_aliases.py | 0 | get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observ | STRING |
| HIGH | stable_baselines3/common/base_class.py | 0 | get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observ | STRING |
| HIGH | stable_baselines3/common/policies.py | 0 | get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observ | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_vec_envs.py | 241 | CODE | |
| LOW | tests/test_distributions.py | 174 | CODE | |
| LOW | tests/test_buffers.py | 114 | CODE | |
| LOW | tests/test_logger.py | 97 | CODE | |
| LOW | tests/test_logger.py | 98 | CODE | |
| LOW | stable_baselines3/common/env_checker.py | 95 | CODE | |
| LOW | stable_baselines3/common/env_checker.py | 254 | CODE | |
| LOW | stable_baselines3/common/env_checker.py | 331 | CODE | |
| LOW | stable_baselines3/common/evaluation.py | 12 | CODE | |
| LOW | stable_baselines3/common/logger.py | 450 | CODE | |
| LOW | stable_baselines3/common/logger.py | 177 | CODE | |
| LOW | stable_baselines3/common/logger.py | 338 | CODE | |
| LOW | stable_baselines3/common/distributions.py | 670 | CODE | |
| LOW | stable_baselines3/common/preprocessing.py | 91 | CODE | |
| LOW | stable_baselines3/common/preprocessing.py | 142 | CODE | |
| LOW | stable_baselines3/common/preprocessing.py | 188 | CODE | |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 449 | CODE | |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 514 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 76 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 131 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 244 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 294 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 376 | CODE | |
| LOW | stable_baselines3/common/on_policy_algorithm.py | 162 | CODE | |
| LOW | stable_baselines3/common/policies.py | 684 | CODE | |
| LOW | stable_baselines3/common/envs/multi_input_envs.py | 122 | CODE | |
| LOW | stable_baselines3/common/sb2_compat/rmsprop_tf_like.py | 78 | CODE | |
| LOW | stable_baselines3/common/vec_env/subproc_vec_env.py | 20 | CODE | |
| LOW | …able_baselines3/common/vec_env/stacked_observations.py | 119 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 35 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_check_nan.py | 67 | CODE | |
| LOW | stable_baselines3/ppo/ppo.py | 184 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_save_load.py | 777 | # Create a PPO agent and save it | COMMENT |
| MEDIUM | tests/test_save_load.py | 875 | # Create a simple env | COMMENT |
| MEDIUM | stable_baselines3/sac/policies.py | 294 | # Create a separate features extractor for the critic | COMMENT |
| MEDIUM | stable_baselines3/common/env_util.py | 110 | # Create the monitor folder if needed | COMMENT |
| MEDIUM | stable_baselines3/common/save_util.py | 318 | # Create a zip-archive and write our objects there. | COMMENT |
| MEDIUM | stable_baselines3/common/vec_env/base_vec_env.py | 272 | # Create a big image by tiling images from subprocesses | COMMENT |
| MEDIUM | stable_baselines3/ppo/policies.py | 1 | # This file is here just to define MlpPolicy/CnnPolicy | COMMENT |
| MEDIUM | stable_baselines3/a2c/policies.py | 1 | # This file is here just to define MlpPolicy/CnnPolicy | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_train_eval_mode.py | 41 | CODE | |
| LOW | stable_baselines3/sac/sac.py | 91 | CODE | |
| LOW | stable_baselines3/sac/policies.py | 214 | CODE | |
| LOW | stable_baselines3/sac/policies.py | 398 | CODE | |
| LOW | stable_baselines3/sac/policies.py | 464 | CODE | |
| LOW | stable_baselines3/ddpg/ddpg.py | 57 | CODE | |
| LOW | stable_baselines3/common/env_util.py | 40 | CODE | |
| LOW | stable_baselines3/common/env_util.py | 132 | CODE | |
| LOW | stable_baselines3/common/base_class.py | 106 | CODE | |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 81 | CODE | |
| LOW | stable_baselines3/common/callbacks.py | 370 | CODE | |
| LOW | stable_baselines3/common/on_policy_algorithm.py | 61 | CODE | |
| LOW | stable_baselines3/common/policies.py | 448 | CODE | |
| LOW | stable_baselines3/common/policies.py | 798 | CODE | |
| LOW | stable_baselines3/common/policies.py | 871 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 35 | CODE | |
| LOW | stable_baselines3/dqn/dqn.py | 77 | CODE | |
| LOW | stable_baselines3/ppo/ppo.py | 80 | CODE | |
| LOW | stable_baselines3/a2c/a2c.py | 66 | CODE | |
| LOW | stable_baselines3/td3/td3.py | 80 | CODE | |
| LOW | stable_baselines3/td3/policies.py | 114 | CODE | |
| LOW | stable_baselines3/td3/policies.py | 283 | CODE | |
| LOW | stable_baselines3/td3/policies.py | 337 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | stable_baselines3/common/logger.py | 474 | # ================================================================ | COMMENT |
| MEDIUM | stable_baselines3/common/logger.py | 476 | # ================================================================ | COMMENT |
| MEDIUM | stable_baselines3/common/logger.py | 603 | # ---------------------------------------- | COMMENT |
| MEDIUM | stable_baselines3/common/logger.py | 629 | # ---------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 161 | # python setup.py sdist | COMMENT |
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 81 | extensions.append("sphinx_copybutton") | COMMENT |
| LOW | docs/conf.py | 121 | app.add_css_file("css/baselines_theme.css") | COMMENT |
| LOW | docs/conf.py | 141 | # 'searchbox.html']``. | COMMENT |
| LOW | docs/conf.py | 161 | # Additional stuff for the LaTeX preamble. | COMMENT |
| LOW | docs/conf.py | 221 | ] | COMMENT |
| LOW | docs/guide/callbacks.md | 21 | """ | COMMENT |
| LOW | docs/guide/vec_envs.md | 121 | # Do something, depending on the action and current value of mu the next state is computed | COMMENT |
| LOW | stable_baselines3/common/save_util.py | 101 | COMMENT | |
| LOW | stable_baselines3/her/her_replay_buffer.py | 201 | ) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_save_load.py | 139 | # Check if the model loads as expected for every possible choice of device: | COMMENT |
| LOW | tests/test_save_load.py | 267 | # Check if exclude works | COMMENT |
| LOW | tests/test_save_load.py | 276 | # Check if include works | COMMENT |
| LOW | stable_baselines3/common/base_class.py | 59 | # Set render_mode to `rgb_array` as default, so we can record video | COMMENT |
| LOW | stable_baselines3/common/base_class.py | 716 | # Check if given env is valid | COMMENT |
| LOW | stable_baselines3/common/utils.py | 18 | # Check if tensorboard is available for pytorch | COMMENT |
| LOW | stable_baselines3/common/save_util.py | 119 | # Check if serializable. If not, just include the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_callbacks.py | 68 | # but here in an event-driven manner | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | stable_baselines3/common/base_class.py | 608 | except Exception as e: | CODE |