GoogleCloudPlatform / bigquery-ml-utils
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
pb
proto
tpl
in
patch
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.

main32474 LOC (49%) 123 files
test3601 LOC (5%) 63 files
generated0 LOC (0%) 0 files
build and deployment96 LOC (<1%) 2 files
other29252 LOC (44%) 82 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 123 files match defined criteria (32,474 LOC, 100.0% vs. main code):
    • 35 *.cc files (13,181 LOC)
    • 50 *.h files (9,302 LOC)
    • 3 *.ipynb files (6,715 LOC)
    • 10 *.proto files (1,519 LOC)
    • 16 *.py files (1,155 LOC)
    • 5 *.sql files (358 LOC)
    • 1 *.bzl files (195 LOC)
    • 2 *.tpl files (48 LOC)
    • 1 *.in files (1 LOC)
  • " *.cc" is biggest, containing 40.59% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.cc13181 LOC (40%) 35 files
*.h9302 LOC (28%) 50 files
*.ipynb6715 LOC (20%) 3 files
*.proto1519 LOC (4%) 10 files
*.py1155 LOC (3%) 16 files
*.sql358 LOC (1%) 5 files
*.bzl195 LOC (<1%) 1 file
*.tpl48 LOC (<1%) 2 files
*.in1 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[.].*".
  • 63 files match defined criteria (3,601 LOC, 11.1% vs. main code). All matches are in *.py files.


*.py3601 LOC (100%) 63 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".
  • 2 files match defined criteria (96 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh96 LOC (100%) 2 files
Other Code
pb
txt
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 ".*[.]patch".
    • files with paths like ".*[.]pb".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 82 files match defined criteria (29,252 LOC, 90.1% vs. main code):
    • 16 *.pb files (28,382 LOC)
    • 4 *.md files (413 LOC)
    • 12 *.json files (249 LOC)
    • 49 *.txt files (192 LOC)
    • 1 *.patch files (16 LOC)
  • " *.pb" is biggest, containing 97.03% of LOC.
  • " *.patch" is smallest, containing 0.05% of LOC.


*.pb28382 LOC (97%) 16 files
*.md413 LOC (1%) 4 files
*.json249 LOC (<1%) 12 files
*.txt192 LOC (<1%) 49 files
*.patch16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:52