apache / datafusion-comet
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
diff
proto
cmd
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.

main58860 LOC (14%) 326 files
test18256 LOC (4%) 92 files
generated0 LOC (0%) 0 files
build and deployment2223 LOC (<1%) 13 files
other328136 LOC (80%) 1,992 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 ".*".
  • 326 files match defined criteria (58,860 LOC, 100.0% vs. main code):
    • 146 *.rs files (35,734 LOC)
    • 102 *.scala files (13,930 LOC)
    • 63 *.java files (7,817 LOC)
    • 4 *.proto files (664 LOC)
    • 7 *.toml files (342 LOC)
    • 1 *.xml files (238 LOC)
    • 2 *.py files (127 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.rs" is biggest, containing 60.71% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.rs35734 LOC (60%) 146 files
*.scala13930 LOC (23%) 102 files
*.java7817 LOC (13%) 63 files
*.proto664 LOC (1%) 4 files
*.toml342 LOC (<1%) 7 files
*.xml238 LOC (<1%) 1 file
*.py127 LOC (<1%) 2 files
*.yaml8 LOC (<1%) 1 file
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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 92 files match defined criteria (18,256 LOC, 31.0% vs. main code):
    • 57 *.scala files (16,859 LOC)
    • 4 *.java files (886 LOC)
    • 6 *.rs files (337 LOC)
    • 25 *.sql files (174 LOC)
  • " *.scala" is biggest, containing 92.35% of LOC.
  • " *.sql" is smallest, containing 0.95% of LOC.


*.scala16859 LOC (92%) 57 files
*.java886 LOC (4%) 4 files
*.rs337 LOC (1%) 6 files
*.sql174 LOC (<1%) 25 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 13 files match defined criteria (2,223 LOC, 3.8% vs. main code):
    • 5 *.xml files (1,679 LOC)
    • 8 *.sh files (544 LOC)
  • " *.xml" is biggest, containing 75.53% of LOC.
  • " *.sh" is smallest, containing 24.47% of LOC.


*.xml1679 LOC (75%) 5 files
*.sh544 LOC (24%) 8 files
Other Code
txt
diff
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 ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]diff".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
  • 1992 files match defined criteria (328,136 LOC, 557.5% vs. main code):
    • 1,962 *.txt files (314,452 LOC)
    • 4 *.diff files (11,747 LOC)
    • 19 *.md files (1,725 LOC)
    • 6 *.properties files (206 LOC)
    • 1 *.xml files (6 LOC)
  • " *.txt" is biggest, containing 95.83% of LOC.
  • " *.xml" is smallest, containing 0% of LOC.


*.txt314452 LOC (95%) 1,962 files
*.diff11747 LOC (3%) 4 files
*.md1725 LOC (<1%) 19 files
*.properties206 LOC (<1%) 6 files
*.xml6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:56