azure / azureml-assets
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
jsonl
txt
ini
pkl
in
patch
jinja2
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.

main116881 LOC (65%) 2,305 files
test34990 LOC (19%) 755 files
generated0 LOC (0%) 0 files
build and deployment135 LOC (<1%) 7 files
other27418 LOC (15%) 623 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pkl
jsonl
in
jinja2
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2305 files match defined criteria (116,881 LOC, 100.0% vs. main code):
    • 832 *.py files (73,654 LOC)
    • 1,466 *.yaml files (42,688 LOC)
    • 1 *.pkl files (280 LOC)
    • 4 *.jsonl files (256 LOC)
    • 1 *.in files (2 LOC)
    • 1 *.jinja2 files (1 LOC)
  • " *.py" is biggest, containing 63.02% of LOC.
  • " *.jinja2" is smallest, containing 0% of LOC.


*.py73654 LOC (63%) 832 files
*.yaml42688 LOC (36%) 1,466 files
*.pkl280 LOC (<1%) 1 file
*.jsonl256 LOC (<1%) 4 files
*.in2 LOC (<1%) 1 file
*.jinja21 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
jsonl
pkl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[-]test[-].*".
  • 755 files match defined criteria (34,990 LOC, 29.9% vs. main code):
    • 405 *.py files (31,097 LOC)
    • 302 *.yaml files (3,650 LOC)
    • 47 *.jsonl files (237 LOC)
    • 1 *.pkl files (6 LOC)
  • " *.py" is biggest, containing 88.87% of LOC.
  • " *.pkl" is smallest, containing 0.02% of LOC.


*.py31097 LOC (88%) 405 files
*.yaml3650 LOC (10%) 302 files
*.jsonl237 LOC (<1%) 47 files
*.pkl6 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (135 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh135 LOC (100%) 7 files
Other Code
txt
patch
ini
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 623 files match defined criteria (27,418 LOC, 23.5% vs. main code):
    • 352 *.md files (16,261 LOC)
    • 201 *.json files (9,382 LOC)
    • 66 *.txt files (1,712 LOC)
    • 1 *.patch files (39 LOC)
    • 3 *.ini files (24 LOC)
  • " *.md" is biggest, containing 59.31% of LOC.
  • " *.ini" is smallest, containing 0.09% of LOC.


*.md16261 LOC (59%) 352 files
*.json9382 LOC (34%) 201 files
*.txt1712 LOC (6%) 66 files
*.patch39 LOC (<1%) 1 file
*.ini24 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:26