openai / openai-node
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
mjs
snap
babelrc
jsonl
jsonc
txt
editorconfig
prettierignore
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.

main16357 LOC (11%) 128 files
test13081 LOC (9%) 115 files
generated53651 LOC (37%) 15 files
build and deployment26 LOC (<1%) 3 files
other60049 LOC (41%) 115 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 128 files match defined criteria (16,357 LOC, 100.0% vs. main code):
    • 113 *.ts files (16,038 LOC)
    • 5 *.cjs files (280 LOC)
    • 5 *.mjs files (22 LOC)
    • 5 *.js files (17 LOC)
  • " *.ts" is biggest, containing 98.05% of LOC.
  • " *.js" is smallest, containing 0.1% of LOC.


*.ts16038 LOC (98%) 113 files
*.cjs280 LOC (1%) 5 files
*.mjs22 LOC (<1%) 5 files
*.js17 LOC (<1%) 5 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]snap".
  • 115 files match defined criteria (13,081 LOC, 80.0% vs. main code):
    • 94 *.ts files (12,732 LOC)
    • 9 *.cjs files (108 LOC)
    • 4 *.js files (85 LOC)
    • 1 *.snap files (54 LOC)
    • 4 *.tsx files (48 LOC)
    • 1 *.toml files (34 LOC)
    • 1 *.jsonc files (10 LOC)
    • 1 *.html files (10 LOC)
  • " *.ts" is biggest, containing 97.33% of LOC.
  • " *.html" is smallest, containing 0.08% of LOC.


*.ts12732 LOC (97%) 94 files
*.cjs108 LOC (<1%) 9 files
*.js85 LOC (<1%) 4 files
*.snap54 LOC (<1%) 1 file
*.tsx48 LOC (<1%) 4 files
*.toml34 LOC (<1%) 1 file
*.jsonc10 LOC (<1%) 1 file
*.html10 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 15 files match defined criteria (53,651 LOC, 328.0% vs. main code). All matches are in *.json files.


*.json53651 LOC (100%) 15 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]sh".
  • 3 files match defined criteria (26 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh26 LOC (100%) 3 files
Other Code
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
  • 115 files match defined criteria (60,049 LOC, 367.1% vs. main code):
    • 60 *.json files (55,173 LOC)
    • 12 *.md files (2,967 LOC)
    • 42 *.ts files (1,899 LOC)
    • 1 *.jsonl files (10 LOC)
  • " *.json" is biggest, containing 91.88% of LOC.
  • " *.jsonl" is smallest, containing 0.02% of LOC.


*.json55173 LOC (91%) 60 files
*.md2967 LOC (4%) 12 files
*.ts1899 LOC (3%) 42 files
*.jsonl10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:10