Repository Analysis

google-deepmind/mujoco

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

9.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google-deepmind/mujoco, a C++ project with 14,750 GitHub stars. SynthScan v2.0 examined 368,701 lines of code across 1258 source files, recording 2811 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 9.3 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

9.3
Adjusted Score
9.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
14.8K
Stars
C++
Language
368.7K
Lines of Code
1.3K
Files
2.8K
Pattern Hits
2026-08-29
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 6HIGH 39MEDIUM 314LOW 2452

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2811 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block1366 hits · 1272 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
1306 more matches not shown…
Decorative Section Separators279 hits · 850 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/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.py82# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py84# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py248# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/viewer_protocol.py250# -----------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py236 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py238 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py278 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py280 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py296 # ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/web_viewer.py298 # ---------------------------------------------------------------------------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.py210# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/mujoco/experimental/studio/messages.py212# ---------------------------------------------------------------------------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
MEDIUMpython/mujoco/sysid/_src/residual.py14# ==============================================================================COMMENT
219 more matches not shown…
Hyper-Verbose Identifiers428 hits · 369 pts
SeverityFileLineSnippetContext
LOWtest/benchmark/run_ablation.py138def compiler_cmake_flags_variants():CODE
LOWtest/doc/mjcf_schema_test.py215 def test_vector_default_on_scalar(self):STRING
LOWtest/doc/mjcf_schema_test.py219 def test_enum_default_not_a_keyword(self):STRING
LOWtest/doc/mjcf_schema_test.py228 def test_required_with_default(self):STRING
LOWtest/doc/mjcf_schema_test.py232 def test_variant_with_required(self):STRING
LOWtest/doc/mjcf_schema_test.py242 def test_duplicate_enum_keyword(self):STRING
LOWtest/doc/mjcf_schema_test.py390 def test_chars_unbounded_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py394 def test_chars_with_default_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py403 def test_string_lexing_range_vs_float(self):STRING
LOWtest/doc/mjcf_schema_test.py411 def test_min_max_integer_facet(self):STRING
LOWtest/doc/mjcf_schema_test.py97 def test_groups_and_expansion(self):STRING
LOWtest/doc/mjcf_schema_test.py106 def test_attr_types_and_arity(self):STRING
LOWtest/doc/mjcf_schema_test.py161 def test_error_has_line_number(self):STRING
LOWtest/doc/mjcf_schema_test.py173 def test_duplicate_attr_via_use(self):STRING
LOWtest/doc/mjcf_schema_test.py186 def test_ref_resolved_by_id_elsewhere(self):STRING
LOWtest/doc/mjcf_schema_test.py281 def test_constraint_unknown_attr(self):STRING
LOWtest/doc/mjcf_schema_test.py299 def test_min_max_positive_facets(self):STRING
LOWtest/doc/mjcf_schema_test.py311 def test_min_on_string_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py326 def test_const_in_group_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py345 def test_element_unknown_facet(self):STRING
LOWtest/doc/mjcf_schema_test.py349 def test_element_dangling_alias(self):STRING
LOWtest/doc/mjcf_schema_test.py364 def test_bool_vector_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py375 def test_file_vector_rejected(self):STRING
LOWtest/doc/mjcf_schema_test.py423 def test_min_greater_than_max(self):STRING
LOWtest/doc/doc_test.py191 def test_schema_enum_coverage(self):CODE
LOWtest/doc/doc_test.py278 def test_all_functions_included(self):CODE
LOWtest/doc/doc_test.py332 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_del_safe_when_init_fails_early(self):STRING
LOWpython/mujoco/specs_test.py1018 def test_duplicate_name_error(self):CODE
LOWpython/mujoco/specs_test.py2150 def test_make_flex_with_pos_quat(self):CODE
LOWpython/mujoco/specs_test.py1254 def test_compiler_from_element(self):CODE
LOWpython/mujoco/specs_test.py1429 def test_delete_from_attached_spec_error(self):CODE
LOWpython/mujoco/specs_test.py1444 def test_attach_valid_child_lists(self):CODE
LOWpython/mujoco/specs_test.py2072 def test_encode_xml_without_model(self):CODE
LOWpython/mujoco/specs_test.py2085 def test_encode_no_encoder_raises(self):CODE
LOWpython/mujoco/specs_test.py2184 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.py991 def test_geom_and_mesh_plugin(self):STRING
LOWpython/mujoco/specs_test.py1036 def test_duplicate_name_error_when_adding_specs_with_kwargs(self):STRING
LOWpython/mujoco/specs_test.py1056 def test_delete_unused_plugin(self):STRING
LOWpython/mujoco/specs_test.py1099 def test_access_option_stat_visual(self):STRING
LOWpython/mujoco/specs_test.py1520 def test_incorrect_hfield_size(self):STRING
368 more matches not shown…
Deep Nesting302 hits · 277 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/viewer.py326CODE
LOWpython/mujoco/viewer.py448CODE
LOWpython/mujoco/__init__.py127CODE
LOWpython/mujoco/__init__.py243CODE
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/studio_app_events.py31CODE
LOWpython/mujoco/experimental/studio/studio_app_events.py429CODE
LOWpython/mujoco/experimental/studio/web/web_server.py359CODE
LOWpython/mujoco/experimental/studio/web/web_server.py427CODE
LOWpython/mujoco/experimental/studio/web/web_server.py521CODE
LOWpython/mujoco/experimental/studio/web/web_server.py578CODE
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.py313CODE
LOWwasm/codegen/generators/structs.py361CODE
LOWwasm/codegen/generators/structs.py493CODE
LOWwasm/codegen/generators/structs.py563CODE
LOWwasm/codegen/generators/structs.py761CODE
242 more matches not shown…
Unused Imports242 hits · 171 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/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
LOWpython/mujoco/sysid/_src/residual.py18CODE
182 more matches not shown…
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.py242Binds (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.py764Sorts 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.py545Puts mujoco.MjModel onto a device, resulting in mjx.Model. Args: m: the model to put onto device device: whicSTRING
HIGHmjx/mujoco/mjx/_src/io.py873Allocate 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 Wrapping43 hits · 63 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.py173 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/mujoco/experimental/studio/messages.py273 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/mujoco/experimental/studio/viewer_app.py152 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/viewer_app.py153 print(f'Error reloading model from {self.model_path!r}: {ex}')CODE
LOWpython/mujoco/experimental/studio/viewer_app.py267 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/viewer_app.py268 print(f'Error loading model from {drop_file!r}: {ex}')CODE
LOWpython/mujoco/experimental/studio/viewer_handle.py73 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/mujoco/experimental/studio/web/web_server.py354 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUMpython/mujoco/experimental/studio/sample/implot.py225 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
LOWpython/mujoco/experimental/studio/sample/render.py62 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/sample/render.py63 print(f'Error rendering model: {ex}')CODE
LOWpython/mujoco/experimental/studio/sample/render.py69 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMpython/mujoco/experimental/studio/sample/render.py70 print(f'Error saving image to `{_OUTPUT.value}`: {ex}')CODE
LOWpython/mujoco/experimental/studio/sample/ghost.py173 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.py424def ffi_callback(self, call_frame, platform):CODE
MEDIUMmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py840def ffi_callback(self, call_frame, platform):CODE
MEDIUMmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1859def ffi_callback(call_frame, platform):CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py582 except Exception as e:CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1174 except Exception as e:CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1504 except Exception as e:CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1895 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
LOWdoc/make_mujoco_stubs.py99 except Exception:CODE
MEDIUMdoc/mjwarp/update_types.py68 print(f'Error: Could not find {filepath}', file=sys.stderr)CODE
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/custom_call.py135 if wp._src.context.runtime.core.wp_cuda_launch_kernel(CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py567 if wp._src.context.runtime.core.wp_cuda_launch_kernel(CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py930 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.py963 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.py1002 if not wp._src.context.runtime.core.wp_cuda_graph_update_memcpy_batch(CODE
CRITICALmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1016 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
Cross-File Repetition10 hits · 50 pts
SeverityFileLineSnippetContext
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
Cross-Language Confusion10 hits · 45 pts
SeverityFileLineSnippetContext
HIGHpython/mujoco/codegen/generate_spec_bindings.py256 self.{fullvarname}->reserve(rhs_view.length());CODE
HIGHwasm/codegen/tests/generators_test.py373 return (ptr_ && ptr_->string_field) ? *(ptr_->string_field) : "";STRING
HIGHwasm/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.py203 f'return (ptr_ && ptr_->{f.name}) ? *(ptr_->{f.name}) : "";'CODE
HIGHwasm/codegen/generators/structs.py206 with builder.block(f"if (ptr_ && ptr_->{f.name})"):CODE
HIGHwasm/codegen/generators/structs.py437 if (id < 0 || id >= ptr_->nfield) { \\CODE
HIGHwasm/codegen/generators/structs.py462 if (id < 0 || id >= model->nfield) { \\CODE
HIGHwasm/codegen/generators/structs.py520 with builder.block("if (owned_ && ptr_)"):CODE
HIGHmjx/mujoco/mjx/third_party/mujoco_warp/_src/island.py998 "nvmax overflow: world %d needs %d active DOFs but nvmax = %d (behavior undefined)\n",CODE
Self-Referential Comments13 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMpython/mujoco/specs_test.py2142 # Create a spec with minimal flexcomp args (defaults).COMMENT
MEDIUMpython/mujoco/specs_test.py2151 # Create a spec with flexcomp that has a pose.COMMENT
MEDIUMpython/mujoco/specs_test.py2055 # Create a simple spec and compile.COMMENT
MEDIUMpython/mujoco/specs_test.py2073 # Create a simple spec and compile so XML can be written.COMMENT
MEDIUMpython/mujoco/specs_test.py2086 # Create a simple spec and compile.COMMENT
MEDIUMpython/mujoco/specs_test.py2099 # 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.py76 # Create the renderer.COMMENT
MEDIUMmjx/mujoco/mjx/_src/io.py836 # Create the raw MuJoCo dataCOMMENT
MEDIUMmjx/mujoco/mjx/_src/types.py39 # This method is called only when lookup by value failsCOMMENT
MEDIUMmjx/mujoco/mjx/third_party/warp/_src/jax/custom_call.py189 # Create the batched primitive.COMMENT
AI Structural Patterns28 hits · 28 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/minimize.py142CODE
LOWpython/mujoco/rollout.py261CODE
LOWpython/mujoco/rollout.py50CODE
LOWpython/mujoco/experimental/studio/native_viewer.py35CODE
LOWpython/mujoco/experimental/studio/viewer_protocol.py105CODE
LOWpython/mujoco/experimental/studio/web_viewer.py147CODE
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.py39CODE
LOWmjx/mujoco/mjx/_src/support.py125CODE
LOWmjx/mujoco/mjx/_src/support.py1029CODE
LOWmjx/mujoco/mjx/_src/support.py1102CODE
LOWmjx/mujoco/mjx/_src/io.py810CODE
LOWmjx/mujoco/mjx/_src/io.py862CODE
LOWmjx/mujoco/mjx/_src/io.py1218CODE
LOWmjx/mujoco/mjx/_src/io.py1221CODE
LOWmjx/mujoco/mjx/_src/test_util.py279CODE
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/io.py1709CODE
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/io.py1919CODE
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/io.py4086CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/custom_call.py393CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1290CODE
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1698CODE
LOWmjx/mujoco/mjx/warp/render_test.py132CODE
LOWmjx/mujoco/mjx/warp/render_test.py237CODE
LOWmjx/mujoco/mjx/warp/ffi.py109CODE
Verbosity Indicators14 hits · 28 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/specs_test.py1964 # Step 2: Set dataspec to just mjRAYDATA_DISTCOMMENT
LOWpython/mujoco/specs_test.py1974 # Step 3: Add all raydata fields and check no-hit valuesCOMMENT
LOWpython/mujoco/specs_test.py1944 # Step 1: Create a rangefinder sensor attached to a site, no dataspec set.COMMENT
LOWpython/mujoco/specs_test.py1997 # Step 4: Add a floor plane, now the ray should hitCOMMENT
LOWpython/mujoco/specs_test.py2017 # Step 5: Add a camera-based rangefinder sensorCOMMENT
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/island.py289 # Step 1: Find tree edgesCOMMENT
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/island.py293 # Step 2: DFS flood fillCOMMENT
LOWdoc/_static/onthispage_mjwarp.js12 // Step 1: Find all attribute definitions and collect their IDs.COMMENT
LOWdoc/_static/onthispage_mjwarp.js29 // Step 2: Find the sidebar container.COMMENT
LOWdoc/_static/onthispage_mjwarp.js36 // Step 3: Get all links within that sidebar.COMMENT
LOWdoc/_static/onthispage_mjwarp.js42 // Step 4: Iterate through the links and hide the ones that match.COMMENT
LOWsrc/experimental/studio/live.js88 // Step 1: fetch the root XML so mju_getXMLDependencies (which reads itCOMMENT
LOWsrc/experimental/studio/live.js96 // Step 2: ask MuJoCo for the transitive dependency list.COMMENT
LOWsrc/experimental/studio/live.js110 // Step 3: fetch every dependency in parallel, deduped against URLsCOMMENT
Structural Annotation Overuse14 hits · 28 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/specs_test.py1964 # Step 2: Set dataspec to just mjRAYDATA_DISTCOMMENT
LOWpython/mujoco/specs_test.py1974 # Step 3: Add all raydata fields and check no-hit valuesCOMMENT
LOWpython/mujoco/specs_test.py1944 # Step 1: Create a rangefinder sensor attached to a site, no dataspec set.COMMENT
LOWpython/mujoco/specs_test.py1997 # Step 4: Add a floor plane, now the ray should hitCOMMENT
LOWpython/mujoco/specs_test.py2017 # Step 5: Add a camera-based rangefinder sensorCOMMENT
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/island.py289 # Step 1: Find tree edgesCOMMENT
LOWmjx/mujoco/mjx/third_party/mujoco_warp/_src/island.py293 # Step 2: DFS flood fillCOMMENT
LOWdoc/_static/onthispage_mjwarp.js12 // Step 1: Find all attribute definitions and collect their IDs.COMMENT
LOWdoc/_static/onthispage_mjwarp.js29 // Step 2: Find the sidebar container.COMMENT
LOWdoc/_static/onthispage_mjwarp.js36 // Step 3: Get all links within that sidebar.COMMENT
LOWdoc/_static/onthispage_mjwarp.js42 // Step 4: Iterate through the links and hide the ones that match.COMMENT
LOWsrc/experimental/studio/live.js88 // Step 1: fetch the root XML so mju_getXMLDependencies (which reads itCOMMENT
LOWsrc/experimental/studio/live.js96 // Step 2: ask MuJoCo for the transitive dependency list.COMMENT
LOWsrc/experimental/studio/live.js110 // Step 3: fetch every dependency in parallel, deduped against URLsCOMMENT
Redundant / Tautological Comments15 hits · 24 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/viewer.py195 # Check if image is already the correct shapeCOMMENT
LOWpython/mujoco/specs_test.py1008 # Assign plugin to geomCOMMENT
LOWpython/mujoco/specs_test.py1013 # 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.py889 # 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.py90 # Check if we have intrinsics (sensorsize[1] != 0)COMMENT
LOWmjx/mujoco/mjx/third_party/warp/_src/jax/ffi.py1616 # Check if annotation is a warp array type (annotation is an instance of wp.array)COMMENT
LOW.github/workflows/build_steps.sh423# 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
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.py615 # for integer just return the numberCOMMENT
MEDIUM…/mujoco/mjx/third_party/mujoco_warp/_src/derivative.py1190 # TODO(team): directly utilize M for these settingsCOMMENT
MEDIUMsrc/experimental/studio/live.js136 // 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.c288 // "A robust method to extract the rotational part of deformations."COMMENT
Modern Structural Boilerplate10 hits · 10 pts
SeverityFileLineSnippetContext
LOWpython/mujoco/experimental/studio/web_viewer.py264 def _update_model(self) -> None:CODE
LOWpython/mujoco/experimental/studio/viewer_app.py114 def _setup_history(self) -> None:CODE
LOWpython/mujoco/experimental/studio/web/web_server.py1122 def update_state(self, payload: bytes) -> None:CODE
LOWpython/mujoco/experimental/studio/web/web_server.py1128 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.c804 // 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