apache / arrow-nanoarrow
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
rd
txt
in
rmd
gitattributes
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.

main12920 LOC (55%) 68 files
test5974 LOC (25%) 15 files
generated0 LOC (0%) 0 files
build and deployment978 LOC (4%) 19 files
other3216 LOC (13%) 47 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 ".*".
  • 68 files match defined criteria (12,920 LOC, 100.0% vs. main code):
    • 25 *.c files (8,117 LOC)
    • 28 *.h files (3,230 LOC)
    • 1 *.pyx files (541 LOC)
    • 2 *.cc files (434 LOC)
    • 3 *.hpp files (297 LOC)
    • 5 *.py files (231 LOC)
    • 1 *.toml files (35 LOC)
    • 2 *.in files (31 LOC)
    • 1 *.yml files (4 LOC)
  • " *.c" is biggest, containing 62.83% of LOC.
  • " *.yml" is smallest, containing 0.03% of LOC.


*.c8117 LOC (62%) 25 files
*.h3230 LOC (25%) 28 files
*.pyx541 LOC (4%) 1 file
*.cc434 LOC (3%) 2 files
*.hpp297 LOC (2%) 3 files
*.py231 LOC (1%) 5 files
*.toml35 LOC (<1%) 1 file
*.in31 LOC (<1%) 2 files
*.yml4 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[.].*".
    • files with paths like ".*[-]test[-].*".
  • 15 files match defined criteria (5,974 LOC, 46.2% vs. main code):
    • 14 *.cc files (5,768 LOC)
    • 1 *.py files (206 LOC)
  • " *.cc" is biggest, containing 96.55% of LOC.
  • " *.py" is smallest, containing 3.45% of LOC.


*.cc5768 LOC (96%) 14 files
*.py206 LOC (3%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]dockerfile".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 19 files match defined criteria (978 LOC, 7.6% vs. main code):
    • 13 *.sh files (772 LOC)
    • 5 *.dockerfile files (166 LOC)
    • 1 *.yml files (40 LOC)
  • " *.sh" is biggest, containing 78.94% of LOC.
  • " *.yml" is smallest, containing 4.09% of LOC.


*.sh772 LOC (78%) 13 files
*.dockerfile166 LOC (16%) 5 files
*.yml40 LOC (4%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Ee]xamples/.*".
  • 47 files match defined criteria (3,216 LOC, 24.9% vs. main code):
    • 17 *.md files (1,386 LOC)
    • 9 *.txt files (947 LOC)
    • 1 *.ipynb files (392 LOC)
    • 9 *.c files (185 LOC)
    • 6 *.h files (137 LOC)
    • 2 *.cc files (91 LOC)
    • 3 *.json files (78 LOC)
  • " *.md" is biggest, containing 43.1% of LOC.
  • " *.json" is smallest, containing 2.43% of LOC.


*.md1386 LOC (43%) 17 files
*.txt947 LOC (29%) 9 files
*.ipynb392 LOC (12%) 1 file
*.c185 LOC (5%) 9 files
*.h137 LOC (4%) 6 files
*.cc91 LOC (2%) 2 files
*.json78 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:32