aws / sagemaker-xgboost-container
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
pb
txt
in
ini
cfg
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.

main4187 LOC (50%) 50 files
test3706 LOC (44%) 42 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other355 LOC (4%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 50 files match defined criteria (4,187 LOC, 100.0% vs. main code):
    • 45 *.py files (4,113 LOC)
    • 1 *.java files (65 LOC)
    • 1 *.cfg files (3 LOC)
    • 1 *.yaml files (3 LOC)
    • 1 *.toml files (2 LOC)
    • 1 *.in files (1 LOC)
  • " *.py" is biggest, containing 98.23% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.py4113 LOC (98%) 45 files
*.java65 LOC (1%) 1 file
*.cfg3 LOC (<1%) 1 file
*.yaml3 LOC (<1%) 1 file
*.toml2 LOC (<1%) 1 file
*.in1 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_.*".
  • 42 files match defined criteria (3,706 LOC, 88.5% vs. main code). All matches are in *.py files.


*.py3706 LOC (100%) 42 files
Other Code
ini
pb
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/[.]dockerignore".
  • 10 files match defined criteria (355 LOC, 8.5% vs. main code):
    • 1 *.rst files (169 LOC)
    • 1 *.ini files (50 LOC)
    • 4 *.pb files (48 LOC)
    • 2 *.txt files (46 LOC)
    • 2 *.md files (42 LOC)
  • " *.rst" is biggest, containing 47.61% of LOC.
  • " *.md" is smallest, containing 11.83% of LOC.


*.rst169 LOC (47%) 1 file
*.ini50 LOC (14%) 1 file
*.pb48 LOC (13%) 4 files
*.txt46 LOC (12%) 2 files
*.md42 LOC (11%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:06