state stringlengths 3.93k 888k | source stringclasses 1
value | meta dict | questions listlengths 1 1 |
|---|---|---|---|
Commit intent: nbb cli: artifacts read with the 8 MiB EDN bound (bounded-edn/max-edn-bytes), not the 1 MiB source bound — a 12-layer decode guest's kexe (1.09 MB) was refused by extract-native with the wrong limit
Module kotoba.compiler.nbb.io with exactly one token replaced by <<HOLE>>:
(ns kotoba.compiler.nbb.io
"... | code-holes | {
"repo": "amu",
"sha": "ac0a52d1bf25f8b0b074d225889bfae5455bf1fc",
"src_path": "src/kotoba/compiler/nbb/io.cljk",
"old": "max-bytes",
"kind": "symbol",
"has_test": false,
"verified": "commit",
"n_options": 94,
"changed_tokens": 53,
"holes_in_file": 1
} | [
{
"qid": "hole-amu-ac0a52d1-117",
"kind": "choice",
"instructions": "Which symbol should replace <<HOLE>> so that the module does what the commit intends?",
"options": [
"ns",
"kotoba.compiler.nbb.io",
"read-bounded-bytes-file",
"read-text-file",
"write-bytes!",
"... |
Commit intent: project: a .kotoba twin in another root stands in for the .cljk of the same namespace (selfhost ceiling)
Module kotoba.compiler.project-files with exactly one token replaced by <<HOLE>>:
(ns kotoba.compiler.project-files
"Resolve the transitive closure of a multi-module guest from explicit source
ro... | code-holes | {
"repo": "amu",
"sha": "8dd5b1a482b835b1e7bd80202e7056e16f90b688",
"src_path": "src/kotoba/compiler/project_files.cljk",
"old": ">",
"kind": "symbol",
"has_test": false,
"verified": "commit",
"n_options": 101,
"changed_tokens": 49,
"holes_in_file": 1
} | [
{
"qid": "hole-amu-8dd5b1a4-413",
"kind": "choice",
"instructions": "Which symbol should replace <<HOLE>> so that the module does what the commit intends?",
"options": [
"ns",
"kotoba.compiler.project-files",
"load-closed-graph",
"kotoba.lang.text",
"str",
"kotoba... |
Commit intent: project: a template parameter may declare a DEFAULT binding, so a bare :require of clojure.set links (selfhost ceiling)
Test namespace (the specification the module must satisfy):
(ns kotoba.compiler.project-test
(:require [kotoba.lang.text :as str]
[clojure.test :refer [deftest is testing... | code-holes | {
"repo": "amu",
"sha": "4a5e4df42aa5f3789006bef763bbaa6b0cd58de9",
"src_path": "src/kotoba/compiler/project.cljk",
"old": "declared",
"kind": "symbol",
"has_test": true,
"verified": "commit",
"n_options": 255,
"changed_tokens": 401,
"holes_in_file": 3
} | [
{
"qid": "hole-amu-4a5e4df4-385",
"kind": "choice",
"instructions": "Which symbol should replace <<HOLE>> so that the module does what the commit intends?",
"options": [
"undeclared",
"project-modules-admit-a-declared-capability-set",
"project-multi-arity-import-is-callable-at-its-... |
"Commit intent: project: a template parameter may declare a DEFAULT binding, so a bare :require of c(...TRUNCATED) | code-holes | {"repo":"amu","sha":"4a5e4df42aa5f3789006bef763bbaa6b0cd58de9","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-4a5e4df4-413","kind":"choice","instructions":"Which symbol should replace <<HOLE>>(...TRUNCATED) |
"Commit intent: project: a template parameter may declare a DEFAULT binding, so a bare :require of c(...TRUNCATED) | code-holes | {"repo":"amu","sha":"4a5e4df42aa5f3789006bef763bbaa6b0cd58de9","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-4a5e4df4-426","kind":"choice","instructions":"Which symbol should replace <<HOLE>>(...TRUNCATED) |
"Commit intent: project: a template module is instantiated by the linker, once per binding\n\nTest n(...TRUNCATED) | code-holes | {"repo":"amu","sha":"6f412f13055520c5255d9300f52234fd638a4d29","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-6f412f13-4055","kind":"choice","instructions":"Which symbol should replace <<HOLE>(...TRUNCATED) |
"Commit intent: project: a template module is instantiated by the linker, once per binding\n\nTest n(...TRUNCATED) | code-holes | {"repo":"amu","sha":"6f412f13055520c5255d9300f52234fd638a4d29","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-6f412f13-4142","kind":"choice","instructions":"Which symbol should replace <<HOLE>(...TRUNCATED) |
"Commit intent: project: a module can export a multi-arity function\n\nTest namespace (the specifica(...TRUNCATED) | code-holes | {"repo":"amu","sha":"9c29f06548acd673b74f5979195068ece3ebd2be","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-9c29f065-2073","kind":"choice","instructions":"Which symbol should replace <<HOLE>(...TRUNCATED) |
"Commit intent: project: a module can export a multi-arity function\n\nTest namespace (the specifica(...TRUNCATED) | code-holes | {"repo":"amu","sha":"9c29f06548acd673b74f5979195068ece3ebd2be","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-9c29f065-2088","kind":"choice","instructions":"Which symbol should replace <<HOLE>(...TRUNCATED) |
"Commit intent: project: a module can export a multi-arity function\n\nTest namespace (the specifica(...TRUNCATED) | code-holes | {"repo":"amu","sha":"9c29f06548acd673b74f5979195068ece3ebd2be","src_path":"src/kotoba/compiler/proje(...TRUNCATED) | [{"qid":"hole-amu-9c29f065-2113","kind":"choice","instructions":"Which symbol should replace <<HOLE>(...TRUNCATED) |
typed-decisions: code-holes
Single-token substitutions mined from the git history of 64 public repositories in the
kotoba-lang organisation, each turned into one choice question
with a gold answer: the token the commit actually put there. Part of
kotoba-lang/typed-decisions (README 第8反復),
whose trained model is com-kotobalabs/open-jev-deberta-v3-large.
Sibling dataset (ungoaled): com-kotobalabs/typed-decisions-repo-governance.
What a record is
state = the commit message, the module's test namespace when one exists at that commit, and the
module before the commit with exactly one token replaced by <<HOLE>>. questions[0] is a
choice whose options are every same-kind token (keyword / symbol / whitespace-free string)
already present in the module or its test, minus the token being replaced, and whose gold is the
index of the token the commit put there. No option is invented; a hole whose gold was not among
those tokens was dropped (68% of what was mined — the rename target is usually not in the file yet).
meta: repo, sha, src_path, old (the replaced token), kind, has_test,
verified ("test" if the pair is one of the 24 FAIL→PASS verified fix pairs, else "commit"),
n_options, and changed_tokens — inserted + deleted tokens in that file's whole diff.
Filter on changed_tokens. A single-token substitution inside a 500-token rewrite is a diff
alignment, not a decision anyone made. Measured on the first held-out sample: 167/200 records had
changed_tokens > 100, and a strong decision model scored 0.05 on their symbol holes; on
changed_tokens ≤ 100 the same model scored 0.68 on keywords and 0.40 on symbols
(chance 0.013 / 0.006).
Split
By repository (sha256(repo) % 10): test repositories never appear in train.
| split | records | of which changed_tokens ≤ 100 |
|---|---|---|
| train | 877 | 273 |
| validation | 70 | 18 |
| test | 285 | 37 |
One repository from the mining run (app-kotoba-cloud, 68 records) is private and was removed before
publishing; the counts above are after removal. Regenerate the full set from any checkout of the
organisation with python -m typed_decisions.hole_data.
Measured with TypeSafe Jev (reference decision model, not trained on this)
344 isolated holes (changed_tokens ≤ 100, all splits, including the private repo's records):
overall top-1 0.558; keyword 0.683 (n=183), string 0.50 (n=30), symbol 0.397 (n=131). A 0.8
confidence gate auto-applies 34% of holes at 0.92 precision. Hits on symbols are dependency rewires
(clojure.string → kotoba.lang.text); misses are operator semantics (inc → quot) and
namespace-prefix lookalikes. Full rows: reports/hole-eval-jev-iso100.json in the source repo.
Config repo-pool (added 2026-09-20)
Same mining, 18 public repositories × 150 commits, but the candidate pool is every source file
in the repository at that commit (what a symbol index would offer), role-first capped at 255.
Reach triples (22% → 64% of mined holes); meta.file_reachable says whether the module+test pool
would have reached the gold too. 1,160 records. Measured with Jev on the 355 isolated holes:
holes only the repo pool reaches score keyword 0.73 / string 0.69 / symbol 0.19; on the same holes
the wider pool costs symbols about 3 in 26 versus the file pool while keywords are unchanged.
License
Apache-2.0. Source excerpts are from public repositories under their own licenses (kotoba-lang repositories are Apache-2.0 / MIT); this dataset carries the commit SHA and path for each excerpt.
Publisher
Published by Mithril (formerly Kotoba Cloud), operated by Kotoba Labs Inc. The Hugging Face handle com-kotobalabs is unchanged. Support: support.mithril.fund.
- Downloads last month
- 196