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

Function _table

src/codegraphcontext/tools/report_generator.py:98–103  ·  view source on GitHub ↗

Render a simple markdown table.

(headers: List[str], rows: List[List[Any]])

Source from the content-addressed store, hash-verified

96
97
98def _table(headers: List[str], rows: List[List[Any]]) -> str:
99 """Render a simple markdown table."""
100 sep = " | ".join("---" for _ in headers)
101 head = " | ".join(headers)
102 body = "\n".join(" | ".join(str(c) for c in row) for row in rows)
103 return f"| {head} |\n| {sep} |\n" + "\n".join(f"| {' | '.join(str(c) for c in r)} |" for r in rows)
104
105
106def _code_block(cypher: str) -> str:

Callers 7

_section_god_nodesFunction · 0.85
_section_complexityFunction · 0.85
_section_dead_codeFunction · 0.85
_section_spring_beansFunction · 0.85
_section_maven_modulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected