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

main2614 LOC (22%) 35 files
test4737 LOC (41%) 24 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other4172 LOC (36%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 35 files match defined criteria (2,614 LOC, 100.0% vs. main code):
    • 34 *.ts files (2,527 LOC)
    • 1 *.mjs files (87 LOC)
  • " *.ts" is biggest, containing 96.67% of LOC.
  • " *.mjs" is smallest, containing 3.33% of LOC.


*.ts2527 LOC (96%) 34 files
*.mjs87 LOC (3%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[-]test[-].*".
  • 24 files match defined criteria (4,737 LOC, 181.2% vs. main code):
    • 23 *.ts files (4,717 LOC)
    • 1 *.mjs files (20 LOC)
  • " *.ts" is biggest, containing 99.58% of LOC.
  • " *.mjs" is smallest, containing 0.42% of LOC.


*.ts4717 LOC (99%) 23 files
*.mjs20 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 53 files match defined criteria (4,172 LOC, 159.6% vs. main code):
    • 20 *.js files (1,600 LOC)
    • 6 *.md files (1,525 LOC)
    • 15 *.json files (794 LOC)
    • 2 *.html files (137 LOC)
    • 1 *.css files (87 LOC)
    • 8 *.txt files (28 LOC)
    • 1 *.svg files (1 LOC)
  • " *.js" is biggest, containing 38.35% of LOC.
  • " *.svg" is smallest, containing 0.02% of LOC.


*.js1600 LOC (38%) 20 files
*.md1525 LOC (36%) 6 files
*.json794 LOC (19%) 15 files
*.html137 LOC (3%) 2 files
*.css87 LOC (2%) 1 file
*.txt28 LOC (<1%) 8 files
*.svg1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-06-30 08:42