The dataset viewer is not available for this dataset.
Error code: ConfigNamesError
Exception: FileNotFoundError
Message: Couldn't find any data file at /src/services/worker/0xA672/GoPrism-5K. Couldn't find '0xA672/GoPrism-5K' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/0xA672/GoPrism-5K@c386fc5664e386bceee944ca4aef76644e32012d/GoPrism-5K.jsonl' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.toml', '.md', '.lance', '.tsfile', '.vortex', '.fa', '.fasta', '.fna', '.ffn', '.faa', '.frn', '.afa', '.gb', '.gbk', '.genbank', '.fq', '.fastq', '.pdb', '.ent', '.cif', '.mmcif', '.PDB', '.ENT', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
config_names = get_dataset_config_names(
path=dataset,
token=hf_token,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
path,
...<4 lines>...
**download_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1178, in dataset_module_factory
raise FileNotFoundError(
...<2 lines>...
) from None
FileNotFoundError: Couldn't find any data file at /src/services/worker/0xA672/GoPrism-5K. Couldn't find '0xA672/GoPrism-5K' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/0xA672/GoPrism-5K@c386fc5664e386bceee944ca4aef76644e32012d/GoPrism-5K.jsonl' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.toml', '.md', '.lance', '.tsfile', '.vortex', '.fa', '.fasta', '.fna', '.ffn', '.faa', '.frn', '.afa', '.gb', '.gbk', '.genbank', '.fq', '.fastq', '.pdb', '.ent', '.cif', '.mmcif', '.PDB', '.ENT', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
GoPrism-5K
A synthetic, reproducible Go (Golang) instruction-tuning corpus. 5,275 samples, one JSON
object per line, ~11.6 MB, standard-library Go only. Synthesized by Yuanbao (Tencent AI
assistant); attribution tag: Hy4.
The name reflects the design: every knowledge unit is refracted into four complementary views (write it, document it, debug it, explain it) across five implementation styles.
The corpus was built from a hand-curated Go knowledge bank that is expanded compositionally
and then rendered into four views per knowledge unit. It is designed for instruction tuning
in the Alpaca-style instruction / input / output shape.
1. What is inside
| Sample type | Count | What it teaches |
|---|---|---|
instruction_code |
1,260 | A task prompt → complete Go file + design rationale |
code_doc |
1,260 | Undocumented Go snippet → documented code + line-by-line walkthrough |
bug_fix |
1,375 | Buggy Go code → diagnosis + corrected code + why the fix works |
concept_qa |
1,380 | A Go concept question → explanation + key points + mistake + illustration |
Views are not independent copies: 1,260 knowledge units each appear in all four views, plus 120 standalone concept questions and 115 standalone code-review exercises. Seeing the same implementation written, documented, debugged and explained is intentional — it gives a model four different supervision signals over the same correct Go code.
Units
- 1,200 compositional units: 24 operations × 10 element types × 5 implementation styles
- 60 curated stdlib recipes, each in a
baseand atested(unit test / benchmark) variant - 24 curated Go concepts × 5 question angles
- 23 curated real bug/fix patterns × 5 review framings
Operations cover filter, transform, take, drop, dedupe, compact, chunk, pairwise, reverse, sort, top-N, total, count, group-by, frequency, index-by, any/all match, min/max, contains, partition, rotate, last and find.
Element types are int, int64, uint, float64, rune, string, time.Duration,
and three custom structs/pointers (User, Record, *Node).
Implementation styles are plain (concrete-typed loop), generic (type parameters),
iterator (iter.Seq, Go 1.23), pipeline (context-aware channel stage) and stdlib
(slices / maps helpers). The recipe units add real breadth: net/http handlers and
clients, graceful shutdown, encoding/json, database/sql, transactions, bufio.Scanner,
io.Copy, filepath.WalkDir, go:embed, log/slog, errors.Is/As/Join, tickers,
fuzz targets, iter.Pull, reflect tags, SHA-256, flag/env config, pprof,
strings.Builder, regexp, and deterministic map iteration.
Difficulty: 2,947 beginner / 1,990 intermediate / 338 advanced.
Go version gates: 3,840 samples target Go 1.21+, 1,435 target Go 1.23+.
Split: 5,161 train / 114 validation (metadata.split, ~2% held out).
2. Data files and structure
| File | Role |
|---|---|
GoPrism-5K.jsonl |
The dataset — 5,275 JSONL records, UTF-8, one object per line |
qc_report.json |
Machine-readable validation report and distribution stats |
README.md |
This dataset card |
go_corpus_generator.zip |
Reproducible generator source |
The YAML front matter above declares a single config (default) pointing at the JSONL file,
so the Hub's dataset viewer can index the data even though the filename is not a standard
train.jsonl / validation.jsonl split pattern. The train/validation split lives in the
split field of each record rather than in separate files.
Every line is a standalone JSON object:
{
"id": "go-000001",
"unit_id": "alg-001-filter-Int-plain",
"type": "instruction_code",
"split": "train",
"topic": "slice-algorithms",
"subtopic": "filter/plain",
"difficulty": "beginner",
"tags": ["slice", "predicate", "allocation", "slices", "plain", "filter", "Int"],
"instruction": "Write a complete, idiomatic Go source file for this requirement: ...",
"input": "Go 1.21+, standard library only, no third-party modules.\n- ...",
"output": "```go\npackage main\n...\n```\n\n### Why this works\n- ...\n\n### Watch out\n...",
"metadata": {
"dataset": "GoPrism-5K",
"go_version": "1.21+",
"stdlib_only": true,
"synthetic": true,
"generator": "go-corpus-synth/1.0",
"seed": 20261119,
"style": "plain",
"elem_type": "int",
"unit_uid": "alg-001-filter-Int-plain",
"has_test": false,
"code_blocks": 1,
"output_chars": 1234,
"bug_tag": "none"
}
}
metadata fields:
| Field | Meaning |
|---|---|
dataset |
Always GoPrism-5K |
go_version |
Minimum Go version the snippet relies on (1.21+ or 1.23+) |
stdlib_only, synthetic |
Always true |
style |
One of plain, generic, iterator, pipeline, stdlib, recipe, tested, curated |
elem_type |
Concrete element type, or n/a |
unit_uid |
Stable id of the source knowledge unit |
bug_tag |
Which defect was injected, or curated-* / none |
has_test, code_blocks, output_chars, seed, generator |
Provenance and shape |
input may be a constraint block, the code under review, or a short topic context depending
on type; it is never null. Code is fenced with ```go.
3. Quality controls
Validation results are in qc_report.json and are reproduced by python3 generate_corpus.py:
| Check | Result |
|---|---|
| Exact duplicate records | 0 of 5,275 |
| Unresolved template placeholders | 0 |
| Unbalanced code fences | 0 |
| Go structural bracket-balance failures (comments/strings stripped) | 0 |
Empty instruction / output fields |
0 |
| Import audit across all 1,260 generated Go files | 0 missing, 0 unused imports |
| Third-party packages | 0 |
Additional design-level controls:
- Deterministic generation (
seed = 20261119); the whole set is bit-for-bit reproducible. - Every generated file includes
package main, exactly the imports its qualifiers use, and any struct definitions its element type needs. - Instruction phrasing is drawn from 10+ templates per view with unit-hashed selection, so samples with the same shape do not share identical prompts.
- Bug/fix samples are grounded: 880 inject a specific real defect into that unit's own
generated code; 495 use curated real-world Go bug patterns (channel leaks,
WaitGroup.Addinside a goroutine,time.Afterin a loop, typed-nil interfaces, slice aliasing,rows.Err(),t.Parallelcapture, and so on).
4. Honest limitations
Read these before training on the file:
- It is synthetic. The corpus is generated from a curated knowledge bank, not mined from real repositories. It is strong on idiomatic Go idioms and explanations, but it does not reproduce the messiness, domain vocabulary or long-range dependencies of production code.
- Structural repetition is unavoidable at this scale. 1,200 units come from a
24 × 10 × 5 cross-product, so operation skeletons recur across styles and element types.
Each recurrence is a genuinely different Go API (concrete vs generic vs
iter.Seqvs channel stage vsslices/maps), but the family resemblance is real. Mix in real-world Go code and dedupe against your existing corpus. - The Go snippets were not compiled. The build environment had no Go toolchain, so
validation is static (bracket balance, import consistency, placeholder/fence scans), not
go build/go vet. Rungofmt -wandgo vetover extracted code blocks, and compile a stratified sample before large-scale training. - Some code blocks are focused fragments, not whole programs.
code_docinputs,concept_qaillustrations, and curated bug reviews intentionally show partial snippets. They are labelled as such in the surrounding text. - Version sensitivity.
iteratorunits require Go 1.23 (iter.Seq,slices.Collect,slices.Sorted(maps.Keys(m)));generic/stdlibunits assume 1.21+ (slices,maps,min). Loop-variable capture behaviour depends on the module'sgodirective, which is covered in the concept Q&A. - Human review recommended. Explanations were authored as accurate Go facts, but any synthetic corpus should be spot-reviewed before being used for high-stakes evaluation or as a sole source of truth.
5. Usage
Load and inspect:
import json, collections
rows = [json.loads(l) for l in open("GoPrism-5K.jsonl", encoding="utf-8")]
print(len(rows), collections.Counter(r["type"] for r in rows))
Assemble an Alpaca-style prompt:
def prompt(r):
if r["input"].strip():
return f"{r['instruction']}\n\n### Input\n{r['input']}\n\n### Response\n"
return f"{r['instruction']}\n\n### Response\n"
Filter to a subtask or a Go version:
go121 = [r for r in rows if r["metadata"]["go_version"] == "1.21+"]
reviews = [r for r in rows if r["type"] == "bug_fix"]
generics = [r for r in rows if r["metadata"]["style"] == "generic"]
Splitting: use metadata.split for the supplied ~2% validation slice, or re-split by
unit_id (not by id) so the four views of a unit never leak across the boundary.
On the Hub, load_dataset("your-name/goprism-instruct-5k-v1") will use the default
config declared in this card.
6. Reproducing / extending
go_corpus_generator.zip contains the full generator:
generate_corpus.py orchestrator (run this)
gc_bank_types.py element-type contexts, import map, struct definitions
gc_bank_ops1.py operations 1-12
gc_bank_ops2.py operations 13-24
gc_bank_facts.py style facts, 24 concepts, 23 bug/fix pairs, injection rules
gc_bank_recipes1.py stdlib recipes 1-15
gc_bank_recipes2.py stdlib recipes 16-30
gc_builders.py Go code emission (5 styles), file wrapping, import detection
gc_views.py instruction phrasing and the four view renderers
gc_qc.py validation and QC report
python3 generate_corpus.py # writes GoPrism-5K.jsonl + qc_report.json beside the script
To change the scale, edit STYLES, the TYPES list, or add entries to OPS, RECIPES,
CONCEPTS or BUGS. Each added operation × type × style yields four new samples; each
added recipe yields eight; each added concept or bug pattern yields five.
7. License
Declared as apache-2.0 in the YAML front matter (a valid Hub license identifier). If you
prefer a data-specific license for this repository, replace it with cc-by-4.0, cc0-1.0
or another identifier from the Hub's license list and keep this section in sync. The Go
snippets themselves are original synthetic examples; the standard-library APIs they describe
are subject to Go's own BSD-style license.
8. Citation
@misc{goprism5k2026,
title = {GoPrism-5K: A Four-View Synthetic Instruction Corpus for Go (Golang)},
author = {Yuanbao (Tencent AI assistant)},
year = {2026},
note = {Synthetic dataset, 5,275 JSONL records, generator go-corpus-synth/1.0, seed 20261119}
}
Suggested Hugging Face repo id: goprism-instruct-5k-v1.
- Downloads last month
- 49