apache / opennlp
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
conllu
properties
xmi
gitattributes
xsl
bats
cmd
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.

main65655 LOC (57%) 871 files
test28176 LOC (24%) 433 files
generated16267 LOC (14%) 22 files
build and deployment1417 LOC (1%) 10 files
other3138 LOC (2%) 56 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 871 files match defined criteria (65,655 LOC, 100.0% vs. main code):
    • 801 *.java files (43,823 LOC)
    • 58 *.xml files (21,592 LOC)
    • 1 *.css files (122 LOC)
    • 10 *.html files (111 LOC)
    • 1 *.xsl files (7 LOC)
  • " *.java" is biggest, containing 66.75% of LOC.
  • " *.xsl" is smallest, containing 0.01% of LOC.


*.java43823 LOC (66%) 801 files
*.xml21592 LOC (32%) 58 files
*.css122 LOC (<1%) 1 file
*.html111 LOC (<1%) 10 files
*.xsl7 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
conllu
bats
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[.].*".
    • files with paths like ".*/test_.*".
  • 433 files match defined criteria (28,176 LOC, 42.9% vs. main code):
    • 370 *.java files (24,763 LOC)
    • 56 *.xml files (2,603 LOC)
    • 1 *.html files (530 LOC)
    • 4 *.conllu files (207 LOC)
    • 1 *.ps1 files (53 LOC)
    • 1 *.bats files (20 LOC)
  • " *.java" is biggest, containing 87.89% of LOC.
  • " *.bats" is smallest, containing 0.07% of LOC.


*.java24763 LOC (87%) 370 files
*.xml2603 LOC (9%) 56 files
*.html530 LOC (1%) 1 file
*.conllu207 LOC (<1%) 4 files
*.ps153 LOC (<1%) 1 file
*.bats20 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 .*".
  • 22 files match defined criteria (16,267 LOC, 24.8% vs. main code). All matches are in *.java files.


*.java16267 LOC (100%) 22 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/assembly/src[.]xml".
  • 10 files match defined criteria (1,417 LOC, 2.2% vs. main code). All matches are in *.xml files.


*.xml1417 LOC (100%) 10 files
Other Code
txt
properties
xmi
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]xmi".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 56 files match defined criteria (3,138 LOC, 4.8% vs. main code):
    • 46 *.txt files (2,737 LOC)
    • 4 *.md files (186 LOC)
    • 1 *.xml files (97 LOC)
    • 3 *.properties files (60 LOC)
    • 2 *.xmi files (58 LOC)
  • " *.txt" is biggest, containing 87.22% of LOC.
  • " *.xmi" is smallest, containing 1.85% of LOC.


*.txt2737 LOC (87%) 46 files
*.md186 LOC (5%) 4 files
*.xml97 LOC (3%) 1 file
*.properties60 LOC (1%) 3 files
*.xmi58 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:26