azure / azure-openai-samples
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
jinja2
cfg
jsonl
cmd
ini
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.

main8215 LOC (49%) 22 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other8516 LOC (50%) 234 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 22 files match defined criteria (8,215 LOC, 100.0% vs. main code). All matches are in *.ipynb files.


*.ipynb8215 LOC (100%) 22 files
Other Code
txt
jinja2
cfg
ini
jsonl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
  • 234 files match defined criteria (8,516 LOC, 103.7% vs. main code):
    • 10 *.ipynb files (2,924 LOC)
    • 35 *.py files (2,118 LOC)
    • 67 *.txt files (1,146 LOC)
    • 67 *.json files (959 LOC)
    • 23 *.md files (649 LOC)
    • 15 *.yaml files (439 LOC)
    • 8 *.jinja2 files (203 LOC)
    • 3 *.cfg files (39 LOC)
    • 1 *.ini files (24 LOC)
    • 1 *.sh files (9 LOC)
    • 2 *.jsonl files (4 LOC)
    • 2 *.cmd files (2 LOC)
  • " *.ipynb" is biggest, containing 34.34% of LOC.
  • " *.cmd" is smallest, containing 0.02% of LOC.


*.ipynb2924 LOC (34%) 10 files
*.py2118 LOC (24%) 35 files
*.txt1146 LOC (13%) 67 files
*.json959 LOC (11%) 67 files
*.md649 LOC (7%) 23 files
*.yaml439 LOC (5%) 15 files
*.jinja2203 LOC (2%) 8 files
*.cfg39 LOC (<1%) 3 files
*.ini24 LOC (<1%) 1 file
*.sh9 LOC (<1%) 1 file
*.jsonl4 LOC (<1%) 2 files
*.cmd2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:54