Repository Analysis

GoogleCloudPlatform/generative-ai

Sample code and notebooks for Generative AI on Google Cloud, with Gemini Enterprise Agent Platform

6.1 Low AI signal View on GitHub
6.1
Adjusted Score
6.1
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,955
Stars
Jupyter Notebook
Language
412,860
Lines of Code
1620
Files
1275
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 211MEDIUM 195LOW 865

Pattern Findings

1275 matches across 17 categories. Click a row to expand file-level details.

Cross-File Repetition171 hits · 855 pts
SeverityFileLineSnippet
HIGH…ebsocket-demo-apps/gaming-assistant-demo-app/server.py0websocket proxy server for gemini live api handles authentication and proxies websocket connections. this server acts as
HIGH…ebsocket-demo-apps/customer-support-demo-app/server.py0websocket proxy server for gemini live api handles authentication and proxies websocket connections. this server acts as
HIGH…ive-audio-websocket-demo-apps/react-demo-app/server.py0websocket proxy server for gemini live api handles authentication and proxies websocket connections. this server acts as
HIGH…ebsocket-demo-apps/gaming-assistant-demo-app/server.py0retrieves an access token using google cloud default credentials.
HIGH…-audio-websocket-demo-apps/plain-js-demo-app/server.py0retrieves an access token using google cloud default credentials.
HIGH…ebsocket-demo-apps/realtime-advisor-demo-app/server.py0retrieves an access token using google cloud default credentials.
HIGH…ebsocket-demo-apps/customer-support-demo-app/server.py0retrieves an access token using google cloud default credentials.
HIGH…ive-audio-websocket-demo-apps/react-demo-app/server.py0retrieves an access token using google cloud default credentials.
HIGH…ebsocket-demo-apps/gaming-assistant-demo-app/server.py0forwards messages from source_websocket to destination_websocket. args: source_websocket: the websocket connection to re
HIGH…-audio-websocket-demo-apps/plain-js-demo-app/server.py0forwards messages from source_websocket to destination_websocket. args: source_websocket: the websocket connection to re
HIGH…ebsocket-demo-apps/realtime-advisor-demo-app/server.py0forwards messages from source_websocket to destination_websocket. args: source_websocket: the websocket connection to re
HIGH…ebsocket-demo-apps/customer-support-demo-app/server.py0forwards messages from source_websocket to destination_websocket. args: source_websocket: the websocket connection to re
HIGH…ive-audio-websocket-demo-apps/react-demo-app/server.py0forwards messages from source_websocket to destination_websocket. args: source_websocket: the websocket connection to re
HIGH…ebsocket-demo-apps/gaming-assistant-demo-app/server.py0establishes a websocket connection to the gemini server and creates bidirectional proxy. args: client_websocket: the web
HIGH…-audio-websocket-demo-apps/plain-js-demo-app/server.py0establishes a websocket connection to the gemini server and creates bidirectional proxy. args: client_websocket: the web
HIGH…ebsocket-demo-apps/realtime-advisor-demo-app/server.py0establishes a websocket connection to the gemini server and creates bidirectional proxy. args: client_websocket: the web
HIGH…ebsocket-demo-apps/customer-support-demo-app/server.py0establishes a websocket connection to the gemini server and creates bidirectional proxy. args: client_websocket: the web
HIGH…ive-audio-websocket-demo-apps/react-demo-app/server.py0establishes a websocket connection to the gemini server and creates bidirectional proxy. args: client_websocket: the web
HIGH…ebsocket-demo-apps/gaming-assistant-demo-app/server.py0handles a new websocket client connection. expects first message with optional bearer_token and service_url. if no beare
HIGH…-audio-websocket-demo-apps/plain-js-demo-app/server.py0handles a new websocket client connection. expects first message with optional bearer_token and service_url. if no beare
HIGH…ebsocket-demo-apps/realtime-advisor-demo-app/server.py0handles a new websocket client connection. expects first message with optional bearer_token and service_url. if no beare
HIGH…ebsocket-demo-apps/customer-support-demo-app/server.py0handles a new websocket client connection. expects first message with optional bearer_token and service_url. if no beare
HIGH…ive-audio-websocket-demo-apps/react-demo-app/server.py0handles a new websocket client connection. expects first message with optional bearer_token and service_url. if no beare
HIGH…ebsocket-demo-apps/gaming-assistant-demo-app/server.py0╔════════════════════════════════════════════════════════════╗ ║ gemini live api proxy server ║ ╠═══════════════════════
HIGH…ebsocket-demo-apps/realtime-advisor-demo-app/server.py0╔════════════════════════════════════════════════════════════╗ ║ gemini live api proxy server ║ ╠═══════════════════════
HIGH…ebsocket-demo-apps/customer-support-demo-app/server.py0╔════════════════════════════════════════════════════════════╗ ║ gemini live api proxy server ║ ╠═══════════════════════
HIGH…ive-audio-websocket-demo-apps/react-demo-app/server.py0╔════════════════════════════════════════════════════════════╗ ║ gemini live api proxy server ║ ╠═══════════════════════
HIGH…aph-demo/backend/concierge/langgraph_server/schemas.py0retrieves the current state of a thread. args: thread_id: the id of the thread. subgraphs: whether to include subgraph s
HIGH…/backend/concierge/langgraph_server/langgraph_agent.py0retrieves the current state of a thread. args: thread_id: the id of the thread. subgraphs: whether to include subgraph s
HIGH…demo/backend/concierge/langgraph_server/fastapi_app.py0retrieves the current state of a thread. args: thread_id: the id of the thread. subgraphs: whether to include subgraph s
HIGH…aph-demo/backend/concierge/langgraph_server/schemas.py0retrieves the history of thread states. args: thread_id: the id of the thread. limit: the maximum number of states to re
HIGH…/backend/concierge/langgraph_server/langgraph_agent.py0retrieves the history of thread states. args: thread_id: the id of the thread. limit: the maximum number of states to re
HIGH…demo/backend/concierge/langgraph_server/fastapi_app.py0retrieves the history of thread states. args: thread_id: the id of the thread. limit: the maximum number of states to re
HIGH…se-cases/entity-extraction/document_processing_test.py0\ { "year": "2021", "quarter": "q1", "company_name": "alphabet inc.", "ceo": "sundar pichai", "net_income_millions": "17
HIGH…se-cases/entity-extraction/document_processing_test.py0\ { "year": "2021", "quarter": "q1", "company_name": "alphabet inc.", "ceo": "sundar pichai", "net_income_millions": "17
HIGH…se-cases/entity-extraction/document_processing_test.py0\ { "year": "2021", "quarter": "q1", "company_name": "alphabet inc.", "ceo": "sundar pichai", "net_income_millions": "17
HIGH…image-background-changer-using-imagen3/backend/main.py0configures cors middleware based on the environment.
HIGH…profile-image-generation-using-imagen3/backend/main.py0configures cors middleware based on the environment.
HIGH…bot/conversational-app-single-playbook/backend/main.py0configures cors middleware based on the environment.
HIGH…s/quickbot/text-to-image-using-imagen3/backend/main.py0configures cors middleware based on the environment.
HIGH…bot/website-search-using-agent-builder/backend/main.py0configures cors middleware based on the environment.
HIGH…kbot/conversational-app-multi-playbook/backend/main.py0configures cors middleware based on the environment.
HIGH…ot/document-search-using-agent-builder/backend/main.py0configures cors middleware based on the environment.
HIGH…/multi-agent-travel-concierge-with-adk/backend/main.py0configures cors middleware based on the environment.
HIGH…bot/conversational-app-single-playbook/backend/main.py0main fastapi application entry point for the quick bot backend. this module initializes the fastapi application, configu
HIGH…bot/website-search-using-agent-builder/backend/main.py0main fastapi application entry point for the quick bot backend. this module initializes the fastapi application, configu
HIGH…kbot/conversational-app-multi-playbook/backend/main.py0main fastapi application entry point for the quick bot backend. this module initializes the fastapi application, configu
HIGH…ot/document-search-using-agent-builder/backend/main.py0main fastapi application entry point for the quick bot backend. this module initializes the fastapi application, configu
HIGH…bot/conversational-app-single-playbook/backend/main.py0invalid environment: {environment}. must be 'production' or 'development'
HIGH…bot/website-search-using-agent-builder/backend/main.py0invalid environment: {environment}. must be 'production' or 'development'
HIGH…kbot/conversational-app-multi-playbook/backend/main.py0invalid environment: {environment}. must be 'production' or 'development'
HIGH…ot/document-search-using-agent-builder/backend/main.py0invalid environment: {environment}. must be 'production' or 'development'
HIGH…app-single-playbook/backend/scripts/big_query_setup.py0utility functions for setting up google bigquery datasets and tables.
HIGH…using-agent-builder/backend/scripts/big_query_setup.py0utility functions for setting up google bigquery datasets and tables.
HIGH…-app-multi-playbook/backend/scripts/big_query_setup.py0utility functions for setting up google bigquery datasets and tables.
HIGH…using-agent-builder/backend/scripts/big_query_setup.py0utility functions for setting up google bigquery datasets and tables.
HIGH…app-single-playbook/backend/scripts/big_query_setup.py0deletes an existing bigquery dataset and recreates it. if the dataset already exists, it and all its contents will be de
HIGH…using-agent-builder/backend/scripts/big_query_setup.py0deletes an existing bigquery dataset and recreates it. if the dataset already exists, it and all its contents will be de
HIGH…-app-multi-playbook/backend/scripts/big_query_setup.py0deletes an existing bigquery dataset and recreates it. if the dataset already exists, it and all its contents will be de
HIGH…using-agent-builder/backend/scripts/big_query_setup.py0deletes an existing bigquery dataset and recreates it. if the dataset already exists, it and all its contents will be de
111 more matches not shown…
Excessive Try-Catch Wrapping264 hits · 347 pts
SeverityFileLineSnippet
LOWtools/llmevalkit/pages/2_Dataset_Creation.py61 except Exception as e:
LOWtools/llmevalkit/pages/2_Dataset_Creation.py102 except Exception as e:
LOWtools/llmevalkit/pages/2_Dataset_Creation.py124 except Exception as e:
LOWtools/llmevalkit/pages/2_Dataset_Creation.py139 except Exception as e:
LOWtools/llmevalkit/pages/1_Prompt_Management.py157 except Exception as e:
LOWtools/llmevalkit/pages/1_Prompt_Management.py191 except Exception as e:
LOWtools/llmevalkit/pages/1_Prompt_Management.py254 except Exception as e:
LOWtools/llmevalkit/pages/1_Prompt_Management.py311 except Exception as e:
LOWtools/llmevalkit/pages/1_Prompt_Management.py348 except Exception as e:
LOWtools/llmevalkit/pages/1_Prompt_Management.py467 except Exception as e:
LOWtools/llmevalkit/pages/8_Prompt_Records.py51 except Exception as e:
LOWtools/llmevalkit/pages/8_Prompt_Records.py60 except Exception as e:
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py96 except Exception as e:
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py143 except Exception as e:
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py354 except Exception as e:
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py375 except Exception as e:
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py468 except Exception as e:
LOWtools/llmevalkit/pages/3_Evaluation.py50 except Exception as e:
LOWtools/llmevalkit/pages/3_Evaluation.py125 except Exception as e:
LOWtools/llmevalkit/pages/3_Evaluation.py419 except Exception as e:
LOWtools/llmevalkit/pages/3_Evaluation.py548 except Exception as e:
LOWtools/llmevalkit/pages/3_Evaluation.py768 except Exception as e:
LOWtools/llmevalkit/pages/3_Evaluation.py1034 except Exception as e:
LOWtools/llmevalkit/pages/5_Performance_Tuner.py528 except Exception as e:
LOWtools/llmevalkit/pages/5_Performance_Tuner.py565 except Exception as e:
LOWtools/llmevalkit/pages/5_Performance_Tuner.py599 except Exception as e:
LOWtools/llmevalkit/pages/4_One_Click_Refiner.py102 except Exception as e:
LOWtools/llmevalkit/pages/4_One_Click_Refiner.py124 except Exception as e:
LOWtools/llmevalkit/pages/4_One_Click_Refiner.py167 except Exception as e:
LOWtools/llmevalkit/pages/4_One_Click_Refiner.py187 except Exception as e:
LOWtools/llmevalkit/pages/4_One_Click_Refiner.py229 except Exception as e:
LOWtools/llmevalkit/src/gcp_evaluation.py64 except Exception as e:
LOWtools/llmevalkit/src/gcp_evaluation.py124 except Exception as e:
MEDIUMtools/llmevalkit/src/gcp_evaluation.py125 print(f"Error preparing DataFrame: {e}")
LOWtools/llmevalkit/src/gcp_prompt.py236 except Exception as e:
MEDIUMtools/llmevalkit/src/gcp_dataset.py94 print(f"An error occurred: {e}")
LOW…ebsocket-demo-apps/gaming-assistant-demo-app/server.py35 except Exception as e:
MEDIUM…ebsocket-demo-apps/gaming-assistant-demo-app/server.py36 print(f"Error generating access token: {e}")
LOW…ebsocket-demo-apps/gaming-assistant-demo-app/server.py61 except Exception as e:
MEDIUM…ebsocket-demo-apps/gaming-assistant-demo-app/server.py62 print(f"Error processing message: {e}")
LOW…ebsocket-demo-apps/gaming-assistant-demo-app/server.py67 except Exception as e:
LOW…ebsocket-demo-apps/gaming-assistant-demo-app/server.py141 except Exception as e:
LOW…ebsocket-demo-apps/gaming-assistant-demo-app/server.py195 except Exception as e:
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py38 except Exception as e:
MEDIUM…-audio-websocket-demo-apps/plain-js-demo-app/server.py39 print(f"Error generating access token: {e}")
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py65 except Exception as e:
MEDIUM…-audio-websocket-demo-apps/plain-js-demo-app/server.py66 print(f"Error processing message: {e}")
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py71 except Exception as e:
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py142 except Exception as e:
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py191 except Exception as e:
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py229 except Exception as e:
MEDIUM…-audio-websocket-demo-apps/plain-js-demo-app/server.py230 print(f"Error serving file {path}: {e}")
LOW…-demo-apps/plain-js-python-sdk-demo-app/gemini_live.py126 except Exception as e:
LOW…-demo-apps/plain-js-python-sdk-demo-app/gemini_live.py138 except Exception as e:
MEDIUM…-demo-apps/plain-js-python-sdk-demo-app/gemini_live.py49def send_audio():
LOW…bsocket-demo-apps/plain-js-python-sdk-demo-app/main.py89 except Exception as e:
LOW…bsocket-demo-apps/plain-js-python-sdk-demo-app/main.py108 except Exception as e:
MEDIUM…bsocket-demo-apps/plain-js-python-sdk-demo-app/main.py68def receive_from_client():
LOW…ebsocket-demo-apps/realtime-advisor-demo-app/server.py35 except Exception as e:
MEDIUM…ebsocket-demo-apps/realtime-advisor-demo-app/server.py36 print(f"Error generating access token: {e}")
204 more matches not shown…
Over-Commented Block313 hits · 312 pts
SeverityFileLineSnippet
LOWtools/llmevalkit/pages/8_Prompt_Records.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/pages/6_Prompt_Optimization.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/pages/3_Evaluation.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/pages/5_Performance_Tuner.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/src/gcp_evaluation.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/src/gcp_prompt.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/src/__init__.py1# Copyright 2025 Google LLC
LOWtools/llmevalkit/src/vapo_lib.py1# Copyright 2024 Google LLC
LOWtools/llmevalkit/src/gcp_dataset.py1# Copyright 2025 Google LLC
LOW…/multimodal-live-api/project-livewire/server/server.py1# Copyright 2025 Google LLC
LOW…-api/project-livewire/server/core/websocket_handler.py1# Copyright 2025 Google LLC
LOW…modal-live-api/project-livewire/server/core/session.py1# Copyright 2025 Google LLC
LOW…-live-api/project-livewire/server/core/tool_handler.py1# Copyright 2025 Google LLC
LOW…live-api/project-livewire/server/core/gemini_client.py1# Copyright 2025 Google LLC
LOW…odal-live-api/project-livewire/server/config/config.py1# Copyright 2025 Google LLC
LOW…cloud-functions/weather-tools/get-weather-tool/main.py1# Copyright 2025 Google LLC
LOWgemini/agents/genai-experience-concierge/LICENSE.txt1# Copyright 2025 Google LLC
LOW…perience-concierge/langgraph-demo/frontend/LICENSE.txt1# Copyright 2025 Google LLC
LOW…ierge/langgraph-demo/frontend/concierge_ui/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…xperience-concierge/langgraph-demo/backend/LICENSE.txt1# Copyright 2025 Google LLC
LOW…concierge/langgraph-demo/backend/concierge/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…rge/langgraph-demo/backend/concierge/tools/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…rge/langgraph-demo/backend/concierge/nodes/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…demo/backend/concierge/nodes/task_planning/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…/backend/concierge/nodes/task_planning/ops/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…ph-demo/backend/concierge/langgraph_server/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…ge/langgraph-demo/backend/concierge/agents/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…/agents/genai-experience-concierge/scripts/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…xperience-concierge/scripts/langgraph_demo/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOW…nts/genai-experience-concierge/scripts/cli/__init__.py1# Copyright 2025 Google. This software is provided as-is, without warranty or
LOWgemini/mcp/mcp_orchestration_app/src/gemini_client.py681 )
LOW…cases/retrieval-augmented-generation/utils/__init__.py1# Copyright 2024 Google LLC
LOW…ini/use-cases/entity-extraction/document_processing.py1# Copyright 2025 Google LLC
LOWgemini/use-cases/entity-extraction/utils.py1# Copyright 2025 Google LLC
LOWgemini/use-cases/entity-extraction/deploy.sh1#!/bin/bash
LOWgemini/use-cases/entity-extraction/evaluate.py1# Copyright 2025 Google LLC
LOWgemini/use-cases/entity-extraction/main.py1# Copyright 2025 Google LLC
LOW…se-cases/entity-extraction/document_processing_test.py1# Copyright 2025 Google LLC
LOWgemini/prompts/prompt_optimizer/vapo_lib.py1# Copyright 2024 Google LLC
LOWgemini/sample-apps/gemini-mesop-cloudrun/main.py1# Copyright 2024 Google LLC
LOW…i/sample-apps/gemini-mesop-cloudrun/shared/nav_menu.py1# Copyright 2024 Google LLC
LOW…ni/sample-apps/gemini-mesop-cloudrun/shared/prompts.py1# Copyright 2024 Google LLC
LOW…ini/sample-apps/gemini-mesop-cloudrun/shared/styles.py1# Copyright 2024 Google LLC
LOWgemini/sample-apps/image-bash-jam/tts.sh1#!/bin/bash
LOWgemini/sample-apps/gemini-quart-cloudrun/app/app.py1# Copyright 2025 Google LLC
LOW…accelerating_product_innovation/.streamlit/config.toml1# Copyright 2023 Google LLC
LOW…/sample-apps/photo-discovery/app/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code to
LOW…/sample-apps/photo-discovery/app/analysis_options.yaml21 # `// ignore_for_file: name_of_lint` syntax on the line or in the file
LOW…covery/app/linux/flutter/generated_plugin_registrant.h1//
LOW…sample-apps/photo-discovery/app/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOW…ps/photo-discovery/app/windows/runner/win32_window.cpp1#include "win32_window.h"
LOW…ple-apps/photo-discovery/app/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…very/app/windows/flutter/generated_plugin_registrant.h1//
LOWgemini/sample-apps/photo-discovery/ag-web/app/app.py1# Copyright 2024 Google LLC
LOWgemini/sample-apps/swot-agent/agent.py1# Copyright 2024 Google, LLC.
LOWgemini/sample-apps/swot-agent/main.py1# Copyright 2024 Google, LLC.
LOWgemini/sample-apps/swot-agent/tests/test_agent.py1# Copyright 2024 Google, LLC. This software is provided as-is, without
LOWgemini/sample-apps/swot-agent/tests/test_main.py1# Copyright 2024 Google, LLC. This software is provided as-is, without
LOW…ge-background-changer-using-imagen3/docker-compose.yml1# Copyright 2025 Google LLC
LOW…ontend/src/app/components/header/header.component.scss61 cursor: pointer;
253 more matches not shown…
Self-Referential Comments103 hits · 280 pts
SeverityFileLineSnippet
MEDIUMtools/llmevalkit/pages/7_Prompt_Optimization_Results.py204 # Create a boolean series for the comparison
MEDIUMtools/llmevalkit/src/gcp_dataset.py16"""This module provides utility functions for managing and processing datasets
MEDIUM…live-api/project-livewire/server/core/gemini_client.py67 # Create the session
MEDIUM…perience-concierge/langgraph-demo/terraform/project.tf11# Create a project for the concierge demo.
MEDIUM…perience-concierge/langgraph-demo/terraform/project.tf47# Create an Artifact Registry repository for hosting docker images for the concierge demo.
MEDIUM…perience-concierge/langgraph-demo/terraform/network.tf11# Create a VPC network and a single subnet for the concierge demo.
MEDIUM…perience-concierge/langgraph-demo/terraform/network.tf30# Create an IP address for the VPC peering connection.
MEDIUM…perience-concierge/langgraph-demo/terraform/network.tf40# Create a private service networking connection.
MEDIUM…ience-concierge/langgraph-demo/terraform/app_engine.tf5# Create a demo IAP brand for the Oauth Consent Screen.
MEDIUM…ience-concierge/langgraph-demo/terraform/app_engine.tf14# Create a demo IAP client for the Oauth Consent Screen.
MEDIUM…rience-concierge/langgraph-demo/terraform/databases.tf20# Create an AlloyDB cluster and instance for session management.
MEDIUM…rience-concierge/langgraph-demo/terraform/databases.tf69# Create a BigQuery dataset for the mock Cymbal Retail data and embedding model.
MEDIUM…rience-concierge/langgraph-demo/terraform/databases.tf88# Create a remote Cloud Resource Connection to enable access to BQML Embedding models
MEDIUM…gmented-generation/utils/intro_multimodal_rag_utils.py247 # Create the image file name
MEDIUM…gmented-generation/utils/intro_multimodal_rag_utils.py250 # Create the image save directory if it doesn't exist
MEDIUM…gmented-generation/utils/intro_multimodal_rag_utils.py740 # Create a dictionary to store matched images and their information
MEDIUM…gmented-generation/utils/intro_multimodal_rag_utils.py744 # Create a sub-dictionary for each matched image
MEDIUM…gmented-generation/utils/intro_multimodal_rag_utils.py841 # Create a dictionary to store matched text and their information
MEDIUM…gmented-generation/utils/intro_multimodal_rag_utils.py845 # Create a sub-dictionary for each matched text
MEDIUM…sing-gemini-with-bigquery-remote-functions/function.tf18#Create a service account to manage the remote function and its permissions
MEDIUM…sing-gemini-with-bigquery-remote-functions/function.tf50## Create a Cloud Function to serve as the remote function for image analysis
MEDIUM…sing-gemini-with-bigquery-remote-functions/function.tf87## Create a Cloud Function to serve as the remote function for image analysis
MEDIUM…ing-gemini-with-bigquery-remote-functions/workflows.tf19## Create the Workflows service account to manage permissions
MEDIUM…ing-gemini-with-bigquery-remote-functions/workflows.tf49## Create the workflow
MEDIUM…using-gemini-with-bigquery-remote-functions/storage.tf17#Create a GCS bucket to store the image analysisremote function source code
MEDIUM…using-gemini-with-bigquery-remote-functions/storage.tf42# Create a GCS bucket to upload demo images
MEDIUM…sing-gemini-with-bigquery-remote-functions/bigquery.tf72# Create a series of stored procedures to connect to the remote function and call it
MEDIUM…sing-gemini-with-bigquery-remote-functions/bigquery.tf73## Create the image remote function. This stored procedure will be called by the workflow
MEDIUM…sing-gemini-with-bigquery-remote-functions/bigquery.tf110## Create the sample text input table. This stored procedure will be called by the workflow
MEDIUM…sing-gemini-with-bigquery-remote-functions/bigquery.tf124## Create the image remote function. This stored procedure will be called by the workflow
MEDIUMgemini/prompts/prompt_optimizer/vapo_lib.py530 # Create a dictionary to track files found in each directory
MEDIUMgemini/prompts/prompt_optimizer/vapo_lib.py617 # Create a label widget for the description
MEDIUMgemini/prompts/prompt_optimizer/vapo_lib.py870 # Create an EvalTask object
MEDIUMgemini/prompts/prompt_optimizer/vapo_lib.py1009 # Define the JSON schema for validation
MEDIUM…novation/app/pages_utils/resources_store_embeddings.py85 # Creating a simple dictionary to store all information
MEDIUM…novation/app/pages_utils/resources_store_embeddings.py317 # Create a list of csv file columns.
MEDIUM…novation/app/pages_utils/resources_store_embeddings.py340 # Create a dataframe from final chunked data.
MEDIUM…oduct_innovation/app/pages_utils/export_content_pdf.py79 pdf = pdf_generator() # Create a PDF for the current product
MEDIUM…rating_product_innovation/app/pages_utils/downloads.py75 # Create a BytesIO object to hold the zip file content
MEDIUM…rating_product_innovation/app/pages_utils/downloads.py165 # Create the zip file in memory.
MEDIUM…rating_product_innovation/app/pages_utils/downloads.py185 # Create the zip archive
MEDIUM…elerating_product_innovation/app/pages_utils/imagen.py100 # Create a post request to get images.
MEDIUM…ating_product_innovation/app/pages_utils/edit_image.py1"""This module provides functions for image processing and session state
MEDIUM…ating_product_innovation/app/pages_utils/edit_image.py215 # Create a BytesIO object from the image bytes
MEDIUM…product_innovation/app/pages_utils/draft_generation.py35 # Create an expandable section for each product title
MEDIUM…accelerating_product_innovation/app/pages/resources.py57# Create a container for the screen
MEDIUM…accelerating_product_innovation/app/pages/resources.py60# Create a form for the resources page
MEDIUMgemini/sample-apps/swot-agent/main.py151 # Create a custom deps object that uses the session_id
MEDIUM…image-background-changer-using-imagen3/backend/main.py54# Create a route to handle GET requests on root
MEDIUM…image-background-changer-using-imagen3/backend/main.py60# Create a route to handle GET requests on /version
MEDIUM…und-changer-using-imagen3/backend/tests/test_search.py33# Create a test client for the FastAPI app
MEDIUM…ound-changer-using-imagen3/backend/src/model/search.py21# Create a Literal type from the list of valid models
MEDIUM…profile-image-generation-using-imagen3/backend/main.py54# Create a route to handle GET requests on root
MEDIUM…profile-image-generation-using-imagen3/backend/main.py60# Create a route to handle GET requests on /version
MEDIUM…e-generation-using-imagen3/backend/src/model/search.py21# Create a Literal type from the list of valid models
MEDIUM…generation-using-imagen3/backend/src/service/search.py71 # Create a new image with padding
MEDIUM…generation-using-imagen3/backend/src/service/search.py109 # Create a mask with the same size as the original image
MEDIUM…bot/conversational-app-single-playbook/backend/main.py65# Create a route to handle GET requests on root
MEDIUM…bot/conversational-app-single-playbook/backend/main.py71# Create a route to handle GET requests on /version
MEDIUM…s/quickbot/text-to-image-using-imagen3/backend/main.py54# Create a route to handle GET requests on root
43 more matches not shown…
Hyper-Verbose Identifiers186 hits · 179 pts
SeverityFileLineSnippet
LOWtools/llmevalkit/tests/test_evaluation_page.py18def test_evaluation_load_prompt(mock_init, mock_storage, mock_gcp_prompt, mock_prompts):
LOWtools/llmevalkit/pages/2_Dataset_Creation.py107def _ensure_datasets_folder_exists(
LOWtools/llmevalkit/pages/1_Prompt_Management.py85def _apply_generation_config_typing(config: dict[str, Any]) -> dict[str, Any]:
LOWtools/llmevalkit/pages/1_Prompt_Management.py162def _handle_generate_test_for_new() -> None:
LOWtools/llmevalkit/pages/1_Prompt_Management.py259def _handle_save_edited_prompt() -> None:
LOWtools/llmevalkit/pages/1_Prompt_Management.py316def _handle_generate_test_for_edit() -> None:
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py37def list_custom_training_jobs(project_id: str, location: str):
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py154def _display_interactive_results(results_ui: vapo_lib.ResultsUI) -> None:
LOWtools/llmevalkit/pages/3_Evaluation.py46def get_metric_object_by_name(metric_name: str):
LOWtools/llmevalkit/pages/3_Evaluation.py78def get_autorater_pairwise_response(metric_prompt: str, model: str) -> dict:
LOWtools/llmevalkit/src/gcp_evaluation.py129def extract_completeness_metrics(
LOWtools/llmevalkit/src/gcp_evaluation.py157def plot_distribution_comparison(
LOWtools/llmevalkit/src/gcp_prompt.py263 def get_generation_config_dict(self):
LOWtools/llmevalkit/src/gcp_prompt.py268def escape_special_characters(text: str) -> str:
LOWtools/llmevalkit/src/gcp_dataset.py61def escape_special_characters(text: str) -> str:
LOW…al-live-api/pcm-audio-debugger/pcm-audio-debugger.html585 function processAndEncode() {
LOW…timodal-live-api/websocket-demo-app/frontend/script.js41function getSelectedResponseModality() {
LOW…timodal-live-api/websocket-demo-app/frontend/script.js229async function setAvailableCamerasOptions() {
LOW…timodal-live-api/websocket-demo-app/frontend/script.js235async function setAvailableMicrophoneOptions() {
LOW…concierge/langgraph-demo/frontend/concierge_ui/auth.py34def fetch_gce_id_token_credentials(
LOW…concierge/langgraph-demo/frontend/concierge_ui/auth.py51def fetch_impersonated_id_token_credentials(
LOW…concierge/langgraph-demo/backend/concierge/settings.py50 def ensure_cymbal_dataset_resources(self) -> Self:
LOW…nggraph-demo/backend/concierge/tools/find_inventory.py39def generate_find_inventory_handler(
LOW…/langgraph-demo/backend/concierge/tools/find_stores.py59def generate_find_stores_handler(
LOW…anggraph-demo/backend/concierge/tools/find_products.py62def generate_find_products_handler(
LOW…anggraph-demo/backend/concierge/tools/find_products.py166def _build_query_without_vector_search(
LOW…anggraph-demo/backend/concierge/tools/find_products.py284def _build_query_with_vector_search(
LOW…ierge/langgraph-demo/backend/concierge/nodes/router.py63def build_semantic_router_node(
LOW…/backend/concierge/langgraph_server/langgraph_agent.py294def _checkpoint_from_runnable_config(
LOW…/backend/concierge/langgraph_server/langgraph_agent.py315def _state_snapshot_to_thread_state(
LOW…/backend/concierge/langgraph_server/langgraph_agent.py343def _pregel_task_to_thread_task(task: lg_types.PregelTask) -> schema.ThreadTask:
LOW…experience-concierge/scripts/langgraph_demo/dataset.py191def create_product_table_with_embeddings(
LOW…experience-concierge/scripts/langgraph_demo/dataset.py321def get_connection_service_account(
LOWgemini/agents/always-on-memory-agent/agent.py169def read_unconsolidated_memories() -> dict:
LOWgemini/agents/always-on-memory-agent/agent.py231def read_consolidation_history() -> dict:
LOWgemini/mcp/adk_mcp_app/main.py47async def process_message_with_runner(runner: Runner, session_id: str, question: str):
LOWgemini/mcp/adk_mcp_app/mcp_server/cocktail.py123async def list_cocktails_by_first_letter(letter: str) -> str:
LOWgemini/mcp/adk_mcp_app/mcp_server/cocktail.py141async def search_ingredient_by_name(name: str) -> str:
LOWgemini/mcp/adk_mcp_app/mcp_server/cocktail.py165async def lookup_cocktail_details_by_id(cocktail_id: str) -> str:
LOWgemini/mcp/adk_multiagent_mcp_app/main.py105async def process_message_with_runner(runner: Runner, session_id: str, question: str):
LOW…mini/mcp/adk_multiagent_mcp_app/mcp_server/cocktail.py120async def list_cocktails_by_first_letter(letter: str) -> str:
LOW…mini/mcp/adk_multiagent_mcp_app/mcp_server/cocktail.py138async def search_ingredient_by_name(name: str) -> str:
LOW…mini/mcp/adk_multiagent_mcp_app/mcp_server/cocktail.py162async def lookup_cocktail_details_by_id(cocktail_id: str) -> str:
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py32def get_text_embedding_from_text_embedding_model(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py59def get_image_embedding_from_multimodal_embedding_model(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py89def get_text_overlapping_chunk(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py533def get_user_query_text_embeddings(user_query: str) -> np.ndarray:
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py548def get_user_query_image_embeddings(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py585def print_text_to_image_citation(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py636def print_text_to_text_citation(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py689def get_similar_image_from_query(
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py795def get_similar_text_from_query(
LOW…ini/use-cases/entity-extraction/document_processing.py108def classify_and_extract_document(document_uri: str) -> str:
LOW…ini/use-cases/entity-extraction/document_processing.py118def evaluate_quality_and_extract(extract_config_id: str, document_uri: str):
LOWgemini/use-cases/entity-extraction/main.py101def handle_classification_and_extraction():
LOW…se-cases/entity-extraction/document_processing_test.py75def test_classify_and_extract_document() -> None:
LOW…se-cases/entity-extraction/document_processing_test.py94def test_evaluate_quality_and_extract_high_quality_document() -> None:
LOW…se-cases/entity-extraction/document_processing_test.py116def test_evaluate_quality_and_extract_low_quality_document() -> None:
LOW…i-with-bigquery-remote-functions/function/text/main.py37def generate_text_from_prompt(text_string) -> str | None:
LOW…and-documentai-for-entity-extraction/prompts_module.py1def get_extract_entities_prompt() -> str:
126 more matches not shown…
Docstring Block Structure35 hits · 175 pts
SeverityFileLineSnippet
HIGH…-demo/backend/concierge/nodes/task_planning/planner.py32 Generates a plan or a direct response based on the current conversation state. This function takes the
HIGH…emo/backend/concierge/nodes/task_planning/reflector.py32 Asynchronously reflects on the executed plan and determines the next action. This function takes the c
HIGH…demo/backend/concierge/nodes/task_planning/executor.py29 Asynchronously executes a plan's tasks and updates the conversation state. This function takes the cur
HIGH…backend/concierge/langgraph_server/checkpoint_saver.py23 Loads a checkpoint saver based on the provided backend configuration. This function takes a CheckpointerConfig
HIGH…experience-concierge/scripts/langgraph_demo/backend.py99 Describe a Cloud Run service and print its details in JSON format. This command uses `gcloud run services desc
HIGH…perience-concierge/scripts/langgraph_demo/terraform.py114 Retrieve Terraform outputs as a dictionary. This command retrieves the outputs defined in the Terraform config
HIGH…experience-concierge/scripts/langgraph_demo/dataset.py82 Create the required Cymbal dataset models and tables. Only the project is required to exist before calling thi
HIGH…experience-concierge/scripts/langgraph_demo/dataset.py349 Executes a function and prints a success or failure message. Args: start_message (str): The message to
HIGHgemini/mcp/mcp_orchestration_app/src/gemini_server.py108Calls the specified Gemini model using the google-genai library. Args: model_name: The name of the Gemini m
HIGHgemini/mcp/mcp_orchestration_app/src/gemini_client.py55Loads configuration from a JSON file. Args: file_path: Path to the configuration file. Ret
HIGHgemini/mcp/mcp_orchestration_app/src/gemini_client.py228Execute a tool with retry mechanism. Args: tool_name: The name of the tool to execute.
HIGHgemini/mcp/mcp_orchestration_app/src/gemini_client.py508 Sends the current conversation history to the LLM and returns the response text. Args:
HIGH…gmented-generation/utils/intro_multimodal_rag_utils.py92 * Breaks a text document into chunks of a specified size, with an overlap between chunks to preserve context. *
HIGH…gmented-generation/utils/intro_multimodal_rag_utils.py174 * Extracts text from a given page object, chunks it, and generates embeddings for each chunk. * Takes a page ob
HIGH…gmented-generation/utils/intro_multimodal_rag_utils.py803 Finds the top N most similar text passages from a metadata DataFrame based on a text query. Args: quer
HIGH…elerating_product_innovation/app/pages_utils/imagen.py36Predicts the output of Imagen on a given instance dict. Args: instance_dict: The input to the la
HIGH…ingle-playbook/backend/src/repository/cloud_storage.py49Lists all blobs (files) within a specified GCS path. Parses the bucket name and prefix from the full GCS path
HIGH…nal-app-single-playbook/backend/src/repository/task.py78Creates a Cloud Task to handle an IntentCreateEvent. Constructs an HTTP task targeting the configured FUNCTION_
HIGH…pp-single-playbook/backend/src/repository/big_query.py111 Executes a BigQuery SQL query and returns the results. Args: query: The SQL query string t
HIGH…onal-app-single-playbook/backend/src/service/intent.py89Creates a new intent in the database. Validates that an intent with the same name doesn't already exist.
HIGH…sing-agent-builder/backend/src/repository/big_query.py111 Executes a BigQuery SQL query and returns the results. Args: query: The SQL query string t
HIGH…h-using-agent-builder/backend/src/controller/search.py34 Performs a search using the configured Search Application. Args: item: The search request containing t
HIGH…gent-builder/backend/src/service/search_application.py57 Creates a new Search Application configuration in BigQuery. Ensures that no configuration already exis
HIGH…gent-builder/backend/src/service/search_application.py91 Updates an existing Search Application configuration in BigQuery. Identifies the row to update using t
HIGH…multi-playbook/backend/src/repository/cloud_storage.py49Lists all blobs (files) within a specified GCS path. Parses the bucket name and prefix from the full GCS path
HIGH…onal-app-multi-playbook/backend/src/repository/task.py78Creates a Cloud Task to handle an IntentCreateEvent. Constructs an HTTP task targeting the configured FUNCTION_
HIGH…app-multi-playbook/backend/src/repository/big_query.py111 Executes a BigQuery SQL query and returns the results. Args: query: The SQL query string t
HIGH…ional-app-multi-playbook/backend/src/service/intent.py89Creates a new intent in the database. Validates that an intent with the same name doesn't already exist.
HIGH…sing-agent-builder/backend/src/repository/big_query.py104 Executes a BigQuery SQL query and returns the results. Args: query: The SQL query string t
HIGH…h-using-agent-builder/backend/src/controller/search.py44 Performs a search using the configured Search Application. Args: item: The search request containing t
HIGH…h-using-agent-builder/backend/src/controller/search.py117 Fetches a document directly from GCS and returns its content. Expects a JSON body with a 'gcs_url' field speci
HIGH…gent-builder/backend/src/service/search_application.py57 Creates a new Search Application configuration in BigQuery. Ensures that no configuration already exis
HIGH…gent-builder/backend/src/service/search_application.py91 Updates an existing Search Application configuration in BigQuery. Identifies the row to update using t
HIGH…arch-using-agent-builder/backend/src/service/search.py72 Performs a search against the configured Discovery Engine. Constructs a search request with predefined
HIGH…concierge-with-adk/backend/src/repository/big_query.py111 Executes a BigQuery SQL query and returns the results. Args: query: The SQL query string t
Decorative Section Separators23 hits · 90 pts
SeverityFileLineSnippet
MEDIUMgemini/agents/always-on-memory-agent/agent.py524# ─── Consolidation Timer ──────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py36# ─── Config ────────────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py77# ─── Database ──────────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py315# ─── ADK Agents ────────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py395# ─── Agent Runner ──────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py478# ─── File Watcher ──────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py546# ─── HTTP API ──────────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py609# ─── Main ──────────────────────────────────────────────────────
MEDIUMgemini/agents/always-on-memory-agent/agent.py111# ─── ADK Tools ─────────────────────────────────────────────────
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml1# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml3# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml9# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml11# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml23# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml25# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml35# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml37# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml45# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml47# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml57# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml59# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml69# -----------------------------------------------------------------------------
MEDIUM…ps/accelerating_product_innovation/app/app_config.toml71# -----------------------------------------------------------------------------
Redundant / Tautological Comments41 hits · 68 pts
SeverityFileLineSnippet
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py87 # Print the results
LOW…-audio-websocket-demo-apps/plain-js-demo-app/server.py215 # Check if file exists
LOWgemini/mcp/adk_mcp_app/mcp_server/cocktail.py31 # Check if it's a known 'no result' structure or genuinely empty
LOW…mini/mcp/adk_multiagent_mcp_app/mcp_server/cocktail.py31 # Check if it's a known 'no result' structure or genuinely empty
LOW…gmented-generation/utils/intro_multimodal_rag_utils.py715 # Check if image embedding is used
LOWgemini/prompts/prompt_optimizer/vapo_lib.py912 ) # Display value and line break
LOW…oduct_innovation/app/pages_utils/export_content_pdf.py156 # Check if new page needs to be added, and
LOW…oduct_innovation/app/pages_utils/export_content_pdf.py166 # Check if an empty page is encountered.
LOW…elerating_product_innovation/app/pages_utils/imagen.py107 # Check if response is valid.
LOW…g_product_innovation/app/pages_utils/pdf_generation.py206 # Check if adding the word would exceed the line limit
LOW…g_product_innovation/app/pages_utils/pdf_generation.py215 # Check if adding the line would overflow the page
LOW…ating_product_innovation/app/pages/product_insights.py50# Check if DataFrame is empty
LOW…ating_product_innovation/app/pages/product_insights.py76 # Set flag to generate RAG answers
LOW…ating_product_innovation/app/pages/product_insights.py84# Check if DataFrame is empty
LOW…ating_product_innovation/app/pages/product_insights.py102 # Check if number of suggestions is less than 4
LOW…ating_product_innovation/app/pages/product_insights.py109 # Check if suggestions are loaded
LOW…ating_product_innovation/app/pages/product_insights.py152 # Set flag to generate RAG answers
LOW…ating_product_innovation/app/pages/product_insights.py155# Check if RAG answers should be generated
LOW…ating_product_innovation/app/pages/product_insights.py157 # Check if DataFrame is empty
LOW…ating_product_innovation/app/pages/product_insights.py164 # Check if search term is empty
LOW…ating_product_innovation/app/pages/product_insights.py192# Check if RAG answer and references are available
LOW…ating_product_innovation/app/pages/product_insights.py209# Check if temporary suggestions are available
LOW…ating_product_innovation/app/pages/product_insights.py225 # Set flag to generate RAG answers
LOW…ccelerating_product_innovation/app/pages/edit_image.py44# Check if the user has uploaded an image
LOW…ccelerating_product_innovation/app/pages/edit_image.py48# Check if the user has started editing the image
LOW…ccelerating_product_innovation/app/pages/edit_image.py69 # Check if drawing exists on the canvas (i.e., not blank)
LOW…accelerating_product_innovation/app/pages/resources.py83# Check if the form was submitted
LOW…accelerating_product_innovation/app/pages/resources.py86 # Check if a new project category was added
LOW…accelerating_product_innovation/app/pages/resources.py106 # Check if files were uploaded
LOW…accelerating_product_innovation/app/pages/resources.py112 # Check if files were uploaded
LOW…accelerating_product_innovation/app/pages/resources.py119# Check if the project form was submitted and the file upload is complete
LOWgemini/sample-apps/swot-agent/main.py115 # Check if analysis is complete by looking for the final message
LOW…llamaindex-rag/backend/indexing/vector_search_utils.py147 # Check if the existing index is deployed
LOWgemini/computer-use/web-agent/web_agent.py218 # Check if the attribute exists AND is not None
LOWsearch/web-app/main.py125 # Check if POST Request includes search query
LOWsearch/web-app/main.py197 # Check if POST Request includes search query
LOWsearch/web-app/main.py208 # Check if text is a url
LOWsearch/web-app/main.py277 # Check if POST Request includes document id
LOWsearch/web-app/main.py338 # Check if POST Request includes search query
LOWsearch/auto-rag-eval/transform_benchmark.py85 # Check if input file exists
LOWscripts/format.sh18# Check if uv is installed
Deep Nesting68 hits · 62 pts
SeverityFileLineSnippet
LOWtools/llmevalkit/pages/2_Dataset_Creation.py67
LOWtools/llmevalkit/pages/8_Prompt_Records.py32
LOWtools/llmevalkit/pages/6_Prompt_Optimization.py180
LOWtools/llmevalkit/pages/7_Prompt_Optimization_Results.py154
LOWtools/llmevalkit/pages/3_Evaluation.py140
LOWtools/llmevalkit/pages/5_Performance_Tuner.py197
LOWtools/llmevalkit/pages/4_One_Click_Refiner.py192
LOWtools/llmevalkit/src/gcp_evaluation.py71
LOWtools/llmevalkit/src/gcp_prompt.py204
LOW…-demo-apps/plain-js-python-sdk-demo-app/gemini_live.py30
LOW…-demo-apps/plain-js-python-sdk-demo-app/gemini_live.py79
LOW…bsocket-demo-apps/plain-js-python-sdk-demo-app/main.py47
LOW…bsocket-demo-apps/plain-js-python-sdk-demo-app/main.py68
LOW…-api/project-livewire/server/core/websocket_handler.py42
LOW…-api/project-livewire/server/core/websocket_handler.py134
LOW…-api/project-livewire/server/core/websocket_handler.py193
LOW…-api/project-livewire/server/core/websocket_handler.py303
LOW…end/concierge_ui/agents/gemini_chat_with_guardrails.py16
LOW…raph-demo/frontend/concierge_ui/agents/task_planner.py16
LOW…-demo/frontend/concierge_ui/agents/function_calling.py17
LOW…h-demo/frontend/concierge_ui/agents/semantic_router.py16
LOWgemini/agents/always-on-memory-agent/dashboard.py120
LOWgemini/agents/always-on-memory-agent/agent.py190
LOWgemini/agents/always-on-memory-agent/agent.py283
LOWgemini/agents/always-on-memory-agent/agent.py481
LOWgemini/mcp/mcp_orchestration_app/src/gemini_client.py170
LOWgemini/prompts/prompt_optimizer/vapo_lib.py773
LOWgemini/prompts/prompt_optimizer/vapo_lib.py419
LOWgemini/sample-apps/gemini-mesop-cloudrun/main.py707
LOWgemini/sample-apps/gemini-mesop-cloudrun/main.py834
LOWgemini/sample-apps/gemini-mesop-cloudrun/main.py1011
LOWgemini/sample-apps/gemini-mesop-cloudrun/main.py1510
LOW…i/sample-apps/gemini-mesop-cloudrun/shared/nav_menu.py63
LOW…ing_product_innovation/app/pages_utils/pages_config.py23
LOW…ting_product_innovation/app/pages_utils/product_gen.py191
LOW…rating_product_innovation/app/pages_utils/downloads.py141
LOW…product_innovation/app/pages_utils/product_features.py137
LOW…ating_product_innovation/app/pages_utils/edit_image.py145
LOW…product_innovation/app/pages_utils/draft_generation.py48
LOW…ini/sample-apps/gemini-hallcheck/src/gemhall/runner.py72
LOW…ini/sample-apps/gemini-hallcheck/src/gemhall/runner.py137
LOW…nd-changer-using-imagen3/backend/src/service/search.py93
LOW…t-to-image-using-imagen3/backend/src/service/search.py82
LOW…vel-concierge-with-adk/backend/src/controller/chats.py42
LOW…e-apps/llamaindex-rag/backend/indexing/docai_parser.py159
LOW…ample-apps/gemini-live-telephony-app/utils/live_api.py24
LOW…s/gemini-live-telephony-app/utils/audio_transcoding.py26
LOW…s/gemini-live-telephony-app/utils/audio_transcoding.py70
LOWgemini/computer-use/web-agent/web_agent.py56
LOWgemini/computer-use/web-agent/web_agent.py142
LOWvision/sample-apps/genmedia-live/app.py253
LOWvision/sample-apps/genmedia-live/app.py817
LOWvision/sample-apps/genmedia-live/app.py870
LOWvision/sample-apps/genmedia-live/app.py922
LOWvision/sample-apps/genmedia-live/app.py957
LOWvision/sample-apps/genmedia-live/app.py1032
LOWvision/sample-apps/genmedia-live/app.py1151
LOWvision/sample-apps/genmedia-live/app.py1283
LOWvision/sample-apps/genmedia-live/app.py1351
LOWvision/sample-apps/genmedia-live/app.py438
8 more matches not shown…
Hallucination Indicators4 hits · 35 pts
SeverityFileLineSnippet
CRITICALtools/llmevalkit/pages/6_Prompt_Optimization.py164 st.session_state.local_prompt.prompt_to_run.model_name.split("/")[-1]
CRITICALtools/llmevalkit/pages/3_Evaluation.py366 st.session_state.local_prompt.prompt_to_run.model_name.split("/")[-1]
CRITICALgemini/sample-apps/swot-agent/agent.py224 response = await ctx.deps.client.aio.models.generate_content(
CRITICAL…licensing/internal/adapters/discoveryengine/adapter.go305 resp, err := svc.Projects.Locations.UserStores.LicenseConfigsUsageStats.List(parent).Context(ctx).Do()
AI Slop Vocabulary16 hits · 32 pts
SeverityFileLineSnippet
MEDIUM.ruff.toml56 "PYI",# flake8-pyi (best practices for .pyi stub files, some rules are useful for .py too)
MEDIUM.ruff.toml62 "TRY",# tryceratops (exception handling best practices)
MEDIUMtools/llmevalkit/pages/7_Prompt_Optimization_Results.py189 # Add a custom exact_match calculation. This is more robust than simple
MEDIUM…concierge/langgraph-demo/frontend/concierge_ui/home.py21Each agent server is compatible with the [LangGraph Cloud API](langchain-ai.github.io/langgraph/cloud/reference/api/api_
LOW…/langgraph-demo/backend/concierge/tools/find_stores.py89 # Note: google-genai doesn't properly handle floats, so we just set this as an integer
MEDIUMgemini/prompts/prompt_optimizer/vapo_lib.py831 ) # More robust text extraction
MEDIUM…round-changer-using-imagen3/frontend/package-lock.json23195 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…ge-generation-using-imagen3/frontend/package-lock.json23219 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…ational-app-single-playbook/frontend/package-lock.json22428 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…text-to-image-using-imagen3/frontend/package-lock.json23272 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…-search-using-agent-builder/frontend/package-lock.json22430 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…sational-app-multi-playbook/frontend/package-lock.json22430 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…-search-using-agent-builder/frontend/package-lock.json22456 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…t-travel-concierge-with-adk/frontend/package-lock.json20634 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…ng/app/static/live-onboarding/assets/index-GxbLCVag.js76 } function Z0(l, t) { return t = Q0(t), Q0(l) === t } function cl(l, t, e, a, u, n) { switch (e) { case "children":
LOWsearch/auto-rag-eval/main.py169 # Simplified review: just use one critic for now
Synthetic Comment Markers4 hits · 20 pts
SeverityFileLineSnippet
HIGH…experience-concierge/langgraph-demo/frontend/README.md51 - **Gemini Chat:** streams response text generated by Gemini
HIGH…-experience-concierge/langgraph-demo/backend/README.md77 - Streams: Response text generated by Gemini.
HIGH…/using-gemini-with-bigquery-remote-functions/README.md96Gemini will analyze the sample images when you invoke the `image_query_remote_function_sp` stored procedure. Simply clic
HIGH…/using-gemini-with-bigquery-remote-functions/README.md104Gemini will analyze the prewritten text prompts when you invoke the `text_query_remote_function_sp` stored procedure. Si
Unused Imports18 hits · 18 pts
SeverityFileLineSnippet
LOWtools/llmevalkit/src/vapo_lib.py27
LOW…ebsocket-demo-apps/gaming-assistant-demo-app/server.py15
LOW…ebsocket-demo-apps/customer-support-demo-app/server.py15
LOW…ive-audio-websocket-demo-apps/react-demo-app/server.py15
LOWgemini/agents/always-on-memory-agent/agent.py25
LOWgemini/agents/always-on-memory-agent/agent.py26
LOW…-playbook/functions/create-intent/src/cloud_storage.py15
LOW…-playbook/functions/create-intent/src/cloud_storage.py16
LOW…ingle-playbook/functions/create-intent/src/bigquery.py15
LOW…o-image-using-imagen3/backend/src/controller/search.py15
LOW…o-image-using-imagen3/backend/src/controller/search.py17
LOW…o-image-using-imagen3/backend/src/controller/search.py19
LOW…-playbook/functions/create-intent/src/cloud_storage.py15
LOW…-playbook/functions/create-intent/src/cloud_storage.py16
LOW…multi-playbook/functions/create-intent/src/bigquery.py15
LOW…lti-agent-travel-concierge-with-adk/backend/test_ae.py16
LOW…lti-agent-travel-concierge-with-adk/backend/test_ae.py18
LOWagents/adk/new-hire-onboarding/app/__init__.py15
Verbosity Indicators9 hits · 17 pts
SeverityFileLineSnippet
LOW…ni/sample-apps/genwealth/deployment/deploy-frontend.sh29# Step 3: Deploy to Cloud Run
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go42 // Step 1: plain JSON logger for startup errors, before settings are loaded.
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go45 // Step 2: load entitlement config.
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go52 // Step 3: load job settings from Cloud Run Job environment variables.
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go59 // Step 4: re-set the default logger with workflow and task_index attributes
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go67 // Step 5: partition cfg.Projects to only the entries assigned to this task.
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go91 // Step 6: wire adapters — identical to cmd/server/main.go.
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go114 // Step 7: run the workflow determined by JobType.
LOW…arch/gemini-enterprise/group-licensing/cmd/job/main.go131 // Step 8: clean exit.
Fake / Example Data17 hits · 17 pts
SeverityFileLineSnippet
LOW…and-documentai-for-entity-extraction/prompts_module.py47 "Employee's Name": "John Doe",
LOW…re-onboarding/tests/eval/evalsets/onboarding_eval.json31 "name": "Jane Doe",
LOW…re-onboarding/tests/eval/evalsets/onboarding_eval.json81 "name": "Jane Doe",
LOW…re-onboarding/tests/eval/evalsets/onboarding_eval.json135 "name": "Jane Doe",
LOW…re-onboarding/tests/eval/evalsets/onboarding_eval.json181 "name": "Jane Doe",
LOW…re-onboarding/tests/eval/evalsets/onboarding_eval.json230 "name": "Jane Doe",
LOW…boarding/tests/eval/evalsets/dead_time_delay_eval.json31 "name": "Jane Doe",
LOW…boarding/tests/eval/evalsets/dead_time_delay_eval.json115 "name": "Jane Doe",
LOW…sing/internal/adapters/discoveryengine/adapter_test.go252 UserPrincipal: "user@example.com",
LOW…sing/internal/adapters/discoveryengine/adapter_test.go411 UserEmail: "user@example.com",
LOW…prise/group-licensing/internal/services/joiner_test.go153 {Email: "user@example.com", Type: models.MemberTypeUser},
LOW…prise/group-licensing/internal/services/joiner_test.go278 {Email: "user@example.com", Type: models.MemberTypeUser},
LOW…prise/group-licensing/internal/services/joiner_test.go432 {Email: "user@example.com", Type: models.MemberTypeUser},
LOW…prise/group-licensing/internal/services/joiner_test.go436 return len(updates) == 1 && updates[0].UserEmail == "user@example.com"
LOW…prise/group-licensing/internal/services/joiner_test.go594 {Email: "user@example.com", Type: models.MemberTypeUser},
LOW…prise/group-licensing/internal/services/joiner_test.go673 userEmail = "user@example.com"
LOW…nterprise/group-licensing/internal/services/gc_test.go470 userEmail = "user@example.com"
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippet
HIGHpartner-models/claude/computer-use-demo/README.md124export ANTHROPIC_API_KEY=%your_api_key%
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMgemini/sample-apps/genwealth/database-files/llm.sql22-- DISCLAIMER: This function is provided for demonstration purposes only and
MEDIUM…ini/sample-apps/genwealth/database-files/llm_local.sql22-- DISCLAIMER: This function is provided for demonstration purposes only and