huggingface / huggingface_hub
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
in
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.

main18552 LOC (42%) 124 files
test20641 LOC (47%) 77 files
generated2472 LOC (5%) 35 files
build and deployment0 LOC (0%) 0 files
other1568 LOC (3%) 26 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 124 files match defined criteria (18,552 LOC, 100.0% vs. main code):
    • 122 *.py files (18,500 LOC)
    • 1 *.toml files (49 LOC)
    • 1 *.in files (3 LOC)
  • " *.py" is biggest, containing 99.72% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.py18500 LOC (99%) 122 files
*.toml49 LOC (<1%) 1 file
*.in3 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_.*".
  • 77 files match defined criteria (20,641 LOC, 111.3% vs. main code):
    • 72 *.py files (17,786 LOC)
    • 5 *.yaml files (2,855 LOC)
  • " *.py" is biggest, containing 86.17% of LOC.
  • " *.yaml" is smallest, containing 13.83% of LOC.


*.py17786 LOC (86%) 72 files
*.yaml2855 LOC (13%) 5 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/_generated/.*".
  • 35 files match defined criteria (2,472 LOC, 13.3% vs. main code). All matches are in *.py files.


*.py2472 LOC (100%) 35 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".
  • 26 files match defined criteria (1,568 LOC, 8.5% vs. main code):
    • 22 *.md files (1,562 LOC)
    • 4 *.txt files (6 LOC)
  • " *.md" is biggest, containing 99.62% of LOC.
  • " *.txt" is smallest, containing 0.38% of LOC.


*.md1562 LOC (99%) 22 files
*.txt6 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 08:57