apache / datafusion-python
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
gitmodules
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.

main15248 LOC (63%) 139 files
test4823 LOC (20%) 24 files
generated0 LOC (0%) 0 files
build and deployment387 LOC (1%) 15 files
other3466 LOC (14%) 60 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 139 files match defined criteria (15,248 LOC, 100.0% vs. main code):
    • 89 *.rs files (9,853 LOC)
    • 25 *.py files (4,442 LOC)
    • 23 *.sql files (758 LOC)
    • 2 *.toml files (195 LOC)
  • " *.rs" is biggest, containing 64.62% of LOC.
  • " *.toml" is smallest, containing 1.28% of LOC.


*.rs9853 LOC (64%) 89 files
*.py4442 LOC (29%) 25 files
*.sql758 LOC (4%) 23 files
*.toml195 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 ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 24 files match defined criteria (4,823 LOC, 31.6% vs. main code). All matches are in *.py files.


*.py4823 LOC (100%) 24 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]dockerfile".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]bat".
  • 15 files match defined criteria (387 LOC, 2.5% vs. main code):
    • 14 *.sh files (293 LOC)
    • 1 *.dockerfile files (94 LOC)
  • " *.sh" is biggest, containing 75.71% of LOC.
  • " *.dockerfile" is smallest, containing 24.29% of LOC.


*.sh293 LOC (75%) 14 files
*.dockerfile94 LOC (24%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
  • 60 files match defined criteria (3,466 LOC, 22.7% vs. main code):
    • 41 *.py files (1,702 LOC)
    • 12 *.md files (1,395 LOC)
    • 2 *.txt files (219 LOC)
    • 2 *.rs files (85 LOC)
    • 2 *.toml files (62 LOC)
    • 1 *.json files (3 LOC)
  • " *.py" is biggest, containing 49.11% of LOC.
  • " *.json" is smallest, containing 0.09% of LOC.


*.py1702 LOC (49%) 41 files
*.md1395 LOC (40%) 12 files
*.txt219 LOC (6%) 2 files
*.rs85 LOC (2%) 2 files
*.toml62 LOC (1%) 2 files
*.json3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:39