CorpusBuild

class CorpusBuild(manifest: CorpusManifest, source: PageSource, work: Path, log: (String) -> Unit = {}, pause: (Long) -> Unit = { Thread.sleep(it) })(source)

Builds the triage corpus. Each repo is paged newest first into <work>/<owner>__<name>.jsonl (already redacted, one canonical JSON issue per line) with a .state file beside it, so a stopped run resumes at the last whole page. assemble sorts everything into one file whose bytes depend only on those lines.

Constructors

Link copied to clipboard
constructor(manifest: CorpusManifest, source: PageSource, work: Path, log: (String) -> Unit = {}, pause: (Long) -> Unit = { Thread.sleep(it) })

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Writes the corpus JSON to out; every repo must be done.

Link copied to clipboard
fun fetch(repo: CorpusRepo): Int

Fetches repo up to the cap and returns how many issues are stored.

Link copied to clipboard