aliyun / ns-3-alibabacloud
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
click
eps
in
gnuplot
gp
plt
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.

main653807 LOC (74%) 2,224 files
test101110 LOC (11%) 462 files
generated12352 LOC (1%) 7 files
build and deployment536 LOC (<1%) 4 files
other112309 LOC (12%) 646 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2224 files match defined criteria (653,807 LOC, 100.0% vs. main code):
    • 987 *.cc files (305,436 LOC)
    • 149 *.py files (263,691 LOC)
    • 1,064 *.h files (79,654 LOC)
    • 8 *.cmake files (3,118 LOC)
    • 1 *.c files (614 LOC)
    • 2 *.hpp files (462 LOC)
    • 1 *.css files (165 LOC)
    • 2 *.cpp files (164 LOC)
    • 4 *.in files (154 LOC)
    • 2 *.html files (133 LOC)
    • 3 *.js files (124 LOC)
    • 1 *.m files (92 LOC)
  • " *.cc" is biggest, containing 46.72% of LOC.
  • " *.m" is smallest, containing 0.01% of LOC.


*.cc305436 LOC (46%) 987 files
*.py263691 LOC (40%) 149 files
*.h79654 LOC (12%) 1,064 files
*.cmake3118 LOC (<1%) 8 files
*.c614 LOC (<1%) 1 file
*.hpp462 LOC (<1%) 2 files
*.css165 LOC (<1%) 1 file
*.cpp164 LOC (<1%) 2 files
*.in154 LOC (<1%) 4 files
*.html133 LOC (<1%) 2 files
*.js124 LOC (<1%) 3 files
*.m92 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
gp
click
plt
gnuplot
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 ".*/test[.].*".
    • files with paths like ".*[-]tests[-].*".
  • 462 files match defined criteria (101,110 LOC, 15.5% vs. main code):
    • 327 *.cc files (94,615 LOC)
    • 64 *.h files (3,313 LOC)
    • 34 *.py files (1,687 LOC)
    • 29 *.m files (960 LOC)
    • 1 *.c files (191 LOC)
    • 1 *.gp files (104 LOC)
    • 3 *.pl files (97 LOC)
    • 1 *.click files (87 LOC)
    • 1 *.plt files (47 LOC)
    • 1 *.gnuplot files (9 LOC)
  • " *.cc" is biggest, containing 93.58% of LOC.
  • " *.gnuplot" is smallest, containing 0.01% of LOC.


*.cc94615 LOC (93%) 327 files
*.h3313 LOC (3%) 64 files
*.py1687 LOC (1%) 34 files
*.m960 LOC (<1%) 29 files
*.c191 LOC (<1%) 1 file
*.gp104 LOC (<1%) 1 file
*.pl97 LOC (<1%) 3 files
*.click87 LOC (<1%) 1 file
*.plt47 LOC (<1%) 1 file
*.gnuplot9 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
eps
click
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](ps|eps|pfa)".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 7 files match defined criteria (12,352 LOC, 1.9% vs. main code):
    • 5 *.eps files (12,172 LOC)
    • 1 *.html files (108 LOC)
    • 1 *.click files (72 LOC)
  • " *.eps" is biggest, containing 98.54% of LOC.
  • " *.click" is smallest, containing 0.58% of LOC.


*.eps12172 LOC (98%) 5 files
*.html108 LOC (<1%) 1 file
*.click72 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".
  • 4 files match defined criteria (536 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh536 LOC (100%) 4 files
Other Code
txt
click
gnuplot
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]svg".
  • 646 files match defined criteria (112,309 LOC, 17.2% vs. main code):
    • 290 *.cc files (45,956 LOC)
    • 155 *.rst files (39,959 LOC)
    • 139 *.txt files (19,376 LOC)
    • 5 *.md files (3,673 LOC)
    • 28 *.py files (1,227 LOC)
    • 4 *.m files (639 LOC)
    • 7 *.click files (544 LOC)
    • 2 *.svg files (349 LOC)
    • 9 *.sh files (339 LOC)
    • 6 *.h files (237 LOC)
    • 1 *.gnuplot files (10 LOC)
  • " *.cc" is biggest, containing 40.92% of LOC.
  • " *.gnuplot" is smallest, containing 0.01% of LOC.


*.cc45956 LOC (40%) 290 files
*.rst39959 LOC (35%) 155 files
*.txt19376 LOC (17%) 139 files
*.md3673 LOC (3%) 5 files
*.py1227 LOC (1%) 28 files
*.m639 LOC (<1%) 4 files
*.click544 LOC (<1%) 7 files
*.svg349 LOC (<1%) 2 files
*.sh339 LOC (<1%) 9 files
*.h237 LOC (<1%) 6 files
*.gnuplot10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:29