apache / tika
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
eml
mbox
vtt
rss
mat
dita
sas
arc
gitattributes
xsl
afm
bib
pub
frm
kml
mrc
nc
proto
ditamap
srt
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.

main138225 LOC (60%) 1,299 files
test64092 LOC (28%) 938 files
generated0 LOC (0%) 0 files
build and deployment12520 LOC (5%) 108 files
other12239 LOC (5%) 123 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 ".*".
  • 1299 files match defined criteria (138,225 LOC, 100.0% vs. main code):
    • 1,255 *.java files (123,508 LOC)
    • 29 *.xml files (13,481 LOC)
    • 7 *.py files (984 LOC)
    • 1 *.proto files (131 LOC)
    • 5 *.html files (77 LOC)
    • 2 *.yaml files (44 LOC)
  • " *.java" is biggest, containing 89.35% of LOC.
  • " *.yaml" is smallest, containing 0.03% of LOC.


*.java123508 LOC (89%) 1,255 files
*.xml13481 LOC (9%) 29 files
*.py984 LOC (<1%) 7 files
*.proto131 LOC (<1%) 1 file
*.html77 LOC (<1%) 5 files
*.yaml44 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
eml
kml
mbox
pub
sas
vtt
dita
rss
arc
srt
afm
ditamap
bib
xsl
mat
frm
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 ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*_test[.].*".
  • 938 files match defined criteria (64,092 LOC, 46.4% vs. main code):
    • 491 *.java files (50,166 LOC)
    • 360 *.xml files (5,762 LOC)
    • 33 *.html files (3,583 LOC)
    • 9 *.eml files (1,868 LOC)
    • 1 *.kml files (915 LOC)
    • 8 *.mbox files (576 LOC)
    • 3 *.m files (372 LOC)
    • 1 *.pub files (120 LOC)
    • 2 *.js files (102 LOC)
    • 2 *.sas files (92 LOC)
    • 2 *.groovy files (81 LOC)
    • 4 *.vtt files (68 LOC)
    • 2 *.dita files (65 LOC)
    • 2 *.rss files (44 LOC)
    • 1 *.arc files (39 LOC)
    • 1 *.srt files (35 LOC)
    • 2 *.bat files (34 LOC)
    • 1 *.xlf files (34 LOC)
    • 1 *.css files (27 LOC)
    • 1 *.afm files (25 LOC)
    • 1 *.ditamap files (23 LOC)
    • 1 *.bib files (20 LOC)
    • 1 *.sh files (8 LOC)
    • 1 *.xsl files (7 LOC)
    • 1 *.rdf files (7 LOC)
    • 1 *.cpp files (6 LOC)
    • 1 *.c files (5 LOC)
    • 1 *.h files (4 LOC)
    • 1 *.mat files (2 LOC)
    • 1 *.jsp files (1 LOC)
    • 1 *.frm files (1 LOC)
  • " *.java" is biggest, containing 78.27% of LOC.
  • " *.frm" is smallest, containing 0% of LOC.


*.java50166 LOC (78%) 491 files
*.xml5762 LOC (8%) 360 files
*.html3583 LOC (5%) 33 files
*.eml1868 LOC (2%) 9 files
*.kml915 LOC (1%) 1 file
*.mbox576 LOC (<1%) 8 files
*.m372 LOC (<1%) 3 files
*.pub120 LOC (<1%) 1 file
*.js102 LOC (<1%) 2 files
*.sas92 LOC (<1%) 2 files
*.groovy81 LOC (<1%) 2 files
*.vtt68 LOC (<1%) 4 files
*.dita65 LOC (<1%) 2 files
*.rss44 LOC (<1%) 2 files
*.arc39 LOC (<1%) 1 file
*.srt35 LOC (<1%) 1 file
*.bat34 LOC (<1%) 2 files
*.xlf34 LOC (<1%) 1 file
*.css27 LOC (<1%) 1 file
*.afm25 LOC (<1%) 1 file
*.ditamap23 LOC (<1%) 1 file
*.bib20 LOC (<1%) 1 file
*.sh8 LOC (<1%) 1 file
*.xsl7 LOC (<1%) 1 file
*.rdf7 LOC (<1%) 1 file
*.cpp6 LOC (<1%) 1 file
*.c5 LOC (<1%) 1 file
*.h4 LOC (<1%) 1 file
*.mat2 LOC (<1%) 1 file
*.jsp1 LOC (<1%) 1 file
*.frm1 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 108 files match defined criteria (12,520 LOC, 9.1% vs. main code). All matches are in *.xml files.


*.xml12520 LOC (100%) 108 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 123 files match defined criteria (12,239 LOC, 8.9% vs. main code):
    • 46 *.txt files (7,227 LOC)
    • 30 *.json files (3,840 LOC)
    • 36 *.properties files (813 LOC)
    • 6 *.md files (232 LOC)
    • 1 *.xml files (100 LOC)
    • 4 *.svg files (27 LOC)
  • " *.txt" is biggest, containing 59.05% of LOC.
  • " *.svg" is smallest, containing 0.22% of LOC.


*.txt7227 LOC (59%) 46 files
*.json3840 LOC (31%) 30 files
*.properties813 LOC (6%) 36 files
*.md232 LOC (1%) 6 files
*.xml100 LOC (<1%) 1 file
*.svg27 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:19