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

Function _learn

graphify/extract.py:14058–14064  ·  view source on GitHub ↗
(e: dict)

Source from the content-addressed store, hash-verified

14056 return next(iter(targets)) if targets and len(targets) == 1 else None
14057
14058 def _learn(e: dict) -> None:
14059 tf = e.get("target_file")
14060 if not tf or e.get("target") not in owned_ids:
14061 return
14062 dec = _decompose(e.get("target", ""), tf)
14063 if dec is not None:
14064 chain.setdefault((e.get("source"), dec[1]), set()).add(e["target"])
14065
14066 for e in all_edges:
14067 if e.get("relation") == "re_exports":

Callers 1

extractFunction · 0.85

Calls 2

_decomposeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected