apache / tvm
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
pxi
mk
storyboard
ini
properties
clang-format
gitmodules
eslintignore
gitattributes
plist
s
mjs
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.

main329888 LOC (57%) 2,255 files
test212599 LOC (36%) 744 files
generated13008 LOC (2%) 9 files
build and deployment3634 LOC (<1%) 104 files
other16756 LOC (2%) 77 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pxi
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2255 files match defined criteria (329,888 LOC, 100.0% vs. main code):
    • 673 *.cc files (166,951 LOC)
    • 884 *.py files (87,569 LOC)
    • 496 *.h files (53,827 LOC)
    • 12 *.ts files (3,983 LOC)
    • 54 *.cmake files (3,855 LOC)
    • 24 *.rs files (3,701 LOC)
    • 10 *.cu files (2,188 LOC)
    • 36 *.java files (2,116 LOC)
    • 10 *.mm files (1,890 LOC)
    • 17 *.go files (1,300 LOC)
    • 8 *.pxi files (960 LOC)
    • 4 *.cuh files (569 LOC)
    • 8 *.xml files (355 LOC)
    • 6 *.toml files (297 LOC)
    • 2 *.html files (112 LOC)
    • 3 *.yaml files (92 LOC)
    • 4 *.js files (45 LOC)
    • 1 *.mjs files (43 LOC)
    • 2 *.m files (27 LOC)
    • 1 *.pyx files (8 LOC)
  • " *.cc" is biggest, containing 50.61% of LOC.
  • " *.pyx" is smallest, containing 0% of LOC.


*.cc166951 LOC (50%) 673 files
*.py87569 LOC (26%) 884 files
*.h53827 LOC (16%) 496 files
*.ts3983 LOC (1%) 12 files
*.cmake3855 LOC (1%) 54 files
*.rs3701 LOC (1%) 24 files
*.cu2188 LOC (<1%) 10 files
*.java2116 LOC (<1%) 36 files
*.mm1890 LOC (<1%) 10 files
*.go1300 LOC (<1%) 17 files
*.pxi960 LOC (<1%) 8 files
*.cuh569 LOC (<1%) 4 files
*.xml355 LOC (<1%) 8 files
*.toml297 LOC (<1%) 6 files
*.html112 LOC (<1%) 2 files
*.yaml92 LOC (<1%) 3 files
*.js45 LOC (<1%) 4 files
*.mjs43 LOC (<1%) 1 file
*.m27 LOC (<1%) 2 files
*.pyx8 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]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 744 files match defined criteria (212,599 LOC, 64.4% vs. main code):
    • 610 *.py files (202,529 LOC)
    • 58 *.cc files (7,048 LOC)
    • 55 *.sh files (1,161 LOC)
    • 7 *.go files (1,056 LOC)
    • 7 *.js files (328 LOC)
    • 5 *.java files (322 LOC)
    • 2 *.h files (155 LOC)
  • " *.py" is biggest, containing 95.26% of LOC.
  • " *.h" is smallest, containing 0.07% of LOC.


*.py202529 LOC (95%) 610 files
*.cc7048 LOC (3%) 58 files
*.sh1161 LOC (<1%) 55 files
*.go1056 LOC (<1%) 7 files
*.js328 LOC (<1%) 7 files
*.java322 LOC (<1%) 5 files
*.h155 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with paths like ".*/package[-]lock[.]json".
  • 9 files match defined criteria (13,008 LOC, 3.9% vs. main code):
    • 1 *.json files (8,984 LOC)
    • 8 *.groovy files (4,024 LOC)
  • " *.json" is biggest, containing 69.07% of LOC.
  • " *.groovy" is smallest, containing 30.93% of LOC.


*.json8984 LOC (69%) 1 file
*.groovy4024 LOC (30%) 8 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/jenkins/.*[.]groovy".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
  • 104 files match defined criteria (3,634 LOC, 1.1% vs. main code):
    • 82 *.sh files (2,208 LOC)
    • 11 *.xml files (859 LOC)
    • 1 *.groovy files (239 LOC)
    • 3 *.mk files (138 LOC)
    • 3 *.gradle files (97 LOC)
    • 4 *.bat files (93 LOC)
  • " *.sh" is biggest, containing 60.76% of LOC.
  • " *.bat" is smallest, containing 2.56% of LOC.


*.sh2208 LOC (60%) 82 files
*.xml859 LOC (23%) 11 files
*.groovy239 LOC (6%) 1 file
*.mk138 LOC (3%) 3 files
*.gradle97 LOC (2%) 3 files
*.bat93 LOC (2%) 4 files
Other Code
txt
storyboard
ini
plist
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]eslintignore".
  • 77 files match defined criteria (16,756 LOC, 5.1% vs. main code):
    • 8 *.json files (9,169 LOC)
    • 34 *.txt files (4,004 LOC)
    • 28 *.md files (3,309 LOC)
    • 2 *.storyboard files (135 LOC)
    • 2 *.ini files (54 LOC)
    • 1 *.plist files (45 LOC)
    • 2 *.properties files (40 LOC)
  • " *.json" is biggest, containing 54.72% of LOC.
  • " *.properties" is smallest, containing 0.24% of LOC.


*.json9169 LOC (54%) 8 files
*.txt4004 LOC (23%) 34 files
*.md3309 LOC (19%) 28 files
*.storyboard135 LOC (<1%) 2 files
*.ini54 LOC (<1%) 2 files
*.plist45 LOC (<1%) 1 file
*.properties40 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:05