Examples and guides for using the Gemini API
This report summarizes scanner evidence for google-gemini/cookbook, a Jupyter Notebook project with 17,818 GitHub stars. SynthScan examined 15,494 lines of code across 94 source files, recording 231 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 27.9 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 95 finding(s).
Are imports declared and package/API names verified? 44 finding(s).
Are wrappers, guards, and repeated structures necessary? 109 finding(s).
Which changes need focused human review? 231 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 231 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/fastrtc_ui.py | 66 | except (ImportError, ModuleNotFoundError): | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 150 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 169 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 206 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 246 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 276 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 292 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 305 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI.py | 336 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 112 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 135 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 159 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 179 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 204 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 185 | except Exception: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 210 | except Exception: | CODE |
| HIGH | quickstarts/Get_started_LiveTranslate.py | 119 | except Exception: | CODE |
| HIGH | quickstarts/Get_started_LiveAPI_NativeAudio.py | 169 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/websockets/Get_started_LiveAPI.py | 285 | except asyncio.CancelledError: | CODE |
| HIGH | quickstarts/websockets/Get_started_LiveAPI.py | 225 | except KeyError: | CODE |
| HIGH | quickstarts/websockets/Get_started_LiveAPI.py | 233 | except KeyError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/config.py | 33 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | tools/config.py | 35 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | tools/config.py | 41 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | tools/config.py | 43 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 89 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 91 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 105 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 107 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 124 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 126 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 149 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 151 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 232 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 234 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 249 | # ============================================================================== | COMMENT |
| MEDIUM | tools/config.py | 251 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check_all_links.py | 243 | except Exception as e: | CODE |
| LOW | tools/check_all_links.py | 314 | except Exception: | CODE |
| LOW | tools/check_all_links.py | 363 | except Exception as e: | CODE |
| LOW | tools/check_all_links.py | 451 | except Exception as e: | CODE |
| LOW | tools/check_all_links.py | 478 | except Exception as get_err: | CODE |
| LOW | tools/check_all_links.py | 481 | except Exception as e: | CODE |
| LOW | tools/check_readme_links.py | 170 | except Exception as e: | CODE |
| LOW | tools/nb_tester/comparator.py | 352 | except Exception as e: | CODE |
| LOW | tools/nb_tester/reporter.py | 145 | except Exception as e: | CODE |
| LOW | tools/nb_tester/reporter.py | 192 | except Exception as e: | CODE |
| LOW | tools/nb_tester/rules.py | 114 | except Exception as e: | CODE |
| LOW | tools/nb_tester/cli.py | 182 | except Exception as e: | CODE |
| LOW | tools/nb_tester/cli.py | 228 | except Exception as e: | CODE |
| LOW | tools/nb_tester/cli.py | 567 | except Exception as ex: | CODE |
| LOW | tools/nb_tester/llm_judge.py | 214 | except Exception as e: | CODE |
| LOW | tools/nb_tester/grounded_verifier.py | 197 | except Exception as e: | CODE |
| LOW | tools/nb_tester/ai_security_auditor.py | 191 | except Exception as e: | CODE |
| LOW | tools/nb_tester/executor.py | 198 | except Exception as e: | CODE |
| LOW | tools/nb_tester/executor.py | 365 | except Exception as ex: | CODE |
| LOW | tools/nb_tester/executor.py | 443 | except Exception as kernel_exc: | CODE |
| LOW | tools/nblint/linter.py | 170 | except Exception as e: | CODE |
| LOW | tools/nblint/rules/model_selector.py | 75 | except Exception as e: | CODE |
| LOW | tools/nbfmt/formatter.py | 207 | except Exception as e: | CODE |
| LOW | examples/gradio_audio.py | 128 | except Exception as e: | CODE |
| LOW | examples/gradio_audio.py | 151 | except Exception as e: | CODE |
| MEDIUM | examples/gradio_audio.py | 152 | print(f"Error in receive: {str(e)}") | CODE |
| LOW | examples/gradio_audio.py | 189 | except Exception as e: | CODE |
| LOW | examples/gradio_audio.py | 221 | except Exception as e: | CODE |
| MEDIUM | quickstarts/Get_started_LyriaRealTime.py | 143 | print("Error: Matching enum not found.") | CODE |
| MEDIUM⚡ | quickstarts/Get_started_LyriaRealTime.py | 175 | print(f"Error: Empty prompt text in segment '{segment_str_raw}'. Skipping this segment." | CODE |
| MEDIUM⚡ | quickstarts/Get_started_LyriaRealTime.py | 182 | print(f"Error: Invalid weight '{weight_s}' in segment '{segment_str_raw}'. Must be a num | CODE |
| MEDIUM⚡ | quickstarts/Get_started_LyriaRealTime.py | 187 | print(f"Error: Segment '{segment_str_raw}' is not in 'text:weight' format. Skipping this seg | CODE |
| MEDIUM | quickstarts/Get_started_LyriaRealTime.py | 199 | print("Error: Input contained ':' suggesting multi-prompt format, but no valid 'text:weight' seg | CODE |
| MEDIUM | quickstarts/Get_started_LiveAPI.py | 267 | def capture_screen(self): | CODE |
| LOW | quickstarts/Get_started_LiveTranslate.py | 119 | except Exception: | CODE |
| LOW | quickstarts/Get_started_LiveTranslate.py | 161 | except Exception as e: | CODE |
| LOW | quickstarts/Get_started_LiveTranslate.py | 185 | except Exception: | CODE |
| LOW | quickstarts/Get_started_LiveTranslate.py | 210 | except Exception: | CODE |
| LOW | quickstarts/Get_started_LiveTranslate.py | 264 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/nblint_cli.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/config.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/check_all_links.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/check_readme_links.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/nbfmt_cli.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/test_check_all_links.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/nb_tester/config.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/comparator.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/model_override.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/reporter.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/rules.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/logger.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/cli.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/security_scanner.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/llm_judge.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/grounded_verifier.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/ai_security_auditor.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nb_tester/executor.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/linter.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/rules/style.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/rules/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/rules/gemini.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/rules/structure.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/rules/syntax.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nblint/rules/model_selector.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nbfmt/formatter.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | tools/nbfmt/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | examples/fastrtc_ui.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | examples/gradio_audio.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | quickstarts/Get_started_LyriaRealTime.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | quickstarts/Get_started_LiveAPI.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | quickstarts/Get_started_LiveTranslate.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | quickstarts/Get_started_LiveAPI_NativeAudio.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | quickstarts/websockets/Get_started_LiveAPI.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | quickstarts/websockets/shell_websockets.sh | 1 | #!/bin/bash | COMMENT |
| LOW | quickstarts/file-api/sample.sh | 1 | #!/bin/bash | COMMENT |
| LOW | quickstarts/file-api/sample.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/nblint_cli.py | 39 | CODE | |
| LOW | tools/nbfmt_cli.py | 39 | CODE | |
| LOW | tools/nbfmt_cli.py | 49 | CODE | |
| LOW | tools/nb_tester/comparator.py | 35 | CODE | |
| LOW | tools/nb_tester/comparator.py | 37 | CODE | |
| LOW | tools/nb_tester/comparator.py | 40 | CODE | |
| LOW | tools/nb_tester/comparator.py | 41 | CODE | |
| LOW | tools/nb_tester/comparator.py | 42 | CODE | |
| LOW | tools/nb_tester/reporter.py | 36 | CODE | |
| LOW | tools/nb_tester/reporter.py | 36 | CODE | |
| LOW | tools/nb_tester/reporter.py | 40 | CODE | |
| LOW | tools/nb_tester/reporter.py | 41 | CODE | |
| LOW | tools/nb_tester/reporter.py | 42 | CODE | |
| LOW | tools/nb_tester/__init__.py | 22 | CODE | |
| LOW | tools/nb_tester/logger.py | 40 | CODE | |
| LOW | tools/nb_tester/cli.py | 39 | CODE | |
| LOW | tools/nb_tester/cli.py | 47 | CODE | |
| LOW | tools/nb_tester/cli.py | 54 | CODE | |
| LOW | tools/nb_tester/grounded_verifier.py | 39 | CODE | |
| LOW | tools/nb_tester/executor.py | 41 | CODE | |
| LOW | tools/nb_tester/executor.py | 49 | CODE | |
| LOW | tools/nb_tester/executor.py | 53 | CODE | |
| LOW | tools/nblint/__init__.py | 17 | CODE | |
| LOW | tools/nblint/__init__.py | 17 | CODE | |
| LOW | tools/nblint/__init__.py | 17 | CODE | |
| LOW | tools/nblint/linter.py | 32 | CODE | |
| LOW | tools/nblint/rules/style.py | 30 | CODE | |
| LOW | tools/nblint/rules/structure.py | 29 | CODE | |
| LOW | tools/nblint/rules/model_selector.py | 32 | CODE | |
| LOW | tools/nbfmt/formatter.py | 31 | CODE | |
| LOW | tools/nbfmt/formatter.py | 31 | CODE | |
| LOW | tools/nbfmt/formatter.py | 35 | CODE | |
| LOW | tools/nbfmt/__init__.py | 17 | CODE | |
| LOW | tools/nbfmt/__init__.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | quickstarts-js/Get_Started.js | 732 | return False | CODE |
| HIGH⚡ | quickstarts-js/Get_Started.js | 735 | return False | CODE |
| HIGH⚡ | quickstarts-js/Get_Started.js | 736 | return True | CODE |
| HIGH | quickstarts-js/Get_Started.js | 747 | print(f'The first 50 prime numbers are: {primes}') | CODE |
| HIGH | quickstarts-js/Get_Started.js | 748 | print(f'The sum of the first 50 prime numbers is: {sum_of_primes}') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/nblint_cli.py | 125 | CODE | |
| LOW | tools/config.py | 160 | CODE | |
| LOW | tools/check_all_links.py | 211 | CODE | |
| LOW | tools/check_all_links.py | 320 | CODE | |
| LOW | tools/check_all_links.py | 439 | CODE | |
| LOW | tools/check_all_links.py | 487 | CODE | |
| LOW | tools/check_readme_links.py | 235 | CODE | |
| LOW | tools/nbfmt_cli.py | 113 | CODE | |
| LOW | tools/nbfmt_cli.py | 130 | CODE | |
| LOW | tools/nb_tester/comparator.py | 83 | CODE | |
| LOW | tools/nb_tester/cli.py | 57 | CODE | |
| LOW | tools/nb_tester/cli.py | 406 | CODE | |
| LOW | tools/nb_tester/security_scanner.py | 145 | CODE | |
| LOW | tools/nb_tester/security_scanner.py | 221 | CODE | |
| LOW | tools/nb_tester/llm_judge.py | 74 | CODE | |
| LOW | tools/nb_tester/grounded_verifier.py | 83 | CODE | |
| LOW | tools/nb_tester/ai_security_auditor.py | 77 | CODE | |
| LOW | tools/nb_tester/executor.py | 146 | CODE | |
| LOW | tools/nblint/rules/style.py | 85 | CODE | |
| LOW | tools/nblint/rules/style.py | 136 | CODE | |
| LOW | tools/nblint/rules/structure.py | 102 | CODE | |
| LOW | tools/nblint/rules/syntax.py | 45 | CODE | |
| LOW | tools/nbfmt/formatter.py | 110 | CODE | |
| LOW | examples/gradio_audio.py | 226 | CODE | |
| LOW | quickstarts/Get_started_LyriaRealTime.py | 64 | CODE | |
| LOW | quickstarts/Get_started_LyriaRealTime.py | 88 | CODE | |
| LOW | quickstarts/Get_started_LiveAPI.py | 176 | CODE | |
| LOW | quickstarts/Get_started_LiveTranslate.py | 138 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/nb_tester/README.md | 60 | export GEMINI_API_KEY="your-api-key" | CODE |
| HIGH | tools/nb_tester/security_scanner.py | 162 | or "YOUR_API_KEY" in upper_line | CODE |
| HIGH | tools/nb_tester/security_scanner.py | 164 | or "YOUR-API-KEY" in upper_line | CODE |
| HIGH | quickstarts/file-api/README.md | 28 | echo "GOOGLE_API_KEY='YOUR_API_KEY'" >> .env | CODE |
| HIGH | quickstarts/file-api/README.md | 43 | echo "GOOGLE_API_KEY='YOUR_API_KEY'" >> .env | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check_all_links.py | 170 | def extract_anchors_from_content(content: str) -> Set[str]: | CODE |
| LOW | tools/check_all_links.py | 295 | def get_changed_files_from_git(repo_root: pathlib.Path) -> List[str]: | CODE |
| LOW | tools/test_check_all_links.py | 102 | def test_extract_anchors_from_content(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 116 | def test_extract_links_skips_data_uris(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 126 | def test_validate_internal_link_success(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 145 | def test_validate_internal_link_failures(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 162 | def test_normalize_cell_source(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 187 | def test_extract_links_handles_source_variations(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 213 | def test_get_file_anchors_handles_source_variations(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 237 | def test_uppercase_scheme_link_handling(self) -> None: | CODE |
| LOW | tools/test_check_all_links.py | 264 | def test_github_blob_url_with_query_params_and_casing(self) -> None: | CODE |
| LOW | tools/nb_tester/comparator.py | 325 | def _compare_schema_validation( | CODE |
| LOW | tools/nb_tester/reporter.py | 149 | def write_github_step_summary(self, suite_report: SuiteReport) -> None: | CODE |
| LOW | tools/nb_tester/rules.py | 204 | def resolve_cell_action_and_strategy( | CODE |
| LOW | tools/nblint/rules/gemini.py | 111 | def check_api_key_secret_name( | CODE |
| LOW | tools/nblint/rules/gemini.py | 147 | def check_no_hardcoded_api_keys( | CODE |
| LOW | tools/nblint/rules/gemini.py | 188 | def check_no_youtube_downloaders( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/nblint_cli.py | 0 | configures root logger format and verbosity. args: verbose: if true, set logging level to debug, else info. | STRING |
| HIGH | tools/check_readme_links.py | 0 | configures root logger format and verbosity. args: verbose: if true, set logging level to debug, else info. | STRING |
| HIGH | tools/nbfmt_cli.py | 0 | configures root logger format and verbosity. args: verbose: if true, set logging level to debug, else info. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/nblint_cli.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/check_readme_links.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nbfmt_cli.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nb_tester/__init__.py | 25 | __all__ = ["ModelOverrideTransformer"] | CODE |
| LOW | tools/nblint/__init__.py | 19 | __all__ = ["NotebookLinter", "LintDiagnostic", "LintResult"] | CODE |
| LOW | tools/nblint/linter.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nblint/rules/style.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nblint/rules/gemini.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nblint/rules/structure.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nblint/rules/syntax.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nblint/rules/model_selector.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nbfmt/formatter.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/nbfmt/__init__.py | 19 | __all__ = ["NotebookFormatter", "FormatResult"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check_readme_links.py | 213 | # Check if located in an ignored directory (e.g. tools/, .github/) | COMMENT |
| LOW | tools/nblint/rules/style.py | 115 | # Check if line should be skipped (e.g. blockquote, code line, form parameter) | COMMENT |
| LOW | tools/nblint/rules/structure.py | 145 | # Check if href URL exists | COMMENT |
| LOW | quickstarts/Get_started_LiveAPI.py | 215 | # Check if the frame was read successfully | COMMENT |
| LOW | quickstarts/Get_started_LiveTranslate.py | 155 | # Print output (translated) transcript | COMMENT |
| LOW | quickstarts/websockets/Get_started_LiveAPI.py | 119 | # Check if the frame was read successfully | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | quickstarts/Get_started_LiveAPI.py | 86 | # Trigger tokens sent so that model does not hallucinate in long conversations | COMMENT |
| MEDIUM | quickstarts/Get_started_LiveAPI.py | 87 | # Sliding window to retain the context within the context window limit | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/nb_tester/ai_security_auditor.py | 53 | """Structured security audit result generated by Gemini.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | quickstarts-js/Audio.js | 253 | The video presents a compelling review of Google's new Gemini 2.5 Pro Experimental AI, asserting its superiority as | CODE |