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
project
gitattributes
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.

main41768 LOC (69%) 474 files
test2642 LOC (4%) 51 files
generated0 LOC (0%) 0 files
build and deployment2882 LOC (4%) 25 files
other12785 LOC (21%) 128 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 474 files match defined criteria (41,768 LOC, 100.0% vs. main code):
    • 442 *.java files (39,238 LOC)
    • 20 *.xml files (1,402 LOC)
    • 5 *.py files (750 LOC)
    • 5 *.html files (287 LOC)
    • 2 *.js files (91 LOC)
  • " *.java" is biggest, containing 93.94% of LOC.
  • " *.js" is smallest, containing 0.22% of LOC.


*.java39238 LOC (93%) 442 files
*.xml1402 LOC (3%) 20 files
*.py750 LOC (1%) 5 files
*.html287 LOC (<1%) 5 files
*.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/.*".
  • 51 files match defined criteria (2,642 LOC, 6.3% vs. main code):
    • 48 *.java files (2,545 LOC)
    • 3 *.xml files (97 LOC)
  • " *.java" is biggest, containing 96.33% of LOC.
  • " *.xml" is smallest, containing 3.67% of LOC.


*.java2545 LOC (96%) 48 files
*.xml97 LOC (3%) 3 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 ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
  • 25 files match defined criteria (2,882 LOC, 6.9% vs. main code):
    • 21 *.xml files (2,866 LOC)
    • 4 *.sh files (16 LOC)
  • " *.xml" is biggest, containing 99.44% of LOC.
  • " *.sh" is smallest, containing 0.56% of LOC.


*.xml2866 LOC (99%) 21 files
*.sh16 LOC (<1%) 4 files
Other Code
txt
properties
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 ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
  • 128 files match defined criteria (12,785 LOC, 30.6% vs. main code):
    • 118 *.txt files (11,957 LOC)
    • 2 *.json files (378 LOC)
    • 3 *.xml files (250 LOC)
    • 3 *.md files (156 LOC)
    • 2 *.properties files (44 LOC)
  • " *.txt" is biggest, containing 93.52% of LOC.
  • " *.properties" is smallest, containing 0.34% of LOC.


*.txt11957 LOC (93%) 118 files
*.json378 LOC (2%) 2 files
*.xml250 LOC (1%) 3 files
*.md156 LOC (1%) 3 files
*.properties44 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 17:29