anthropics / beam
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
txt
properties
proto
sass
pxd
mod
hcl
p8
cfg
ini
tpl
pb
gitattributes
prettierignore
pyi
htaccess
editorconfig
in
gitmodules
eslintignore
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.

main802493 LOC (46%) 7,200 files
test628446 LOC (36%) 3,406 files
generated11563 LOC (<1%) 27 files
build and deployment26487 LOC (1%) 553 files
other274930 LOC (15%) 2,697 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
pxd
sass
pyi
tpl
hcl
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 7200 files match defined criteria (802,493 LOC, 100.0% vs. main code):
    • 4,180 *.java files (458,477 LOC)
    • 715 *.py files (124,311 LOC)
    • 626 *.go files (108,303 LOC)
    • 131 *.ts files (27,598 LOC)
    • 646 *.yaml files (21,399 LOC)
    • 401 *.dart files (20,328 LOC)
    • 98 *.scss files (9,512 LOC)
    • 17 *.proto files (6,250 LOC)
    • 104 *.sql files (4,462 LOC)
    • 75 *.html files (4,176 LOC)
    • 23 *.groovy files (4,075 LOC)
    • 34 *.js files (2,780 LOC)
    • 13 *.kts files (2,428 LOC)
    • 16 *.tsx files (2,018 LOC)
    • 43 *.kt files (1,225 LOC)
    • 14 *.pxd files (797 LOC)
    • 1 *.ftl files (731 LOC)
    • 14 *.sass files (705 LOC)
    • 14 *.xml files (604 LOC)
    • 5 *.pyx files (548 LOC)
    • 2 *.ipynb files (423 LOC)
    • 10 *.css files (420 LOC)
    • 1 *.pyi files (376 LOC)
    • 3 *.tpl files (133 LOC)
    • 4 *.hcl files (118 LOC)
    • 1 *.toml files (89 LOC)
    • 2 *.ps1 files (53 LOC)
    • 2 *.h files (49 LOC)
    • 2 *.cfg files (46 LOC)
    • 1 *.rdf files (23 LOC)
    • 1 *.in files (22 LOC)
    • 1 *.scala files (14 LOC)
  • " *.java" is biggest, containing 57.13% of LOC.
  • " *.scala" is smallest, containing 0% of LOC.


*.java458477 LOC (57%) 4,180 files
*.py124311 LOC (15%) 715 files
*.go108303 LOC (13%) 626 files
*.ts27598 LOC (3%) 131 files
*.yaml21399 LOC (2%) 646 files
*.dart20328 LOC (2%) 401 files
*.scss9512 LOC (1%) 98 files
*.proto6250 LOC (<1%) 17 files
*.sql4462 LOC (<1%) 104 files
*.html4176 LOC (<1%) 75 files
*.groovy4075 LOC (<1%) 23 files
*.js2780 LOC (<1%) 34 files
*.kts2428 LOC (<1%) 13 files
*.tsx2018 LOC (<1%) 16 files
*.kt1225 LOC (<1%) 43 files
*.pxd797 LOC (<1%) 14 files
*.ftl731 LOC (<1%) 1 file
*.sass705 LOC (<1%) 14 files
*.xml604 LOC (<1%) 14 files
*.pyx548 LOC (<1%) 5 files
*.ipynb423 LOC (<1%) 2 files
*.css420 LOC (<1%) 10 files
*.pyi376 LOC (<1%) 1 file
*.tpl133 LOC (<1%) 3 files
*.hcl118 LOC (<1%) 4 files
*.toml89 LOC (<1%) 1 file
*.ps153 LOC (<1%) 2 files
*.h49 LOC (<1%) 2 files
*.cfg46 LOC (<1%) 2 files
*.rdf23 LOC (<1%) 1 file
*.in22 LOC (<1%) 1 file
*.scala14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
mod
p8
hcl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/tests_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 3406 files match defined criteria (628,446 LOC, 78.3% vs. main code):
    • 2,238 *.java files (433,820 LOC)
    • 488 *.py files (111,323 LOC)
    • 420 *.go files (66,151 LOC)
    • 74 *.dart files (6,488 LOC)
    • 59 *.yaml files (2,859 LOC)
    • 14 *.ts files (2,154 LOC)
    • 39 *.kt files (980 LOC)
    • 11 *.proto files (842 LOC)
    • 7 *.sh files (816 LOC)
    • 8 *.tsx files (806 LOC)
    • 13 *.gradle files (580 LOC)
    • 8 *.xml files (459 LOC)
    • 2 *.ipynb files (284 LOC)
    • 6 *.avsc files (239 LOC)
    • 6 *.tf files (200 LOC)
    • 1 *.sql files (121 LOC)
    • 1 *.mod files (54 LOC)
    • 3 *.p8 files (54 LOC)
    • 1 *.dockerfile files (52 LOC)
    • 2 *.thrift files (45 LOC)
    • 1 *.hcl files (38 LOC)
    • 1 *.toml files (34 LOC)
    • 1 *.groovy files (24 LOC)
    • 2 *.js files (23 LOC)
  • " *.java" is biggest, containing 69.03% of LOC.
  • " *.js" is smallest, containing 0% of LOC.


