apache / uima-uimacpp
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
mak
txt
asc
m4
xmi
inl
xsd
project
gitattributes
tcl
in
i
gdbinit
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.

main45463 LOC (62%) 215 files
test19872 LOC (27%) 62 files
generated90 LOC (<1%) 1 file
build and deployment133 LOC (<1%) 3 files
other6609 LOC (9%) 52 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
i
tcl
in
inl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 215 files match defined criteria (45,463 LOC, 100.0% vs. main code):
    • 79 *.cpp files (26,493 LOC)
    • 104 *.hpp files (14,441 LOC)
    • 13 *.h files (1,874 LOC)
    • 4 *.html files (1,074 LOC)
    • 1 *.xsd files (530 LOC)
    • 1 *.i files (375 LOC)
    • 5 *.xml files (359 LOC)
    • 2 *.pl files (122 LOC)
    • 2 *.py files (100 LOC)
    • 1 *.tcl files (77 LOC)
    • 1 *.in files (10 LOC)
    • 2 *.inl files (8 LOC)
  • " *.cpp" is biggest, containing 58.27% of LOC.
  • " *.inl" is smallest, containing 0.02% of LOC.


*.cpp26493 LOC (58%) 79 files
*.hpp14441 LOC (31%) 104 files
*.h1874 LOC (4%) 13 files
*.html1074 LOC (2%) 4 files
*.xsd530 LOC (1%) 1 file
*.i375 LOC (<1%) 1 file
*.xml359 LOC (<1%) 5 files
*.pl122 LOC (<1%) 2 files
*.py100 LOC (<1%) 2 files
*.tcl77 LOC (<1%) 1 file
*.in10 LOC (<1%) 1 file
*.inl8 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
asc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 62 files match defined criteria (19,872 LOC, 43.7% vs. main code):
    • 23 *.xml files (11,425 LOC)
    • 20 *.cpp files (7,314 LOC)
    • 11 *.hpp files (985 LOC)
    • 7 *.asc files (119 LOC)
    • 1 *.sh files (29 LOC)
  • " *.xml" is biggest, containing 57.49% of LOC.
  • " *.sh" is smallest, containing 0.15% of LOC.


*.xml11425 LOC (57%) 23 files
*.cpp7314 LOC (36%) 20 files
*.hpp985 LOC (4%) 11 files
*.asc119 LOC (<1%) 7 files
*.sh29 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 paths like ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
  • 1 file matches defined criteria (90 LOC, 0.2% vs. main code). All matches are in *.h files.


*.h90 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mak
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]mak".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (133 LOC, 0.3% vs. main code):
    • 1 *.mak files (115 LOC)
    • 2 *.sh files (18 LOC)
  • " *.mak" is biggest, containing 86.47% of LOC.
  • " *.sh" is smallest, containing 13.53% of LOC.


*.mak115 LOC (86%) 1 file
*.sh18 LOC (13%) 2 files
Other Code
txt
mak
gdbinit
launch
xmi
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 ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]xmi".
  • 52 files match defined criteria (6,609 LOC, 14.5% vs. main code):
    • 8 *.txt files (3,603 LOC)
    • 8 *.cpp files (826 LOC)
    • 11 *.xml files (515 LOC)
    • 1 *.pm files (432 LOC)
    • 2 *.py files (332 LOC)
    • 10 *.mak files (331 LOC)
    • 3 *.md files (216 LOC)
    • 1 *.html files (144 LOC)
    • 1 *.pl files (78 LOC)
    • 1 *.gdbinit files (39 LOC)
    • 1 *.sh files (39 LOC)
    • 1 *.launch files (29 LOC)
    • 4 *.xmi files (25 LOC)
  • " *.txt" is biggest, containing 54.52% of LOC.
  • " *.xmi" is smallest, containing 0.38% of LOC.


*.txt3603 LOC (54%) 8 files
*.cpp826 LOC (12%) 8 files
*.xml515 LOC (7%) 11 files
*.pm432 LOC (6%) 1 file
*.py332 LOC (5%) 2 files
*.mak331 LOC (5%) 10 files
*.md216 LOC (3%) 3 files
*.html144 LOC (2%) 1 file
*.pl78 LOC (1%) 1 file
*.gdbinit39 LOC (<1%) 1 file
*.sh39 LOC (<1%) 1 file
*.launch29 LOC (<1%) 1 file
*.xmi25 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:53