Repository Analysis

GoogleCloudPlatform/knowledge-catalog

Google Cloud Knowledge Catalog Tools and Samples

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of GoogleCloudPlatform/knowledge-catalog, a HTML project with 8,181 GitHub stars. SynthScan v2.0 examined 36,009 lines of code across 259 source files, recording 116 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-08-01
Last Push
8.2K
Stars
HTML
Language
36.0K
Lines of Code
259
Files
116
Pattern Hits
2026-08-02
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 5LOW 111

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 116 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers36 hits · 37 pts
SeverityFileLineSnippetContext
LOWokf/tests/test_viewer.py92def test_generate_visualization_writes_html(tmp_path: Path):CODE
LOWokf/tests/test_viewer.py108def test_index_md_is_not_a_concept(tmp_path: Path):CODE
LOWokf/tests/test_viewer.py124def test_cross_links_become_edges(tmp_path: Path):CODE
LOWokf/tests/test_viewer.py137def test_missing_link_targets_are_skipped(tmp_path: Path):CODE
LOWokf/tests/test_viewer.py158def test_node_colors_match_palette(tmp_path: Path):CODE
LOWokf/tests/test_viewer.py187def test_raises_when_bundle_missing(tmp_path: Path):CODE
LOWokf/tests/test_web_tools.py35def test_seed_fetch_succeeds_and_records_link_depth():CODE
LOWokf/tests/test_web_tools.py52def test_allowed_path_prefix_rejects_off_path_urls():CODE
LOWokf/tests/test_web_tools.py70def test_denied_path_substring_rejects():CODE
LOWokf/tests/test_web_tools.py88def test_max_depth_caps_recursion():CODE
LOWokf/tests/test_web_tools.py112def test_unregistered_url_rejected():CODE
LOWokf/tests/test_web_fetcher.py20def test_fetch_and_parse_extracts_title_links_markdown():CODE
LOWokf/tests/test_web_fetcher.py46def test_fetch_and_parse_rejects_non_html():STRING
LOWokf/tests/test_web_fetcher.py53def test_fetch_and_parse_truncates_large_pages():STRING
LOWokf/tests/test_web_fetcher.py64def test_fetch_and_parse_wraps_network_errors():STRING
LOWokf/tests/test_index.py27def test_regenerate_groups_by_type_and_links_relative(tmp_path: Path):CODE
LOWokf/tests/test_index.py64def test_regenerate_skips_empty_directories(tmp_path: Path):CODE
LOWokf/tests/test_index.py74def test_regenerate_single_child_reuses_description(tmp_path: Path):CODE
LOWokf/tests/test_bigquery_source.py37def test_wildcard_sharded_tables_collapse_to_one_concept(client_cls):CODE
LOWokf/tests/test_bigquery_source.py81def test_sample_rows_uses_list_rows_for_table(client_cls):CODE
LOWokf/tests/test_bigquery_source.py103def test_sample_rows_falls_back_to_query_for_view(client_cls):CODE
LOWokf/tests/test_bigquery_source.py130def test_read_concept_returns_schema_and_partitioning(client_cls):CODE
LOWokf/tests/test_document.py16def test_roundtrip_preserves_frontmatter_and_body():CODE
LOWokf/tests/test_document.py41def test_parse_no_frontmatter_treats_all_as_body():CODE
LOWokf/tests/test_document.py48def test_unterminated_frontmatter_raises():CODE
LOWokf/tests/test_document.py54def test_validate_rejects_missing_type():CODE
LOWokf/tests/test_document.py61def test_validate_accepts_type_only():CODE
LOWokf/tests/test_document.py66def test_normalize_verified_treats_bare_mapping_as_list():CODE
LOWokf/tests/test_bundle_tools.py49def test_write_succeeds_when_no_existing_doc(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py61def test_generated_is_auto_filled(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py75def test_generated_by_and_at_are_preserved_when_supplied(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py91def test_web_pass_rejects_schema_shrinkage(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py112def test_web_pass_rejects_sources_shrinkage(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py129def test_web_pass_allows_augmentation_with_new_section(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py149def test_bq_pass_can_shrink_schema_when_no_web_state(tmp_path):CODE
LOWokf/tests/test_bundle_tools.py166def test_web_pass_skips_guard_for_non_bigquery_table_types(tmp_path):CODE
Unused Imports35 hits · 35 pts
SeverityFileLineSnippetContext
LOWsamples/discovery/tools.py4CODE
LOWsamples/enrichment/src/enrichment/enrich.py8CODE
LOW…mples/enrichment/src/enrichment/documentation/agent.py10CODE
LOWsamples/enrichment/src/enrichment/metadata/snapshot.py6CODE
LOWokf/tests/test_viewer.py1CODE
LOWokf/tests/test_web_tools.py1CODE
LOWokf/tests/test_web_fetcher.py1CODE
LOWokf/tests/test_index.py1CODE
LOWokf/tests/test_bigquery_source.py1CODE
LOWokf/tests/test_document.py1CODE
LOWokf/tests/test_bundle_tools.py1CODE
LOWokf/bundles/acme_retail/attesters/sql_equality.py20CODE
LOWokf/src/reference_agent/runner.py1CODE
LOWokf/src/reference_agent/cli.py1CODE
LOWokf/src/reference_agent/agent.py1CODE
LOWokf/src/reference_agent/tools/web_tools.py1CODE
LOWokf/src/reference_agent/tools/bundle_tools.py1CODE
LOWokf/src/reference_agent/tools/context.py1CODE
LOWokf/src/reference_agent/tools/source_tools.py1CODE
LOWokf/src/reference_agent/web/fetcher.py1CODE
LOWokf/src/reference_agent/bundle/index.py1CODE
LOWokf/src/reference_agent/bundle/paths.py1CODE
LOWokf/src/reference_agent/bundle/__init__.py1CODE
LOWokf/src/reference_agent/bundle/__init__.py1CODE
LOWokf/src/reference_agent/bundle/__init__.py2CODE
LOWokf/src/reference_agent/bundle/__init__.py3CODE
LOWokf/src/reference_agent/bundle/__init__.py3CODE
LOWokf/src/reference_agent/bundle/synthesizer.py1CODE
LOWokf/src/reference_agent/bundle/document.py1CODE
LOWokf/src/reference_agent/viewer/__init__.py1CODE
LOWokf/src/reference_agent/viewer/generator.py1CODE
LOWokf/src/reference_agent/sources/bigquery.py1CODE
LOWokf/src/reference_agent/sources/__init__.py1CODE
LOWokf/src/reference_agent/sources/__init__.py1CODE
LOWokf/src/reference_agent/sources/base.py1CODE
Excessive Try-Catch Wrapping14 hits · 16 pts
SeverityFileLineSnippetContext
LOWsamples/discovery/tools.py67 except Exception as e: # pylint: disable=broad-exceptCODE
LOWsamples/enrichment/src/tools/fileskb/main.py99 except Exception:CODE
MEDIUMsamples/enrichment/src/enrichment/enrich.py54 print(f'Error: {args.dir} does not exist or is not a directory.')CODE
MEDIUMsamples/enrichment/src/enrichment/enrich.py65 print(f'Error: {args.config_dir} does not exist or is not a directory.')CODE
LOWsamples/enrichment/src/enrichment/enrich.py82 except Exception as e:CODE
LOW…les/enrichment/src/enrichment/documentation/sources.py63 except Exception as e:CODE
LOWokf/src/reference_agent/runner.py78 except Exception:CODE
LOWokf/src/reference_agent/tools/bundle_tools.py146 except Exception:CODE
LOWokf/src/reference_agent/tools/source_tools.py59 except Exception as e:CODE
LOWokf/src/reference_agent/web/fetcher.py69 except Exception as e:CODE
LOWokf/src/reference_agent/bundle/index.py17 except Exception:CODE
LOWokf/src/reference_agent/bundle/synthesizer.py48 except Exception as exc:STRING
LOWokf/src/reference_agent/sources/bigquery.py191 except Exception:CODE
LOWokf/src/reference_agent/sources/bigquery.py207 except Exception:CODE
Fake / Example Data7 hits · 10 pts
SeverityFileLineSnippetContext
LOWsamples/enrichment/sample/docs/lipsum.md1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWsamples/enrichment/sample/docs/lipsum.md1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWsamples/enrichment/sample/docs/lipsum.md3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWsamples/enrichment/sample/docs/lipsum.md3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWsamples/enrichment/sample/docs/lipsum.md5Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint ocCODE
LOWsamples/enrichment/sample/docs/lipsum.md5Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint ocCODE
LOWtoolbox/mdcode/demo/kb/setup.ts36 content: '# Placeholder Content\n\nLorem ipsum dolor met',CODE
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWsamples/discovery/SKILL.md42## Step 1: Understand the queryCOMMENT
LOWsamples/discovery/SKILL.md49## Step 2: Semantic Decomposition & Generating VariationsCOMMENT
LOWsamples/discovery/SKILL.md60## Step 3: Call Knowledge Catalog Search Tools (Batching)COMMENT
LOWsamples/discovery/SKILL.md68## Step 3: Call Knowledge Catalog SearchCOMMENT
LOWsamples/discovery/SKILL.md79## Step 4: Merge Search ResultsCOMMENT
LOWsamples/discovery/SKILL.md84## Step 5: Identify the best ResultsCOMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMokf/bundles/ga4/viz.html229window.BUNDLE = {"nodes": [{"data": {"id": "datasets/ga4_obfuscated_sample_ecommerce", "label": "GA4 Obfuscated Sample ECODE
MEDIUMokf/bundles/ga4/viz.html229window.BUNDLE = {"nodes": [{"data": {"id": "datasets/ga4_obfuscated_sample_ecommerce", "label": "GA4 Obfuscated Sample ECODE
MEDIUMokf/bundles/stackoverflow/viz.html229window.BUNDLE = {"nodes": [{"data": {"id": "datasets/stackoverflow", "label": "Stack Overflow Public Dataset", "type": "CODE
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWokf/tests/test_bundle_tools.py23def _set_ctx(tmp_path: Path) -> None:CODE
LOWokf/src/reference_agent/tools/context.py32def set_context(source: Source, bundle_root: Path, model: str = "") -> None:CODE
LOWokf/src/reference_agent/bundle/__init__.py5__all__ = [CODE
LOWokf/src/reference_agent/viewer/__init__.py3__all__ = ["generate_visualization"]CODE
LOWokf/src/reference_agent/sources/__init__.py3__all__ = ["ConceptRef", "Source"]CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsamples/enrichment/src/tools/fileskb/main.py62CODE
LOW…mples/enrichment/src/enrichment/documentation/agent.py45CODE
LOWokf/src/reference_agent/runner.py82CODE
LOWokf/src/reference_agent/bundle/index.py49CODE
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWokf/samples/crypto_bitcoin/seeds.txt1# Seed URLs for the Bitcoin public BigQuery datasetCOMMENT
LOWokf/samples/ga4_merch_store/seeds.txt1# Seed URLs for the GA4 Google Merchandise Store anchor datasetCOMMENT
LOWokf/samples/stackoverflow/seeds.txt1# Seed URLs for the Stack Overflow public BigQuery datasetCOMMENT
LOWokf/src/reference_agent/viewer/static/viz.css161#detail-backlinks { margin-top: 18px; }COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…mples/enrichment/src/enrichment/documentation/agent.py45async def run_task(runner: InMemoryRunner, prompt: str):CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWokf/src/reference_agent/runner.py161CODE