openai / box2d-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
i
txt
cmd
in
gitattributes
ui
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.

main19789 LOC (65%) 121 files
test923 LOC (3%) 12 files
generated0 LOC (0%) 0 files
build and deployment21 LOC (<1%) 2 files
other9435 LOC (31%) 94 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
i
cmd
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 121 files match defined criteria (19,789 LOC, 100.0% vs. main code):
    • 45 *.cpp files (9,514 LOC)
    • 16 *.i files (6,006 LOC)
    • 47 *.h files (3,879 LOC)
    • 9 *.py files (351 LOC)
    • 3 *.cmd files (27 LOC)
    • 1 *.in files (12 LOC)
  • " *.cpp" is biggest, containing 48.08% of LOC.
  • " *.in" is smallest, containing 0.06% of LOC.


*.cpp9514 LOC (48%) 45 files
*.i6006 LOC (30%) 16 files
*.h3879 LOC (19%) 47 files
*.py351 LOC (1%) 9 files
*.cmd27 LOC (<1%) 3 files
*.in12 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 ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 12 files match defined criteria (923 LOC, 4.7% vs. main code). All matches are in *.py files.


*.py923 LOC (100%) 12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (21 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh21 LOC (100%) 2 files
Other Code
txt
ui
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
  • 94 files match defined criteria (9,435 LOC, 47.7% vs. main code):
    • 84 *.py files (8,688 LOC)
    • 7 *.txt files (514 LOC)
    • 2 *.md files (118 LOC)
    • 1 *.ui files (115 LOC)
  • " *.py" is biggest, containing 92.08% of LOC.
  • " *.ui" is smallest, containing 1.22% of LOC.


*.py8688 LOC (92%) 84 files
*.txt514 LOC (5%) 7 files
*.md118 LOC (1%) 2 files
*.ui115 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-04-14 11:54