apache / airavata-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
properties
txt
flex
xsd
proto
sig
editorconfig
jade
cwl
pub
htaccess
project
jshintrc
cmd
wsdl
classpath
prefs
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.

main268525 LOC (75%) 2,088 files
test7619 LOC (2%) 128 files
generated32142 LOC (9%) 26 files
build and deployment7630 LOC (2%) 125 files
other39574 LOC (11%) 341 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
flex
proto
jade
sig
cwl
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2088 files match defined criteria (268,525 LOC, 100.0% vs. main code):
    • 388 *.js files (115,916 LOC)
    • 875 *.java files (73,192 LOC)
    • 371 *.py files (46,338 LOC)
    • 106 *.php files (9,593 LOC)
    • 37 *.flex files (6,028 LOC)
    • 78 *.html files (4,739 LOC)
    • 44 *.css files (2,958 LOC)
    • 2 *.c files (1,784 LOC)
    • 23 *.less files (1,776 LOC)
    • 55 *.ts files (1,624 LOC)
    • 32 *.xml files (1,013 LOC)
    • 2 *.ipynb files (682 LOC)
    • 8 *.sql files (627 LOC)
    • 12 *.jsp files (582 LOC)
    • 10 *.vue files (489 LOC)
    • 5 *.proto files (381 LOC)
    • 18 *.yml files (372 LOC)
    • 11 *.thrift files (266 LOC)
    • 2 *.jade files (61 LOC)
    • 4 *.sig files (40 LOC)
    • 2 *.cwl files (35 LOC)
    • 1 *.scss files (27 LOC)
    • 2 *.pub files (2 LOC)
  • " *.js" is biggest, containing 43.17% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.js115916 LOC (43%) 388 files
*.java73192 LOC (27%) 875 files
*.py46338 LOC (17%) 371 files
*.php9593 LOC (3%) 106 files
*.flex6028 LOC (2%) 37 files
*.html4739 LOC (1%) 78 files
*.css2958 LOC (1%) 44 files
*.c1784 LOC (<1%) 2 files
*.less1776 LOC (<1%) 23 files
*.ts1624 LOC (<1%) 55 files
*.xml1013 LOC (<1%) 32 files
*.ipynb682 LOC (<1%) 2 files
*.sql627 LOC (<1%) 8 files
*.jsp582 LOC (<1%) 12 files
*.vue489 LOC (<1%) 10 files
*.proto381 LOC (<1%) 5 files
*.yml372 LOC (<1%) 18 files
*.thrift266 LOC (<1%) 11 files
*.jade61 LOC (<1%) 2 files
*.sig40 LOC (<1%) 4 files
*.cwl35 LOC (<1%) 2 files
*.scss27 LOC (<1%) 1 file
*.pub2 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
wsdl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/protractor[.]conf[.]js".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
  • 128 files match defined criteria (7,619 LOC, 2.8% vs. main code):
    • 97 *.java files (6,290 LOC)
    • 2 *.sql files (440 LOC)
    • 12 *.xml files (355 LOC)
    • 5 *.php files (194 LOC)
    • 7 *.js files (181 LOC)
    • 1 *.wsdl files (90 LOC)
    • 3 *.ts files (47 LOC)
    • 1 *.bat files (22 LOC)
  • " *.java" is biggest, containing 82.56% of LOC.
  • " *.bat" is smallest, containing 0.29% of LOC.


*.java6290 LOC (82%) 97 files
*.sql440 LOC (5%) 2 files
*.xml355 LOC (4%) 12 files
*.php194 LOC (2%) 5 files
*.js181 LOC (2%) 7 files
*.wsdl90 LOC (1%) 1 file
*.ts47 LOC (<1%) 3 files
*.bat22 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]java" AND any line of content like ".*The following code was generated by JFlex.*".
  • 26 files match defined criteria (32,142 LOC, 12.0% vs. main code):
    • 4 *.json files (21,542 LOC)
    • 22 *.java files (10,600 LOC)
  • " *.json" is biggest, containing 67.02% of LOC.
  • " *.java" is smallest, containing 32.98% of LOC.


*.json21542 LOC (67%) 4 files
*.java10600 LOC (32%) 22 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/build[.]xml".
  • 125 files match defined criteria (7,630 LOC, 2.8% vs. main code):
    • 110 *.xml files (7,365 LOC)
    • 14 *.sh files (262 LOC)
    • 1 *.bat files (3 LOC)
  • " *.xml" is biggest, containing 96.53% of LOC.
  • " *.bat" is smallest, containing 0.04% of LOC.


*.xml7365 LOC (96%) 110 files
*.sh262 LOC (3%) 14 files
*.bat3 LOC (<1%) 1 file
Other Code
txt
xsd
properties
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/resources/.*[.]xsd".
  • 341 files match defined criteria (39,574 LOC, 14.7% vs. main code):
    • 30 *.json files (22,826 LOC)
    • 148 *.html files (7,846 LOC)
    • 32 *.svg files (2,422 LOC)
    • 37 *.txt files (2,124 LOC)
    • 11 *.xsd files (1,396 LOC)
    • 52 *.properties files (1,318 LOC)
    • 26 *.md files (674 LOC)
    • 3 *.php files (623 LOC)
    • 1 *.css files (241 LOC)
    • 1 *.xml files (104 LOC)
  • " *.json" is biggest, containing 57.68% of LOC.
  • " *.xml" is smallest, containing 0.26% of LOC.


*.json22826 LOC (57%) 30 files
*.html7846 LOC (19%) 148 files
*.svg2422 LOC (6%) 32 files
*.txt2124 LOC (5%) 37 files
*.xsd1396 LOC (3%) 11 files
*.properties1318 LOC (3%) 52 files
*.md674 LOC (1%) 26 files
*.php623 LOC (1%) 3 files
*.css241 LOC (<1%) 1 file
*.xml104 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:09