apache / airavata
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
properties
txt
ini
proto
mod
tcc
cfg
geojson
htaccess
in
xslt
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.

main464981 LOC (90%) 2,264 files
test10468 LOC (2%) 119 files
generated7863 LOC (1%) 1 file
build and deployment7509 LOC (1%) 103 files
other23362 LOC (4%) 106 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tcc
proto
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2264 files match defined criteria (464,981 LOC, 100.0% vs. main code):
    • 1,023 *.java files (211,432 LOC)
    • 423 *.php files (109,412 LOC)
    • 167 *.cpp files (52,987 LOC)
    • 214 *.py files (30,938 LOC)
    • 185 *.h files (23,916 LOC)
    • 26 *.js files (6,862 LOC)
    • 30 *.jsx files (5,573 LOC)
    • 11 *.go files (5,085 LOC)
    • 59 *.sql files (4,091 LOC)
    • 56 *.thrift files (4,090 LOC)
    • 6 *.ipynb files (3,941 LOC)
    • 35 *.xml files (2,733 LOC)
    • 5 *.html files (1,242 LOC)
    • 2 *.tcc files (915 LOC)
    • 6 *.proto files (805 LOC)
    • 9 *.css files (770 LOC)
    • 3 *.yaml files (117 LOC)
    • 2 *.toml files (61 LOC)
    • 1 *.in files (9 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.java" is biggest, containing 45.47% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.java211432 LOC (45%) 1,023 files
*.php109412 LOC (23%) 423 files
*.cpp52987 LOC (11%) 167 files
*.py30938 LOC (6%) 214 files
*.h23916 LOC (5%) 185 files
*.js6862 LOC (1%) 26 files
*.jsx5573 LOC (1%) 30 files
*.go5085 LOC (1%) 11 files
*.sql4091 LOC (<1%) 59 files
*.thrift4090 LOC (<1%) 56 files
*.ipynb3941 LOC (<1%) 6 files
*.xml2733 LOC (<1%) 35 files
*.html1242 LOC (<1%) 5 files
*.tcc915 LOC (<1%) 2 files
*.proto805 LOC (<1%) 6 files
*.css770 LOC (<1%) 9 files
*.yaml117 LOC (<1%) 3 files
*.toml61 LOC (<1%) 2 files
*.in9 LOC (<1%) 1 file
*.cfg2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xslt
cfg
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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 119 files match defined criteria (10,468 LOC, 2.3% vs. main code):
    • 104 *.java files (10,020 LOC)
    • 9 *.xml files (352 LOC)
    • 1 *.xslt files (68 LOC)
    • 3 *.php files (18 LOC)
    • 1 *.cfg files (5 LOC)
    • 1 *.py files (5 LOC)
  • " *.java" is biggest, containing 95.72% of LOC.
  • " *.py" is smallest, containing 0.05% of LOC.


*.java10020 LOC (95%) 104 files
*.xml352 LOC (3%) 9 files
*.xslt68 LOC (<1%) 1 file
*.php18 LOC (<1%) 3 files
*.cfg5 LOC (<1%) 1 file
*.py5 LOC (<1%) 1 file
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".
  • 1 file matches defined criteria (7,863 LOC, 1.7% vs. main code). All matches are in *.json files.


*.json7863 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 103 files match defined criteria (7,509 LOC, 1.6% vs. main code):
    • 82 *.xml files (5,764 LOC)
    • 20 *.sh files (1,722 LOC)
    • 1 *.yaml files (23 LOC)
  • " *.xml" is biggest, containing 76.76% of LOC.
  • " *.yaml" is smallest, containing 0.31% of LOC.


*.xml5764 LOC (76%) 82 files
*.sh1722 LOC (22%) 20 files
*.yaml23 LOC (<1%) 1 file
Other Code
properties
txt
ini
mod
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 ".*[.]txt".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ss]amples/.*".
  • 106 files match defined criteria (23,362 LOC, 5.0% vs. main code):
    • 12 *.json files (16,938 LOC)
    • 9 *.java files (2,231 LOC)
    • 29 *.properties files (1,630 LOC)
    • 25 *.md files (1,025 LOC)
    • 8 *.txt files (788 LOC)
    • 12 *.py files (523 LOC)
    • 7 *.ini files (171 LOC)
    • 4 *.mod files (56 LOC)
  • " *.json" is biggest, containing 72.5% of LOC.
  • " *.mod" is smallest, containing 0.24% of LOC.


*.json16938 LOC (72%) 12 files
*.java2231 LOC (9%) 9 files
*.properties1630 LOC (6%) 29 files
*.md1025 LOC (4%) 25 files
*.txt788 LOC (3%) 8 files
*.py523 LOC (2%) 12 files
*.ini171 LOC (<1%) 7 files
*.mod56 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:39