openai / codex
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
snap
patch
plist
proto
nix
gitattributes
tpl
prettierignore
spec
jsonl
editorconfig
npmrc
in
el
cfg
mjs
  • 38 extensions are included in analyses: rs, snap, ts, txt, json, md, toml, py, sql, yaml, sh, patch, bzl, ps1, c, gitignore, svg, h, html, plist, xml, proto, js, nix, gitattributes, cjs, tpl, prettierignore, css, spec, jsonl, editorconfig, ipynb, npmrc, in, el, cfg, mjs
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (31 files).
    • exclude files with path like ".*/cache/.*" (Caches) (2 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (21 files).
    • exclude files with path like ".*/[Vv]endors?/.*" (Dependencies) (36 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (1 file).
    • exclude files with path like ".*/_sokrates/.*" (Sokrates analysis output) (0 files).
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.

main752981 LOC (51%) 2,448 files
test558765 LOC (38%) 2,033 files
generated3251 LOC (<1%) 718 files
build and deployment14052 LOC (<1%) 193 files
other129322 LOC (8%) 1,030 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
nix
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2448 files match defined criteria (752,981 LOC, 100.0% vs. main code):
    • 2,265 *.rs files (728,066 LOC)
    • 66 *.py files (17,797 LOC)
    • 6 *.ps1 files (1,750 LOC)
    • 13 *.ts files (1,523 LOC)
    • 4 *.html files (770 LOC)
    • 1 *.css files (757 LOC)
    • 65 *.sql files (746 LOC)
    • 1 *.ipynb files (543 LOC)
    • 3 *.proto files (309 LOC)
    • 2 *.tpl files (297 LOC)
    • 13 *.toml files (206 LOC)
    • 2 *.nix files (134 LOC)
    • 3 *.yaml files (49 LOC)
    • 1 *.js files (19 LOC)
    • 2 *.xml files (14 LOC)
    • 1 *.h files (1 LOC)
  • " *.rs" is biggest, containing 96.69% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.rs728066 LOC (96%) 2,265 files
*.py17797 LOC (2%) 66 files
*.ps11750 LOC (<1%) 6 files
*.ts1523 LOC (<1%) 13 files
*.html770 LOC (<1%) 4 files
*.css757 LOC (<1%) 1 file
*.sql746 LOC (<1%) 65 files
*.ipynb543 LOC (<1%) 1 file
*.proto309 LOC (<1%) 3 files
*.tpl297 LOC (<1%) 2 files
*.toml206 LOC (<1%) 13 files
*.nix134 LOC (<1%) 2 files
*.yaml49 LOC (<1%) 3 files
*.js19 LOC (<1%) 1 file
*.xml14 LOC (<1%) 2 files
*.h1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
gitattributes
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 2033 files match defined criteria (558,765 LOC, 74.2% vs. main code):
    • 1,182 *.rs files (534,653 LOC)
    • 794 *.snap files (10,983 LOC)
    • 39 *.py files (10,973 LOC)
    • 9 *.ts files (1,870 LOC)
    • 5 *.toml files (174 LOC)
    • 1 *.bzl files (42 LOC)
    • 1 *.sh files (35 LOC)
    • 1 *.cjs files (30 LOC)
    • 1 *.gitattributes files (5 LOC)
  • " *.rs" is biggest, containing 95.68% of LOC.
  • " *.gitattributes" is smallest, containing 0% of LOC.


*.rs534653 LOC (95%) 1,182 files
*.snap10983 LOC (1%) 794 files
*.py10973 LOC (1%) 39 files
*.ts1870 LOC (<1%) 9 files
*.toml174 LOC (<1%) 5 files
*.bzl42 LOC (<1%) 1 file
*.sh35 LOC (<1%) 1 file
*.cjs30 LOC (<1%) 1 file
*.gitattributes5 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 any line of content like "// This file was generated .*".
    • files with paths like ".*/generated/.*".
  • 718 files match defined criteria (3,251 LOC, 0.4% vs. main code):
    • 693 *.ts files (1,744 LOC)
    • 23 *.json files (1,325 LOC)
    • 2 *.py files (182 LOC)
  • " *.ts" is biggest, containing 53.65% of LOC.
  • " *.py" is smallest, containing 5.6% of LOC.


*.ts1744 LOC (53%) 693 files
*.json1325 LOC (40%) 23 files
*.py182 LOC (5%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
npmrc
gitattributes
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*[.]bzl".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*/[.]github/actions/.*[.]ya?ml".
    • files with paths like ".*/action[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 193 files match defined criteria (14,052 LOC, 1.9% vs. main code):
    • 145 *.toml files (5,118 LOC)
    • 5 *.yaml files (4,615 LOC)
    • 25 *.sh files (3,089 LOC)
    • 9 *.bzl files (1,128 LOC)
    • 5 *.gitignore files (87 LOC)
    • 2 *.prettierignore files (9 LOC)
    • 1 *.npmrc files (4 LOC)
    • 1 *.gitattributes files (2 LOC)
  • " *.toml" is biggest, containing 36.42% of LOC.
  • " *.gitattributes" is smallest, containing 0.01% of LOC.


*.toml5118 LOC (36%) 145 files
*.yaml4615 LOC (32%) 5 files
*.sh3089 LOC (21%) 25 files
*.bzl1128 LOC (8%) 9 files
*.gitignore87 LOC (<1%) 5 files
*.prettierignore9 LOC (<1%) 2 files
*.npmrc4 LOC (<1%) 1 file
*.gitattributes2 LOC (<1%) 1 file
Other Code
patch
mjs
plist
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]plist".
  • 1030 files match defined criteria (129,322 LOC, 17.2% vs. main code):
    • 351 *.json files (105,744 LOC)
    • 145 *.md files (9,766 LOC)
    • 448 *.txt files (6,607 LOC)
    • 43 *.py files (4,214 LOC)
    • 22 *.patch files (2,059 LOC)
    • 1 *.mjs files (521 LOC)
    • 3 *.rs files (183 LOC)
    • 1 *.cjs files (131 LOC)
    • 4 *.plist files (38 LOC)
    • 6 *.yaml files (34 LOC)
    • 4 *.ts files (19 LOC)
    • 2 *.svg files (6 LOC)
  • " *.json" is biggest, containing 81.77% of LOC.
  • " *.svg" is smallest, containing 0% of LOC.


*.json105744 LOC (81%) 351 files
*.md9766 LOC (7%) 145 files
*.txt6607 LOC (5%) 448 files
*.py4214 LOC (3%) 43 files
*.patch2059 LOC (1%) 22 files
*.mjs521 LOC (<1%) 1 file
*.rs183 LOC (<1%) 3 files
*.cjs131 LOC (<1%) 1 file
*.plist38 LOC (<1%) 4 files
*.yaml34 LOC (<1%) 6 files
*.ts19 LOC (<1%) 4 files
*.svg6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.rs files are analyzed with RustAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.py files are analyzed with PythonAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.ps1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.sql files are analyzed with SqlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.ipynb files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.proto files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.tpl files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.toml files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.nix files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.xml files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.h files are analyzed with CppAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis


2026-08-31 17:17