openai / build-hours
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
jsonl
mako
ini
  • 20 extensions are included in analyses: tsx, ts, py, json, md, js, svg, css, gitignore, mjs, ipynb, txt, yaml, html, scss, jsonl, cjs, toml, mako, ini
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (13 files).
    • exclude files with path like ".*/dist/.*" (Distributions) (0 files).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (1 file).
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.

main93161 LOC (48%) 661 files
test3673 LOC (1%) 39 files
generated30971 LOC (15%) 10 files
build and deployment25516 LOC (13%) 33 files
other40711 LOC (20%) 203 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
mako
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 661 files match defined criteria (93,161 LOC, 100.0% vs. main code):
    • 237 *.tsx files (25,879 LOC)
    • 177 *.ts files (22,223 LOC)
    • 13 *.ipynb files (14,857 LOC)
    • 135 *.py files (12,281 LOC)
    • 26 *.css files (9,210 LOC)
    • 10 *.html files (3,213 LOC)
    • 30 *.js files (2,993 LOC)
    • 3 *.yaml files (1,773 LOC)
    • 5 *.scss files (409 LOC)
    • 18 *.mjs files (170 LOC)
    • 4 *.cjs files (132 LOC)
    • 1 *.mako files (17 LOC)
    • 2 *.jsonl files (4 LOC)
  • " *.tsx" is biggest, containing 27.78% of LOC.
  • " *.jsonl" is smallest, containing 0% of LOC.


*.tsx25879 LOC (27%) 237 files
*.ts22223 LOC (23%) 177 files
*.ipynb14857 LOC (15%) 13 files
*.py12281 LOC (13%) 135 files
*.css9210 LOC (9%) 26 files
*.html3213 LOC (3%) 10 files
*.js2993 LOC (3%) 30 files
*.yaml1773 LOC (1%) 3 files
*.scss409 LOC (<1%) 5 files
*.mjs170 LOC (<1%) 18 files
*.cjs132 LOC (<1%) 4 files
*.mako17 LOC (<1%) 1 file
*.jsonl4 LOC (<1%) 2 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/vitest[.].*".
  • 39 files match defined criteria (3,673 LOC, 3.9% vs. main code):
    • 31 *.ts files (2,991 LOC)
    • 5 *.py files (411 LOC)
    • 2 *.tsx files (266 LOC)
    • 1 *.js files (5 LOC)
  • " *.ts" is biggest, containing 81.43% of LOC.
  • " *.js" is smallest, containing 0.14% of LOC.


*.ts2991 LOC (81%) 31 files
*.py411 LOC (11%) 5 files
*.tsx266 LOC (7%) 2 files
*.js5 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".
  • 10 files match defined criteria (30,971 LOC, 33.2% vs. main code). All matches are in *.json files.


*.json30971 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like "(.*/)?[.]eslintrc([.].*)?".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 33 files match defined criteria (25,516 LOC, 27.4% vs. main code):
    • 9 *.yaml files (25,016 LOC)
    • 22 *.gitignore files (455 LOC)
    • 2 *.toml files (45 LOC)
  • " *.yaml" is biggest, containing 98.04% of LOC.
  • " *.toml" is smallest, containing 0.18% of LOC.


*.yaml25016 LOC (98%) 9 files
*.gitignore455 LOC (1%) 22 files
*.toml45 LOC (<1%) 2 files
Other Code
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]svg".
  • 203 files match defined criteria (40,711 LOC, 43.7% vs. main code):
    • 133 *.json files (36,523 LOC)
    • 39 *.md files (2,701 LOC)
    • 15 *.svg files (718 LOC)
    • 13 *.txt files (658 LOC)
    • 2 *.py files (83 LOC)
    • 1 *.ini files (28 LOC)
  • " *.json" is biggest, containing 89.71% of LOC.
  • " *.ini" is smallest, containing 0.07% of LOC.


*.json36523 LOC (89%) 133 files
*.md2701 LOC (6%) 39 files
*.svg718 LOC (1%) 15 files
*.txt658 LOC (1%) 13 files
*.py83 LOC (<1%) 2 files
*.ini28 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.tsx 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.scss files are analyzed with ScssAnalyzer:
    • 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
  • *.mjs 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
  • *.cjs 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
  • *.mako 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
  • *.jsonl files are analyzed with JsonAnalyzer:
    • 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


2026-06-24 10:36