MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _key

Function _key

scripts/parse_exemption_to_json.py:140–141  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

138
139def _diff_entries(old: list[dict], new: list[dict]) -> dict:
140 def _key(e):
141 return (e.get("classification_code", ""), e.get("product_name", ""))
142
143 old_map = {_key(e): e for e in old}
144 new_map = {_key(e): e for e in new}

Callers 1

_diff_entriesFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected