huggingface / text-generation-inference
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
nix
ini
proto
mdx
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.

main98155 LOC (64%) 409 files
test9628 LOC (6%) 108 files
generated0 LOC (0%) 0 files
build and deployment304 LOC (<1%) 7 files
other44972 LOC (29%) 230 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
nix
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 409 files match defined criteria (98,155 LOC, 100.0% vs. main code):
    • 274 *.py files (74,354 LOC)
    • 63 *.rs files (17,278 LOC)
    • 22 *.cuh files (2,229 LOC)
    • 9 *.cu files (1,677 LOC)
    • 17 *.toml files (646 LOC)
    • 8 *.nix files (615 LOC)
    • 2 *.proto files (466 LOC)
    • 3 *.cpp files (372 LOC)
    • 3 *.hpp files (327 LOC)
    • 2 *.js files (100 LOC)
    • 3 *.cmake files (61 LOC)
    • 3 *.h files (30 LOC)
  • " *.py" is biggest, containing 75.75% of LOC.
  • " *.h" is smallest, containing 0.03% of LOC.


*.py74354 LOC (75%) 274 files
*.rs17278 LOC (17%) 63 files
*.cuh2229 LOC (2%) 22 files
*.cu1677 LOC (1%) 9 files
*.toml646 LOC (<1%) 17 files
*.nix615 LOC (<1%) 8 files
*.proto466 LOC (<1%) 2 files
*.cpp372 LOC (<1%) 3 files
*.hpp327 LOC (<1%) 3 files
*.js100 LOC (<1%) 2 files
*.cmake61 LOC (<1%) 3 files
*.h30 LOC (<1%) 3 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 ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
  • 108 files match defined criteria (9,628 LOC, 9.8% vs. main code):
    • 105 *.py files (9,433 LOC)
    • 2 *.cpp files (175 LOC)
    • 1 *.toml files (20 LOC)
  • " *.py" is biggest, containing 97.97% of LOC.
  • " *.toml" is smallest, containing 0.21% of LOC.


*.py9433 LOC (97%) 105 files
*.cpp175 LOC (1%) 2 files
*.toml20 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 (304 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh304 LOC (100%) 7 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]dockerignore".
  • 230 files match defined criteria (44,972 LOC, 45.8% vs. main code):
    • 204 *.json files (41,866 LOC)
    • 11 *.txt files (1,894 LOC)
    • 13 *.md files (1,205 LOC)
    • 2 *.ini files (7 LOC)
  • " *.json" is biggest, containing 93.09% of LOC.
  • " *.ini" is smallest, containing 0.02% of LOC.


*.json41866 LOC (93%) 204 files
*.txt1894 LOC (4%) 11 files
*.md1205 LOC (2%) 13 files
*.ini7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:00