*.java433820 LOC (69%) 2,238 files
*.py111323 LOC (17%) 488 files
*.go66151 LOC (10%) 420 files
*.dart6488 LOC (1%) 74 files
*.yaml2859 LOC (<1%) 59 files
*.ts2154 LOC (<1%) 14 files
*.kt980 LOC (<1%) 39 files
*.proto842 LOC (<1%) 11 files
*.sh816 LOC (<1%) 7 files
*.tsx806 LOC (<1%) 8 files
*.gradle580 LOC (<1%) 13 files
*.xml459 LOC (<1%) 8 files
*.ipynb284 LOC (<1%) 2 files
*.avsc239 LOC (<1%) 6 files
*.tf200 LOC (<1%) 6 files
*.sql121 LOC (<1%) 1 file
*.mod54 LOC (<1%) 1 file
*.p854 LOC (<1%) 3 files
*.dockerfile52 LOC (<1%) 1 file
*.thrift45 LOC (<1%) 2 files
*.hcl38 LOC (<1%) 1 file
*.toml34 LOC (<1%) 1 file
*.groovy24 LOC (<1%) 1 file
*.js23 LOC (<1%) 2 files
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".
    • files with paths like ".*[.]dart" AND any line of content like ".*GENERATED CODE.*DO NOT MODIFY.*".
    • files with paths like ".*/generated/.*".
  • 27 files match defined criteria (11,563 LOC, 1.4% vs. main code):
    • 3 *.json files (10,527 LOC)
    • 22 *.dart files (991 LOC)
    • 1 *.g4 files (41 LOC)
    • 1 *.java files (4 LOC)
  • " *.json" is biggest, containing 91.04% of LOC.
  • " *.java" is smallest, containing 0.03% of LOC.


*.json10527 LOC (91%) 3 files
*.dart991 LOC (8%) 22 files
*.g441 LOC (<1%) 1 file
*.java4 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mod
gitattributes
prettierignore
cfg
editorconfig
eslintignore
gitmodules
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]tf".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/[.]github/actions/.*[.]ya?ml".
    • files with paths like ".*/action[.]ya?ml".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*[.]tfvars".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like "(.*/)?[.]eslintrc([.].*)?".
    • files with paths like "(.*/)?[.]mocharc([.].*)?".
    • files with paths like ".*/setup[.]cfg".
    • files with paths like ".*[.]dockerfile".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like "(.*/)?[.]eslintignore".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*/setup[.]py".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/Chart[.]ya?ml".
    • files with paths like ".*/[.]gitmodules".
  • 553 files match defined criteria (26,487 LOC, 3.3% vs. main code):
    • 267 *.gradle files (13,310 LOC)
    • 122 *.sh files (5,910 LOC)
    • 119 *.tf files (3,676 LOC)
    • 7 *.xml files (1,009 LOC)
    • 7 *.tfvars files (750 LOC)
    • 2 *.py files (480 LOC)
    • 6 *.mod files (373 LOC)
    • 4 *.bat files (295 LOC)
    • 4 *.gitignore files (198 LOC)
    • 3 *.yaml files (110 LOC)
    • 2 *.toml files (99 LOC)
    • 1 *.js files (66 LOC)
    • 2 *.gitattributes files (53 LOC)
    • 2 *.prettierignore files (39 LOC)
    • 1 *.cfg files (36 LOC)
    • 1 *.dockerfile files (28 LOC)
    • 1 *.editorconfig files (26 LOC)
    • 1 *.eslintignore files (20 LOC)
    • 1 *.gitmodules files (9 LOC)
  • " *.gradle" is biggest, containing 50.25% of LOC.
  • " *.gitmodules" is smallest, containing 0.03% of LOC.


