huggingface / optimum
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
mdx
txt
in
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.

main27572 LOC (54%) 131 files
test12069 LOC (23%) 41 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other11288 LOC (22%) 72 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 131 files match defined criteria (27,572 LOC, 100.0% vs. main code):
    • 128 *.py files (27,501 LOC)
    • 1 *.toml files (41 LOC)
    • 1 *.in files (15 LOC)
    • 1 *.cfg files (15 LOC)
  • " *.py" is biggest, containing 99.74% of LOC.
  • " *.cfg" is smallest, containing 0.05% of LOC.


*.py27501 LOC (99%) 128 files
*.toml41 LOC (<1%) 1 file
*.in15 LOC (<1%) 1 file
*.cfg15 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 ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
  • 41 files match defined criteria (12,069 LOC, 43.8% vs. main code):
    • 40 *.py files (12,065 LOC)
    • 1 *.sh files (4 LOC)
  • " *.py" is biggest, containing 99.97% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.py12065 LOC (99%) 40 files
*.sh4 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]gitignore".
  • 72 files match defined criteria (11,288 LOC, 40.9% vs. main code):
    • 25 *.py files (9,834 LOC)
    • 23 *.md files (992 LOC)
    • 6 *.json files (232 LOC)
    • 18 *.txt files (230 LOC)
  • " *.py" is biggest, containing 87.12% of LOC.
  • " *.txt" is smallest, containing 2.04% of LOC.


*.py9834 LOC (87%) 25 files
*.md992 LOC (8%) 23 files
*.json232 LOC (2%) 6 files
*.txt230 LOC (2%) 18 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 08:57