huggingface / ratchet
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
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.

main18052 LOC (78%) 145 files
test345 LOC (1%) 2 files
generated0 LOC (0%) 0 files
build and deployment1445 LOC (6%) 2 files
other3074 LOC (13%) 51 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 145 files match defined criteria (18,052 LOC, 100.0% vs. main code):
    • 133 *.rs files (17,588 LOC)
    • 10 *.toml files (422 LOC)
    • 2 *.py files (42 LOC)
  • " *.rs" is biggest, containing 97.43% of LOC.
  • " *.py" is smallest, containing 0.23% of LOC.


*.rs17588 LOC (97%) 133 files
*.toml422 LOC (2%) 10 files
*.py42 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]ests/.*".
    • files with paths like ".*_tests[.].*".
  • 2 files match defined criteria (345 LOC, 1.9% vs. main code). All matches are in *.rs files.


*.rs345 LOC (100%) 2 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 2 files match defined criteria (1,445 LOC, 8.0% vs. main code). All matches are in *.yaml files.


*.yaml1445 LOC (100%) 2 files
Other Code
txt
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
  • 51 files match defined criteria (3,074 LOC, 17.0% vs. main code):
    • 6 *.css files (1,127 LOC)
    • 15 *.tsx files (1,059 LOC)
    • 7 *.md files (271 LOC)
    • 6 *.js files (269 LOC)
    • 11 *.json files (237 LOC)
    • 1 *.ts files (74 LOC)
    • 1 *.html files (17 LOC)
    • 2 *.txt files (10 LOC)
    • 2 *.mjs files (10 LOC)
  • " *.css" is biggest, containing 36.66% of LOC.
  • " *.mjs" is smallest, containing 0.33% of LOC.


*.css1127 LOC (36%) 6 files
*.tsx1059 LOC (34%) 15 files
*.md271 LOC (8%) 7 files
*.js269 LOC (8%) 6 files
*.json237 LOC (7%) 11 files
*.ts74 LOC (2%) 1 file
*.html17 LOC (<1%) 1 file
*.txt10 LOC (<1%) 2 files
*.mjs10 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:06