apache / asterixdb
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
http
txt
cmd
regex
properties
scm
jsonl
ddl
xsd
gitattributes
tpl
editorconfig
tex
ebnf
cr
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.

main442966 LOC (73%) 5,631 files
test96714 LOC (16%) 1,324 files
generated0 LOC (0%) 0 files
build and deployment14394 LOC (2%) 101 files
other50260 LOC (8%) 579 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
ebnf
ddl
cmd
tex
cr
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 5631 files match defined criteria (442,966 LOC, 100.0% vs. main code):
    • 5,461 *.java files (419,847 LOC)
    • 8 *.py files (5,332 LOC)
    • 10 *.js files (4,044 LOC)
    • 44 *.ts files (3,774 LOC)
    • 26 *.xml files (3,764 LOC)
    • 25 *.html files (2,203 LOC)
    • 10 *.ftl files (1,105 LOC)
    • 14 *.scss files (896 LOC)
    • 2 *.tpl files (729 LOC)
    • 23 *.sql files (661 LOC)
    • 3 *.css files (270 LOC)
    • 1 *.ebnf files (167 LOC)
    • 1 *.ddl files (61 LOC)
    • 1 *.cmd files (56 LOC)
    • 1 *.tex files (48 LOC)
    • 1 *.cr files (9 LOC)
  • " *.java" is biggest, containing 94.78% of LOC.
  • " *.cr" is smallest, containing 0% of LOC.


*.java419847 LOC (94%) 5,461 files
*.py5332 LOC (1%) 8 files
*.js4044 LOC (<1%) 10 files
*.ts3774 LOC (<1%) 44 files
*.xml3764 LOC (<1%) 26 files
*.html2203 LOC (<1%) 25 files
*.ftl1105 LOC (<1%) 10 files
*.scss896 LOC (<1%) 14 files
*.tpl729 LOC (<1%) 2 files
*.sql661 LOC (<1%) 23 files
*.css270 LOC (<1%) 3 files
*.ebnf167 LOC (<1%) 1 file
*.ddl61 LOC (<1%) 1 file
*.cmd56 LOC (<1%) 1 file
*.tex48 LOC (<1%) 1 file
*.cr9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
http
cmd
ddl
regex
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/protractor[.]conf[.]js".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/e2e/.*".
  • 1324 files match defined criteria (96,714 LOC, 21.8% vs. main code):
    • 732 *.java files (77,608 LOC)
    • 72 *.xml files (12,070 LOC)
    • 252 *.http files (5,205 LOC)
    • 42 *.cmd files (836 LOC)
    • 185 *.sh files (400 LOC)
    • 5 *.ts files (247 LOC)
    • 4 *.ddl files (193 LOC)
    • 2 *.js files (51 LOC)
    • 3 *.py files (44 LOC)
    • 21 *.regex files (38 LOC)
    • 5 *.jsonl files (16 LOC)
    • 1 *.css files (6 LOC)
  • " *.java" is biggest, containing 80.24% of LOC.
  • " *.css" is smallest, containing 0.01% of LOC.


*.java77608 LOC (80%) 732 files
*.xml12070 LOC (12%) 72 files
*.http5205 LOC (5%) 252 files
*.cmd836 LOC (<1%) 42 files
*.sh400 LOC (<1%) 185 files
*.ts247 LOC (<1%) 5 files
*.ddl193 LOC (<1%) 4 files
*.js51 LOC (<1%) 2 files
*.py44 LOC (<1%) 3 files
*.regex38 LOC (<1%) 21 files
*.jsonl16 LOC (<1%) 5 files
*.css6 LOC (<1%) 1 file
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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/package[.]json".
  • 101 files match defined criteria (14,394 LOC, 3.2% vs. main code):
    • 92 *.xml files (14,231 LOC)
    • 9 *.sh files (163 LOC)
  • " *.xml" is biggest, containing 98.87% of LOC.
  • " *.sh" is smallest, containing 1.13% of LOC.


*.xml14231 LOC (98%) 92 files
*.sh163 LOC (1%) 9 files
Other Code
txt
properties
xsd
scm
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]scm".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
  • 579 files match defined criteria (50,260 LOC, 11.3% vs. main code):
    • 150 *.txt files (16,939 LOC)
    • 89 *.md files (15,440 LOC)
    • 293 *.json files (11,748 LOC)
    • 3 *.svg files (2,641 LOC)
    • 18 *.java files (1,833 LOC)
    • 16 *.properties files (1,372 LOC)
    • 2 *.xsd files (279 LOC)
    • 8 *.scm files (8 LOC)
  • " *.txt" is biggest, containing 33.7% of LOC.
  • " *.scm" is smallest, containing 0.02% of LOC.


*.txt16939 LOC (33%) 150 files
*.md15440 LOC (30%) 89 files
*.json11748 LOC (23%) 293 files
*.svg2641 LOC (5%) 3 files
*.java1833 LOC (3%) 18 files
*.properties1372 LOC (2%) 16 files
*.xsd279 LOC (<1%) 2 files
*.scm8 LOC (<1%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:48