openai / jukebox
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
proto
txt
in
patch
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.

main17309 LOC (40%) 144 files
test4015 LOC (9%) 56 files
generated1900 LOC (4%) 18 files
build and deployment30 LOC (<1%) 1 file
other19945 LOC (46%) 92 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 144 files match defined criteria (17,309 LOC, 100.0% vs. main code):
    • 108 *.py files (11,951 LOC)
    • 8 *.cu files (2,657 LOC)
    • 17 *.proto files (1,159 LOC)
    • 1 *.ipynb files (961 LOC)
    • 5 *.cpp files (361 LOC)
    • 1 *.cuh files (106 LOC)
    • 1 *.h files (101 LOC)
    • 2 *.in files (9 LOC)
    • 1 *.cfg files (4 LOC)
  • " *.py" is biggest, containing 69.05% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.py11951 LOC (69%) 108 files
*.cu2657 LOC (15%) 8 files
*.proto1159 LOC (6%) 17 files
*.ipynb961 LOC (5%) 1 file
*.cpp361 LOC (2%) 5 files
*.cuh106 LOC (<1%) 1 file
*.h101 LOC (<1%) 1 file
*.in9 LOC (<1%) 2 files
*.cfg4 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[.].*".
  • 56 files match defined criteria (4,015 LOC, 23.2% vs. main code):
    • 49 *.py files (3,828 LOC)
    • 7 *.sh files (187 LOC)
  • " *.py" is biggest, containing 95.34% of LOC.
  • " *.sh" is smallest, containing 4.66% of LOC.


*.py3828 LOC (95%) 49 files
*.sh187 LOC (4%) 7 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 ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 18 files match defined criteria (1,900 LOC, 11.0% vs. main code). All matches are in *.py files.


*.py1900 LOC (100%) 18 files
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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (30 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh30 LOC (100%) 1 file
Other Code
txt
proto
patch
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 92 files match defined criteria (19,945 LOC, 115.2% vs. main code):
    • 5 *.txt files (12,740 LOC)
    • 53 *.py files (5,178 LOC)
    • 17 *.proto files (1,159 LOC)
    • 13 *.md files (680 LOC)
    • 2 *.patch files (101 LOC)
    • 1 *.rst files (86 LOC)
    • 1 *.sh files (1 LOC)
  • " *.txt" is biggest, containing 63.88% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.txt12740 LOC (63%) 5 files
*.py5178 LOC (25%) 53 files
*.proto1159 LOC (5%) 17 files
*.md680 LOC (3%) 13 files
*.patch101 LOC (<1%) 2 files
*.rst86 LOC (<1%) 1 file
*.sh1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:09