apache / ctakes
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
bsv
cfg
mod
profile
xsd
gitattributes
xsl
launch
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.

main243749 LOC (74%) 2,273 files
test12075 LOC (3%) 118 files
generated0 LOC (0%) 0 files
build and deployment5228 LOC (1%) 63 files
other67512 LOC (20%) 265 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
bsv
mod
xsl
cfg
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2273 files match defined criteria (243,749 LOC, 100.0% vs. main code):
    • 1,682 *.java files (177,675 LOC)
    • 391 *.xml files (56,437 LOC)
    • 106 *.sql files (4,632 LOC)
    • 55 *.py files (3,224 LOC)
    • 8 *.xhtml files (494 LOC)
    • 4 *.groovy files (394 LOC)
    • 9 *.bsv files (306 LOC)
    • 2 *.js files (150 LOC)
    • 3 *.css files (98 LOC)
    • 1 *.mod files (85 LOC)
    • 4 *.jsp files (67 LOC)
    • 2 *.pl files (53 LOC)
    • 1 *.toml files (40 LOC)
    • 1 *.xsl files (39 LOC)
    • 1 *.cfg files (25 LOC)
    • 2 *.html files (16 LOC)
    • 1 *.launch files (14 LOC)
  • " *.java" is biggest, containing 72.89% of LOC.
  • " *.launch" is smallest, containing 0.01% of LOC.


*.java177675 LOC (72%) 1,682 files
*.xml56437 LOC (23%) 391 files
*.sql4632 LOC (1%) 106 files
*.py3224 LOC (1%) 55 files
*.xhtml494 LOC (<1%) 8 files
*.groovy394 LOC (<1%) 4 files
*.bsv306 LOC (<1%) 9 files
*.js150 LOC (<1%) 2 files
*.css98 LOC (<1%) 3 files
*.mod85 LOC (<1%) 1 file
*.jsp67 LOC (<1%) 4 files
*.pl53 LOC (<1%) 2 files
*.toml40 LOC (<1%) 1 file
*.xsl39 LOC (<1%) 1 file
*.cfg25 LOC (<1%) 1 file
*.html16 LOC (<1%) 2 files
*.launch14 LOC (<1%) 1 file
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 ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
  • 118 files match defined criteria (12,075 LOC, 5.0% vs. main code):
    • 44 *.xml files (7,518 LOC)
    • 73 *.java files (4,556 LOC)
    • 1 *.sql files (1 LOC)
  • " *.xml" is biggest, containing 62.26% of LOC.
  • " *.sql" is smallest, containing 0.01% of LOC.


*.xml7518 LOC (62%) 44 files
*.java4556 LOC (37%) 73 files
*.sql1 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 63 files match defined criteria (5,228 LOC, 2.1% vs. main code):
    • 41 *.xml files (4,877 LOC)
    • 10 *.bat files (302 LOC)
    • 12 *.sh files (49 LOC)
  • " *.xml" is biggest, containing 93.29% of LOC.
  • " *.sh" is smallest, containing 0.94% of LOC.


*.xml4877 LOC (93%) 41 files
*.bat302 LOC (5%) 10 files
*.sh49 LOC (<1%) 12 files
Other Code
txt
properties
xsd
cfg
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 ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
  • 265 files match defined criteria (67,512 LOC, 27.7% vs. main code):
    • 24 *.xml files (33,477 LOC)
    • 156 *.txt files (30,957 LOC)
    • 25 *.java files (1,195 LOC)
    • 27 *.md files (780 LOC)
    • 19 *.properties files (717 LOC)
    • 12 *.py files (251 LOC)
    • 1 *.xsd files (110 LOC)
    • 1 *.cfg files (25 LOC)
  • " *.xml" is biggest, containing 49.59% of LOC.
  • " *.cfg" is smallest, containing 0.04% of LOC.


*.xml33477 LOC (49%) 24 files
*.txt30957 LOC (45%) 156 files
*.java1195 LOC (1%) 25 files
*.md780 LOC (1%) 27 files
*.properties717 LOC (1%) 19 files
*.py251 LOC (<1%) 12 files
*.xsd110 LOC (<1%) 1 file
*.cfg25 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:45