apache / thrift
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
hx
hxml
txt
m4
csproj
lua
ml
dpr
lisp
properties
in
cfg
mjs
vcxproj
filters
mod
cmd
tcc
t
editorconfig
props
mk
ini
vim
yy
tex
nuspec
podspec
st
asd
ll
spec
tac
el
clang-format
xsd
gitattributes
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.

main215979 LOC (60%) 1,374 files
test94172 LOC (26%) 817 files
generated12960 LOC (3%) 4 files
build and deployment2661 LOC (<1%) 66 files
other28339 LOC (8%) 171 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hx
lua
tcc
yy
vcxproj
ml
filters
st
in
ll
hxml
xsd
lisp
t
spec
dpr
el
cmd
mjs
props
tac
asd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1374 files match defined criteria (215,979 LOC, 100.0% vs. main code):
    • 37 *.cc files (54,892 LOC)
    • 195 *.java files (16,328 LOC)
    • 82 *.cpp files (14,679 LOC)
    • 191 *.h files (13,777 LOC)
    • 48 *.c files (11,584 LOC)
    • 54 *.d files (11,452 LOC)
    • 21 *.pas files (10,293 LOC)
    • 80 *.swift files (8,242 LOC)
    • 58 *.go files (8,164 LOC)
    • 81 *.rb files (7,491 LOC)
    • 75 *.cs files (7,087 LOC)
    • 62 *.hx files (6,464 LOC)
    • 35 *.js files (6,067 LOC)
    • 65 *.php files (5,665 LOC)
    • 17 *.rs files (5,574 LOC)
    • 48 *.py files (5,005 LOC)
    • 28 *.erl files (4,870 LOC)
    • 38 *.dart files (2,647 LOC)
    • 21 *.pm files (2,398 LOC)
    • 12 *.lua files (2,250 LOC)
    • 3 *.tcc files (1,735 LOC)
    • 1 *.yy files (1,253 LOC)
    • 5 *.vcxproj files (1,149 LOC)
    • 21 *.cmake files (1,107 LOC)
    • 11 *.ml files (958 LOC)
    • 5 *.filters files (644 LOC)
    • 1 *.st files (638 LOC)
    • 13 *.thrift files (383 LOC)
    • 8 *.in files (320 LOC)
    • 1 *.ll files (307 LOC)
    • 9 *.hxml files (301 LOC)
    • 1 *.xsd files (242 LOC)
    • 7 *.lisp files (219 LOC)
    • 3 *.t files (211 LOC)
    • 1 *.spec files (200 LOC)
    • 1 *.rdf files (191 LOC)
    • 2 *.dpr files (190 LOC)
    • 3 *.pl files (141 LOC)
    • 1 *.el files (126 LOC)
    • 2 *.hrl files (125 LOC)
    • 2 *.html files (94 LOC)
    • 2 *.kts files (76 LOC)
    • 3 *.cmd files (72 LOC)
    • 5 *.yaml files (70 LOC)
    • 3 *.xml files (66 LOC)
    • 1 *.mjs files (44 LOC)
    • 2 *.toml files (38 LOC)
    • 2 *.props files (30 LOC)
    • 1 *.gemspec files (30 LOC)
    • 1 *.inc files (30 LOC)
    • 1 *.tac files (23 LOC)
    • 1 *.asd files (16 LOC)
    • 1 *.css files (13 LOC)
    • 2 *.cfg files (8 LOC)
  • " *.cc" is biggest, containing 25.42% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.cc54892 LOC (25%) 37 files
