openai / mujoco-py
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
pxd
txt
pxi
in
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main6924 LOC (50%) 42 files
test1193 LOC (8%) 15 files
generated5126 LOC (37%) 4 files
build and deployment0 LOC (0%) 0 files
other511 LOC (3%) 16 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pxd
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 42 files match defined criteria (6,924 LOC, 100.0% vs. main code):
    • 11 *.py files (1,980 LOC)
    • 6 *.pxd files (1,626 LOC)
    • 5 *.h files (1,270 LOC)
    • 7 *.pyx files (1,188 LOC)
    • 8 *.xml files (545 LOC)
    • 3 *.c files (296 LOC)
    • 1 *.toml files (10 LOC)
    • 1 *.in files (9 LOC)
  • " *.py" is biggest, containing 28.6% of LOC.
  • " *.in" is smallest, containing 0.13% of LOC.


*.py1980 LOC (28%) 11 files
*.pxd1626 LOC (23%) 6 files
*.h1270 LOC (18%) 5 files
*.pyx1188 LOC (17%) 7 files
*.xml545 LOC (7%) 8 files
*.c296 LOC (4%) 3 files
*.toml10 LOC (<1%) 1 file
*.in9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 15 files match defined criteria (1,193 LOC, 17.2% vs. main code):
    • 13 *.py files (1,169 LOC)
    • 2 *.xml files (24 LOC)
  • " *.py" is biggest, containing 97.99% of LOC.
  • " *.xml" is smallest, containing 2.01% of LOC.


*.py1169 LOC (97%) 13 files
*.xml24 LOC (2%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
pxi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 4 files match defined criteria (5,126 LOC, 74.0% vs. main code):
    • 1 *.pxi files (4,752 LOC)
    • 2 *.py files (372 LOC)
    • 1 *.md files (2 LOC)
  • " *.pxi" is biggest, containing 92.7% of LOC.
  • " *.md" is smallest, containing 0.04% of LOC.


*.pxi4752 LOC (92%) 1 file
*.py372 LOC (7%) 2 files
*.md2 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 16 files match defined criteria (511 LOC, 7.4% vs. main code):
    • 11 *.py files (344 LOC)
    • 3 *.md files (151 LOC)
    • 2 *.txt files (16 LOC)
  • " *.py" is biggest, containing 67.32% of LOC.
  • " *.txt" is smallest, containing 3.13% of LOC.


*.py344 LOC (67%) 11 files
*.md151 LOC (29%) 3 files
*.txt16 LOC (3%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-04-14 11:41