apache / arrow-experiments
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
jl
mod
csproj
ru
gitattributes
jsonl
clang-format
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.

main3583 LOC (64%) 43 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment130 LOC (2%) 8 files
other1813 LOC (32%) 54 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ru
jl
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 43 files match defined criteria (3,583 LOC, 100.0% vs. main code):
    • 7 *.cc files (1,386 LOC)
    • 10 *.py files (1,038 LOC)
    • 5 *.h files (229 LOC)
    • 2 *.rs files (168 LOC)
    • 2 *.java files (160 LOC)
    • 2 *.cs files (130 LOC)
    • 2 *.go files (123 LOC)
    • 4 *.toml files (83 LOC)
    • 1 *.ru files (66 LOC)
    • 1 *.c files (58 LOC)
    • 1 *.m files (47 LOC)
    • 1 *.cpp files (40 LOC)
    • 2 *.jl files (36 LOC)
    • 1 *.rb files (10 LOC)
    • 1 *.js files (6 LOC)
    • 1 *.jsonl files (3 LOC)
  • " *.cc" is biggest, containing 38.68% of LOC.
  • " *.jsonl" is smallest, containing 0.08% of LOC.


*.cc1386 LOC (38%) 7 files
*.py1038 LOC (28%) 10 files
*.h229 LOC (6%) 5 files
*.rs168 LOC (4%) 2 files
*.java160 LOC (4%) 2 files
*.cs130 LOC (3%) 2 files
*.go123 LOC (3%) 2 files
*.toml83 LOC (2%) 4 files
*.ru66 LOC (1%) 1 file
*.c58 LOC (1%) 1 file
*.m47 LOC (1%) 1 file
*.cpp40 LOC (1%) 1 file
*.jl36 LOC (1%) 2 files
*.rb10 LOC (<1%) 1 file
*.js6 LOC (<1%) 1 file
*.jsonl3 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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 ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]csproj".
  • 8 files match defined criteria (130 LOC, 3.6% vs. main code):
    • 2 *.xml files (81 LOC)
    • 4 *.sh files (31 LOC)
    • 2 *.csproj files (18 LOC)
  • " *.xml" is biggest, containing 62.31% of LOC.
  • " *.csproj" is smallest, containing 13.85% of LOC.


*.xml81 LOC (62%) 2 files
*.sh31 LOC (23%) 4 files
*.csproj18 LOC (13%) 2 files
Other Code
txt
mod
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 54 files match defined criteria (1,813 LOC, 50.6% vs. main code):
    • 47 *.md files (1,490 LOC)
    • 3 *.txt files (275 LOC)
    • 2 *.mod files (32 LOC)
    • 2 *.json files (16 LOC)
  • " *.md" is biggest, containing 82.18% of LOC.
  • " *.json" is smallest, containing 0.88% of LOC.


*.md1490 LOC (82%) 47 files
*.txt275 LOC (15%) 3 files
*.mod32 LOC (1%) 2 files
*.json16 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:34