*.java16328 LOC (7%) 195 files
*.cpp14679 LOC (6%) 82 files
*.h13777 LOC (6%) 191 files
*.c11584 LOC (5%) 48 files
*.d11452 LOC (5%) 54 files
*.pas10293 LOC (4%) 21 files
*.swift8242 LOC (3%) 80 files
*.go8164 LOC (3%) 58 files
*.rb7491 LOC (3%) 81 files
*.cs7087 LOC (3%) 75 files
*.hx6464 LOC (2%) 62 files
*.js6067 LOC (2%) 35 files
*.php5665 LOC (2%) 65 files
*.rs5574 LOC (2%) 17 files
*.py5005 LOC (2%) 48 files
*.erl4870 LOC (2%) 28 files
*.dart2647 LOC (1%) 38 files
*.pm2398 LOC (1%) 21 files
*.lua2250 LOC (1%) 12 files
*.tcc1735 LOC (<1%) 3 files
*.yy1253 LOC (<1%) 1 file
*.vcxproj1149 LOC (<1%) 5 files
*.cmake1107 LOC (<1%) 21 files
*.ml958 LOC (<1%) 11 files
*.filters644 LOC (<1%) 5 files
*.st638 LOC (<1%) 1 file
*.thrift383 LOC (<1%) 13 files
*.in320 LOC (<1%) 8 files
*.ll307 LOC (<1%) 1 file
*.hxml301 LOC (<1%) 9 files
*.xsd242 LOC (<1%) 1 file
*.lisp219 LOC (<1%) 7 files
*.t211 LOC (<1%) 3 files
*.spec200 LOC (<1%) 1 file
*.rdf191 LOC (<1%) 1 file
*.dpr190 LOC (<1%) 2 files
*.pl141 LOC (<1%) 3 files
*.el126 LOC (<1%) 1 file
*.hrl125 LOC (<1%) 2 files
*.html94 LOC (<1%) 2 files
*.kts76 LOC (<1%) 2 files
*.cmd72 LOC (<1%) 3 files
*.yaml70 LOC (<1%) 5 files
*.xml66 LOC (<1%) 3 files
*.mjs44 LOC (<1%) 1 file
*.toml38 LOC (<1%) 2 files
*.props30 LOC (<1%) 2 files
*.gemspec30 LOC (<1%) 1 file
*.inc30 LOC (<1%) 1 file
*.tac23 LOC (<1%) 1 file
*.asd16 LOC (<1%) 1 file
*.css13 LOC (<1%) 1 file
*.cfg8 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
hx
mjs
tex
dpr
hxml
lua
lisp
csproj
ml
tcc
cmd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]test[.].*".
    • 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 ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/tests_.*".
  • 817 files match defined criteria (94,172 LOC, 43.6% vs. main code):
    • 81 *.go files (11,051 LOC)
    • 58 *.cpp files (10,786 LOC)
    • 89 *.java files (10,580 LOC)
    • 186 *.thrift files (9,637 LOC)
    • 27 *.c files (8,051 LOC)
    • 51 *.php files (6,409 LOC)
    • 39 *.py files (4,671 LOC)
    • 21 *.erl files (3,739 LOC)
    • 16 *.pas files (3,476 LOC)
    • 24 *.cs files (3,475 LOC)
    • 12 *.hx files (2,310 LOC)
    • 21 *.swift files (2,210 LOC)
    • 11 *.d files (2,179 LOC)
    • 20 *.js files (1,795 LOC)
    • 11 *.h files (1,507 LOC)
    • 4 *.kt files (1,159 LOC)
    • 8 *.dart files (1,096 LOC)
    • 6 *.mjs files (975 LOC)
    • 12 *.rb files (894 LOC)
    • 1 *.tex files (885 LOC)
    • 7 *.ts files (868 LOC)
    • 9 *.cc files (859 LOC)
    • 4 *.pl files (812 LOC)
    • 10 *.dpr files (663 LOC)
    • 17 *.hxml files (597 LOC)
    • 6 *.xml files (574 LOC)
    • 16 *.sh files (484 LOC)
    • 2 *.lua files (319 LOC)
    • 4 *.lisp files (300 LOC)
    • 7 *.csproj files (299 LOC)
    • 11 *.html files (284 LOC)
    • 7 *.rs files (268 LOC)
    • 1 *.ps1 files (211 LOC)
    • 2 *.ml files (201 LOC)
    • 1 *.tcc files (170 LOC)
    • 2 *.kts files (128 LOC)
    • 2 *.bat files (122 LOC)
    • 1 *.cmake files (40 LOC)
    • 3 *.toml files (37 LOC)
    • 1 *.cmd files (23 LOC)
    • 1 *.yaml files (16 LOC)
    • 5 *.cfg files (12 LOC)
  • " *.go" is biggest, containing 11.73% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.go11051 LOC (11%) 81 files
