apache / streams
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
xsd
pig
ttl
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.

main51347 LOC (48%) 437 files
test14090 LOC (13%) 215 files
generated0 LOC (0%) 0 files
build and deployment13141 LOC (12%) 78 files
other27778 LOC (26%) 763 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
ttl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 437 files match defined criteria (51,347 LOC, 100.0% vs. main code):
    • 369 *.java files (30,191 LOC)
    • 26 *.html files (11,349 LOC)
    • 27 *.xml files (7,537 LOC)
    • 6 *.ftl files (1,038 LOC)
    • 4 *.scala files (624 LOC)
    • 3 *.xsd files (484 LOC)
    • 1 *.ttl files (91 LOC)
    • 1 *.rdf files (33 LOC)
  • " *.java" is biggest, containing 58.8% of LOC.
  • " *.rdf" is smallest, containing 0.06% of LOC.


*.java30191 LOC (58%) 369 files
*.html11349 LOC (22%) 26 files
*.xml7537 LOC (14%) 27 files
*.ftl1038 LOC (2%) 6 files
*.scala624 LOC (1%) 4 files
*.xsd484 LOC (<1%) 3 files
*.ttl91 LOC (<1%) 1 file
*.rdf33 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pig
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 215 files match defined criteria (14,090 LOC, 27.4% vs. main code):
    • 186 *.java files (11,911 LOC)
    • 7 *.hql files (1,012 LOC)
    • 16 *.xml files (966 LOC)
    • 2 *.scala files (111 LOC)
    • 3 *.pig files (51 LOC)
    • 1 *.ftl files (39 LOC)
  • " *.java" is biggest, containing 84.54% of LOC.
  • " *.ftl" is smallest, containing 0.28% of LOC.


*.java11911 LOC (84%) 186 files
*.hql1012 LOC (7%) 7 files
*.xml966 LOC (6%) 16 files
*.scala111 LOC (<1%) 2 files
*.pig51 LOC (<1%) 3 files
*.ftl39 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 78 files match defined criteria (13,141 LOC, 25.6% vs. main code):
    • 75 *.xml files (13,007 LOC)
    • 3 *.sh files (134 LOC)
  • " *.xml" is biggest, containing 98.98% of LOC.
  • " *.sh" is smallest, containing 1.02% of LOC.


*.xml13007 LOC (98%) 75 files
*.sh134 LOC (1%) 3 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 763 files match defined criteria (27,778 LOC, 54.1% vs. main code):
    • 568 *.json files (19,182 LOC)
    • 21 *.txt files (3,723 LOC)
    • 152 *.md files (3,400 LOC)
    • 14 *.scala files (1,007 LOC)
    • 8 *.properties files (466 LOC)
  • " *.json" is biggest, containing 69.05% of LOC.
  • " *.properties" is smallest, containing 1.68% of LOC.


*.json19182 LOC (69%) 568 files
*.txt3723 LOC (13%) 21 files
*.md3400 LOC (12%) 152 files
*.scala1007 LOC (3%) 14 files
*.properties466 LOC (1%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:40