MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _module_stem_key

Function _module_stem_key

graphify/extract.py:6796–6802  ·  view source on GitHub ↗
(nid: str)

Source from the content-addressed store, hash-verified

6794 external_plain_imports.setdefault(src, {}).setdefault(binding, []).append(target)
6795
6796 def _module_stem_key(nid: str) -> str:
6797 n = node_by_id.get(nid)
6798 if not n:
6799 return ""
6800 sf = n.get("source_file") or ""
6801 stem = _source_file_stem(sf) if sf else ""
6802 return _key(stem or n.get("label", ""))
6803
6804 existing_pairs = {(e.get("source"), e.get("target")) for e in all_edges}
6805 # A dispatch-table value is only pre-empted by an edge that already says the

Callers 1

Calls 3

_source_file_stemFunction · 0.85
_keyFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected