A toolkit for developing and comparing reinforcement learning algorithms.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 250 finding(s).
Are imports declared and package/API names verified? 115 finding(s).
Are wrappers, guards, and repeated structures necessary? 238 finding(s).
Which changes need focused human review? 437 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | gym/spaces/tuple.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/box.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/multi_discrete.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/sequence.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/graph.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/discrete.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/dict.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/space.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/multi_binary.py | 0 | checks whether this space can be flattened to a :class:`spaces.box`. | STRING |
| HIGH | gym/spaces/tuple.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/box.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/multi_discrete.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/sequence.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/graph.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/discrete.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/text.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/dict.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/space.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/multi_binary.py | 0 | return boolean specifying if x is a valid member of this space. | STRING |
| HIGH | gym/spaces/tuple.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/box.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/multi_discrete.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/sequence.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/graph.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/dict.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/space.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/multi_binary.py | 0 | convert a batch of samples from this space to a jsonable data type. | STRING |
| HIGH | gym/spaces/tuple.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/box.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/multi_discrete.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/sequence.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/graph.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/dict.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/space.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/multi_binary.py | 0 | convert a jsonable data type to a batch of samples from this space. | STRING |
| HIGH | gym/spaces/tuple.py | 0 | check whether ``other`` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/multi_discrete.py | 0 | check whether ``other`` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/sequence.py | 0 | check whether ``other`` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/discrete.py | 0 | check whether ``other`` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/text.py | 0 | check whether ``other`` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/graph.py | 0 | check whether `other` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/dict.py | 0 | check whether `other` is equivalent to this instance. | STRING |
| HIGH | gym/spaces/multi_binary.py | 0 | check whether `other` is equivalent to this instance. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | gym/envs/mujoco/humanoid_v3.py | 118 | position = self.sim.data.qpos.flat.copy() | CODE |
| CRITICAL⚡ | gym/envs/mujoco/humanoid_v3.py | 119 | velocity = self.sim.data.qvel.flat.copy() | CODE |
| CRITICAL⚡ | gym/envs/mujoco/humanoid_v3.py | 121 | com_inertia = self.sim.data.cinert.flat.copy() | CODE |
| CRITICAL⚡ | gym/envs/mujoco/humanoid_v3.py | 122 | com_velocity = self.sim.data.cvel.flat.copy() | CODE |
| CRITICAL⚡ | gym/envs/mujoco/humanoid_v3.py | 124 | actuator_forces = self.sim.data.qfrc_actuator.flat.copy() | CODE |
| CRITICAL⚡ | gym/envs/mujoco/humanoid_v3.py | 125 | external_contact_forces = self.sim.data.cfrc_ext.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/swimmer_v3.py | 97 | position = self.sim.data.qpos.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/swimmer_v3.py | 98 | velocity = self.sim.data.qvel.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/ant_v3.py | 152 | position = self.sim.data.qpos.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/ant_v3.py | 153 | velocity = self.sim.data.qvel.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/hopper_v3.py | 120 | position = self.sim.data.qpos.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/hopper_v3.py | 121 | velocity = np.clip(self.sim.data.qvel.flat.copy(), -10, 10) | CODE |
| CRITICAL | gym/envs/mujoco/walker2d_v3.py | 110 | position = self.sim.data.qpos.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/walker2d_v3.py | 111 | velocity = np.clip(self.sim.data.qvel.flat.copy(), -10, 10) | CODE |
| CRITICAL | gym/envs/mujoco/half_cheetah_v3.py | 95 | position = self.sim.data.qpos.flat.copy() | CODE |
| CRITICAL | gym/envs/mujoco/half_cheetah_v3.py | 96 | velocity = self.sim.data.qvel.flat.copy() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_core.py | 116 | def test_wrapper_property_forwarding(class_, props): | CODE |
| LOW | tests/test_core.py | 134 | def test_compatibility_with_old_style_env(): | CODE |
| LOW | tests/wrappers/test_video_recorder.py | 81 | def test_record_unrecordable_method(): | CODE |
| LOW | tests/wrappers/test_video_recorder.py | 94 | def test_record_breaking_render_method(): | CODE |
| LOW | tests/wrappers/test_flatten.py | 64 | def test_flattened_environment(self, observation_space, ordered_values): | CODE |
| LOW | tests/wrappers/test_time_aware_observation.py | 9 | def test_time_aware_observation(env_id): | CODE |
| LOW | tests/wrappers/test_pixel_observation.py | 94 | def test_single_array_observation(pixels_only): | CODE |
| LOW | tests/wrappers/test_passive_env_checker.py | 19 | def test_passive_checker_wrapper_warnings(env): | CODE |
| LOW | tests/wrappers/test_record_video.py | 8 | def test_record_video_using_default_trigger(): | CODE |
| LOW | tests/wrappers/test_record_video.py | 40 | def test_record_video_step_trigger(): | CODE |
| LOW | tests/wrappers/test_record_video.py | 70 | def test_record_video_within_vector(): | CODE |
| LOW | tests/wrappers/test_step_compatibility.py | 37 | def test_step_compatibility_to_new_api(env, output_truncation_bool): | CODE |
| LOW | tests/wrappers/test_step_compatibility.py | 49 | def test_step_compatibility_to_old_api(env): | CODE |
| LOW | tests/wrappers/test_step_compatibility.py | 58 | def test_step_compatibility_in_make(apply_api_compatibility): | CODE |
| LOW | tests/wrappers/test_time_limit.py | 8 | def test_time_limit_reset_info(): | CODE |
| LOW | tests/wrappers/test_time_limit.py | 39 | def test_termination_on_last_step(double_wrap): | CODE |
| LOW | tests/wrappers/test_record_episode_statistics.py | 11 | def test_record_episode_statistics(env_id, deque_size): | CODE |
| LOW | tests/wrappers/test_record_episode_statistics.py | 30 | def test_record_episode_statistics_reset_info(): | CODE |
| LOW | tests/wrappers/test_record_episode_statistics.py | 42 | def test_record_episode_statistics_with_vectorenv(num_envs, asynchronous): | CODE |
| LOW | tests/wrappers/test_record_episode_statistics.py | 70 | def test_wrong_wrapping_order(): | CODE |
| LOW | tests/wrappers/test_record_episode_statistics.py | 79 | def test_add_vector_episode_statistics(): | CODE |
| LOW | tests/wrappers/test_transform_observation.py | 9 | def test_transform_observation(env_id): | CODE |
| LOW | tests/wrappers/test_order_enforcing.py | 14 | def test_gym_make_order_enforcing(spec): | CODE |
| LOW | tests/wrappers/test_gray_scale_observation.py | 10 | def test_gray_scale_observation(env_id, keep_dim): | CODE |
| LOW | tests/wrappers/test_vector_list_info.py | 40 | def test_info_to_list_statistics(): | CODE |
| LOW | tests/wrappers/test_normalize.py | 46 | def test_normalize_observation(): | CODE |
| LOW | tests/wrappers/test_normalize.py | 56 | def test_normalize_reset_info(): | CODE |
| LOW | tests/wrappers/test_normalize.py | 82 | def test_normalize_observation_vector_env(): | CODE |
| LOW | tests/wrappers/test_normalize.py | 107 | def test_normalize_return_vector_env(): | CODE |
| LOW | tests/wrappers/test_filter_observation.py | 81 | def test_raises_with_incorrect_arguments( | CODE |
| LOW | tests/wrappers/test_atari_preprocessing.py | 83 | def test_atari_preprocessing_grayscale(env, obs_shape): | CODE |
| LOW | tests/wrappers/test_atari_preprocessing.py | 104 | def test_atari_preprocessing_scale(grayscale, scaled, max_test_steps=10): | CODE |
| LOW | tests/wrappers/test_autoreset.py | 98 | def test_autoreset_wrapper_autoreset(): | CODE |
| LOW | tests/spaces/test_utils.py | 115 | def test_flat_space_contains_flat_points(space): | CODE |
| LOW | tests/spaces/test_utils.py | 125 | def test_flatten_roundtripping(space): | CODE |
| LOW | tests/spaces/test_multidiscrete.py | 7 | def test_multidiscrete_as_tuple(): | CODE |
| LOW | tests/spaces/test_multidiscrete.py | 31 | def test_multidiscrete_subspace_reproducibility(): | CODE |
| LOW | tests/spaces/test_multidiscrete.py | 57 | def test_multidiscrete_length(): | CODE |
| LOW | tests/spaces/test_discrete.py | 6 | def test_space_legacy_pickling(): | CODE |
| LOW | tests/spaces/test_space.py | 22 | def test_not_implemented_errors(func): | CODE |
| LOW | tests/spaces/test_box.py | 264 | def test_legacy_state_pickling(): | CODE |
| LOW | tests/spaces/test_tuple.py | 9 | def test_sequence_inheritance(): | CODE |
| LOW | tests/spaces/test_spaces.py | 145 | def _update_observed_frequency(obs_sample, obs_freq): | CODE |
| LOW | tests/spaces/test_spaces.py | 295 | def _update_observed_frequency(obs_sample, obs_freq): | CODE |
| LOW | tests/spaces/test_spaces.py | 385 | def test_seed_reproducibility(space): | CODE |
| LOW | tests/utils/test_passive_env_checker.py | 108 | def test_check_observation_space(test, space, message: str): | CODE |
| LOW | tests/utils/test_passive_env_checker.py | 300 | def test_passive_env_reset_checker(test, func: callable, message: str, kwargs: Dict): | CODE |
| LOW | tests/utils/test_passive_env_checker.py | 378 | def test_passive_env_step_checker( | CODE |
| LOW | tests/utils/test_passive_env_checker.py | 447 | def test_passive_render_checker(test, env: GenericTestEnv, message: str): | CODE |
| LOW | tests/utils/test_play.py | 71 | def test_play_relevant_keys_no_mapping(): | CODE |
| LOW | tests/utils/test_play.py | 78 | def test_play_relevant_keys_with_env_attribute(): | CODE |
| LOW⚡ | tests/utils/test_play.py | 117 | def test_keyboard_relevant_keydown_event(): | CODE |
| LOW⚡ | tests/utils/test_play.py | 125 | def test_keyboard_irrelevant_keydown_event(): | CODE |
| LOW⚡ | tests/utils/test_play.py | 133 | def test_keyboard_keyup_event(): | CODE |
| LOW | tests/utils/test_env_checker.py | 131 | def _reset_var_keyword_kwargs(self, kwargs): | CODE |
| LOW | tests/utils/test_env_checker.py | 141 | def _reset_return_info_length(self, seed=None, options=None): | CODE |
| LOW | tests/utils/test_env_checker.py | 178 | def test_check_reset_return_type(test, func: callable, message: str): | CODE |
| LOW | tests/utils/test_env_checker.py | 197 | def test_check_reset_return_info_deprecation(test, func: callable, message: str): | CODE |
| LOW | tests/utils/test_env_checker.py | 204 | def test_check_seed_deprecation(): | CODE |
| LOW | tests/utils/test_step_api_compatibility.py | 115 | def test_to_terminated_truncated_step_api( | CODE |
| 96 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | gym/wrappers/resize_observation.py | 49 | Updates the observations by resizing the observation to shape given by :attr:`shape`. Args: observa | STRING |
| HIGH | gym/spaces/box.py | 147 | Checks whether the box is bounded in some sense. Args: manner (str): One of ``"both"``, ``"below"`` | STRING |
| HIGH | gym/spaces/box.py | 282 | Returns an infinite that doesn't break things. Args: dtype: An `np.dtype` sign (str): must be eithe | STRING |
| HIGH | gym/spaces/utils.py | 31 | Return the number of dimensions a flattened equivalent of this space would have. Example usage:: >>> from | STRING |
| HIGH | gym/spaces/utils.py | 110 | Flatten a data point from a space. This is useful when e.g. points from spaces must be passed to a neural netwo | STRING |
| HIGH | gym/spaces/utils.py | 219 | Unflatten a data point from a space. This reverses the transformation applied by :func:`flatten`. You must ensure | STRING |
| HIGH | gym/spaces/utils.py | 331 | Flatten a space into a space that is as flat as possible. This function will attempt to flatten `space` into a sing | STRING |
| HIGH | gym/utils/seeding.py | 10 | Generates a random number generator from the seed and returns the Generator and seed. Args: seed: The seed | STRING |
| HIGH | gym/utils/step_api_compatibility.py | 136 | Function to transform step returns to the API specified by `output_truncation_bool` bool. Done (old) step API refer | STRING |
| HIGH | gym/envs/registration.py | 67 | Parse environment ID string format. This format is true today, but it's *not* an official spec. [namespace/](en | STRING |
| HIGH | gym/envs/registration.py | 510 | Create an environment according to the given ID. To find all available environments use `gym.envs.registry.keys()` | STRING |
| HIGH | gym/envs/box2d/lunar_lander.py | 727 | The heuristic for 1. Testing 2. Demonstration rollout. Args: env: The environment s (l | STRING |
| HIGH | gym/vector/vector_env.py | 72 | Retrieves the results of a :meth:`reset_async` call. A call to this method must always be preceded by a call to | STRING |
| HIGH | gym/vector/async_vector_env.py | 219 | Waits for the calls triggered by :meth:`reset_async` to finish and returns the results. Args: timeo | STRING |
| HIGH | gym/vector/async_vector_env.py | 291 | Wait for the calls to :obj:`step` in each sub-environment to finish. Args: timeout: Number of secon | STRING |
| HIGH | gym/vector/async_vector_env.py | 373 | Calls all parent pipes and waits for the results. Args: timeout: Number of seconds before the call | STRING |
| HIGH | gym/vector/utils/shared_memory.py | 20 | Create a shared memory object, to be shared across processes. This eventually contains the observations from the ve | STRING |
| HIGH | gym/vector/utils/shared_memory.py | 76 | Read the batch of observations from shared memory as a numpy array. ..notes:: The numpy array objects retur | STRING |
| HIGH | gym/vector/utils/numpy_utils.py | 17 | Concatenate multiple samples from space into a single object. Example:: >>> from gym.spaces import Box | STRING |
| HIGH | gym/vector/utils/numpy_utils.py | 80 | Create an empty (possibly nested) numpy array. Example:: >>> from gym.spaces import Box, Dict >>> | STRING |
| HIGH | gym/vector/utils/spaces.py | 19 | Create a (batched) space, containing multiple copies of a single space. Example:: >>> from gym.spaces impo | STRING |
| HIGH | gym/vector/utils/spaces.py | 129 | Iterate over the elements of a (batched) space. Example:: >>> from gym.spaces import Box, Dict >>> | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gym/__init__.py | 4 | CODE | |
| LOW | gym/__init__.py | 7 | CODE | |
| LOW | gym/__init__.py | 7 | CODE | |
| LOW | gym/__init__.py | 7 | CODE | |
| LOW | gym/__init__.py | 7 | CODE | |
| LOW | gym/__init__.py | 7 | CODE | |
| LOW | gym/__init__.py | 14 | CODE | |
| LOW | gym/__init__.py | 15 | CODE | |
| LOW | gym/__init__.py | 15 | CODE | |
| LOW | gym/__init__.py | 15 | CODE | |
| LOW | gym/__init__.py | 16 | CODE | |
| LOW | gym/__init__.py | 17 | CODE | |
| LOW | gym/__init__.py | 18 | CODE | |
| LOW | gym/core.py | 23 | CODE | |
| LOW | gym/wrappers/__init__.py | 2 | CODE | |
| LOW | gym/wrappers/__init__.py | 3 | CODE | |
| LOW | gym/wrappers/__init__.py | 4 | CODE | |
| LOW | gym/wrappers/__init__.py | 5 | CODE | |
| LOW | gym/wrappers/__init__.py | 6 | CODE | |
| LOW | gym/wrappers/__init__.py | 7 | CODE | |
| LOW | gym/wrappers/__init__.py | 8 | CODE | |
| LOW | gym/wrappers/__init__.py | 8 | CODE | |
| LOW | gym/wrappers/__init__.py | 9 | CODE | |
| LOW | gym/wrappers/__init__.py | 10 | CODE | |
| LOW | gym/wrappers/__init__.py | 11 | CODE | |
| LOW | gym/wrappers/__init__.py | 11 | CODE | |
| LOW | gym/wrappers/__init__.py | 12 | CODE | |
| LOW | gym/wrappers/__init__.py | 13 | CODE | |
| LOW | gym/wrappers/__init__.py | 14 | CODE | |
| LOW | gym/wrappers/__init__.py | 14 | CODE | |
| LOW | gym/wrappers/__init__.py | 15 | CODE | |
| LOW | gym/wrappers/__init__.py | 16 | CODE | |
| LOW | gym/wrappers/__init__.py | 17 | CODE | |
| LOW | gym/wrappers/__init__.py | 18 | CODE | |
| LOW | gym/wrappers/__init__.py | 19 | CODE | |
| LOW | gym/wrappers/__init__.py | 20 | CODE | |
| LOW | gym/wrappers/__init__.py | 21 | CODE | |
| LOW | gym/wrappers/__init__.py | 22 | CODE | |
| LOW | gym/wrappers/__init__.py | 23 | CODE | |
| LOW | gym/wrappers/monitoring/video_recorder.py | 43 | CODE | |
| LOW | gym/spaces/__init__.py | 11 | CODE | |
| LOW | gym/spaces/__init__.py | 12 | CODE | |
| LOW | gym/spaces/__init__.py | 13 | CODE | |
| LOW | gym/spaces/__init__.py | 14 | CODE | |
| LOW | gym/spaces/__init__.py | 14 | CODE | |
| LOW | gym/spaces/__init__.py | 15 | CODE | |
| LOW | gym/spaces/__init__.py | 16 | CODE | |
| LOW | gym/spaces/__init__.py | 17 | CODE | |
| LOW | gym/spaces/__init__.py | 18 | CODE | |
| LOW | gym/spaces/__init__.py | 19 | CODE | |
| LOW | gym/spaces/__init__.py | 20 | CODE | |
| LOW | gym/spaces/__init__.py | 21 | CODE | |
| LOW | gym/spaces/__init__.py | 21 | CODE | |
| LOW | gym/spaces/__init__.py | 21 | CODE | |
| LOW | gym/spaces/__init__.py | 21 | CODE | |
| LOW | gym/utils/__init__.py | 9 | CODE | |
| LOW | gym/utils/__init__.py | 10 | CODE | |
| LOW | gym/envs/__init__.py | 2 | CODE | |
| LOW | gym/envs/__init__.py | 2 | CODE | |
| LOW | gym/envs/__init__.py | 2 | CODE | |
| 39 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/wrappers/test_vector_list_info.py | 40 | CODE | |
| LOW | tests/spaces/test_spaces.py | 91 | CODE | |
| LOW | tests/spaces/test_spaces.py | 234 | CODE | |
| LOW | tests/utils/test_step_api_compatibility.py | 115 | CODE | |
| LOW | tests/envs/test_envs.py | 118 | CODE | |
| LOW | tests/envs/test_env_implementation.py | 99 | CODE | |
| LOW | tests/envs/utils.py | 66 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 15 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 58 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 88 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 118 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 24 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 59 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 89 | CODE | |
| LOW | tests/vector/test_numpy_utils.py | 119 | CODE | |
| LOW | tests/vector/test_vector_env_info.py | 15 | CODE | |
| LOW | tests/vector/test_vector_env_info.py | 40 | CODE | |
| LOW | gym/wrappers/record_video.py | 134 | CODE | |
| LOW | gym/wrappers/atari_preprocessing.py | 119 | CODE | |
| LOW | gym/spaces/tuple.py | 51 | CODE | |
| LOW | gym/spaces/box.py | 281 | CODE | |
| LOW | gym/spaces/box.py | 53 | CODE | |
| LOW | gym/spaces/graph.py | 163 | CODE | |
| LOW | gym/spaces/dict.py | 125 | CODE | |
| LOW | gym/utils/env_checker.py | 33 | CODE | |
| LOW | gym/utils/env_checker.py | 217 | CODE | |
| LOW | gym/utils/step_api_compatibility.py | 24 | CODE | |
| LOW | gym/utils/step_api_compatibility.py | 76 | CODE | |
| LOW | gym/utils/passive_env_checker.py | 69 | CODE | |
| LOW | gym/utils/passive_env_checker.py | 122 | CODE | |
| LOW | gym/utils/passive_env_checker.py | 268 | CODE | |
| LOW | gym/utils/play.py | 95 | CODE | |
| LOW | gym/envs/registration.py | 502 | CODE | |
| LOW | gym/envs/toy_text/cliffwalking.py | 268 | CODE | |
| LOW | gym/envs/toy_text/taxi.py | 128 | CODE | |
| LOW | gym/envs/toy_text/taxi.py | 292 | CODE | |
| LOW | gym/envs/toy_text/frozen_lake.py | 33 | CODE | |
| LOW | gym/envs/toy_text/frozen_lake.py | 162 | CODE | |
| LOW | gym/envs/toy_text/frozen_lake.py | 281 | CODE | |
| LOW | gym/envs/toy_text/frozen_lake.py | 188 | CODE | |
| LOW | gym/envs/mujoco/mujoco_rendering.py | 169 | CODE | |
| LOW | gym/envs/mujoco/mujoco_rendering.py | 305 | CODE | |
| LOW | gym/envs/box2d/car_racing.py | 288 | CODE | |
| LOW | gym/envs/box2d/bipedal_walker.py | 277 | CODE | |
| LOW | gym/envs/box2d/bipedal_walker.py | 608 | CODE | |
| LOW | gym/envs/box2d/lunar_lander.py | 726 | CODE | |
| LOW | gym/envs/box2d/car_dynamics.py | 167 | CODE | |
| LOW | gym/vector/__init__.py | 12 | CODE | |
| LOW | gym/vector/__init__.py | 45 | CODE | |
| LOW | gym/vector/__init__.py | 50 | CODE | |
| LOW | gym/vector/async_vector_env.py | 549 | CODE | |
| LOW | gym/vector/async_vector_env.py | 616 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | gym/envs/registration.py | 320 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/registration.py | 334 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/registration.py | 344 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/registration.py | 356 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/__init__.py | 9 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/__init__.py | 53 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/__init__.py | 93 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/__init__.py | 130 | # ---------------------------------------- | COMMENT |
| MEDIUM | gym/envs/mujoco/mujoco_env.py | 84 | # ---------------------------- | COMMENT |
| MEDIUM | gym/envs/mujoco/mujoco_env.py | 123 | # ----------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/utils/test_seeding.py | 11 | except error.Error: | CODE |
| HIGH | gym/__init__.py | 42 | except Exception: # nosec | CODE |
| HIGH | gym/envs/mujoco/mujoco_rendering.py | 253 | except: # noqa:E722 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gym/__init__.py | 22 | __all__ = ["Env", "Space", "Wrapper", "make", "spec", "register"] | CODE |
| LOW | gym/spaces/__init__.py | 23 | __all__ = [ | CODE |
| LOW | gym/vector/sync_vector_env.py | 12 | __all__ = ["SyncVectorEnv"] | CODE |
| LOW | gym/vector/vector_env.py | 9 | __all__ = ["VectorEnv"] | CODE |
| LOW | gym/vector/__init__.py | 9 | __all__ = ["AsyncVectorEnv", "SyncVectorEnv", "VectorEnv", "VectorEnvWrapper", "make"] | CODE |
| LOW | gym/vector/async_vector_env.py | 32 | __all__ = ["AsyncVectorEnv"] | CODE |
| LOW | gym/vector/utils/misc.py | 5 | __all__ = ["CloudpickleWrapper", "clear_mpi_env_vars"] | CODE |
| LOW | gym/vector/utils/shared_memory.py | 13 | __all__ = ["create_shared_memory", "read_from_shared_memory", "write_to_shared_memory"] | CODE |
| LOW | gym/vector/utils/numpy_utils.py | 10 | __all__ = ["concatenate", "create_empty_array"] | CODE |
| LOW | gym/vector/utils/__init__.py | 12 | __all__ = [ | CODE |
| LOW | gym/vector/utils/spaces.py | 14 | __all__ = ["BaseGymSpaces", "_BaseGymSpaces", "batch_space", "iterate"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/testing_env.py | 42 | CODE | |
| LOW | gym/spaces/dict.py | 245 | CODE | |
| LOW | gym/utils/passive_env_checker.py | 320 | CODE | |
| LOW | gym/envs/mujoco/walker2d_v4.py | 155 | CODE | |
| LOW | gym/envs/mujoco/humanoid_v3.py | 31 | CODE | |
| LOW | gym/envs/mujoco/hopper_v4.py | 150 | CODE | |
| LOW | gym/envs/mujoco/ant_v3.py | 22 | CODE | |
| LOW | gym/envs/mujoco/ant_v4.py | 184 | CODE | |
| LOW | gym/envs/mujoco/hopper_v3.py | 27 | CODE | |
| LOW | gym/envs/mujoco/walker2d_v3.py | 25 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/spaces/test_spaces.py | 46 | # Check if the samples are equivalent | COMMENT |
| LOW | tests/envs/test_register.py | 190 | # Check if the namespace context manager works | COMMENT |
| LOW | gym/utils/passive_env_checker.py | 17 | # Check if the box is an image | COMMENT |
| LOW | gym/envs/box2d/lunar_lander.py | 39 | INITIAL_RANDOM = 1000.0 # Set 1500 to make game harder | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gym/error.py | 90 | except Exception: | CODE |
| LOW | gym/__init__.py | 42 | except Exception: # nosec | CODE |
| LOW | gym/utils/passive_env_checker.py | 166 | except Exception as e: | CODE |
| LOW | gym/envs/registration.py | 279 | except Exception as e: | CODE |
| LOW | gym/envs/registration.py | 308 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/stale.yml | 41 | COMMENT | |
| LOW | .github/stale.yml | 61 | # exemptLabels: | COMMENT |
| LOW | gym/envs/box2d/bipedal_walker.py | 241 | # 2.0 * self.hull.angularVelocity / FPS, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gym/core.py | 221 | Don't forget to call ``super().__init__(env)`` if the subclass overrides :meth:`__init__`. | STRING |
| LOW | gym/vector/vector_env.py | 285 | Don't forget to call ``super().__init__(env)`` if the subclass overrides :meth:`__init__`. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | gym/spaces/__init__.py | 1 | """This module implements various spaces. | STRING |