google-gemini / deprecated-generative-ai-android
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
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.

main4172 LOC (49%) 100 files
test1179 LOC (14%) 8 files
generated0 LOC (0%) 0 files
build and deployment178 LOC (2%) 6 files
other2833 LOC (33%) 68 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 100 files match defined criteria (4,172 LOC, 100.0% vs. main code):
    • 80 *.kt files (3,530 LOC)
    • 9 *.kts files (370 LOC)
    • 9 *.xml files (252 LOC)
    • 2 *.pro files (20 LOC)
  • " *.kt" is biggest, containing 84.61% of LOC.
  • " *.pro" is smallest, containing 0.48% of LOC.


*.kt3530 LOC (84%) 80 files
*.kts370 LOC (8%) 9 files
*.xml252 LOC (6%) 9 files
*.pro20 LOC (<1%) 2 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 ".*/src/androidTest/.*".
  • 8 files match defined criteria (1,179 LOC, 28.3% vs. main code). All matches are in *.kt files.


*.kt1179 LOC (100%) 8 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 6 files match defined criteria (178 LOC, 4.3% vs. main code):
    • 2 *.bat files (138 LOC)
    • 3 *.xml files (31 LOC)
    • 1 *.sh files (9 LOC)
  • " *.bat" is biggest, containing 77.53% of LOC.
  • " *.sh" is smallest, containing 5.06% of LOC.


*.bat138 LOC (77%) 2 files
*.xml31 LOC (17%) 3 files
*.sh9 LOC (5%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 68 files match defined criteria (2,833 LOC, 67.9% vs. main code):
    • 25 *.json files (942 LOC)
    • 11 *.java files (918 LOC)
    • 9 *.kt files (391 LOC)
    • 12 *.txt files (324 LOC)
    • 7 *.md files (218 LOC)
    • 4 *.properties files (40 LOC)
  • " *.json" is biggest, containing 33.25% of LOC.
  • " *.properties" is smallest, containing 1.41% of LOC.


*.json942 LOC (33%) 25 files
*.java918 LOC (32%) 11 files
*.kt391 LOC (13%) 9 files
*.txt324 LOC (11%) 12 files
*.md218 LOC (7%) 7 files
*.properties40 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 08:42