apache / datasketches-cpp
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
ini
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.

main34751 LOC (73%) 167 files
test11029 LOC (23%) 74 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1508 LOC (3%) 30 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 167 files match defined criteria (34,751 LOC, 100.0% vs. main code):
    • 133 *.hpp files (30,985 LOC)
    • 15 *.cpp files (1,792 LOC)
    • 4 *.ipynb files (1,448 LOC)
    • 8 *.py files (311 LOC)
    • 1 *.h files (102 LOC)
    • 4 *.in files (72 LOC)
    • 1 *.toml files (22 LOC)
    • 1 *.cmd files (19 LOC)
  • " *.hpp" is biggest, containing 89.16% of LOC.
  • " *.cmd" is smallest, containing 0.05% of LOC.


*.hpp30985 LOC (89%) 133 files
*.cpp1792 LOC (5%) 15 files
*.ipynb1448 LOC (4%) 4 files
*.py311 LOC (<1%) 8 files
*.h102 LOC (<1%) 1 file
*.in72 LOC (<1%) 4 files
*.toml22 LOC (<1%) 1 file
*.cmd19 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/.*".
    • files with paths like ".*/test_.*".
  • 74 files match defined criteria (11,029 LOC, 31.7% vs. main code):
    • 59 *.cpp files (9,973 LOC)
    • 13 *.py files (875 LOC)
    • 2 *.hpp files (181 LOC)
  • " *.cpp" is biggest, containing 90.43% of LOC.
  • " *.hpp" is smallest, containing 1.64% of LOC.


*.cpp9973 LOC (90%) 59 files
*.py875 LOC (7%) 13 files
*.hpp181 LOC (1%) 2 files
Other Code
txt
ini
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 ".*[.]ini".
  • 30 files match defined criteria (1,508 LOC, 4.3% vs. main code):
    • 27 *.txt files (1,324 LOC)
    • 2 *.md files (160 LOC)
    • 1 *.ini files (24 LOC)
  • " *.txt" is biggest, containing 87.8% of LOC.
  • " *.ini" is smallest, containing 1.59% of LOC.


*.txt1324 LOC (87%) 27 files
*.md160 LOC (10%) 2 files
*.ini24 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:15