Batch jobscripts from public GitHub, with what each one asks for
– unique jobscripts for six workload managers, found in – public repositories. Every script comes with its full text, a permalink to the commit it was read from, and labels parsed from its directives: nodes, tasks, GPUs, memory, walltime, queue, and every option it sets.
Built – with jobscript-harvester.
How the corpus was built
GitHub's web code search returns at most 100 results per query, so the harvester splits a query that hits the cap into narrower ones by language, archived state, file extension, directive option, and software term, until each returns fewer than 100. Search results only identify repositories. Each repository is then shallow-cloned and every file under 384 KB is checked for directive lines, so one hit can yield many scripts.
From queries to scripts
Counts at each stage.
Repositories discovered as the search ran
Cumulative distinct repositories against queries run, in order. Flat stretches are splits that only re-surfaced known repositories.
Search by directive
A saturated query returned 100 results and was split further.
| Directive | Queries | With results | Empty | Saturated | Hits | Repositories |
|---|
What is in it
Scripts by workload manager
Unique scripts carrying each manager's directives.
Script size
Unique scripts by size in bytes.
Scripts per repository
Scanned repositories by how many jobscript files they hold.
How often the same script recurs
Unique scripts by the number of places the identical content was found.
File extensions
Most common extensions among kept files.
Repository licenses
Repositories with scripts, by license reported by GitHub.
Largest contributors
Repositories with the most jobscript files. Many hold generated per-sample or per-run submission scripts.
What the scripts ask for
Labels come only from directive lines, read the way each manager reads them: for example Slurm stops at the first command, and PBS allows line continuation. Nothing is inferred from the script body.
How often each resource is stated
Share of scripts whose directives set each value.
Most used directive options
Share of scripts that set each option at least once.
Requested walltime
Scripts that state a time limit.
Requested nodes
Scripts that state a fixed node count.
Browse a sample
A fixed sample of – scripts per manager, limited to scripts under – bytes, with email addresses removed. To search all – scripts, run the local explorer described under Get the data.
Select a script.
Get the data
Files
scripts/scripts-XX.jsonl.gz: one JSON record per unique script, in 256 files keyed by the first two hex digits of the script's git blob SHA.index.csv.gz: one row per script and manager with flat metadata and labels, no content. Start here for analysis.repos.csv.gz: one row per repository with license, stars, and scan status.manifest.json: counts, field descriptions, and a SHA-256 for every file.
One script record
blob_sha,size,managers,directive_linescontent: the script textoccurrences: each repository, commit, path, permalink, and license where it was foundlabels: per manager, every option read and the normalized fieldstotals: per manager, job-level nodes, tasks, GPUs, walltime, queue, array size
Load it
import gzip, json
import pandas as pd
index = pd.read_csv("index.csv.gz")
gpu_jobs = index[(index.manager == "slurm") & (index.gpu_request == 1)]
def script(blob_sha): # full record, with content
with gzip.open(f"scripts/scripts-{blob_sha[:2]}.jsonl.gz", "rt") as fh:
return next(r for r in map(json.loads, fh) if r["blob_sha"] == blob_sha)
Search everything locally
With the SQLite database in the repository directory, the explorer serves a search interface over every script: filter by manager, repository, path, queue, nodes, tasks, GPUs, walltime, or any text in the script.
python3 explorer.py # then open http://127.0.0.1:8000
Before you reuse scripts
Scripts are copied from public repositories and remain under their repositories' terms. Scripts can contain account names, email addresses, and home paths.