MCPcopy
hub / github.com/idank/explainshell / _tally

Function _tally

explainshell/extraction/runner.py:105–113  ·  view source on GitHub ↗

Update batch counters and stats from a single file result.

(batch: BatchResult, entry: ExtractionResult)

Source from the content-addressed store, hash-verified

103
104
105def _tally(batch: BatchResult, entry: ExtractionResult) -> None:
106 """Update batch counters and stats from a single file result."""
107 if entry.outcome == ExtractionOutcome.SUCCESS:
108 batch.stats += entry.stats
109 batch.n_succeeded += 1
110 elif entry.outcome == ExtractionOutcome.SKIPPED:
111 batch.n_skipped += 1
112 else:
113 batch.n_failed += 1
114
115
116def _extract_one(extractor: Extractor, gz_path: str) -> ExtractionResult:

Callers 4

run_sequentialFunction · 0.85
run_parallelFunction · 0.85
run_batchFunction · 0.85
_handle_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected