google-gemini / api-examples
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
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.

main5881 LOC (72%) 50 files
test1318 LOC (16%) 36 files
generated370 LOC (4%) 1 file
build and deployment27 LOC (<1%) 1 file
other505 LOC (6%) 9 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 ".*".
  • 50 files match defined criteria (5,881 LOC, 100.0% vs. main code):
    • 14 *.go files (2,603 LOC)
    • 13 *.js files (1,536 LOC)
    • 14 *.py files (1,088 LOC)
    • 9 *.java files (654 LOC)
  • " *.go" is biggest, containing 44.26% of LOC.
  • " *.java" is smallest, containing 11.12% of LOC.


*.go2603 LOC (44%) 14 files
*.js1536 LOC (26%) 13 files
*.py1088 LOC (18%) 14 files
*.java654 LOC (11%) 9 files
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]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 36 files match defined criteria (1,318 LOC, 22.4% vs. main code):
    • 15 *.go files (625 LOC)
    • 13 *.js files (438 LOC)
    • 8 *.java files (255 LOC)
  • " *.go" is biggest, containing 47.42% of LOC.
  • " *.java" is smallest, containing 19.35% of LOC.


*.go625 LOC (47%) 15 files
*.js438 LOC (33%) 13 files
*.java255 LOC (19%) 8 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 (370 LOC, 6.3% vs. main code). All matches are in *.json files.


*.json370 LOC (100%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (27 LOC, 0.5% vs. main code). All matches are in *.xml files.


*.xml27 LOC (100%) 1 file
Other Code
mod
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 ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 9 files match defined criteria (505 LOC, 8.6% vs. main code):
    • 2 *.json files (389 LOC)
    • 6 *.md files (94 LOC)
    • 1 *.mod files (22 LOC)
  • " *.json" is biggest, containing 77.03% of LOC.
  • " *.mod" is smallest, containing 4.36% of LOC.


*.json389 LOC (77%) 2 files
*.md94 LOC (18%) 6 files
*.mod22 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 08:43