huggingface / text-embeddings-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
snap
txt
proto
gitattributes
nix
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.

main20075 LOC (14%) 96 files
test122285 LOC (85%) 96 files
generated0 LOC (0%) 0 files
build and deployment99 LOC (<1%) 3 files
other773 LOC (<1%) 8 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
nix
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 96 files match defined criteria (20,075 LOC, 100.0% vs. main code):
    • 60 *.rs files (16,848 LOC)
    • 20 *.py files (2,616 LOC)
    • 13 *.toml files (366 LOC)
    • 2 *.proto files (203 LOC)
    • 1 *.nix files (42 LOC)
  • " *.rs" is biggest, containing 83.93% of LOC.
  • " *.nix" is smallest, containing 0.21% of LOC.


*.rs16848 LOC (83%) 60 files
*.py2616 LOC (13%) 20 files
*.toml366 LOC (1%) 13 files
*.proto203 LOC (1%) 2 files
*.nix42 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
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 ".*[.]snap".
    • files with paths like ".*/test[.].*".
  • 96 files match defined criteria (122,285 LOC, 609.1% vs. main code):
    • 75 *.snap files (120,578 LOC)
    • 21 *.rs files (1,707 LOC)
  • " *.snap" is biggest, containing 98.6% of LOC.
  • " *.rs" is smallest, containing 1.4% of LOC.


*.snap120578 LOC (98%) 75 files
*.rs1707 LOC (1%) 21 files
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".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (99 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh99 LOC (100%) 3 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 ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
  • 8 files match defined criteria (773 LOC, 3.9% vs. main code):
    • 5 *.md files (600 LOC)
    • 3 *.txt files (173 LOC)
  • " *.md" is biggest, containing 77.62% of LOC.
  • " *.txt" is smallest, containing 22.38% of LOC.


*.md600 LOC (77%) 5 files
*.txt173 LOC (22%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:04