google-gemini / gemma-cookbook
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
properties
pro
mod
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.

main37612 LOC (74%) 48 files
test0 LOC (0%) 0 files
generated2316 LOC (4%) 1 file
build and deployment0 LOC (0%) 0 files
other10373 LOC (20%) 180 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 48 files match defined criteria (37,612 LOC, 100.0% vs. main code). All matches are in *.ipynb files.


*.ipynb37612 LOC (100%) 48 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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,316 LOC, 6.2% vs. main code). All matches are in *.json files.


*.json2316 LOC (100%) 1 file
Other Code
txt
properties
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 180 files match defined criteria (10,373 LOC, 27.6% vs. main code):
    • 12 *.json files (2,567 LOC)
    • 27 *.kt files (1,497 LOC)
    • 1 *.ipynb files (1,070 LOC)
    • 4 *.go files (902 LOC)
    • 21 *.md files (839 LOC)
    • 34 *.py files (724 LOC)
    • 21 *.xml files (552 LOC)
    • 11 *.txt files (523 LOC)
    • 3 *.css files (494 LOC)
    • 4 *.js files (300 LOC)
    • 7 *.ts files (189 LOC)
    • 3 *.html files (188 LOC)
    • 6 *.kts files (177 LOC)
    • 2 *.bat files (136 LOC)
    • 20 *.sh files (86 LOC)
    • 1 *.yaml files (63 LOC)
    • 2 *.properties files (46 LOC)
    • 1 *.mod files (20 LOC)
  • " *.json" is biggest, containing 24.75% of LOC.
  • " *.mod" is smallest, containing 0.19% of LOC.


*.json2567 LOC (24%) 12 files
*.kt1497 LOC (14%) 27 files
*.ipynb1070 LOC (10%) 1 file
*.go902 LOC (8%) 4 files
*.md839 LOC (8%) 21 files
*.py724 LOC (6%) 34 files
*.xml552 LOC (5%) 21 files
*.txt523 LOC (5%) 11 files
*.css494 LOC (4%) 3 files
*.js300 LOC (2%) 4 files
*.ts189 LOC (1%) 7 files
*.html188 LOC (1%) 3 files
*.kts177 LOC (1%) 6 files
*.bat136 LOC (1%) 2 files
*.sh86 LOC (<1%) 20 files
*.yaml63 LOC (<1%) 1 file
*.properties46 LOC (<1%) 2 files
*.mod20 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 08:43