*.cpp10786 LOC (11%) 58 files
*.java10580 LOC (11%) 89 files
*.thrift9637 LOC (10%) 186 files
*.c8051 LOC (8%) 27 files
*.php6409 LOC (6%) 51 files
*.py4671 LOC (4%) 39 files
*.erl3739 LOC (3%) 21 files
*.pas3476 LOC (3%) 16 files
*.cs3475 LOC (3%) 24 files
*.hx2310 LOC (2%) 12 files
*.swift2210 LOC (2%) 21 files
*.d2179 LOC (2%) 11 files
*.js1795 LOC (1%) 20 files
*.h1507 LOC (1%) 11 files
*.kt1159 LOC (1%) 4 files
*.dart1096 LOC (1%) 8 files
*.mjs975 LOC (1%) 6 files
*.rb894 LOC (<1%) 12 files
*.tex885 LOC (<1%) 1 file
*.ts868 LOC (<1%) 7 files
*.cc859 LOC (<1%) 9 files
*.pl812 LOC (<1%) 4 files
*.dpr663 LOC (<1%) 10 files
*.hxml597 LOC (<1%) 17 files
*.xml574 LOC (<1%) 6 files
*.sh484 LOC (<1%) 16 files
*.lua319 LOC (<1%) 2 files
*.lisp300 LOC (<1%) 4 files
*.csproj299 LOC (<1%) 7 files
*.html284 LOC (<1%) 11 files
*.rs268 LOC (<1%) 7 files
*.ps1211 LOC (<1%) 1 file
*.ml201 LOC (<1%) 2 files
*.tcc170 LOC (<1%) 1 file
*.kts128 LOC (<1%) 2 files
*.bat122 LOC (<1%) 2 files
*.cmake40 LOC (<1%) 1 file
*.toml37 LOC (<1%) 3 files
*.cmd23 LOC (<1%) 1 file
*.yaml16 LOC (<1%) 1 file
*.cfg12 LOC (<1%) 5 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".
  • 4 files match defined criteria (12,960 LOC, 6.0% vs. main code). All matches are in *.json files.


*.json12960 LOC (100%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
mk
nuspec
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
  • 66 files match defined criteria (2,661 LOC, 1.2% vs. main code):
    • 12 *.bat files (714 LOC)
    • 27 *.sh files (597 LOC)
    • 11 *.gradle files (487 LOC)
    • 5 *.xml files (440 LOC)
    • 7 *.csproj files (333 LOC)
    • 2 *.mk files (53 LOC)
    • 1 *.nuspec files (22 LOC)
    • 1 *.podspec files (15 LOC)
  • " *.bat" is biggest, containing 26.83% of LOC.
  • " *.podspec" is smallest, containing 0.56% of LOC.


*.bat714 LOC (26%) 12 files
*.sh597 LOC (22%) 27 files
*.gradle487 LOC (18%) 11 files
*.xml440 LOC (16%) 5 files
*.csproj333 LOC (12%) 7 files
*.mk53 LOC (1%) 2 files
*.nuspec22 LOC (<1%) 1 file
*.podspec15 LOC (<1%) 1 file
Other Code
txt
properties
vim
mod
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]vim".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]dockerignore".
  • 171 files match defined criteria (28,339 LOC, 13.1% vs. main code):
    • 20 *.json files (15,838 LOC)
    • 99 *.md files (9,898 LOC)
    • 23 *.txt files (1,960 LOC)
    • 9 *.js files (247 LOC)
    • 9 *.properties files (198 LOC)
    • 1 *.vim files (79 LOC)
    • 1 *.html files (43 LOC)
    • 2 *.thrift files (31 LOC)
    • 4 *.mod files (26 LOC)
    • 1 *.py files (15 LOC)
    • 2 *.ini files (4 LOC)
  • " *.json" is biggest, containing 55.89% of LOC.
  • " *.ini" is smallest, containing 0.01% of LOC.


*.json15838 LOC (55%) 20 files
*.md9898 LOC (34%) 99 files
*.txt1960 LOC (6%) 23 files
*.js247 LOC (<1%) 9 files
*.properties198 LOC (<1%) 9 files
*.vim79 LOC (<1%) 1 file
*.html43 LOC (<1%) 1 file
*.thrift31 LOC (<1%) 2 files
*.mod26 LOC (<1%) 4 files
*.py15 LOC (<1%) 1 file
*.ini4 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:22