MCPcopy
hub / github.com/Gracker/awesome-android-ai-dev-sources / primary_url

Function primary_url

process_candidates.py:210–217  ·  view source on GitHub ↗
(source: dict[str, Any])

Source from the content-addressed store, hash-verified

208
209
210def primary_url(source: dict[str, Any]) -> str:
211 links = link_values(source)
212 for key in LINK_PRIORITY:
213 if key in links:
214 return normalize_url(links[key])
215 for value in links.values():
216 return normalize_url(value)
217 return ""
218
219
220def same_source(left: dict[str, Any], right: dict[str, Any]) -> bool:

Callers 2

same_sourceFunction · 0.85
duplicate_reasonFunction · 0.85

Calls 2

link_valuesFunction · 0.85
normalize_urlFunction · 0.85

Tested by

no test coverage detected