MCPcopy Index your code
hub / github.com/idank/explainshell / BatchResult

Class BatchResult

explainshell/extraction/types.py:93–107  ·  view source on GitHub ↗

Aggregated result from running an extractor over multiple files. ``stats`` accumulates SUCCESS outcomes plus batch-level token counts. In batch mode, token counts are aggregate (not per-file). Per-file results are delivered via the ``on_result`` callback; only aggregate counters an

Source from the content-addressed store, hash-verified

91
92@dataclass
93class BatchResult:
94 """Aggregated result from running an extractor over multiple files.
95
96 ``stats`` accumulates SUCCESS outcomes plus batch-level token counts.
97 In batch mode, token counts are aggregate (not per-file).
98
99 Per-file results are delivered via the ``on_result`` callback; only
100 aggregate counters and stats are kept here.
101 """
102
103 stats: ExtractionStats = field(default_factory=ExtractionStats)
104 n_succeeded: int = 0
105 n_skipped: int = 0
106 n_failed: int = 0
107 interrupted: bool = False
108
109
110@dataclass(frozen=True)

Callers 15

_run_diff_extractorsFunction · 0.90
extractFunction · 0.90
run_sequentialFunction · 0.90
run_parallelFunction · 0.90
run_batchFunction · 0.90
_fake_runMethod · 0.90
_fake_runMethod · 0.90
_fake_runMethod · 0.90

Calls

no outgoing calls