huggingface / smollm
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
patch
jsonl
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.

main79181 LOC (90%) 472 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment1044 LOC (1%) 23 files
other7269 LOC (8%) 58 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 ".*".
  • 472 files match defined criteria (79,181 LOC, 100.0% vs. main code):
    • 425 *.py files (66,529 LOC)
    • 41 *.yaml files (8,698 LOC)
    • 2 *.ipynb files (3,555 LOC)
    • 2 *.html files (344 LOC)
    • 1 *.toml files (43 LOC)
    • 1 *.js files (12 LOC)
  • " *.py" is biggest, containing 84.02% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.py66529 LOC (84%) 425 files
*.yaml8698 LOC (10%) 41 files
*.ipynb3555 LOC (4%) 2 files
*.html344 LOC (<1%) 2 files
*.toml43 LOC (<1%) 1 file
*.js12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 23 files match defined criteria (1,044 LOC, 1.3% vs. main code). All matches are in *.sh files.


*.sh1044 LOC (100%) 23 files
Other Code
txt
patch
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 ".*[.]patch".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 58 files match defined criteria (7,269 LOC, 9.2% vs. main code):
    • 7 *.txt files (5,546 LOC)
    • 39 *.md files (1,347 LOC)
    • 10 *.json files (287 LOC)
    • 2 *.patch files (89 LOC)
  • " *.txt" is biggest, containing 76.3% of LOC.
  • " *.patch" is smallest, containing 1.22% of LOC.


*.txt5546 LOC (76%) 7 files
*.md1347 LOC (18%) 39 files
*.json287 LOC (3%) 10 files
*.patch89 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:11