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

main25236 LOC (18%) 160 files
test22265 LOC (16%) 45 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other88044 LOC (64%) 180 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 ".*".
  • 160 files match defined criteria (25,236 LOC, 100.0% vs. main code):
    • 157 *.py files (25,081 LOC)
    • 1 *.cu files (86 LOC)
    • 1 *.toml files (45 LOC)
    • 1 *.cpp files (24 LOC)
  • " *.py" is biggest, containing 99.39% of LOC.
  • " *.cpp" is smallest, containing 0.1% of LOC.


*.py25081 LOC (99%) 157 files
*.cu86 LOC (<1%) 1 file
*.toml45 LOC (<1%) 1 file
*.cpp24 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/.*".
  • 45 files match defined criteria (22,265 LOC, 88.2% vs. main code). All matches are in *.py files.


*.py22265 LOC (100%) 45 files
Other Code
txt
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 ".*[.]json".
  • 180 files match defined criteria (88,044 LOC, 348.9% vs. main code):
    • 37 *.ipynb files (72,756 LOC)
    • 58 *.py files (12,165 LOC)
    • 19 *.md files (1,467 LOC)
    • 13 *.sh files (746 LOC)
    • 33 *.json files (620 LOC)
    • 14 *.txt files (151 LOC)
    • 6 *.yaml files (139 LOC)
  • " *.ipynb" is biggest, containing 82.64% of LOC.
  • " *.yaml" is smallest, containing 0.16% of LOC.


*.ipynb72756 LOC (82%) 37 files
*.py12165 LOC (13%) 58 files
*.md1467 LOC (1%) 19 files
*.sh746 LOC (<1%) 13 files
*.json620 LOC (<1%) 33 files
*.txt151 LOC (<1%) 14 files
*.yaml139 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:00