huggingface / transformers-research-projects
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
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.

main38979 LOC (85%) 158 files
test608 LOC (1%) 9 files
generated0 LOC (0%) 0 files
build and deployment541 LOC (1%) 26 files
other5208 LOC (11%) 81 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 ".*".
  • 158 files match defined criteria (38,979 LOC, 100.0% vs. main code):
    • 155 *.py files (38,311 LOC)
    • 1 *.ipynb files (645 LOC)
    • 1 *.yaml files (16 LOC)
    • 1 *.toml files (7 LOC)
  • " *.py" is biggest, containing 98.29% of LOC.
  • " *.toml" is smallest, containing 0.02% of LOC.


*.py38311 LOC (98%) 155 files
*.ipynb645 LOC (1%) 1 file
*.yaml16 LOC (<1%) 1 file
*.toml7 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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 9 files match defined criteria (608 LOC, 1.6% vs. main code):
    • 7 *.py files (557 LOC)
    • 2 *.sh files (51 LOC)
  • " *.py" is biggest, containing 91.61% of LOC.
  • " *.sh" is smallest, containing 8.39% of LOC.


*.py557 LOC (91%) 7 files
*.sh51 LOC (8%) 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 ".*[.]sh".
  • 26 files match defined criteria (541 LOC, 1.4% vs. main code). All matches are in *.sh files.


*.sh541 LOC (100%) 26 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 ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
  • 81 files match defined criteria (5,208 LOC, 13.4% vs. main code):
    • 42 *.md files (4,262 LOC)
    • 30 *.txt files (615 LOC)
    • 8 *.json files (223 LOC)
    • 1 *.py files (108 LOC)
  • " *.md" is biggest, containing 81.84% of LOC.
  • " *.py" is smallest, containing 2.07% of LOC.


*.md4262 LOC (81%) 42 files
*.txt615 LOC (11%) 30 files
*.json223 LOC (4%) 8 files
*.py108 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:15