apache / jena
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
ttl
rq
ru
owl
properties
txt
jflex
jsonld
xsl
ini
haml
gitattributes
htaccess
editorconfig
proto
xsd
cfg
mjs
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.

main701724 LOC (67%) 11,126 files
test295543 LOC (28%) 4,078 files
generated4057 LOC (<1%) 7 files
build and deployment8506 LOC (<1%) 116 files
other25468 LOC (2%) 687 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ttl
owl
rq
jsonld
xsl
jflex
ru
proto
haml
mjs
xsd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 11126 files match defined criteria (701,724 LOC, 100.0% vs. main code):
    • 4,728 *.java files (421,730 LOC)
    • 2,960 *.rdf files (170,738 LOC)
    • 1,151 *.ttl files (62,365 LOC)
    • 40 *.owl files (14,519 LOC)
    • 2,035 *.rq files (12,065 LOC)
    • 42 *.html files (4,874 LOC)
    • 6 *.jsonld files (4,841 LOC)
    • 16 *.xml files (3,391 LOC)
    • 20 *.vue files (2,906 LOC)
    • 7 *.xsl files (1,288 LOC)
    • 9 *.jflex files (1,001 LOC)
    • 20 *.js files (868 LOC)
    • 80 *.ru files (346 LOC)
    • 1 *.proto files (135 LOC)
    • 1 *.thrift files (106 LOC)
    • 1 *.haml files (102 LOC)
    • 1 *.css files (101 LOC)
    • 2 *.scss files (86 LOC)
    • 1 *.rb files (68 LOC)
    • 1 *.mjs files (65 LOC)
    • 1 *.ex files (51 LOC)
    • 1 *.xsd files (34 LOC)
    • 1 *.py files (24 LOC)
    • 1 *.cfg files (20 LOC)
  • " *.java" is biggest, containing 60.1% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.java421730 LOC (60%) 4,728 files
*.rdf170738 LOC (24%) 2,960 files
*.ttl62365 LOC (8%) 1,151 files
*.owl14519 LOC (2%) 40 files
*.rq12065 LOC (1%) 2,035 files
*.html4874 LOC (<1%) 42 files
*.jsonld4841 LOC (<1%) 6 files
*.xml3391 LOC (<1%) 16 files
*.vue2906 LOC (<1%) 20 files
*.xsl1288 LOC (<1%) 7 files
*.jflex1001 LOC (<1%) 9 files
*.js868 LOC (<1%) 20 files
*.ru346 LOC (<1%) 80 files
*.proto135 LOC (<1%) 1 file
*.thrift106 LOC (<1%) 1 file
*.haml102 LOC (<1%) 1 file
*.css101 LOC (<1%) 1 file
*.scss86 LOC (<1%) 2 files
*.rb68 LOC (<1%) 1 file
*.mjs65 LOC (<1%) 1 file
*.ex51 LOC (<1%) 1 file
*.xsd34 LOC (<1%) 1 file
*.py24 LOC (<1%) 1 file
*.cfg20 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ttl
jsonld
rq
ru
haml
owl
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 ".*/[Tt]ests/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
  • 4078 files match defined criteria (295,543 LOC, 42.1% vs. main code):
    • 2,005 *.java files (226,999 LOC)
    • 1,404 *.ttl files (45,599 LOC)
    • 162 *.xml files (12,313 LOC)
    • 2 *.jsonld files (4,050 LOC)
    • 46 *.rdf files (1,999 LOC)
    • 290 *.rq files (1,553 LOC)
    • 14 *.js files (1,246 LOC)
    • 147 *.ru files (880 LOC)
    • 4 *.haml files (489 LOC)
    • 3 *.owl files (403 LOC)
    • 1 *.html files (12 LOC)
  • " *.java" is biggest, containing 76.81% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java226999 LOC (76%) 2,005 files
*.ttl45599 LOC (15%) 1,404 files
*.xml12313 LOC (4%) 162 files
*.jsonld4050 LOC (1%) 2 files
*.rdf1999 LOC (<1%) 46 files
*.rq1553 LOC (<1%) 290 files
*.js1246 LOC (<1%) 14 files
*.ru880 LOC (<1%) 147 files
*.haml489 LOC (<1%) 4 files
*.owl403 LOC (<1%) 3 files
*.html12 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 ".*[.]java" AND any line of content like ".*The following code was generated by JFlex.*".
  • 7 files match defined criteria (4,057 LOC, 0.6% vs. main code). All matches are in *.java files.


*.java4057 LOC (100%) 7 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 116 files match defined criteria (8,506 LOC, 1.2% vs. main code):
    • 50 *.xml files (5,438 LOC)
    • 19 *.sh files (2,268 LOC)
    • 46 *.bat files (788 LOC)
    • 1 *.yaml files (12 LOC)
  • " *.xml" is biggest, containing 63.93% of LOC.
  • " *.yaml" is smallest, containing 0.14% of LOC.


*.xml5438 LOC (63%) 50 files
*.sh2268 LOC (26%) 19 files
*.bat788 LOC (9%) 46 files
*.yaml12 LOC (<1%) 1 file
Other Code
txt
properties
ttl
rq
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]htaccess".
  • 687 files match defined criteria (25,468 LOC, 3.6% vs. main code):
    • 437 *.json files (13,959 LOC)
    • 106 *.java files (4,506 LOC)
    • 30 *.txt files (3,612 LOC)
    • 33 *.properties files (1,001 LOC)
    • 21 *.md files (931 LOC)
    • 23 *.ttl files (893 LOC)
    • 29 *.rq files (180 LOC)
    • 1 *.xml files (171 LOC)
    • 6 *.ini files (126 LOC)
    • 1 *.svg files (89 LOC)
  • " *.json" is biggest, containing 54.81% of LOC.
  • " *.svg" is smallest, containing 0.35% of LOC.


*.json13959 LOC (54%) 437 files
*.java4506 LOC (17%) 106 files
*.txt3612 LOC (14%) 30 files
*.properties1001 LOC (3%) 33 files
*.md931 LOC (3%) 21 files
*.ttl893 LOC (3%) 23 files
*.rq180 LOC (<1%) 29 files
*.xml171 LOC (<1%) 1 file
*.ini126 LOC (<1%) 6 files
*.svg89 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:33