apache / incubator-gluten
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
proto
properties
orc
clang-format
in
clang-tidy
gitattributes
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.

main207322 LOC (43%) 1,999 files
test139282 LOC (29%) 1,318 files
generated0 LOC (0%) 0 files
build and deployment10710 LOC (2%) 102 files
other114001 LOC (24%) 449 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
orc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1999 files match defined criteria (207,322 LOC, 100.0% vs. main code):
    • 811 *.scala files (84,970 LOC)
    • 277 *.cpp files (37,182 LOC)
    • 301 *.h files (23,383 LOC)
    • 281 *.java files (19,776 LOC)
    • 83 *.cc files (16,241 LOC)
    • 5 *.ipynb files (11,625 LOC)
    • 167 *.sql files (5,258 LOC)
    • 23 *.proto files (4,191 LOC)
    • 39 *.cmake files (1,686 LOC)
    • 4 *.orc files (1,237 LOC)
    • 3 *.py files (1,049 LOC)
    • 2 *.g4 files (382 LOC)
    • 2 *.xml files (284 LOC)
    • 1 *.ps1 files (58 LOC)
  • " *.scala" is biggest, containing 40.98% of LOC.
  • " *.ps1" is smallest, containing 0.03% of LOC.


*.scala84970 LOC (40%) 811 files
*.cpp37182 LOC (17%) 277 files
*.h23383 LOC (11%) 301 files
*.java19776 LOC (9%) 281 files
*.cc16241 LOC (7%) 83 files
*.ipynb11625 LOC (5%) 5 files
*.sql5258 LOC (2%) 167 files
*.proto4191 LOC (2%) 23 files
*.cmake1686 LOC (<1%) 39 files
*.orc1237 LOC (<1%) 4 files
*.py1049 LOC (<1%) 3 files
*.g4382 LOC (<1%) 2 files
*.xml284 LOC (<1%) 2 files
*.ps158 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
orc
in
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[-]data/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 1318 files match defined criteria (139,282 LOC, 67.2% vs. main code):
    • 1,087 *.scala files (111,482 LOC)
    • 77 *.java files (10,792 LOC)
    • 33 *.cpp files (7,508 LOC)
    • 80 *.sql files (5,028 LOC)
    • 26 *.cc files (3,302 LOC)
    • 6 *.orc files (586 LOC)
    • 7 *.h files (417 LOC)
    • 1 *.xml files (157 LOC)
    • 1 *.in files (10 LOC)
  • " *.scala" is biggest, containing 80.04% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.scala111482 LOC (80%) 1,087 files
*.java10792 LOC (7%) 77 files
*.cpp7508 LOC (5%) 33 files
*.sql5028 LOC (3%) 80 files
*.cc3302 LOC (2%) 26 files
*.orc586 LOC (<1%) 6 files
*.h417 LOC (<1%) 7 files
*.xml157 LOC (<1%) 1 file
*.in10 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 102 files match defined criteria (10,710 LOC, 5.2% vs. main code):
    • 39 *.xml files (7,473 LOC)
    • 63 *.sh files (3,237 LOC)
  • " *.xml" is biggest, containing 69.78% of LOC.
  • " *.sh" is smallest, containing 30.22% of LOC.


*.xml7473 LOC (69%) 39 files
*.sh3237 LOC (30%) 63 files
Other Code
txt
patch
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]patch".
  • 449 files match defined criteria (114,001 LOC, 55.0% vs. main code):
    • 293 *.txt files (91,841 LOC)
    • 73 *.json files (18,286 LOC)
    • 36 *.patch files (1,927 LOC)
    • 12 *.md files (708 LOC)
    • 19 *.properties files (672 LOC)
    • 2 *.cc files (230 LOC)
    • 2 *.xml files (147 LOC)
    • 9 *.sh files (112 LOC)
    • 2 *.cpp files (59 LOC)
    • 1 *.h files (19 LOC)
  • " *.txt" is biggest, containing 80.56% of LOC.
  • " *.h" is smallest, containing 0.02% of LOC.


*.txt91841 LOC (80%) 293 files
*.json18286 LOC (16%) 73 files
*.patch1927 LOC (1%) 36 files
*.md708 LOC (<1%) 12 files
*.properties672 LOC (<1%) 19 files
*.cc230 LOC (<1%) 2 files
*.xml147 LOC (<1%) 2 files
*.sh112 LOC (<1%) 9 files
*.cpp59 LOC (<1%) 2 files
*.h19 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:34