huggingface / nanotron
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
ini
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.

main21887 LOC (60%) 115 files
test5273 LOC (14%) 35 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other9046 LOC (24%) 83 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 ".*".
  • 115 files match defined criteria (21,887 LOC, 100.0% vs. main code):
    • 113 *.py files (21,325 LOC)
    • 1 *.cpp files (501 LOC)
    • 1 *.toml files (61 LOC)
  • " *.py" is biggest, containing 97.43% of LOC.
  • " *.toml" is smallest, containing 0.28% of LOC.


*.py21325 LOC (97%) 113 files
*.cpp501 LOC (2%) 1 file
*.toml61 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
  • 35 files match defined criteria (5,273 LOC, 24.1% vs. main code). All matches are in *.py files.


*.py5273 LOC (100%) 35 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
  • 83 files match defined criteria (9,046 LOC, 41.3% vs. main code):
    • 45 *.py files (6,505 LOC)
    • 16 *.yaml files (1,711 LOC)
    • 13 *.md files (682 LOC)
    • 4 *.sh files (135 LOC)
    • 4 *.txt files (9 LOC)
    • 1 *.ini files (4 LOC)
  • " *.py" is biggest, containing 71.91% of LOC.
  • " *.ini" is smallest, containing 0.04% of LOC.


*.py6505 LOC (71%) 45 files
*.yaml1711 LOC (18%) 16 files
*.md682 LOC (7%) 13 files
*.sh135 LOC (1%) 4 files
*.txt9 LOC (<1%) 4 files
*.ini4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:03