*.gradle13310 LOC (50%) 267 files
*.sh5910 LOC (22%) 122 files
*.tf3676 LOC (13%) 119 files
*.xml1009 LOC (3%) 7 files
*.tfvars750 LOC (2%) 7 files
*.py480 LOC (1%) 2 files
*.mod373 LOC (1%) 6 files
*.bat295 LOC (1%) 4 files
*.gitignore198 LOC (<1%) 4 files
*.yaml110 LOC (<1%) 3 files
*.toml99 LOC (<1%) 2 files
*.js66 LOC (<1%) 1 file
*.gitattributes53 LOC (<1%) 2 files
*.prettierignore39 LOC (<1%) 2 files
*.cfg36 LOC (<1%) 1 file
*.dockerfile28 LOC (<1%) 1 file
*.editorconfig26 LOC (<1%) 1 file
*.eslintignore20 LOC (<1%) 1 file
*.gitmodules9 LOC (<1%) 1 file
Other Code
txt
properties
ini
pb
htaccess
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 ".*[.]svg".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/vendor/.*".
  • 2697 files match defined criteria (274,930 LOC, 34.3% vs. main code):
    • 1,055 *.md files (91,857 LOC)
    • 217 *.json files (51,921 LOC)
    • 50 *.ipynb files (37,822 LOC)
    • 340 *.txt files (26,715 LOC)
    • 380 *.py files (22,013 LOC)
    • 268 *.java files (18,022 LOC)
    • 116 *.svg files (12,383 LOC)
    • 53 *.go files (4,354 LOC)
    • 86 *.yaml files (2,145 LOC)
    • 24 *.kt files (1,914 LOC)
    • 32 *.dart files (1,325 LOC)
    • 31 *.properties files (1,078 LOC)
    • 16 *.gradle files (1,014 LOC)
    • 3 *.ini files (698 LOC)
    • 3 *.xml files (540 LOC)
    • 3 *.pb files (384 LOC)
    • 7 *.html files (340 LOC)
    • 2 *.sh files (101 LOC)
    • 3 *.toml files (91 LOC)
    • 2 *.rs files (79 LOC)
    • 3 *.ts files (77 LOC)
    • 2 *.cc files (32 LOC)
    • 1 *.htaccess files (25 LOC)
  • " *.md" is biggest, containing 33.41% of LOC.
  • " *.htaccess" is smallest, containing 0.01% of LOC.


*.md91857 LOC (33%) 1,055 files
*.json51921 LOC (18%) 217 files
*.ipynb37822 LOC (13%) 50 files
*.txt26715 LOC (9%) 340 files
*.py22013 LOC (8%) 380 files
*.java18022 LOC (6%) 268 files
*.svg12383 LOC (4%) 116 files
*.go4354 LOC (1%) 53 files
*.yaml2145 LOC (<1%) 86 files
*.kt1914 LOC (<1%) 24 files
*.dart1325 LOC (<1%) 32 files
*.properties1078 LOC (<1%) 31 files
*.gradle1014 LOC (<1%) 16 files
*.ini698 LOC (<1%) 3 files
*.xml540 LOC (<1%) 3 files
*.pb384 LOC (<1%) 3 files
*.html340 LOC (<1%) 7 files
*.sh101 LOC (<1%) 2 files
*.toml91 LOC (<1%) 3 files
*.rs79 LOC (<1%) 2 files
*.ts77 LOC (<1%) 3 files
*.cc32 LOC (<1%) 2 files
*.htaccess25 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-06-05 13:00