apache / incubator-celeborn
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
patch
properties
proto
gitattributes
tpl
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.

main47226 LOC (63%) 370 files
test14404 LOC (19%) 135 files
generated0 LOC (0%) 0 files
build and deployment3538 LOC (4%) 34 files
other8923 LOC (12%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 370 files match defined criteria (47,226 LOC, 100.0% vs. main code):
    • 220 *.java files (24,401 LOC)
    • 130 *.scala files (20,790 LOC)
    • 4 *.py files (604 LOC)
    • 8 *.yaml files (568 LOC)
    • 2 *.proto files (553 LOC)
    • 1 *.bash files (151 LOC)
    • 2 *.yml files (86 LOC)
    • 1 *.tpl files (70 LOC)
    • 2 *.sbt files (3 LOC)
  • " *.java" is biggest, containing 51.67% of LOC.
  • " *.sbt" is smallest, containing 0.01% of LOC.


*.java24401 LOC (51%) 220 files
*.scala20790 LOC (44%) 130 files
*.py604 LOC (1%) 4 files
*.yaml568 LOC (1%) 8 files
*.proto553 LOC (1%) 2 files
*.bash151 LOC (<1%) 1 file
*.yml86 LOC (<1%) 2 files
*.tpl70 LOC (<1%) 1 file
*.sbt3 LOC (<1%) 2 files
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 ".*/[Tt]ests/.*".
  • 135 files match defined criteria (14,404 LOC, 30.5% vs. main code):
    • 62 *.java files (10,007 LOC)
    • 58 *.scala files (3,801 LOC)
    • 13 *.xml files (507 LOC)
    • 2 *.yaml files (89 LOC)
  • " *.java" is biggest, containing 69.47% of LOC.
  • " *.yaml" is smallest, containing 0.62% of LOC.


*.java10007 LOC (69%) 62 files
*.scala3801 LOC (26%) 58 files
*.xml507 LOC (3%) 13 files
*.yaml89 LOC (<1%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 34 files match defined criteria (3,538 LOC, 7.5% vs. main code):
    • 18 *.xml files (2,423 LOC)
    • 16 *.sh files (1,115 LOC)
  • " *.xml" is biggest, containing 68.49% of LOC.
  • " *.sh" is smallest, containing 31.51% of LOC.


*.xml2423 LOC (68%) 18 files
*.sh1115 LOC (31%) 16 files
Other Code
txt
patch
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]patch".
  • 22 files match defined criteria (8,923 LOC, 18.9% vs. main code):
    • 1 *.json files (7,486 LOC)
    • 9 *.txt files (560 LOC)
    • 4 *.md files (454 LOC)
    • 4 *.patch files (316 LOC)
    • 4 *.properties files (107 LOC)
  • " *.json" is biggest, containing 83.9% of LOC.
  • " *.properties" is smallest, containing 1.2% of LOC.


*.json7486 LOC (83%) 1 file
*.txt560 LOC (6%) 9 files
*.md454 LOC (5%) 4 files
*.patch316 LOC (3%) 4 files
*.properties107 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:21