MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / output_diff

Method output_diff

aura/output/json.py:65–81  ·  view source on GitHub ↗
(self, diff_analyzer: DiffAnalyzerType)

Source from the content-addressed store, hash-verified

63 self._fd.close()
64
65 def output_diff(self, diff_analyzer: DiffAnalyzerType):
66 payload = {
67 "tables": [],
68 "diffs": []
69 }
70
71 for table in diff_analyzer.tables:
72 payload["tables"].append(table.asdict())
73
74 for d in self.filtered(diff_analyzer.diffs): # type: DiffType
75 diff = d.as_dict()
76 if not self.patch:
77 diff.pop("diff", None)
78
79 payload["diffs"].append(diff)
80
81 print(dumps(payload), file=self._fd)
82
83
84class JSONTyposquattingOutput(TyposquattingOutputBase):

Callers

nothing calls this directly

Calls 4

as_dictMethod · 0.80
popMethod · 0.80
asdictMethod · 0.45
filteredMethod · 0.45

Tested by

no test coverage detected