huggingface / candle
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
metal
pyi
pt
org
txt
cfg
gitmodules
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.

main126550 LOC (74%) 481 files
test13231 LOC (7%) 43 files
generated0 LOC (0%) 0 files
build and deployment19 LOC (<1%) 9 files
other29706 LOC (17%) 287 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
metal
pyi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 481 files match defined criteria (126,550 LOC, 100.0% vs. main code):
    • 327 *.rs files (98,980 LOC)
    • 16 *.metal files (10,612 LOC)
    • 44 *.cu files (5,922 LOC)
    • 12 *.html files (3,660 LOC)
    • 17 *.h files (2,710 LOC)
    • 18 *.py files (1,591 LOC)
    • 14 *.js files (1,473 LOC)
    • 24 *.toml files (861 LOC)
    • 4 *.cuh files (437 LOC)
    • 5 *.pyi files (304 LOC)
  • " *.rs" is biggest, containing 78.21% of LOC.
  • " *.pyi" is smallest, containing 0.24% of LOC.


*.rs98980 LOC (78%) 327 files
*.metal10612 LOC (8%) 16 files
*.cu5922 LOC (4%) 44 files
*.html3660 LOC (2%) 12 files
*.h2710 LOC (2%) 17 files
*.py1591 LOC (1%) 18 files
*.js1473 LOC (1%) 14 files
*.toml861 LOC (<1%) 24 files
*.cuh437 LOC (<1%) 4 files
*.pyi304 LOC (<1%) 5 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 43 files match defined criteria (13,231 LOC, 10.5% vs. main code):
    • 29 *.rs files (12,646 LOC)
    • 11 *.py files (550 LOC)
    • 2 *.pt files (22 LOC)
    • 1 *.toml files (13 LOC)
  • " *.rs" is biggest, containing 95.58% of LOC.
  • " *.toml" is smallest, containing 0.1% of LOC.


*.rs12646 LOC (95%) 29 files
*.py550 LOC (4%) 11 files
*.pt22 LOC (<1%) 2 files
*.toml13 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 ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 9 files match defined criteria (19 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh19 LOC (100%) 9 files
Other Code
cfg
org
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 287 files match defined criteria (29,706 LOC, 23.5% vs. main code):
    • 130 *.rs files (24,329 LOC)
    • 143 *.md files (3,459 LOC)
    • 2 *.json files (767 LOC)
    • 1 *.cfg files (648 LOC)
    • 6 *.py files (292 LOC)
    • 2 *.org files (118 LOC)
    • 1 *.cuh files (40 LOC)
    • 1 *.cu files (31 LOC)
    • 1 *.txt files (22 LOC)
  • " *.rs" is biggest, containing 81.9% of LOC.
  • " *.txt" is smallest, containing 0.07% of LOC.


*.rs24329 LOC (81%) 130 files
*.md3459 LOC (11%) 143 files
*.json767 LOC (2%) 2 files
*.cfg648 LOC (2%) 1 file
*.py292 LOC (<1%) 6 files
*.org118 LOC (<1%) 2 files
*.cuh40 LOC (<1%) 1 file
*.cu31 LOC (<1%) 1 file
*.txt22 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 09:03