aws / deep-learning-containers
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
pb
pt
properties
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.

main8390 LOC (4%) 102 files
test50168 LOC (29%) 593 files
generated0 LOC (0%) 0 files
build and deployment1052 LOC (<1%) 31 files
other108653 LOC (64%) 524 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 102 files match defined criteria (8,390 LOC, 100.0% vs. main code):
    • 90 *.py files (7,477 LOC)
    • 2 *.js files (374 LOC)
    • 3 *.yaml files (365 LOC)
    • 2 *.toml files (138 LOC)
    • 4 *.c files (32 LOC)
    • 1 *.cfg files (4 LOC)
  • " *.py" is biggest, containing 89.12% of LOC.
  • " *.cfg" is smallest, containing 0.05% of LOC.


*.py7477 LOC (89%) 90 files
*.js374 LOC (4%) 2 files
*.yaml365 LOC (4%) 3 files
*.toml138 LOC (1%) 2 files
*.c32 LOC (<1%) 4 files
*.cfg4 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 ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 593 files match defined criteria (50,168 LOC, 597.9% vs. main code):
    • 545 *.py files (48,830 LOC)
    • 20 *.yaml files (907 LOC)
    • 26 *.sh files (344 LOC)
    • 2 *.toml files (87 LOC)
  • " *.py" is biggest, containing 97.33% of LOC.
  • " *.toml" is smallest, containing 0.17% of LOC.


*.py48830 LOC (97%) 545 files
*.yaml907 LOC (1%) 20 files
*.sh344 LOC (<1%) 26 files
*.toml87 LOC (<1%) 2 files
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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 31 files match defined criteria (1,052 LOC, 12.5% vs. main code). All matches are in *.sh files.


*.sh1052 LOC (100%) 31 files
Other Code
pb
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]pb".
  • 524 files match defined criteria (108,653 LOC, 1295.0% vs. main code):
    • 373 *.json files (89,034 LOC)
    • 25 *.pb files (12,386 LOC)
    • 98 *.txt files (6,290 LOC)
    • 9 *.md files (710 LOC)
    • 15 *.py files (167 LOC)
    • 4 *.properties files (66 LOC)
  • " *.json" is biggest, containing 81.94% of LOC.
  • " *.properties" is smallest, containing 0.06% of LOC.


*.json89034 LOC (81%) 373 files
*.pb12386 LOC (11%) 25 files
*.txt6290 LOC (5%) 98 files
*.md710 LOC (<1%) 9 files
*.py167 LOC (<1%) 15 files
*.properties66 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:08