AI Slop Code RIsk Monitor

google-deepmind/mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.

9.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google-deepmind/mujoco, a C++ project with 15,589 GitHub stars. SynthScan examined 394,033 lines of code across 1308 source files, recording 2991 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 9.4 (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.

9.4
Adjusted Signal
9.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
15.6K
Stars
C++
Language
394.0K
Lines of Code
1.3K
Files
3.0K
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 25.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 3.4/100 · LOW

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

Agent Over-Engineering Ratio 18.3/100 · LOW

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

PR Review Velocity Impact 40.1/100 · MEDIUM

Which changes need focused human review? 2991 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 5HIGH 72MEDIUM 321LOW 2593

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 2991 distinct pattern matches across 22 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.

Over-Commented Block1417 hits · 1323 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Copyright 2021 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/MjHierarchyTool.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/MjVfs.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/AbsoluteValueAttribute.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/MjEngineTool.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/ConvertMj2Rca.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/XmlElementExtensions.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/MjcfGenerationContext.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Tools/MjTransformation.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Importer/MjcfImporter.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Importer/MjXmlModifiers.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjGlobalSettings.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjScene.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjScene.cs121 if (_generationContext != null) {COMMENT
LOWunity/Runtime/Components/MjActuator.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjComponent.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjGizmos.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjInertial.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/MjExclude.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOW…y/Runtime/Components/Sensors/MjBodyQuaternionSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOW…y/Runtime/Components/Sensors/MjSiteQuaternionSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOW…y/Runtime/Components/Sensors/MjActuatorScalarSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjBaseSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjBaseSensor.cs21COMMENT
LOW…y/Runtime/Components/Sensors/MjGeomQuaternionSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjSiteScalarSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjSiteVectorSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjGeomVectorSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjJointScalarSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjBodyVectorSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Sensors/MjUserSensor.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Bodies/MjMocapBody.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Bodies/MjBody.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Bodies/MjBaseBody.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Tendons/MjSpatialTendon.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Tendons/MjFixedTendon.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Tendons/MjBaseTendon.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Joints/MjHingeJoint.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Joints/MjSlideJoint.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Joints/MjBaseJoint.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Joints/MjBallJoint.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Joints/MjFreeJoint.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Joints/MjJointSettings.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjGeom.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjCapsuleShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MeshGenerators.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjBoxShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjCylinderShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjSphereShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjHeightFieldShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjMeshShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjGeomSettings.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/IMjShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/IMjShape.cs21// Functionality that needs to be implemented for each shape type.COMMENT
LOWunity/Runtime/Components/Shapes/MjShapeComponent.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjMeshFilter.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjSite.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjPlaneShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Shapes/MjEllipsoidShape.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
LOWunity/Runtime/Components/Equality/MjWeld.cs1// Copyright 2019 DeepMind Technologies LimitedCOMMENT
1357 more matches not shown…
Decorative Section Separators287 hits · 874 pts
SeverityFileLineSnippetContext
MEDIUMtest/doc/mjcf_schema_test.py14# ==============================================================================COMMENT
MEDIUMtest/doc/doc_test.py14# ==============================================================================COMMENT
MEDIUMpython/setup.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/viewer.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/renderer.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/gil_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/renderer_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/specs_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/__init__.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/minimize.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/msh2obj_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/minimize_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/vfs_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/msh2obj.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/rollout.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/rollout_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/mjrf.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/bindings_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/viewer_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/render_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/memory_leak_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/gl_context.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py41# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py43# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py58# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py60# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py234# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py236# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py267 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py269 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py309 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py311 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py324 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py326 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py25# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py30# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py99# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py101# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py315# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/cgl/cgl.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/cgl/__init__.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/functions.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/enums.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/enums_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/__init__.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/type_parsing_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/ast_nodes_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/structs_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/structs.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/functions_test.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/mjxmacro.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/ast_nodes.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/type_parsing.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/codegen/formatter.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/codegen/generate.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/codegen/generate.py78# ==============================================================================COMMENT
MEDIUMpython/mujoco/introspect/codegen/ast_processor.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/sysid/__init__.py14# ==============================================================================COMMENT
MEDIUMpython/mujoco/sysid/_src/optimize.py14# ==============================================================================COMMENT
227 more matches not shown…
Hyper-Verbose Identifiers476 hits · 402 pts
SeverityFileLineSnippetContext
LOWtest/benchmark/run_ablation.py138def compiler_cmake_flags_variants():CODE
LOW⚡test/doc/mjcf_schema_test.py224 def test_vector_default_on_scalar(self):STRING
LOW⚡test/doc/mjcf_schema_test.py228 def test_enum_default_not_a_keyword(self):STRING
LOW⚡test/doc/mjcf_schema_test.py237 def test_required_with_default(self):STRING
LOW⚡test/doc/mjcf_schema_test.py241 def test_variant_with_required(self):STRING
LOW⚡test/doc/mjcf_schema_test.py251 def test_duplicate_enum_keyword(self):STRING
LOW⚡test/doc/mjcf_schema_test.py399 def test_chars_unbounded_rejected(self):STRING
LOW⚡test/doc/mjcf_schema_test.py403 def test_chars_with_default_rejected(self):STRING
LOW⚡test/doc/mjcf_schema_test.py412 def test_string_lexing_range_vs_float(self):STRING
LOW⚡test/doc/mjcf_schema_test.py420 def test_min_max_integer_facet(self):STRING
LOWtest/doc/mjcf_schema_test.py106 def test_groups_and_expansion(self):STRING
LOWtest/doc/mjcf_schema_test.py115 def test_attr_types_and_arity(self):STRING
LOWtest/doc/mjcf_schema_test.py170 def test_error_has_line_number(self):STRING
LOWtest/doc/mjcf_schema_test.py182 def test_duplicate_attr_via_use(self):STRING
LOWtest/doc/mjcf_schema_test.py195 def test_ref_resolved_by_id_elsewhere(self):STRING
LOWtest/doc/mjcf_schema_test.py290 def test_constraint_unknown_attr(self):STRING
LOWtest/doc/mjcf_schema_test.py308 def test_min_max_positive_facets(self):STRING
LOWtest/doc/mjcf_schema_test.py320 def test_min_on_string_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py335 def test_const_in_group_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py354 def test_element_unknown_facet(self):STRING
LOWtest/doc/mjcf_schema_test.py358 def test_element_dangling_alias(self):STRING
LOWtest/doc/mjcf_schema_test.py373 def test_bool_vector_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py384 def test_file_vector_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py432 def test_min_greater_than_max(self):STRING
LOWtest/doc/mjcf_schema_test.py500 def test_dim_needs_element_facet(self):STRING
LOWtest/doc/doc_test.py237 def test_schema_enum_coverage(self):CODE
LOWtest/doc/doc_test.py336 def test_all_functions_included(self):CODE
LOWtest/doc/doc_test.py390 def test_mjdata_xmacro_fields(self):CODE
LOWtest/doc/doc_test.py434 def test_element_constraints_diamond_inheritance(self):CODE
LOWpython/setup.py63def get_external_lib_patterns():CODE
LOWpython/setup.py117def parse_cmake_args_from_environ(env_var_name=MUJOCO_CMAKE_ARGS):CODE
LOWpython/mujoco/thread_safety_test.py50 def test_concurrent_indexer_access(self):CODE
LOWpython/mujoco/thread_safety_test.py75 def test_concurrent_struct_list_access(self):CODE
LOWpython/mujoco/thread_safety_test.py102 def test_concurrent_callback_set_get(self):CODE
LOWpython/mujoco/thread_safety_test.py128 def test_concurrent_model_data_lifecycle(self):CODE
LOWpython/mujoco/thread_safety_test.py156 def test_callback_setter_from_del(self):CODE
LOWpython/mujoco/thread_safety_test.py182 def test_callback_replacement_from_del(self):CODE
LOWpython/mujoco/renderer_test.py31 def test_renderer_info_binding(self):CODE
LOWpython/mujoco/renderer_test.py38 def test_renderer_unknown_camera_name(self):CODE
LOWpython/mujoco/renderer_test.py53 def test_renderer_camera_under_range(self):STRING
LOWpython/mujoco/renderer_test.py68 def test_renderer_camera_over_range(self):STRING
LOWpython/mujoco/renderer_test.py83 def test_renderer_renders_scene(self):STRING
LOWpython/mujoco/renderer_test.py108 def test_renderer_output_without_out(self):STRING
LOWpython/mujoco/renderer_test.py140 def test_renderer_output_with_out(self):STRING
LOWpython/mujoco/renderer_test.py170 def test_renderer_depth_rendering_camera_projection(self):STRING
LOWpython/mujoco/renderer_test.py226 def test_renderer_del_safe_when_init_fails_early(self):STRING
LOW⚡python/mujoco/specs_test.py1092 def test_duplicate_name_error(self):CODE
LOW⚡python/mujoco/specs_test.py2377 def test_make_flex_with_pos_quat(self):CODE
LOWpython/mujoco/specs_test.py1065 def test_geom_and_mesh_plugin(self):CODE
LOWpython/mujoco/specs_test.py2299 def test_encode_xml_without_model(self):CODE
LOWpython/mujoco/specs_test.py2312 def test_encode_no_encoder_raises(self):CODE
LOWpython/mujoco/specs_test.py2411 def test_authored_flags_from_xml(self):CODE
LOWpython/mujoco/specs_test.py479 def test_size_kwarg_variable_length(self):STRING
LOWpython/mujoco/specs_test.py584 def test_compile_errors_with_line_info(self):STRING
LOWpython/mujoco/specs_test.py649 def test_uncompiled_spec_can_be_written(self):STRING
LOWpython/mujoco/specs_test.py653 def test_modelname_default_class(self):STRING
LOWpython/mujoco/specs_test.py1051 def test_mesh_volumetric_fields(self):STRING
LOWpython/mujoco/specs_test.py1110 def test_duplicate_name_error_when_adding_specs_with_kwargs(self):STRING
LOWpython/mujoco/specs_test.py1130 def test_delete_unused_plugin(self):STRING
LOWpython/mujoco/specs_test.py1173 def test_access_option_stat_visual(self):STRING
416 more matches not shown…
Deep Nesting333 hits · 299 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/viewer.py326CODE
LOWpython/mujoco/viewer.py448CODE
LOWpython/mujoco/__init__.py128CODE
LOWpython/mujoco/__init__.py244CODE
LOWpython/mujoco/minimize.py142CODE
LOWpython/mujoco/minimize_test.py110CODE
LOWpython/mujoco/rollout.py382CODE
LOWpython/mujoco/rollout.py396CODE
LOWpython/mujoco/rollout_test.py962CODE
LOWpython/mujoco/experimental/studio/viewer_app_events.py33CODE
LOWpython/mujoco/experimental/studio/viewer_app_events.py275CODE
LOWpython/mujoco/experimental/studio/viewer_app_events.py504CODE
LOWpython/mujoco/experimental/studio/web/web_server.py367CODE
LOWpython/mujoco/experimental/studio/web/web_server.py435CODE
LOWpython/mujoco/experimental/studio/web/web_server.py529CODE
LOWpython/mujoco/experimental/studio/web/web_server.py586CODE
LOW…ujoco/experimental/studio/sample/filament_multiview.py36CODE
LOWpython/mujoco/introspect/structs_test.py47CODE
LOWpython/mujoco/introspect/structs_test.py92CODE
LOWpython/mujoco/introspect/codegen/formatter.py63CODE
LOWpython/mujoco/introspect/codegen/formatter.py129CODE
LOWpython/mujoco/introspect/codegen/ast_processor.py77CODE
LOWpython/mujoco/introspect/codegen/ast_processor.py126CODE
LOWpython/mujoco/introspect/codegen/ast_processor.py186CODE
LOWpython/mujoco/sysid/_src/optimize.py284CODE
LOWpython/mujoco/sysid/_src/residual.py54CODE
LOWpython/mujoco/sysid/_src/plotting.py26CODE
LOWpython/mujoco/sysid/_src/model_modifier.py28CODE
LOWpython/mujoco/sysid/_src/parameter.py397CODE
LOWpython/mujoco/sysid/_src/parameter.py618CODE
LOWpython/mujoco/sysid/_src/parameter.py655CODE
LOWpython/mujoco/sysid/report/builder.py45CODE
LOW…mujoco/sysid/report/sections/parameter_distribution.py110CODE
LOWpython/mujoco/sysid/report/sections/parameters.py64CODE
LOWpython/mujoco/sysid/report/sections/parameters.py105CODE
LOW…hon/mujoco/sysid/report/sections/optimization_trace.py372CODE
LOWpython/mujoco/codegen/generate_cs_bindings.py364CODE
LOWpython/mujoco/codegen/generate_cs_bindings.py496CODE
LOWpython/mujoco/codegen/generate_cs_bindings.py574CODE
LOWpython/mujoco/codegen/generate_cs_bindings.py600CODE
LOWpython/mujoco/codegen/generate_cs_bindings.py638CODE
LOWpython/mujoco/codegen/generate_cs_bindings.py676CODE
LOWpython/mujoco/codegen/generate_spec_bindings.py152CODE
LOWpython/mujoco/codegen/generate_spec_bindings.py201CODE
LOWpython/mujoco/codegen/generate_spec_bindings.py330CODE
LOWpython/mujoco/codegen/generate_spec_bindings.py342CODE
LOWpython/mujoco/codegen/generate_spec_bindings.py355CODE
LOWpython/mujoco/codegen/generate_spec_bindings.py359CODE
LOWpython/mujoco/egl/__init__.py35CODE
LOWpython/mujoco/usd/shapes.py23CODE
LOWpython/mujoco/usd/shapes.py298CODE
LOWpython/mujoco/usd/shapes.py373CODE
LOWwasm/codegen/generators/functions.py117CODE
LOWwasm/codegen/generators/functions.py174CODE
LOWwasm/codegen/generators/functions.py204CODE
LOWwasm/codegen/generators/enums.py21CODE
LOWwasm/codegen/generators/structs.py71CODE
LOWwasm/codegen/generators/structs.py333CODE
LOWwasm/codegen/generators/structs.py381CODE
LOWwasm/codegen/generators/structs.py513CODE
273 more matches not shown…
Unused Imports252 hits · 178 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/renderer.py19CODE
LOWpython/mujoco/gil_test.py21CODE
LOWpython/mujoco/specs_test.py23CODE
LOWpython/mujoco/__init__.py54CODE
LOWpython/mujoco/__init__.py55CODE
LOWpython/mujoco/__init__.py56CODE
LOWpython/mujoco/__init__.py57CODE
LOWpython/mujoco/__init__.py58CODE
LOWpython/mujoco/__init__.py59CODE
LOWpython/mujoco/__init__.py60CODE
LOWpython/mujoco/__init__.py66CODE
LOWpython/mujoco/__init__.py71CODE
LOWpython/mujoco/__init__.py76CODE
LOWpython/mujoco/mjrf.py17CODE
LOWpython/mujoco/gl_context.py19CODE
LOWpython/mujoco/experimental/studio/viewer_protocol.py19CODE
LOWpython/mujoco/experimental/studio/launch_thread.py23CODE
LOWpython/mujoco/cgl/__init__.py17CODE
LOWpython/mujoco/cgl/__init__.py19CODE
LOWpython/mujoco/sysid/__init__.py20CODE
LOWpython/mujoco/sysid/__init__.py21CODE
LOWpython/mujoco/sysid/__init__.py22CODE
LOWpython/mujoco/sysid/__init__.py23CODE
LOWpython/mujoco/sysid/__init__.py24CODE
LOWpython/mujoco/sysid/__init__.py25CODE
LOWpython/mujoco/sysid/__init__.py26CODE
LOWpython/mujoco/sysid/__init__.py27CODE
LOWpython/mujoco/sysid/__init__.py28CODE
LOWpython/mujoco/sysid/__init__.py29CODE
LOWpython/mujoco/sysid/__init__.py30CODE
LOWpython/mujoco/sysid/__init__.py31CODE
LOWpython/mujoco/sysid/__init__.py32CODE
LOWpython/mujoco/sysid/__init__.py33CODE
LOWpython/mujoco/sysid/__init__.py34CODE
LOWpython/mujoco/sysid/__init__.py35CODE
LOWpython/mujoco/sysid/__init__.py36CODE
LOWpython/mujoco/sysid/__init__.py37CODE
LOWpython/mujoco/sysid/__init__.py38CODE
LOWpython/mujoco/sysid/__init__.py39CODE
LOWpython/mujoco/sysid/__init__.py40CODE
LOWpython/mujoco/sysid/__init__.py41CODE
LOWpython/mujoco/sysid/__init__.py42CODE
LOWpython/mujoco/sysid/__init__.py43CODE
LOWpython/mujoco/sysid/__init__.py44CODE
LOWpython/mujoco/sysid/__init__.py45CODE
LOWpython/mujoco/sysid/__init__.py46CODE
LOWpython/mujoco/sysid/__init__.py47CODE
LOWpython/mujoco/sysid/__init__.py48CODE
LOWpython/mujoco/sysid/__init__.py49CODE
LOWpython/mujoco/sysid/__init__.py50CODE
LOWpython/mujoco/sysid/__init__.py51CODE
LOWpython/mujoco/sysid/__init__.py52CODE
LOWpython/mujoco/sysid/__init__.py53CODE
LOWpython/mujoco/sysid/__init__.py54CODE
LOWpython/mujoco/sysid/__init__.py55CODE
LOWpython/mujoco/sysid/__init__.py56CODE
LOWpython/mujoco/sysid/__init__.py57CODE
LOWpython/mujoco/sysid/__init__.py58CODE
LOWpython/mujoco/sysid/__init__.py59CODE
LOWpython/mujoco/sysid/__init__.py60CODE
192 more matches not shown…
Empty Error Handlers30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHpython/setup.py49except FileNotFoundError:CODE
HIGHpython/mujoco/thread_safety_test.py171except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/mujoco/thread_safety_test.py194except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/mujoco/renderer.py20except ImportError:CODE
HIGHpython/mujoco/__init__.py67except ImportError:CODE
HIGHpython/mujoco/__init__.py72except ImportError:CODE
HIGHpython/mujoco/__init__.py77except ImportError:CODE
HIGHpython/mujoco/memory_leak_test.py63except (ImportError, ValueError):CODE
HIGHpython/mujoco/gl_context.py20except ImportError:CODE
HIGHpython/mujoco/experimental/studio/viewer_protocol.py155except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHpython/mujoco/experimental/studio/messages.py376except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/mujoco/experimental/studio/viewer_handle.py131except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHpython/mujoco/experimental/studio/web/web_server.py360except asyncio.CancelledError:CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py736except (ConnectionClosed, ConnectionError, asyncio.IncompleteReadError):CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py838except (ConnectionClosed, ConnectionError):CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py986except (ConnectionClosed, ConnectionError):CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py485except (ConnectionClosed, ConnectionError):CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py1032except RuntimeError:CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py1087except asyncio.TimeoutError:CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py805except asyncio.TimeoutError:CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py607except (ConnectionClosed, ConnectionError):CODE
HIGHpython/mujoco/experimental/studio/web/web_server.py581except (ConnectionClosed, ConnectionError):CODE
HIGHpython/mujoco/cgl/__init__.py70except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHpython/mujoco/introspect/codegen/ast_processor.py293except ValueError:CODE
HIGHpython/mujoco/sysid/__init__.py61except ModuleNotFoundError:CODE
HIGHpython/mujoco/codegen/generate_cs_bindings.py413except ValueError:CODE
HIGHpython/mujoco/codegen/generate_cs_bindings.py419except ValueError:CODE
HIGHpython/mujoco/codegen/generate_cs_bindings.py426except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/mujoco/egl/__init__.py57except error.GLError:CODE
HIGHpython/mujoco/egl/egl_ext.py23except OSError:CODE
Docstring Block Structure18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHpython/mujoco/rollout.py65Rolls out open-loop trajectories from initial states, get subsequent state and sensor values. Python wrapper for roSTRING
HIGHpython/mujoco/rollout.py276Rolls out open-loop trajectories from initial states, get subsequent states and sensor values. Python wrapper for rolSTRING
HIGHpython/mujoco/rollout.py397Infers dimension `dim` given guess `value` from set of arrays. Args: dim: Dimension to be inferred. value: InSTRING
HIGHpython/mujoco/experimental/studio/web/web_server.py246Binds (but does not listen on) the public HTTP listening socket. The socket is bound in the viewer thread up front soSTRING
HIGHpython/mujoco/sysid/_src/timeseries.py692Resample the time series to new timestamps or a specific time interval. This method creates a new TimeSeries objectSTRING
HIGHpython/mujoco/rendering/classic/renderer.py133Renders the scene as a numpy array of pixel values. Args: out: Alternative output array in which to place theSTRING
HIGHwasm/codegen/generators/structs.py784Sorts structs based on their field dependencies using topological sort. Structs with no dependencies on other strucSTRING
HIGHmjx/mujoco/mjx/_src/solver.py375Updates grad and M / grad given latest solver iteration. Corresponds to CGupdateGradient in mujoco/src/engine/engine_STRING
HIGHmjx/mujoco/mjx/_src/io.py580Puts mujoco.MjModel onto a device, resulting in mjx.Model. Args: m: the model to put onto device device: whicSTRING
HIGHmjx/mujoco/mjx/_src/io.py909Allocate and initialize Data. Args: m: the model to use device: which device to use - if unspecified picks thSTRING
HIGHmjx/mujoco/mjx/_src/test_util.py295Creates a random MJCF for testing. Args: seed: seed for rng min_trees: minimum number of kinematic trees to gSTRING
HIGHmjx/mujoco/mjx/_src/scan.py98A vmap that accepts numpy arrays. Numpy arrays are statically vmapped, and the elements are passed to f as static aSTRING
HIGHmjx/mujoco/mjx/_src/scan.py176Scan a function across bodies or actuators. Scan group data according to type and batch shape then calls vmap(f) on iSTRING
HIGHmjx/mujoco/mjx/_src/scan.py345Scan ``f`` across bodies in tree order, carrying results up/down the tree. This function groups bodies according to lSTRING
HIGHmjx/mujoco/mjx/_src/render_util.py39Unpack uint32 ABGR pixel data into float32 RGB. Args: rc: RenderContextPytree. cam_id: Camera index to extracSTRING
HIGHmjx/mujoco/mjx/_src/render_util.py79Extract and normalize depth data for a camera. Args: rc: RenderContextPytree. cam_id: Camera index to extractSTRING
HIGHmjx/mujoco/mjx/_src/render_util.py116Extract segmentation object IDs for a camera. Args: rc: RenderContextPytree. cam_id: Camera index to extract.STRING
HIGHmjx/mujoco/mjx/third_party/mujoco_warp/_src/util_pkg.py48Check if an installed package satisfies a version requirement. Supports operators: >=, <=, >, <, ==, != Version coSTRING
Excessive Try-Catch Wrapping48 hits · 68 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/thread_safety_test.py64 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/thread_safety_test.py90 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/thread_safety_test.py114 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/thread_safety_test.py140 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/thread_safety_test.py171 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/thread_safety_test.py194 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/thread_safety_test.py57def access_indexers():CODE
MEDIUMpython/mujoco/thread_safety_test.py83def access_contacts():CODE
MEDIUMpython/mujoco/thread_safety_test.py106def toggle_callback():CODE
MEDIUMpython/mujoco/thread_safety_test.py132def create_destroy():CODE
MEDIUMpython/mujoco/thread_safety_test.py191def __del__(self):CODE
LOWpython/mujoco/viewer.py302 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/experimental/studio/viewer_protocol.py155 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/mujoco/experimental/studio/viewer_protocol.py282 except Exception as ex:CODE
LOWpython/mujoco/experimental/studio/messages.py376 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/experimental/studio/viewer_app.py146 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/viewer_app.py147 print(f'Error reloading model from {self.model_path!r}: {ex}')CODE
LOWpython/mujoco/experimental/studio/viewer_app.py305 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/viewer_app.py306 print(f'Error loading model from {drop_file!r}: {ex}')CODE
LOWpython/mujoco/experimental/studio/viewer_handle.py131 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/mujoco/experimental/studio/web/web_server.py362 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUMpython/mujoco/experimental/studio/sample/implot.py233 print(f'Error loading model from {model_path!r}')CODE
LOWpython/mujoco/experimental/studio/sample/render.py49 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/sample/render.py50 print(f'Error loading model from `{model_path}`: {ex}')CODE
LOW⚡python/mujoco/experimental/studio/sample/render.py62 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUM⚡python/mujoco/experimental/studio/sample/render.py63 print(f'Error rendering model: {ex}')CODE
LOW⚡python/mujoco/experimental/studio/sample/render.py69 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUM⚡python/mujoco/experimental/studio/sample/render.py70 print(f'Error saving image to `{_OUTPUT.value}`: {ex}')CODE
LOWpython/mujoco/experimental/studio/sample/ghost.py172 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/cgl/__init__.py70 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/mujoco/codegen/generate_cs_bindings.py426 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMwasm/codegen/tests/coverage_test.py50 print(f'Error reading resource {file_path}: {e}')CODE
MEDIUMwasm/codegen/generators/common.py34 print(f"Error writing to output file: {filepath} - {e}")CODE
MEDIUMmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py443def ffi_callback(self, call_frame, platform):CODE
MEDIUMmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py875def ffi_callback(self, call_frame, platform):CODE
MEDIUMmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1923def ffi_callback(call_frame, platform):CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py614 except Exception as e:CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1217 except Exception as e:CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1552 except Exception as e:CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1959 except Exception as e:CODE
LOWmjx/mujoco/mjx/warp/visualize_render.py131 except Exception:CODE
LOWmjx/mujoco/mjx/warp/testspeed.py279 except Exception as _:CODE
LOW.github/actions/notify-chat/notify_chat.py80 except Exception:CODE
LOW.github/actions/notify-chat/notify_chat.py188 except Exception as e:CODE
LOW.github/actions/notify-chat/notify_chat.py197 except Exception as e:CODE
LOW.github/actions/notify-chat/notify_chat.py227 except Exception as e:CODE
LOWdoc/make_mujoco_stubs.py99 except Exception:CODE
MEDIUMdoc/mjwarp/update_types.py68 print(f'Error: Could not find {filepath}', file=sys.stderr)CODE
Cross-File Repetition13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHpython/mujoco/experimental/studio/viewer_protocol.py0dispatches a message to registered sim-side handlers in priority order.STRING
HIGHpython/mujoco/experimental/studio/plugin_registry.py0dispatches a message to registered sim-side handlers in priority order.STRING
HIGHpython/mujoco/experimental/studio/viewer_handle.py0dispatches a message to registered sim-side handlers in priority order.STRING
HIGHpython/mujoco/introspect/functions.py0provides information about mujoco api structs. do not edit. this file is automatically generated.STRING
HIGHpython/mujoco/introspect/enums.py0provides information about mujoco api structs. do not edit. this file is automatically generated.STRING
HIGHpython/mujoco/introspect/structs.py0provides information about mujoco api structs. do not edit. this file is automatically generated.STRING
HIGHpython/mujoco/introspect/codegen/generate.py0// copyright 2022 deepmind technologies limited // // licensed under the apache license, version 2.0 (the "license"); //STRING
HIGHpython/mujoco/codegen/generate_cs_bindings.py0// copyright 2022 deepmind technologies limited // // licensed under the apache license, version 2.0 (the "license"); //STRING
HIGHmjx/mujoco/mjx/codegen/file.py0// copyright 2022 deepmind technologies limited // // licensed under the apache license, version 2.0 (the "license"); //STRING
HIGHdoc/generate/generate_api_header.py0// copyright 2022 deepmind technologies limited // // licensed under the apache license, version 2.0 (the "license"); //STRING
HIGHmjx/mujoco/mjx/_src/collision_convex.py0wraps collision functions for use by collision_driver.STRING
HIGHmjx/mujoco/mjx/_src/collision_primitive.py0wraps collision functions for use by collision_driver.STRING
HIGHmjx/mujoco/mjx/_src/collision_sdf.py0wraps collision functions for use by collision_driver.STRING
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py599 if wp._src.context.runtime.core.wp_cuda_launch_kernel(CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py973 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1006 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1045 if not wp._src.context.runtime.core.wp_cuda_graph_update_memcpy_batch(CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1059 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
Cross-Language Confusion10 hits · 45 pts
SeverityFileLineSnippetContext
HIGHpython/mujoco/codegen/generate_spec_bindings.py256 self.{fullvarname}->reserve(rhs_view.length());CODE
HIGH⚡wasm/codegen/tests/generators_test.py373 return (ptr_ && ptr_->string_field) ? *(ptr_->string_field) : "";STRING
HIGH⚡wasm/codegen/tests/generators_test.py376 if (ptr_ && ptr_->string_field) {STRING
HIGHwasm/codegen/tests/generators_test.py265 if (owned_ && ptr_) {STRING
HIGHwasm/codegen/generators/structs.py210 f'return (ptr_ && ptr_->{f.name}) ? *(ptr_->{f.name}) : "";'CODE
HIGHwasm/codegen/generators/structs.py213 with builder.block(f"if (ptr_ && ptr_->{f.name})"):CODE
HIGHwasm/codegen/generators/structs.py457 if (id < 0 || id >= ptr_->nfield) { \\CODE
HIGHwasm/codegen/generators/structs.py482 if (id < 0 || id >= model->nfield) { \\CODE
HIGHwasm/codegen/generators/structs.py540 with builder.block("if (owned_ && ptr_)"):CODE
HIGHmjx/mujoco/mjx/third_party/mujoco_warp/_src/island.py914 "nvmax overflow: world %d needs %d active DOFs but nvmax = %d (behavior undefined)\n"CODE
Self-Referential Comments12 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUM⚡python/mujoco/specs_test.py2369 # Create a spec with minimal flexcomp args (defaults).COMMENT
MEDIUM⚡python/mujoco/specs_test.py2378 # Create a spec with flexcomp that has a pose.COMMENT
MEDIUMpython/mujoco/specs_test.py2282 # Create a simple spec and compile.COMMENT
MEDIUMpython/mujoco/specs_test.py2300 # Create a simple spec and compile so XML can be written.COMMENT
MEDIUMpython/mujoco/specs_test.py2313 # Create a simple spec and compile.COMMENT
MEDIUMpython/mujoco/specs_test.py2326 # Create a spec with a flexcomp grid.COMMENT
MEDIUMpython/mujoco/specs_test.py69 # Create a spec.STRING
MEDIUMpython/mujoco/specs_test.py174 # Create a spec.STRING
MEDIUMpython/mujoco/specs_test.py613 # Create a spec.STRING
MEDIUMpython/mujoco/experimental/studio/native_viewer.py77 # Create the renderer.COMMENT
MEDIUMmjx/mujoco/mjx/_src/io.py872 # Create the raw MuJoCo dataCOMMENT
MEDIUMmjx/mujoco/mjx/_src/types.py39 # This method is called only when lookup by value failsCOMMENT
AI Structural Patterns27 hits · 27 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/minimize.py142CODE
LOWpython/mujoco/rollout.py261CODE
LOWpython/mujoco/rollout.py50CODE
LOWpython/mujoco/experimental/studio/native_viewer.py36CODE
LOWpython/mujoco/experimental/studio/viewer_protocol.py81CODE
LOWpython/mujoco/experimental/studio/web_viewer.py169CODE
LOWpython/mujoco/sysid/_src/residual.py389CODE
LOWpython/mujoco/sysid/_src/model_modifier.py474CODE
LOWpython/mujoco/sysid/report/sections/video.py43CODE
LOWpython/mujoco/sysid/report/sections/video.py162CODE
LOWpython/mujoco/usd/exporter.py38CODE
LOWmjx/mujoco/mjx/_src/support.py125CODE
LOWmjx/mujoco/mjx/_src/support.py1029CODE
LOWmjx/mujoco/mjx/_src/support.py1102CODE
LOWmjx/mujoco/mjx/_src/io.py846CODE
LOWmjx/mujoco/mjx/_src/io.py898CODE
LOWmjx/mujoco/mjx/_src/io.py1254CODE
LOWmjx/mujoco/mjx/_src/io.py1257CODE
LOWmjx/mujoco/mjx/_src/test_util.py279CODE
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/io.py1856CODE
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/io.py2076CODE
LOW…mujoco/mjx/third_party/mujoco_warp/_src/render_util.py312CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1333CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1746CODE
LOWmjx/mujoco/mjx/warp/render_test.py132CODE
LOWmjx/mujoco/mjx/warp/render_test.py237CODE
LOWmjx/mujoco/mjx/warp/ffi.py108CODE
Redundant / Tautological Comments15 hits · 24 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/viewer.py195 # Check if image is already the correct shapeCOMMENT
LOW⚡python/mujoco/specs_test.py1082 # Assign plugin to geomCOMMENT
LOW⚡python/mujoco/specs_test.py1087 # Assign plugin to meshCOMMENT
LOWpython/mujoco/sysid/_src/optimize.py224 # Check if there are any parameters to optimize.COMMENT
LOWpython/mujoco/sysid/_src/plotting.py74 # Check if we should capture this frame based on framerateCOMMENT
LOWpython/mujoco/sysid/report/builder.py58 # Check if this is a GroupSection (has 'sections' attribute)COMMENT
LOWpython/mujoco/sysid/report/sections/parameters.py111 # Check if on boundaryCOMMENT
LOW…ird_party/mujoco_warp/_src/collision_primitive_core.py895 # Check if contact normal is validCOMMENT
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/bvh.py493 # Check if current cell is planarCOMMENT
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/bvh.py533 # Check if it lies on the SAME plane as start cellCOMMENT
LOW…jx/third_party/mujoco_warp/_src/collision_primitive.py265 # Check if the index is unique (appears exactly once)COMMENT
LOW…mujoco/mjx/third_party/mujoco_warp/_src/render_util.py118 # Check if we have intrinsics (sensorsize[1] != 0)COMMENT
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1664 # Check if annotation is a warp array type (annotation is an instance of wp.array)COMMENT
LOW.github/workflows/build_steps.sh894# Set options to print the commands being run, and cause the script to exit withCOMMENT
LOWdoc/generate/generate_linenumbers.py53 # Check if it has any function defined in references.hCOMMENT
Verbosity Indicators12 hits · 23 pts
SeverityFileLineSnippetContext
LOW⚡python/mujoco/specs_test.py2191 # Step 2: Set dataspec to just mjRAYDATA_DISTCOMMENT
LOW⚡python/mujoco/specs_test.py2201 # Step 3: Add all raydata fields and check no-hit valuesCOMMENT
LOWpython/mujoco/specs_test.py2171 # Step 1: Create a rangefinder sensor attached to a site, no dataspec set.COMMENT
LOWpython/mujoco/specs_test.py2224 # Step 4: Add a floor plane, now the ray should hitCOMMENT
LOWpython/mujoco/specs_test.py2244 # Step 5: Add a camera-based rangefinder sensorCOMMENT
LOWdoc/_static/onthispage_mjwarp.js12 // Step 1: Find all attribute definitions and collect their IDs.COMMENT
LOW⚡doc/_static/onthispage_mjwarp.js29 // Step 2: Find the sidebar container.COMMENT
LOW⚡doc/_static/onthispage_mjwarp.js36 // Step 3: Get all links within that sidebar.COMMENT
LOW⚡doc/_static/onthispage_mjwarp.js42 // Step 4: Iterate through the links and hide the ones that match.COMMENT
LOW⚡src/experimental/studio/live.js120 // Step 1: fetch the root XML so mju_getXMLDependencies (which reads itCOMMENT
LOW⚡src/experimental/studio/live.js128 // Step 2: ask MuJoCo for the transitive dependency list.COMMENT
LOWsrc/experimental/studio/live.js142 // Step 3: fetch every dependency in parallel, deduped against URLsCOMMENT
Structural Annotation Overuse12 hits · 23 pts
SeverityFileLineSnippetContext
LOW⚡python/mujoco/specs_test.py2191 # Step 2: Set dataspec to just mjRAYDATA_DISTCOMMENT
LOW⚡python/mujoco/specs_test.py2201 # Step 3: Add all raydata fields and check no-hit valuesCOMMENT
LOWpython/mujoco/specs_test.py2171 # Step 1: Create a rangefinder sensor attached to a site, no dataspec set.COMMENT
LOWpython/mujoco/specs_test.py2224 # Step 4: Add a floor plane, now the ray should hitCOMMENT
LOWpython/mujoco/specs_test.py2244 # Step 5: Add a camera-based rangefinder sensorCOMMENT
LOWdoc/_static/onthispage_mjwarp.js12 // Step 1: Find all attribute definitions and collect their IDs.COMMENT
LOW⚡doc/_static/onthispage_mjwarp.js29 // Step 2: Find the sidebar container.COMMENT
LOW⚡doc/_static/onthispage_mjwarp.js36 // Step 3: Get all links within that sidebar.COMMENT
LOW⚡doc/_static/onthispage_mjwarp.js42 // Step 4: Iterate through the links and hide the ones that match.COMMENT
LOW⚡src/experimental/studio/live.js120 // Step 1: fetch the root XML so mju_getXMLDependencies (which reads itCOMMENT
LOW⚡src/experimental/studio/live.js128 // Step 2: ask MuJoCo for the transitive dependency list.COMMENT
LOWsrc/experimental/studio/live.js142 // Step 3: fetch every dependency in parallel, deduped against URLsCOMMENT
AI Slop Vocabulary7 hits · 18 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/rollout.py109 # just call rollout and returnCOMMENT
MEDIUM…ental/netimgui/Code/Client/Private/NetImgui_Client.cpp829 //generating ClientTextureID. Needs something more robust.COMMENT
LOWwasm/codegen/tests/generators_test.py663 # for integer just return the numberCOMMENT
MEDIUM…/mujoco/mjx/third_party/mujoco_warp/_src/derivative.py1265 # TODO(team): directly utilize M for these settingsCOMMENT
MEDIUMsrc/experimental/studio/live.js168 // application robust, you may want to override this behavior before shipping!COMMENT
MEDIUMsrc/render/classic/render_context.c1744 // enable seamless cube maps if supportedCOMMENT
MEDIUMsrc/engine/engine_util_spatial.c287 // "A robust method to extract the rotational part of deformations."COMMENT
Modern Structural Boilerplate11 hits · 11 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/experimental/studio/viewer_protocol.py28logger = logging.getLogger(__name__)CODE
LOWpython/mujoco/experimental/studio/web_viewer.py295 def _update_model(self) -> None:CODE
LOWpython/mujoco/experimental/studio/viewer_handle.py177 def set_model(self, model: mujoco.MjModel, path: str = '') -> None:CODE
LOWpython/mujoco/experimental/studio/web/web_server.py1151 def update_state(self, payload: bytes) -> None:CODE
LOWpython/mujoco/experimental/studio/web/web_server.py1157 def update_model(self, mjb_data: bytes) -> None:CODE
LOWpython/mujoco/experimental/studio/sample/implot.py77def _setup_time_axis(plot_size: imgui.Vec2) -> None:CODE
LOWpython/mujoco/experimental/studio/sample/implot.py85def _setup_xpos_axis(centroid: list[np.ndarray], plot_size: imgui.Vec2) -> None:CODE
LOWpython/mujoco/experimental/studio/sample/implot.py101def _setup_angle_axis(plot_size: imgui.Vec2) -> None:CODE
LOWpython/mujoco/sysid/_src/signal_transform.py108 def set_sensor_weights(self, weights: Mapping[str, float]) -> None:CODE
LOWpython/mujoco/sysid/_src/parameter.py107 def update_from_vector(self, vector: np.ndarray) -> None:CODE
LOWpython/mujoco/sysid/_src/parameter.py298 def update_from_vector(self, vector: np.ndarray) -> None:CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…netimgui/Code/Client/Private/NetImgui_NetworkPosix.cpp30// NOTE: Removed static_assert(0) as requested changes are implemented belowCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmjx/mujoco/mjx/_src/support.py310 # TODO: consider using MjModel.names_map insteadCOMMENT
LOWmjx/mujoco/mjx/_src/collision_sdf.py216 # TODO: implement analytical version.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/engine/engine_support.c860 // don't forget to call mj_set0 after changing massesCOMMENT
Fake / Example Data2 hits · 1 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/introspect/type_parsing.py100 'lorem ipsum(dolor sit (consectetur adipiscing) amet)sed do eiusmod',STRING
LOWpython/mujoco/introspect/type_parsing.py102 ['consectetur adipiscing', 'dolor sit amet', 'lorem ipsumsed do eiusmod'].STRING