apache / samza
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
scaml
xsl
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.

main77843 LOC (48%) 1,235 files
test79004 LOC (49%) 639 files
generated0 LOC (0%) 0 files
build and deployment1747 LOC (1%) 39 files
other1026 LOC (<1%) 43 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
scaml
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1235 files match defined criteria (77,843 LOC, 100.0% vs. main code):
    • 1,075 *.java files (65,923 LOC)
    • 124 *.scala files (9,996 LOC)
    • 4 *.scaml files (530 LOC)
    • 7 *.py files (498 LOC)
    • 4 *.less files (242 LOC)
    • 13 *.xml files (209 LOC)
    • 1 *.xsl files (153 LOC)
    • 2 *.avsc files (100 LOC)
    • 1 *.html files (79 LOC)
    • 1 *.js files (60 LOC)
    • 1 *.rdf files (41 LOC)
    • 2 *.css files (12 LOC)
  • " *.java" is biggest, containing 84.69% of LOC.
  • " *.css" is smallest, containing 0.02% of LOC.


*.java65923 LOC (84%) 1,075 files
*.scala9996 LOC (12%) 124 files
*.scaml530 LOC (<1%) 4 files
*.py498 LOC (<1%) 7 files
*.less242 LOC (<1%) 4 files
*.xml209 LOC (<1%) 13 files
*.xsl153 LOC (<1%) 1 file
*.avsc100 LOC (<1%) 2 files
*.html79 LOC (<1%) 1 file
*.js60 LOC (<1%) 1 file
*.rdf41 LOC (<1%) 1 file
*.css12 LOC (<1%) 2 files
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 ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
  • 639 files match defined criteria (79,004 LOC, 101.5% vs. main code):
    • 547 *.java files (68,157 LOC)
    • 68 *.scala files (9,646 LOC)
    • 10 *.avsc files (656 LOC)
    • 7 *.py files (426 LOC)
    • 6 *.xml files (113 LOC)
    • 1 *.css files (6 LOC)
  • " *.java" is biggest, containing 86.27% of LOC.
  • " *.css" is smallest, containing 0.01% of LOC.


*.java68157 LOC (86%) 547 files
*.scala9646 LOC (12%) 68 files
*.avsc656 LOC (<1%) 10 files
*.py426 LOC (<1%) 7 files
*.xml113 LOC (<1%) 6 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly/src[.]xml".
  • 39 files match defined criteria (1,747 LOC, 2.2% vs. main code):
    • 12 *.gradle files (1,159 LOC)
    • 25 *.sh files (498 LOC)
    • 1 *.bat files (61 LOC)
    • 1 *.xml files (29 LOC)
  • " *.gradle" is biggest, containing 66.34% of LOC.
  • " *.xml" is smallest, containing 1.66% of LOC.


*.gradle1159 LOC (66%) 12 files
*.sh498 LOC (28%) 25 files
*.bat61 LOC (3%) 1 file
*.xml29 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 43 files match defined criteria (1,026 LOC, 1.3% vs. main code):
    • 16 *.properties files (443 LOC)
    • 3 *.md files (254 LOC)
    • 9 *.java files (121 LOC)
    • 6 *.json files (88 LOC)
    • 2 *.xml files (82 LOC)
    • 7 *.txt files (38 LOC)
  • " *.properties" is biggest, containing 43.18% of LOC.
  • " *.txt" is smallest, containing 3.7% of LOC.


*.properties443 LOC (43%) 16 files
*.md254 LOC (24%) 3 files
*.java121 LOC (11%) 9 files
*.json88 LOC (8%) 6 files
*.xml82 LOC (7%) 2 files
*.txt38 LOC (3%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:46