openai / openai-agents-python
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
  • 14 extensions are included in analyses: py, md, yaml, txt, json, sh, js, svg, toml, css, gitignore, ps1, html, ipynb
  • 1 criterion is used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (390 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.

main72096 LOC (33%) 298 files
test115097 LOC (53%) 281 files
generated0 LOC (0%) 0 files
build and deployment968 LOC (<1%) 8 files
other28432 LOC (13%) 342 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 ".*".
  • 298 files match defined criteria (72,096 LOC, 100.0% vs. main code):
    • 286 *.py files (71,879 LOC)
    • 1 *.ps1 files (172 LOC)
    • 10 *.yaml files (42 LOC)
    • 1 *.toml files (3 LOC)
  • " *.py" is biggest, containing 99.7% of LOC.
  • " *.toml" is smallest, containing 0% of LOC.


*.py71879 LOC (99%) 286 files
*.ps1172 LOC (<1%) 1 file
*.yaml42 LOC (<1%) 10 files
*.toml3 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_.*".
  • 281 files match defined criteria (115,097 LOC, 159.6% vs. main code). All matches are in *.py files.


*.py115097 LOC (100%) 281 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 ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/setup[.]py".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 8 files match defined criteria (968 LOC, 1.3% vs. main code):
    • 5 *.sh files (605 LOC)
    • 1 *.toml files (191 LOC)
    • 1 *.gitignore files (128 LOC)
    • 1 *.py files (44 LOC)
  • " *.sh" is biggest, containing 62.5% of LOC.
  • " *.py" is smallest, containing 4.55% of LOC.


*.sh605 LOC (62%) 5 files
*.toml191 LOC (19%) 1 file
*.gitignore128 LOC (13%) 1 file
*.py44 LOC (4%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 342 files match defined criteria (28,432 LOC, 39.4% vs. main code):
    • 211 *.py files (20,950 LOC)
    • 102 *.md files (5,667 LOC)
    • 3 *.js files (738 LOC)
    • 13 *.json files (428 LOC)
    • 11 *.txt files (350 LOC)
    • 1 *.html files (254 LOC)
    • 1 *.ipynb files (45 LOC)
  • " *.py" is biggest, containing 73.68% of LOC.
  • " *.ipynb" is smallest, containing 0.16% of LOC.


*.py20950 LOC (73%) 211 files
*.md5667 LOC (19%) 102 files
*.js738 LOC (2%) 3 files
*.json428 LOC (1%) 13 files
*.txt350 LOC (1%) 11 files
*.html254 LOC (<1%) 1 file
*.ipynb45 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
  • *.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
  • *.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
  • *.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