netflix / vmaf
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
mat
in
gitattributes
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.

main66402 LOC (76%) 422 files
test18954 LOC (21%) 87 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1802 LOC (2%) 30 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
mat
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 422 files match defined criteria (66,402 LOC, 100.0% vs. main code):
    • 94 *.c files (25,310 LOC)
    • 89 *.py files (25,013 LOC)
    • 133 *.m files (7,411 LOC)
    • 1 *.cpp files (2,677 LOC)
    • 86 *.h files (2,293 LOC)
    • 2 *.asm files (1,756 LOC)
    • 7 *.cu files (1,594 LOC)
    • 2 *.cuh files (205 LOC)
    • 1 *.pyx files (90 LOC)
    • 3 *.in files (41 LOC)
    • 3 *.mat files (10 LOC)
    • 1 *.toml files (2 LOC)
  • " *.c" is biggest, containing 38.12% of LOC.
  • " *.toml" is smallest, containing 0% of LOC.


*.c25310 LOC (38%) 94 files
*.py25013 LOC (37%) 89 files
*.m7411 LOC (11%) 133 files
*.cpp2677 LOC (4%) 1 file
*.h2293 LOC (3%) 86 files
*.asm1756 LOC (2%) 2 files
*.cu1594 LOC (2%) 7 files
*.cuh205 LOC (<1%) 2 files
*.pyx90 LOC (<1%) 1 file
*.in41 LOC (<1%) 3 files
*.mat10 LOC (<1%) 3 files
*.toml2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mat
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 ".*/test[.].*".
  • 87 files match defined criteria (18,954 LOC, 28.5% vs. main code):
    • 62 *.py files (12,311 LOC)
    • 1 *.mat files (3,749 LOC)
    • 22 *.c files (2,846 LOC)
    • 1 *.sh files (28 LOC)
    • 1 *.h files (20 LOC)
  • " *.py" is biggest, containing 64.95% of LOC.
  • " *.h" is smallest, containing 0.11% of LOC.


*.py12311 LOC (64%) 62 files
*.mat3749 LOC (19%) 1 file
*.c2846 LOC (15%) 22 files
*.sh28 LOC (<1%) 1 file
*.h20 LOC (<1%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
  • 30 files match defined criteria (1,802 LOC, 2.7% vs. main code):
    • 24 *.md files (1,672 LOC)
    • 4 *.txt files (76 LOC)
    • 1 *.ini files (43 LOC)
    • 1 *.rst files (11 LOC)
  • " *.md" is biggest, containing 92.79% of LOC.
  • " *.rst" is smallest, containing 0.61% of LOC.


*.md1672 LOC (92%) 24 files
*.txt76 LOC (4%) 4 files
*.ini43 LOC (2%) 1 file
*.rst11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-02 23:43