AI Slop Code Risk Monitor

openai/gym

SlopCodeMonitor badge for openai/gym Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A toolkit for developing and comparing reinforcement learning algorithms.

29.2 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for openai/gym, a Python project with 37,234 GitHub stars. SynthScan examined 31,210 lines of code across 214 source files, recording 437 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 29.2 (Elevated 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.

29.2
Adjusted Signal
29.2
Raw Pattern Score
100%
Time Factor
2026-03-26
Last Push
37.2K
Stars
Python
Language
31.2K
Lines of Code
214
Files
437
Pattern Hits
2026-11-27
Scan Date
0.39
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.

Cognitive Ownership Risk 42.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 36.8/100 · MEDIUM

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

Agent Over-Engineering Ratio 51.5/100 · HIGH

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

PR Review Velocity Impact 77.9/100 · CRITICAL

Which changes need focused human review? 437 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 16HIGH 68MEDIUM 11LOW 342

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 437 distinct pattern matches across 15 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.

Cross-File Repetition43 hits · 215 pts
SeverityFileLineSnippetContext
HIGHgym/spaces/tuple.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/box.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/multi_discrete.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/sequence.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/graph.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/discrete.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/dict.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/space.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/multi_binary.py0checks whether this space can be flattened to a :class:`spaces.box`.STRING
HIGHgym/spaces/tuple.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/box.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/multi_discrete.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/sequence.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/graph.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/discrete.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/text.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/dict.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/space.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/multi_binary.py0return boolean specifying if x is a valid member of this space.STRING
HIGHgym/spaces/tuple.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/box.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/multi_discrete.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/sequence.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/graph.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/dict.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/space.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/multi_binary.py0convert a batch of samples from this space to a jsonable data type.STRING
HIGHgym/spaces/tuple.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/box.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/multi_discrete.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/sequence.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/graph.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/dict.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/space.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/multi_binary.py0convert a jsonable data type to a batch of samples from this space.STRING
HIGHgym/spaces/tuple.py0check whether ``other`` is equivalent to this instance.STRING
HIGHgym/spaces/multi_discrete.py0check whether ``other`` is equivalent to this instance.STRING
HIGHgym/spaces/sequence.py0check whether ``other`` is equivalent to this instance.STRING
HIGHgym/spaces/discrete.py0check whether ``other`` is equivalent to this instance.STRING
HIGHgym/spaces/text.py0check whether ``other`` is equivalent to this instance.STRING
HIGHgym/spaces/graph.py0check whether `other` is equivalent to this instance.STRING
HIGHgym/spaces/dict.py0check whether `other` is equivalent to this instance.STRING
HIGHgym/spaces/multi_binary.py0check whether `other` is equivalent to this instance.STRING
Hallucination Indicators16 hits · 190 pts
SeverityFileLineSnippetContext
CRITICAL⚡gym/envs/mujoco/humanoid_v3.py118 position = self.sim.data.qpos.flat.copy()CODE
CRITICAL⚡gym/envs/mujoco/humanoid_v3.py119 velocity = self.sim.data.qvel.flat.copy()CODE
CRITICAL⚡gym/envs/mujoco/humanoid_v3.py121 com_inertia = self.sim.data.cinert.flat.copy()CODE
CRITICAL⚡gym/envs/mujoco/humanoid_v3.py122 com_velocity = self.sim.data.cvel.flat.copy()CODE
CRITICAL⚡gym/envs/mujoco/humanoid_v3.py124 actuator_forces = self.sim.data.qfrc_actuator.flat.copy()CODE
CRITICAL⚡gym/envs/mujoco/humanoid_v3.py125 external_contact_forces = self.sim.data.cfrc_ext.flat.copy()CODE
CRITICALgym/envs/mujoco/swimmer_v3.py97 position = self.sim.data.qpos.flat.copy()CODE
CRITICALgym/envs/mujoco/swimmer_v3.py98 velocity = self.sim.data.qvel.flat.copy()CODE
CRITICALgym/envs/mujoco/ant_v3.py152 position = self.sim.data.qpos.flat.copy()CODE
CRITICALgym/envs/mujoco/ant_v3.py153 velocity = self.sim.data.qvel.flat.copy()CODE
CRITICALgym/envs/mujoco/hopper_v3.py120 position = self.sim.data.qpos.flat.copy()CODE
CRITICALgym/envs/mujoco/hopper_v3.py121 velocity = np.clip(self.sim.data.qvel.flat.copy(), -10, 10)CODE
CRITICALgym/envs/mujoco/walker2d_v3.py110 position = self.sim.data.qpos.flat.copy()CODE
CRITICALgym/envs/mujoco/walker2d_v3.py111 velocity = np.clip(self.sim.data.qvel.flat.copy(), -10, 10)CODE
CRITICALgym/envs/mujoco/half_cheetah_v3.py95 position = self.sim.data.qpos.flat.copy()CODE
CRITICALgym/envs/mujoco/half_cheetah_v3.py96 velocity = self.sim.data.qvel.flat.copy()CODE
Hyper-Verbose Identifiers156 hits · 165 pts
SeverityFileLineSnippetContext
LOWtests/test_core.py116def test_wrapper_property_forwarding(class_, props):CODE
LOWtests/test_core.py134def test_compatibility_with_old_style_env():CODE
LOWtests/wrappers/test_video_recorder.py81def test_record_unrecordable_method():CODE
LOWtests/wrappers/test_video_recorder.py94def test_record_breaking_render_method():CODE
LOWtests/wrappers/test_flatten.py64 def test_flattened_environment(self, observation_space, ordered_values):CODE
LOWtests/wrappers/test_time_aware_observation.py9def test_time_aware_observation(env_id):CODE
LOWtests/wrappers/test_pixel_observation.py94def test_single_array_observation(pixels_only):CODE
LOWtests/wrappers/test_passive_env_checker.py19def test_passive_checker_wrapper_warnings(env):CODE
LOWtests/wrappers/test_record_video.py8def test_record_video_using_default_trigger():CODE
LOWtests/wrappers/test_record_video.py40def test_record_video_step_trigger():CODE
LOWtests/wrappers/test_record_video.py70def test_record_video_within_vector():CODE
LOWtests/wrappers/test_step_compatibility.py37def test_step_compatibility_to_new_api(env, output_truncation_bool):CODE
LOWtests/wrappers/test_step_compatibility.py49def test_step_compatibility_to_old_api(env):CODE
LOWtests/wrappers/test_step_compatibility.py58def test_step_compatibility_in_make(apply_api_compatibility):CODE
LOWtests/wrappers/test_time_limit.py8def test_time_limit_reset_info():CODE
LOWtests/wrappers/test_time_limit.py39def test_termination_on_last_step(double_wrap):CODE
LOWtests/wrappers/test_record_episode_statistics.py11def test_record_episode_statistics(env_id, deque_size):CODE
LOWtests/wrappers/test_record_episode_statistics.py30def test_record_episode_statistics_reset_info():CODE
LOWtests/wrappers/test_record_episode_statistics.py42def test_record_episode_statistics_with_vectorenv(num_envs, asynchronous):CODE
LOWtests/wrappers/test_record_episode_statistics.py70def test_wrong_wrapping_order():CODE
LOWtests/wrappers/test_record_episode_statistics.py79def test_add_vector_episode_statistics():CODE
LOWtests/wrappers/test_transform_observation.py9def test_transform_observation(env_id):CODE
LOWtests/wrappers/test_order_enforcing.py14def test_gym_make_order_enforcing(spec):CODE
LOWtests/wrappers/test_gray_scale_observation.py10def test_gray_scale_observation(env_id, keep_dim):CODE
LOWtests/wrappers/test_vector_list_info.py40def test_info_to_list_statistics():CODE
LOWtests/wrappers/test_normalize.py46def test_normalize_observation():CODE
LOWtests/wrappers/test_normalize.py56def test_normalize_reset_info():CODE
LOWtests/wrappers/test_normalize.py82def test_normalize_observation_vector_env():CODE
LOWtests/wrappers/test_normalize.py107def test_normalize_return_vector_env():CODE
LOWtests/wrappers/test_filter_observation.py81 def test_raises_with_incorrect_arguments(CODE
LOWtests/wrappers/test_atari_preprocessing.py83def test_atari_preprocessing_grayscale(env, obs_shape):CODE
LOWtests/wrappers/test_atari_preprocessing.py104def test_atari_preprocessing_scale(grayscale, scaled, max_test_steps=10):CODE
LOWtests/wrappers/test_autoreset.py98def test_autoreset_wrapper_autoreset():CODE
LOWtests/spaces/test_utils.py115def test_flat_space_contains_flat_points(space):CODE
LOWtests/spaces/test_utils.py125def test_flatten_roundtripping(space):CODE
LOWtests/spaces/test_multidiscrete.py7def test_multidiscrete_as_tuple():CODE
LOWtests/spaces/test_multidiscrete.py31def test_multidiscrete_subspace_reproducibility():CODE
LOWtests/spaces/test_multidiscrete.py57def test_multidiscrete_length():CODE
LOWtests/spaces/test_discrete.py6def test_space_legacy_pickling():CODE
LOWtests/spaces/test_space.py22def test_not_implemented_errors(func):CODE
LOWtests/spaces/test_box.py264def test_legacy_state_pickling():CODE
LOWtests/spaces/test_tuple.py9def test_sequence_inheritance():CODE
LOWtests/spaces/test_spaces.py145 def _update_observed_frequency(obs_sample, obs_freq):CODE
LOWtests/spaces/test_spaces.py295 def _update_observed_frequency(obs_sample, obs_freq):CODE
LOWtests/spaces/test_spaces.py385def test_seed_reproducibility(space):CODE
LOWtests/utils/test_passive_env_checker.py108def test_check_observation_space(test, space, message: str):CODE
LOWtests/utils/test_passive_env_checker.py300def test_passive_env_reset_checker(test, func: callable, message: str, kwargs: Dict):CODE
LOWtests/utils/test_passive_env_checker.py378def test_passive_env_step_checker(CODE
LOWtests/utils/test_passive_env_checker.py447def test_passive_render_checker(test, env: GenericTestEnv, message: str):CODE
LOWtests/utils/test_play.py71def test_play_relevant_keys_no_mapping():CODE
LOWtests/utils/test_play.py78def test_play_relevant_keys_with_env_attribute():CODE
LOW⚡tests/utils/test_play.py117def test_keyboard_relevant_keydown_event():CODE
LOW⚡tests/utils/test_play.py125def test_keyboard_irrelevant_keydown_event():CODE
LOW⚡tests/utils/test_play.py133def test_keyboard_keyup_event():CODE
LOWtests/utils/test_env_checker.py131def _reset_var_keyword_kwargs(self, kwargs):CODE
LOWtests/utils/test_env_checker.py141def _reset_return_info_length(self, seed=None, options=None):CODE
LOWtests/utils/test_env_checker.py178def test_check_reset_return_type(test, func: callable, message: str):CODE
LOWtests/utils/test_env_checker.py197def test_check_reset_return_info_deprecation(test, func: callable, message: str):CODE
LOWtests/utils/test_env_checker.py204def test_check_seed_deprecation():CODE
LOWtests/utils/test_step_api_compatibility.py115def test_to_terminated_truncated_step_api(CODE
96 more matches not shown…
Docstring Block Structure22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHgym/wrappers/resize_observation.py49Updates the observations by resizing the observation to shape given by :attr:`shape`. Args: observaSTRING
HIGHgym/spaces/box.py147Checks whether the box is bounded in some sense. Args: manner (str): One of ``"both"``, ``"below"``STRING
HIGHgym/spaces/box.py282Returns an infinite that doesn't break things. Args: dtype: An `np.dtype` sign (str): must be eitheSTRING
HIGHgym/spaces/utils.py31Return the number of dimensions a flattened equivalent of this space would have. Example usage:: >>> from STRING
HIGHgym/spaces/utils.py110Flatten a data point from a space. This is useful when e.g. points from spaces must be passed to a neural netwoSTRING
HIGHgym/spaces/utils.py219Unflatten a data point from a space. This reverses the transformation applied by :func:`flatten`. You must ensure STRING
HIGHgym/spaces/utils.py331Flatten a space into a space that is as flat as possible. This function will attempt to flatten `space` into a singSTRING
HIGHgym/utils/seeding.py10Generates a random number generator from the seed and returns the Generator and seed. Args: seed: The seed STRING
HIGHgym/utils/step_api_compatibility.py136Function to transform step returns to the API specified by `output_truncation_bool` bool. Done (old) step API referSTRING
HIGHgym/envs/registration.py67Parse environment ID string format. This format is true today, but it's *not* an official spec. [namespace/](enSTRING
HIGHgym/envs/registration.py510Create an environment according to the given ID. To find all available environments use `gym.envs.registry.keys()` STRING
HIGHgym/envs/box2d/lunar_lander.py727 The heuristic for 1. Testing 2. Demonstration rollout. Args: env: The environment s (lSTRING
HIGHgym/vector/vector_env.py72Retrieves the results of a :meth:`reset_async` call. A call to this method must always be preceded by a call toSTRING
HIGHgym/vector/async_vector_env.py219Waits for the calls triggered by :meth:`reset_async` to finish and returns the results. Args: timeoSTRING
HIGHgym/vector/async_vector_env.py291Wait for the calls to :obj:`step` in each sub-environment to finish. Args: timeout: Number of seconSTRING
HIGHgym/vector/async_vector_env.py373Calls all parent pipes and waits for the results. Args: timeout: Number of seconds before the call STRING
HIGHgym/vector/utils/shared_memory.py20Create a shared memory object, to be shared across processes. This eventually contains the observations from the veSTRING
HIGHgym/vector/utils/shared_memory.py76Read the batch of observations from shared memory as a numpy array. ..notes:: The numpy array objects returSTRING
HIGHgym/vector/utils/numpy_utils.py17Concatenate multiple samples from space into a single object. Example:: >>> from gym.spaces import Box STRING
HIGHgym/vector/utils/numpy_utils.py80Create an empty (possibly nested) numpy array. Example:: >>> from gym.spaces import Box, Dict >>> STRING
HIGHgym/vector/utils/spaces.py19Create a (batched) space, containing multiple copies of a single space. Example:: >>> from gym.spaces impoSTRING
HIGHgym/vector/utils/spaces.py129Iterate over the elements of a (batched) space. Example:: >>> from gym.spaces import Box, Dict >>>STRING
Unused Imports99 hits · 96 pts
SeverityFileLineSnippetContext
LOWgym/__init__.py4CODE
LOWgym/__init__.py7CODE
LOWgym/__init__.py7CODE
LOWgym/__init__.py7CODE
LOWgym/__init__.py7CODE
LOWgym/__init__.py7CODE
LOWgym/__init__.py14CODE
LOWgym/__init__.py15CODE
LOWgym/__init__.py15CODE
LOWgym/__init__.py15CODE
LOWgym/__init__.py16CODE
LOWgym/__init__.py17CODE
LOWgym/__init__.py18CODE
LOWgym/core.py23CODE
LOWgym/wrappers/__init__.py2CODE
LOWgym/wrappers/__init__.py3CODE
LOWgym/wrappers/__init__.py4CODE
LOWgym/wrappers/__init__.py5CODE
LOWgym/wrappers/__init__.py6CODE
LOWgym/wrappers/__init__.py7CODE
LOWgym/wrappers/__init__.py8CODE
LOWgym/wrappers/__init__.py8CODE
LOWgym/wrappers/__init__.py9CODE
LOWgym/wrappers/__init__.py10CODE
LOWgym/wrappers/__init__.py11CODE
LOWgym/wrappers/__init__.py11CODE
LOWgym/wrappers/__init__.py12CODE
LOWgym/wrappers/__init__.py13CODE
LOWgym/wrappers/__init__.py14CODE
LOWgym/wrappers/__init__.py14CODE
LOWgym/wrappers/__init__.py15CODE
LOWgym/wrappers/__init__.py16CODE
LOWgym/wrappers/__init__.py17CODE
LOWgym/wrappers/__init__.py18CODE
LOWgym/wrappers/__init__.py19CODE
LOWgym/wrappers/__init__.py20CODE
LOWgym/wrappers/__init__.py21CODE
LOWgym/wrappers/__init__.py22CODE
LOWgym/wrappers/__init__.py23CODE
LOWgym/wrappers/monitoring/video_recorder.py43CODE
LOWgym/spaces/__init__.py11CODE
LOWgym/spaces/__init__.py12CODE
LOWgym/spaces/__init__.py13CODE
LOWgym/spaces/__init__.py14CODE
LOWgym/spaces/__init__.py14CODE
LOWgym/spaces/__init__.py15CODE
LOWgym/spaces/__init__.py16CODE
LOWgym/spaces/__init__.py17CODE
LOWgym/spaces/__init__.py18CODE
LOWgym/spaces/__init__.py19CODE
LOWgym/spaces/__init__.py20CODE
LOWgym/spaces/__init__.py21CODE
LOWgym/spaces/__init__.py21CODE
LOWgym/spaces/__init__.py21CODE
LOWgym/spaces/__init__.py21CODE
LOWgym/utils/__init__.py9CODE
LOWgym/utils/__init__.py10CODE
LOWgym/envs/__init__.py2CODE
LOWgym/envs/__init__.py2CODE
LOWgym/envs/__init__.py2CODE
39 more matches not shown…
Deep Nesting52 hits · 52 pts
SeverityFileLineSnippetContext
LOWtests/wrappers/test_vector_list_info.py40CODE
LOWtests/spaces/test_spaces.py91CODE
LOWtests/spaces/test_spaces.py234CODE
LOWtests/utils/test_step_api_compatibility.py115CODE
LOWtests/envs/test_envs.py118CODE
LOWtests/envs/test_env_implementation.py99CODE
LOWtests/envs/utils.py66CODE
LOWtests/vector/test_numpy_utils.py15CODE
LOWtests/vector/test_numpy_utils.py58CODE
LOWtests/vector/test_numpy_utils.py88CODE
LOWtests/vector/test_numpy_utils.py118CODE
LOWtests/vector/test_numpy_utils.py24CODE
LOWtests/vector/test_numpy_utils.py59CODE
LOWtests/vector/test_numpy_utils.py89CODE
LOWtests/vector/test_numpy_utils.py119CODE
LOWtests/vector/test_vector_env_info.py15CODE
LOWtests/vector/test_vector_env_info.py40CODE
LOWgym/wrappers/record_video.py134CODE
LOWgym/wrappers/atari_preprocessing.py119CODE
LOWgym/spaces/tuple.py51CODE
LOWgym/spaces/box.py281CODE
LOWgym/spaces/box.py53CODE
LOWgym/spaces/graph.py163CODE
LOWgym/spaces/dict.py125CODE
LOWgym/utils/env_checker.py33CODE
LOWgym/utils/env_checker.py217CODE
LOWgym/utils/step_api_compatibility.py24CODE
LOWgym/utils/step_api_compatibility.py76CODE
LOWgym/utils/passive_env_checker.py69CODE
LOWgym/utils/passive_env_checker.py122CODE
LOWgym/utils/passive_env_checker.py268CODE
LOWgym/utils/play.py95CODE
LOWgym/envs/registration.py502CODE
LOWgym/envs/toy_text/cliffwalking.py268CODE
LOWgym/envs/toy_text/taxi.py128CODE
LOWgym/envs/toy_text/taxi.py292CODE
LOWgym/envs/toy_text/frozen_lake.py33CODE
LOWgym/envs/toy_text/frozen_lake.py162CODE
LOWgym/envs/toy_text/frozen_lake.py281CODE
LOWgym/envs/toy_text/frozen_lake.py188CODE
LOWgym/envs/mujoco/mujoco_rendering.py169CODE
LOWgym/envs/mujoco/mujoco_rendering.py305CODE
LOWgym/envs/box2d/car_racing.py288CODE
LOWgym/envs/box2d/bipedal_walker.py277CODE
LOWgym/envs/box2d/bipedal_walker.py608CODE
LOWgym/envs/box2d/lunar_lander.py726CODE
LOWgym/envs/box2d/car_dynamics.py167CODE
LOWgym/vector/__init__.py12CODE
LOWgym/vector/__init__.py45CODE
LOWgym/vector/__init__.py50CODE
LOWgym/vector/async_vector_env.py549CODE
LOWgym/vector/async_vector_env.py616CODE
Decorative Section Separators10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMgym/envs/registration.py320# ----------------------------------------COMMENT
MEDIUMgym/envs/registration.py334# ----------------------------------------COMMENT
MEDIUMgym/envs/registration.py344# ----------------------------------------COMMENT
MEDIUMgym/envs/registration.py356# ----------------------------------------COMMENT
MEDIUMgym/envs/__init__.py9# ----------------------------------------COMMENT
MEDIUMgym/envs/__init__.py53# ----------------------------------------COMMENT
MEDIUMgym/envs/__init__.py93# ----------------------------------------COMMENT
MEDIUMgym/envs/__init__.py130# ----------------------------------------COMMENT
MEDIUMgym/envs/mujoco/mujoco_env.py84 # ----------------------------COMMENT
MEDIUMgym/envs/mujoco/mujoco_env.py123 # -----------------------------COMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/utils/test_seeding.py11except error.Error:CODE
HIGHgym/__init__.py42except Exception: # nosecCODE
HIGHgym/envs/mujoco/mujoco_rendering.py253except: # noqa:E722CODE
Modern Structural Boilerplate11 hits · 11 pts
SeverityFileLineSnippetContext
LOWgym/__init__.py22__all__ = ["Env", "Space", "Wrapper", "make", "spec", "register"]CODE
LOWgym/spaces/__init__.py23__all__ = [CODE
LOWgym/vector/sync_vector_env.py12__all__ = ["SyncVectorEnv"]CODE
LOWgym/vector/vector_env.py9__all__ = ["VectorEnv"]CODE
LOWgym/vector/__init__.py9__all__ = ["AsyncVectorEnv", "SyncVectorEnv", "VectorEnv", "VectorEnvWrapper", "make"]CODE
LOWgym/vector/async_vector_env.py32__all__ = ["AsyncVectorEnv"]CODE
LOWgym/vector/utils/misc.py5__all__ = ["CloudpickleWrapper", "clear_mpi_env_vars"]CODE
LOWgym/vector/utils/shared_memory.py13__all__ = ["create_shared_memory", "read_from_shared_memory", "write_to_shared_memory"]CODE
LOWgym/vector/utils/numpy_utils.py10__all__ = ["concatenate", "create_empty_array"]CODE
LOWgym/vector/utils/__init__.py12__all__ = [CODE
LOWgym/vector/utils/spaces.py14__all__ = ["BaseGymSpaces", "_BaseGymSpaces", "batch_space", "iterate"]CODE
AI Structural Patterns10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/testing_env.py42CODE
LOWgym/spaces/dict.py245CODE
LOWgym/utils/passive_env_checker.py320CODE
LOWgym/envs/mujoco/walker2d_v4.py155CODE
LOWgym/envs/mujoco/humanoid_v3.py31CODE
LOWgym/envs/mujoco/hopper_v4.py150CODE
LOWgym/envs/mujoco/ant_v3.py22CODE
LOWgym/envs/mujoco/ant_v4.py184CODE
LOWgym/envs/mujoco/hopper_v3.py27CODE
LOWgym/envs/mujoco/walker2d_v3.py25CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/spaces/test_spaces.py46 # Check if the samples are equivalentCOMMENT
LOWtests/envs/test_register.py190 # Check if the namespace context manager worksCOMMENT
LOWgym/utils/passive_env_checker.py17 # Check if the box is an imageCOMMENT
LOWgym/envs/box2d/lunar_lander.py39INITIAL_RANDOM = 1000.0 # Set 1500 to make game harderCODE
Excessive Try-Catch Wrapping5 hits · 5 pts
SeverityFileLineSnippetContext
LOWgym/error.py90 except Exception:CODE
LOWgym/__init__.py42except Exception: # nosecCODE
LOWgym/utils/passive_env_checker.py166 except Exception as e:CODE
LOWgym/envs/registration.py279 except Exception as e:CODE
LOWgym/envs/registration.py308 except Exception as e:CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/stale.yml41COMMENT
LOW.github/stale.yml61# exemptLabels:COMMENT
LOWgym/envs/box2d/bipedal_walker.py241 # 2.0 * self.hull.angularVelocity / FPS,COMMENT
Slop Phrases2 hits · 1 pts
SeverityFileLineSnippetContext
LOWgym/core.py221 Don't forget to call ``super().__init__(env)`` if the subclass overrides :meth:`__init__`.STRING
LOWgym/vector/vector_env.py285 Don't forget to call ``super().__init__(env)`` if the subclass overrides :meth:`__init__`.STRING
Self-Referential Comments1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMgym/spaces/__init__.py1"""This module implements various spaces.STRING