azure / ai-foundry-workshop
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
jsonl
mjs
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.

main16934 LOC (93%) 132 files
test122 LOC (<1%) 4 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1089 LOC (6%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 132 files match defined criteria (16,934 LOC, 100.0% vs. main code):
    • 19 *.ipynb files (9,639 LOC)
    • 67 *.tsx files (5,290 LOC)
    • 27 *.py files (1,041 LOC)
    • 7 *.ts files (560 LOC)
    • 2 *.css files (176 LOC)
    • 4 *.js files (116 LOC)
    • 2 *.mjs files (81 LOC)
    • 1 *.html files (13 LOC)
    • 1 *.yaml files (10 LOC)
    • 2 *.jsonl files (8 LOC)
  • " *.ipynb" is biggest, containing 56.92% of LOC.
  • " *.jsonl" is smallest, containing 0.05% of LOC.


*.ipynb9639 LOC (56%) 19 files
*.tsx5290 LOC (31%) 67 files
*.py1041 LOC (6%) 27 files
*.ts560 LOC (3%) 7 files
*.css176 LOC (1%) 2 files
*.js116 LOC (<1%) 4 files
*.mjs81 LOC (<1%) 2 files
*.html13 LOC (<1%) 1 file
*.yaml10 LOC (<1%) 1 file
*.jsonl8 LOC (<1%) 2 files
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 ".*__tests__.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 4 files match defined criteria (122 LOC, 0.7% vs. main code):
    • 1 *.tsx files (85 LOC)
    • 1 *.py files (20 LOC)
    • 2 *.ts files (17 LOC)
  • " *.tsx" is biggest, containing 69.67% of LOC.
  • " *.ts" is smallest, containing 13.93% of LOC.


*.tsx85 LOC (69%) 1 file
*.py20 LOC (16%) 1 file
*.ts17 LOC (13%) 2 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 15 files match defined criteria (1,089 LOC, 6.4% vs. main code):
    • 7 *.md files (809 LOC)
    • 5 *.json files (186 LOC)
    • 3 *.txt files (94 LOC)
  • " *.md" is biggest, containing 74.29% of LOC.
  • " *.txt" is smallest, containing 8.63% of LOC.


*.md809 LOC (74%) 7 files
*.json186 LOC (17%) 5 files
*.txt94 LOC (8%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:21