MCPcopy Create free account
hub / github.com/idank/explainshell / __init__

Method __init__

explainshell/extraction/manifest.py:58–68  ·  view source on GitHub ↗
(self, path: str, model: str, batch_size: int)

Source from the content-addressed store, hash-verified

56 """
57
58 def __init__(self, path: str, model: str, batch_size: int) -> None:
59 self._path = path
60 self._data = BatchManifest(
61 version=1,
62 model=model,
63 batch_size=batch_size,
64 total_batches=None,
65 batches=[],
66 )
67 self._lock = threading.Lock()
68 os.makedirs(os.path.dirname(path), exist_ok=True)
69
70 def set_total_batches(self, n: int) -> None:
71 """Set the total number of batches (called once after grouping)."""

Callers

nothing calls this directly

Calls 1

BatchManifestClass · 0.85

Tested by

no test coverage detected