apache / opennlp-sandbox
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
xmi
properties
gitattributes
ini
proto
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.

main50889 LOC (68%) 489 files
test6096 LOC (8%) 113 files
generated0 LOC (0%) 0 files
build and deployment3457 LOC (4%) 29 files
other13705 LOC (18%) 144 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 ".*".
  • 489 files match defined criteria (50,889 LOC, 100.0% vs. main code):
    • 454 *.java files (48,107 LOC)
    • 21 *.xml files (1,416 LOC)
    • 6 *.py files (882 LOC)
    • 5 *.html files (287 LOC)
    • 1 *.proto files (106 LOC)
    • 2 *.js files (91 LOC)
  • " *.java" is biggest, containing 94.53% of LOC.
  • " *.js" is smallest, containing 0.18% of LOC.


*.java48107 LOC (94%) 454 files
*.xml1416 LOC (2%) 21 files
*.py882 LOC (1%) 6 files
*.html287 LOC (<1%) 5 files
*.proto106 LOC (<1%) 1 file
*.js91 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/.*".
  • 113 files match defined criteria (6,096 LOC, 12.0% vs. main code):
    • 107 *.java files (5,897 LOC)
    • 6 *.xml files (199 LOC)
  • " *.java" is biggest, containing 96.74% of LOC.
  • " *.xml" is smallest, containing 3.26% of LOC.


*.java5897 LOC (96%) 107 files
*.xml199 LOC (3%) 6 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 29 files match defined criteria (3,457 LOC, 6.8% vs. main code):
    • 25 *.xml files (3,441 LOC)
    • 4 *.sh files (16 LOC)
  • " *.xml" is biggest, containing 99.54% of LOC.
  • " *.sh" is smallest, containing 0.46% of LOC.


*.xml3441 LOC (99%) 25 files
*.sh16 LOC (<1%) 4 files
Other Code
txt
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ss]amples/.*".
  • 144 files match defined criteria (13,705 LOC, 26.9% vs. main code):
    • 124 *.txt files (12,046 LOC)
    • 9 *.md files (510 LOC)
    • 2 *.py files (434 LOC)
    • 2 *.json files (378 LOC)
    • 3 *.xml files (250 LOC)
    • 3 *.properties files (64 LOC)
    • 1 *.ini files (23 LOC)
  • " *.txt" is biggest, containing 87.89% of LOC.
  • " *.ini" is smallest, containing 0.17% of LOC.


*.txt12046 LOC (87%) 124 files
*.md510 LOC (3%) 9 files
*.py434 LOC (3%) 2 files
*.json378 LOC (2%) 2 files
*.xml250 LOC (1%) 3 files
*.properties64 LOC (<1%) 3 files
*.ini23 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:04