apache / systemds
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
cmd
editorconfig
in
proto
gitmodules
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.

main305748 LOC (61%) 1,948 files
test177177 LOC (35%) 1,538 files
generated2301 LOC (<1%) 1 file
build and deployment4934 LOC (<1%) 101 files
other3925 LOC (<1%) 119 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1948 files match defined criteria (305,748 LOC, 100.0% vs. main code):
    • 1,496 *.java files (285,326 LOC)
    • 316 *.py files (10,175 LOC)
    • 4 *.cu files (2,398 LOC)
    • 15 *.cuh files (2,194 LOC)
    • 38 *.ts files (1,468 LOC)
    • 7 *.cpp files (1,183 LOC)
    • 13 *.h files (761 LOC)
    • 11 *.xml files (621 LOC)
    • 15 *.html files (424 LOC)
    • 15 *.scss files (388 LOC)
    • 11 *.jinja files (283 LOC)
    • 1 *.g4 files (208 LOC)
    • 3 *.cmake files (205 LOC)
    • 1 *.proto files (45 LOC)
    • 1 *.rdf files (39 LOC)
    • 1 *.in files (30 LOC)
  • " *.java" is biggest, containing 93.32% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.java285326 LOC (93%) 1,496 files
*.py10175 LOC (3%) 316 files
*.cu2398 LOC (<1%) 4 files
*.cuh2194 LOC (<1%) 15 files
*.ts1468 LOC (<1%) 38 files
*.cpp1183 LOC (<1%) 7 files
*.h761 LOC (<1%) 13 files
*.xml621 LOC (<1%) 11 files
*.html424 LOC (<1%) 15 files
*.scss388 LOC (<1%) 15 files
*.jinja283 LOC (<1%) 11 files
*.g4208 LOC (<1%) 1 file
*.cmake205 LOC (<1%) 3 files
*.proto45 LOC (<1%) 1 file
*.rdf39 LOC (<1%) 1 file
*.in30 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 ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 1538 files match defined criteria (177,177 LOC, 57.9% vs. main code):
    • 1,336 *.java files (169,268 LOC)
    • 120 *.py files (6,225 LOC)
    • 15 *.ts files (556 LOC)
    • 13 *.sh files (554 LOC)
    • 52 *.xml files (303 LOC)
    • 1 *.bat files (233 LOC)
    • 1 *.js files (38 LOC)
  • " *.java" is biggest, containing 95.54% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.java169268 LOC (95%) 1,336 files
*.py6225 LOC (3%) 120 files
*.ts556 LOC (<1%) 15 files
*.sh554 LOC (<1%) 13 files
*.xml303 LOC (<1%) 52 files
*.bat233 LOC (<1%) 1 file
*.js38 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 any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (2,301 LOC, 0.8% vs. main code). All matches are in *.java files.


*.java2301 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 101 files match defined criteria (4,934 LOC, 1.6% vs. main code):
    • 99 *.sh files (3,470 LOC)
    • 1 *.xml files (1,427 LOC)
    • 1 *.bat files (37 LOC)
  • " *.sh" is biggest, containing 70.33% of LOC.
  • " *.bat" is smallest, containing 0.75% of LOC.


*.sh3470 LOC (70%) 99 files
*.xml1427 LOC (28%) 1 file
*.bat37 LOC (<1%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
  • 119 files match defined criteria (3,925 LOC, 1.3% vs. main code):
    • 23 *.md files (1,743 LOC)
    • 65 *.json files (744 LOC)
    • 9 *.py files (431 LOC)
    • 10 *.properties files (353 LOC)
    • 5 *.rst files (344 LOC)
    • 6 *.txt files (305 LOC)
    • 1 *.sh files (5 LOC)
  • " *.md" is biggest, containing 44.41% of LOC.
  • " *.sh" is smallest, containing 0.13% of LOC.


*.md1743 LOC (44%) 23 files
*.json744 LOC (18%) 65 files
*.py431 LOC (10%) 9 files
*.properties353 LOC (8%) 10 files
*.rst344 LOC (8%) 5 files
*.txt305 LOC (7%) 6 files
*.sh5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:57