spotify / spotify-tensorflow
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
pb
txt
properties
in
ini
cfg
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.

main1150 LOC (42%) 20 files
test1052 LOC (38%) 19 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other497 LOC (18%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 20 files match defined criteria (1,150 LOC, 100.0% vs. main code):
    • 17 *.py files (1,067 LOC)
    • 1 *.cfg files (62 LOC)
    • 1 *.in files (13 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.py" is biggest, containing 92.78% of LOC.
  • " *.yaml" is smallest, containing 0.7% of LOC.


*.py1067 LOC (92%) 17 files
*.cfg62 LOC (5%) 1 file
*.in13 LOC (1%) 1 file
*.yaml8 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]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
  • 19 files match defined criteria (1,052 LOC, 91.5% vs. main code):
    • 14 *.py files (813 LOC)
    • 1 *.xml files (92 LOC)
    • 2 *.scala files (87 LOC)
    • 2 *.sbt files (60 LOC)
  • " *.py" is biggest, containing 77.28% of LOC.
  • " *.sbt" is smallest, containing 5.7% of LOC.


*.py813 LOC (77%) 14 files
*.xml92 LOC (8%) 1 file
*.scala87 LOC (8%) 2 files
*.sbt60 LOC (5%) 2 files
Other Code
pb
ini
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]pb".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
  • 25 files match defined criteria (497 LOC, 43.2% vs. main code):
    • 8 *.py files (241 LOC)
    • 8 *.pb files (105 LOC)
    • 3 *.md files (75 LOC)
    • 1 *.ini files (51 LOC)
    • 2 *.txt files (16 LOC)
    • 2 *.properties files (8 LOC)
    • 1 *.json files (1 LOC)
  • " *.py" is biggest, containing 48.49% of LOC.
  • " *.json" is smallest, containing 0.2% of LOC.


*.py241 LOC (48%) 8 files
*.pb105 LOC (21%) 8 files
*.md75 LOC (15%) 3 files
*.ini51 LOC (10%) 1 file
*.txt16 LOC (3%) 2 files
*.properties8 LOC (1%) 2 files
*.json1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:38