openai / neural-mmo
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
txt
glsl
mtl
obj
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.

main10345 LOC (76%) 165 files
test279 LOC (2%) 10 files
generated0 LOC (0%) 0 files
build and deployment15 LOC (<1%) 4 files
other2839 LOC (21%) 26 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
glsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 165 files match defined criteria (10,345 LOC, 100.0% vs. main code):
    • 159 *.py files (10,068 LOC)
    • 3 *.tsx files (144 LOC)
    • 3 *.glsl files (133 LOC)
  • " *.py" is biggest, containing 97.32% of LOC.
  • " *.glsl" is smallest, containing 1.29% of LOC.


*.py10068 LOC (97%) 159 files
*.tsx144 LOC (1%) 3 files
*.glsl133 LOC (1%) 3 files
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 ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 10 files match defined criteria (279 LOC, 2.7% vs. main code). All matches are in *.py files.


*.py279 LOC (100%) 10 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 4 files match defined criteria (15 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh15 LOC (100%) 4 files
Other Code
txt
obj
mtl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]obj".
    • files with paths like ".*[.]mtl".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 26 files match defined criteria (2,839 LOC, 27.4% vs. main code):
    • 13 *.txt files (1,379 LOC)
    • 2 *.obj files (935 LOC)
    • 8 *.py files (328 LOC)
    • 1 *.md files (163 LOC)
    • 2 *.mtl files (34 LOC)
  • " *.txt" is biggest, containing 48.57% of LOC.
  • " *.mtl" is smallest, containing 1.2% of LOC.


*.txt1379 LOC (48%) 13 files
*.obj935 LOC (32%) 2 files
*.py328 LOC (11%) 8 files
*.md163 LOC (5%) 1 file
*.mtl34 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-04-14 11:54