openai / frontier-evals
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
patch
diff
gitattributes
ini
gitmodules
  • 21 extensions are included in analyses: md, txt, py, json, patch, yaml, sh, rs, diff, toml, gitignore, js, ts, gitattributes, html, dockerignore, css, tsx, ini, dockerfile, gitmodules
  • 2 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (23 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (2 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.

main28351 LOC (14%) 294 files
test27439 LOC (13%) 240 files
generated0 LOC (0%) 0 files
build and deployment12875 LOC (6%) 117 files
other133166 LOC (65%) 1,593 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 294 files match defined criteria (28,351 LOC, 100.0% vs. main code):
    • 173 *.py files (22,742 LOC)
    • 39 *.rs files (3,533 LOC)
    • 73 *.yaml files (1,247 LOC)
    • 3 *.js files (514 LOC)
    • 1 *.css files (100 LOC)
    • 3 *.html files (86 LOC)
    • 1 *.tsx files (84 LOC)
    • 1 *.toml files (45 LOC)
  • " *.py" is biggest, containing 80.22% of LOC.
  • " *.toml" is smallest, containing 0.16% of LOC.


*.py22742 LOC (80%) 173 files
*.rs3533 LOC (12%) 39 files
*.yaml1247 LOC (4%) 73 files
*.js514 LOC (1%) 3 files
*.css100 LOC (<1%) 1 file
*.html86 LOC (<1%) 3 files
*.tsx84 LOC (<1%) 1 file
*.toml45 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 240 files match defined criteria (27,439 LOC, 96.8% vs. main code):
    • 227 *.py files (26,730 LOC)
    • 6 *.js files (486 LOC)
    • 4 *.ts files (200 LOC)
    • 2 *.sh files (22 LOC)
    • 1 *.gitignore files (1 LOC)
  • " *.py" is biggest, containing 97.42% of LOC.
  • " *.gitignore" is smallest, containing 0% of LOC.


*.py26730 LOC (97%) 227 files
*.js486 LOC (1%) 6 files
*.ts200 LOC (<1%) 4 files
*.sh22 LOC (<1%) 2 files
*.gitignore1 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
gitattributes
gitmodules
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like "(.*/)?[.]dockerignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/setup[.]py".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/[.]gitmodules".
  • 117 files match defined criteria (12,875 LOC, 45.4% vs. main code):
    • 74 *.sh files (10,520 LOC)
    • 20 *.toml files (1,075 LOC)
    • 12 *.gitignore files (922 LOC)
    • 4 *.yaml files (264 LOC)
    • 1 *.py files (44 LOC)
    • 3 *.gitattributes files (24 LOC)
    • 2 *.dockerignore files (20 LOC)
    • 1 *.gitmodules files (6 LOC)
  • " *.sh" is biggest, containing 81.71% of LOC.
  • " *.gitmodules" is smallest, containing 0.05% of LOC.


*.sh10520 LOC (81%) 74 files
*.toml1075 LOC (8%) 20 files
*.gitignore922 LOC (7%) 12 files
*.yaml264 LOC (2%) 4 files
*.py44 LOC (<1%) 1 file
*.gitattributes24 LOC (<1%) 3 files
*.dockerignore20 LOC (<1%) 2 files
*.gitmodules6 LOC (<1%) 1 file
Other Code
patch
diff
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 ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]diff".
  • 1593 files match defined criteria (133,166 LOC, 469.7% vs. main code):
    • 40 *.json files (77,408 LOC)
    • 632 *.md files (37,912 LOC)
    • 198 *.patch files (13,777 LOC)
    • 14 *.rs files (1,480 LOC)
    • 41 *.diff files (1,194 LOC)
    • 644 *.txt files (935 LOC)
    • 10 *.py files (180 LOC)
    • 6 *.toml files (124 LOC)
    • 5 *.sh files (119 LOC)
    • 2 *.gitignore files (30 LOC)
    • 1 *.ini files (7 LOC)
  • " *.json" is biggest, containing 58.13% of LOC.
  • " *.ini" is smallest, containing 0.01% of LOC.


*.json77408 LOC (58%) 40 files
*.md37912 LOC (28%) 632 files
*.patch13777 LOC (10%) 198 files
*.rs1480 LOC (1%) 14 files
*.diff1194 LOC (<1%) 41 files
*.txt935 LOC (<1%) 644 files
*.py180 LOC (<1%) 10 files
*.toml124 LOC (<1%) 6 files
*.sh119 LOC (<1%) 5 files
*.gitignore30 LOC (<1%) 2 files
*.ini7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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


2026-06-24 10:38