apache / arrow-ballista-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
in
patch
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.

main2298 LOC (36%) 41 files
test385 LOC (6%) 16 files
generated79 LOC (1%) 1 file
build and deployment1763 LOC (27%) 67 files
other1776 LOC (28%) 17 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 41 files match defined criteria (2,298 LOC, 100.0% vs. main code):
    • 12 *.rs files (1,137 LOC)
    • 9 *.py files (731 LOC)
    • 8 *.cmake files (178 LOC)
    • 2 *.toml files (106 LOC)
    • 8 *.yml files (84 LOC)
    • 1 *.xml files (36 LOC)
    • 1 *.in files (26 LOC)
  • " *.rs" is biggest, containing 49.48% of LOC.
  • " *.in" is smallest, containing 1.13% of LOC.


*.rs1137 LOC (49%) 12 files
*.py731 LOC (31%) 9 files
*.cmake178 LOC (7%) 8 files
*.toml106 LOC (4%) 2 files
*.yml84 LOC (3%) 8 files
*.xml36 LOC (1%) 1 file
*.in26 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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 16 files match defined criteria (385 LOC, 16.8% vs. main code):
    • 13 *.sh files (302 LOC)
    • 1 *.bat files (47 LOC)
    • 2 *.py files (36 LOC)
  • " *.sh" is biggest, containing 78.44% of LOC.
  • " *.py" is smallest, containing 9.35% of LOC.


*.sh302 LOC (78%) 13 files
*.bat47 LOC (12%) 1 file
*.py36 LOC (9%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (79 LOC, 3.4% vs. main code). All matches are in *.svg files.


*.svg79 LOC (100%) 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 ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 67 files match defined criteria (1,763 LOC, 76.7% vs. main code):
    • 64 *.sh files (1,438 LOC)
    • 3 *.bat files (325 LOC)
  • " *.sh" is biggest, containing 81.57% of LOC.
  • " *.bat" is smallest, containing 18.43% of LOC.


*.sh1438 LOC (81%) 64 files
*.bat325 LOC (18%) 3 files
Other Code
txt
patch
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 ".*[.]patch".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 17 files match defined criteria (1,776 LOC, 77.3% vs. main code):
    • 6 *.txt files (1,059 LOC)
    • 5 *.md files (544 LOC)
    • 1 *.svg files (79 LOC)
    • 1 *.patch files (61 LOC)
    • 4 *.py files (33 LOC)
  • " *.txt" is biggest, containing 59.63% of LOC.
  • " *.py" is smallest, containing 1.86% of LOC.


*.txt1059 LOC (59%) 6 files
*.md544 LOC (30%) 5 files
*.svg79 LOC (4%) 1 file
*.patch61 LOC (3%) 1 file
*.py33 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:38