MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _meta

Function _meta

src/codegraphcontext/cli/cli_helpers.py:633–636  ·  view source on GitHub ↗
(d: dict, key: str, default=None)

Source from the content-addressed store, hash-verified

631 # Ladybug returns the same fields uppercased (_LABEL/_SRC/_DST/_ID). Look
632 # up both spellings so either backend reaches the offline renderer (#1458).
633 def _meta(d: dict, key: str, default=None):
634 if key in d:
635 return d[key]
636 return d.get(key.upper(), default)
637
638 def _has_meta(d: dict, key: str) -> bool:
639 return key in d or key.upper() in d

Callers 2

_node_payloadFunction · 0.70
_edge_payloadFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected