apache / incubator-tez
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
proto
properties
tex
bib
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.

main58321 LOC (64%) 528 files
test23331 LOC (25%) 99 files
generated0 LOC (0%) 0 files
build and deployment1561 LOC (1%) 11 files
other7777 LOC (8%) 47 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 528 files match defined criteria (58,321 LOC, 100.0% vs. main code):
    • 513 *.java files (57,588 LOC)
    • 7 *.proto files (640 LOC)
    • 8 *.xml files (93 LOC)
  • " *.java" is biggest, containing 98.74% of LOC.
  • " *.xml" is smallest, containing 0.16% of LOC.


*.java57588 LOC (98%) 513 files
*.proto640 LOC (1%) 7 files
*.xml93 LOC (<1%) 8 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 ".*[-]tests/.*".
  • 99 files match defined criteria (23,331 LOC, 40.0% vs. main code):
    • 97 *.java files (23,232 LOC)
    • 2 *.xml files (99 LOC)
  • " *.java" is biggest, containing 99.58% of LOC.
  • " *.xml" is smallest, containing 0.42% of LOC.


*.java23232 LOC (99%) 97 files
*.xml99 LOC (<1%) 2 files
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".
  • 11 files match defined criteria (1,561 LOC, 2.7% vs. main code). All matches are in *.xml files.


*.xml1561 LOC (100%) 11 files
Other Code
txt
tex
properties
bib
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 47 files match defined criteria (7,777 LOC, 13.3% vs. main code):
    • 30 *.java files (6,567 LOC)
    • 6 *.txt files (581 LOC)
    • 1 *.tex files (318 LOC)
    • 5 *.properties files (99 LOC)
    • 2 *.html files (87 LOC)
    • 1 *.py files (71 LOC)
    • 1 *.bib files (30 LOC)
    • 1 *.md files (24 LOC)
  • " *.java" is biggest, containing 84.44% of LOC.
  • " *.md" is smallest, containing 0.31% of LOC.


*.java6567 LOC (84%) 30 files
*.txt581 LOC (7%) 6 files
*.tex318 LOC (4%) 1 file
*.properties99 LOC (1%) 5 files
*.html87 LOC (1%) 2 files
*.py71 LOC (<1%) 1 file
*.bib30 LOC (<1%) 1 file
*.md24 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:48