Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
42
122
domain
stringclasses
1 value
What's the most efficient way to flatten a deeply nested list in C++, and why?
coding
Review this Java snippet that is meant to merge two sorted lists and point out the bugs.
coding
How would you reverse a string in TypeScript? Walk through your reasoning.
coding
Write a Go function that find the longest common subsequence of two strings.
coding
Refactor a C++ program that merge two sorted lists to be more readable.
coding
What's the most efficient way to debounce a function in Java, and why?
coding
Refactor a C++ program that check whether a number is prime to be more readable.
coding
What's the most efficient way to check whether a number is prime in Python, and why?
coding
How would you debounce a function in Rust? Walk through your reasoning.
coding
What's the most efficient way to merge two sorted lists in Go, and why?
coding
What's the most efficient way to debounce a function in JavaScript, and why?
coding
Refactor a JavaScript program that merge two sorted lists to be more readable.
coding
Explain to a beginner how to parse an ISO-8601 date using JavaScript.
coding
Explain to a beginner how to debounce a function using Rust.
coding
Explain to a beginner how to reverse a string using Java.
coding
Explain to a beginner how to parse an ISO-8601 date using Java.
coding
Write a Java function that reverse a string.
coding
Write a C++ function that check whether a number is prime.
coding
Write a Go function that check whether a number is prime.
coding
What's the most efficient way to reverse a string in Java, and why?
coding
Review this JavaScript snippet that is meant to flatten a deeply nested list and point out the bugs.
coding
Review this Go snippet that is meant to debounce a function and point out the bugs.
coding
What's the most efficient way to merge two sorted lists in Rust, and why?
coding
Refactor a TypeScript program that merge two sorted lists to be more readable.
coding
Review this Rust snippet that is meant to merge two sorted lists and point out the bugs.
coding
Write a TypeScript function that merge two sorted lists.
coding
Write a Python function that flatten a deeply nested list.
coding
Review this Python snippet that is meant to find the longest common subsequence of two strings and point out the bugs.
coding
Refactor a TypeScript program that find the longest common subsequence of two strings to be more readable.
coding
Refactor a Python program that debounce a function to be more readable.
coding
How would you merge two sorted lists in TypeScript? Walk through your reasoning.
coding
Write a Ruby function that reverse a string.
coding
What's the most efficient way to find the longest common subsequence of two strings in Rust, and why?
coding
Explain to a beginner how to check whether a number is prime using C++.
coding
How would you check whether a number is prime in TypeScript? Walk through your reasoning.
coding
Refactor a JavaScript program that check whether a number is prime to be more readable.
coding
Write a TypeScript function that flatten a deeply nested list.
coding
Review this Java snippet that is meant to reverse a string and point out the bugs.
coding
How would you reverse a string in C++? Walk through your reasoning.
coding
Refactor a TypeScript program that flatten a deeply nested list to be more readable.
coding
Review this C++ snippet that is meant to find the longest common subsequence of two strings and point out the bugs.
coding
Write a JavaScript function that parse an ISO-8601 date.
coding
Refactor a Go program that check whether a number is prime to be more readable.
coding
What's the most efficient way to parse an ISO-8601 date in TypeScript, and why?
coding
Refactor a Ruby program that parse an ISO-8601 date to be more readable.
coding
Explain to a beginner how to check whether a number is prime using Ruby.
coding
What's the most efficient way to parse an ISO-8601 date in C++, and why?
coding
Refactor a Ruby program that reverse a string to be more readable.
coding
Explain to a beginner how to check whether a number is prime using Go.
coding
Explain to a beginner how to flatten a deeply nested list using Java.
coding
How would you parse an ISO-8601 date in Java? Walk through your reasoning.
coding
Write a C++ function that reverse a string.
coding
Review this Rust snippet that is meant to parse an ISO-8601 date and point out the bugs.
coding
How would you merge two sorted lists in Java? Walk through your reasoning.
coding
How would you merge two sorted lists in Go? Walk through your reasoning.
coding
Explain to a beginner how to find the longest common subsequence of two strings using Java.
coding
What's the most efficient way to parse an ISO-8601 date in JavaScript, and why?
coding
Write a Python function that check whether a number is prime.
coding
Explain to a beginner how to flatten a deeply nested list using Ruby.
coding
What's the most efficient way to parse an ISO-8601 date in Rust, and why?
coding
What's the most efficient way to find the longest common subsequence of two strings in Ruby, and why?
coding
How would you flatten a deeply nested list in Python? Walk through your reasoning.
coding
Review this Go snippet that is meant to reverse a string and point out the bugs.
coding
Review this JavaScript snippet that is meant to parse an ISO-8601 date and point out the bugs.
coding
Refactor a Python program that reverse a string to be more readable.
coding
Write a Ruby function that debounce a function.
coding
Review this Go snippet that is meant to flatten a deeply nested list and point out the bugs.
coding
Write a Python function that find the longest common subsequence of two strings.
coding
What's the most efficient way to flatten a deeply nested list in Go, and why?
coding
Refactor a Python program that flatten a deeply nested list to be more readable.
coding
Explain to a beginner how to find the longest common subsequence of two strings using JavaScript.
coding
What's the most efficient way to merge two sorted lists in TypeScript, and why?
coding
Review this Java snippet that is meant to parse an ISO-8601 date and point out the bugs.
coding
What's the most efficient way to find the longest common subsequence of two strings in C++, and why?
coding
Review this JavaScript snippet that is meant to merge two sorted lists and point out the bugs.
coding
How would you find the longest common subsequence of two strings in Go? Walk through your reasoning.
coding
Review this Ruby snippet that is meant to reverse a string and point out the bugs.
coding
Refactor a Go program that find the longest common subsequence of two strings to be more readable.
coding
Review this Rust snippet that is meant to check whether a number is prime and point out the bugs.
coding
What's the most efficient way to flatten a deeply nested list in Rust, and why?
coding
Review this JavaScript snippet that is meant to find the longest common subsequence of two strings and point out the bugs.
coding
Explain to a beginner how to flatten a deeply nested list using C++.
coding
What's the most efficient way to debounce a function in Rust, and why?
coding
What's the most efficient way to check whether a number is prime in Rust, and why?
coding
What's the most efficient way to find the longest common subsequence of two strings in Java, and why?
coding
Review this C++ snippet that is meant to reverse a string and point out the bugs.
coding
What's the most efficient way to check whether a number is prime in Go, and why?
coding
Refactor a Rust program that flatten a deeply nested list to be more readable.
coding
How would you parse an ISO-8601 date in C++? Walk through your reasoning.
coding
Review this Ruby snippet that is meant to flatten a deeply nested list and point out the bugs.
coding
How would you merge two sorted lists in Ruby? Walk through your reasoning.
coding
Write a JavaScript function that merge two sorted lists.
coding
How would you merge two sorted lists in JavaScript? Walk through your reasoning.
coding
Explain to a beginner how to check whether a number is prime using Java.
coding
Write a TypeScript function that check whether a number is prime.
coding
How would you parse an ISO-8601 date in Go? Walk through your reasoning.
coding
Explain to a beginner how to merge two sorted lists using Go.
coding
What's the most efficient way to merge two sorted lists in Python, and why?
coding
Refactor a Ruby program that find the longest common subsequence of two strings to be more readable.
coding
Explain to a beginner how to debounce a function using TypeScript.
coding
End of preview. Expand in Data Studio

SynthKit Demo: Synthetic Coding-Instruction Prompts

Anyone can generate synthetic data. The hard part is knowing whether it's any good, or whether your eval set has leaked into your training set without you noticing. This small dataset is the demo for SynthKit, a tool that generates data and then grades it before you train on it. Try the grader in your browser: 🤗 huggingface.co/spaces/LaelaZ/synthkit.

The point isn't the size. It's the setup. The benchmark split overlaps the training split on purpose, by exactly five records, so the dataset doubles as a worked example of catching train/eval contamination instead of just talking about it.

What's in it

Split Records What it is
train 200 synthetic coding-instruction prompts
benchmark 40 held-out eval prompts, 5 of which also sit in train (planted)

Schema (both splits): one record looks like this.

{"prompt": "How would you reverse a string in TypeScript? Walk through your reasoning.", "domain": "coding"}
  • prompt (string): a coding instruction or question.
  • domain (string): task domain (coding throughout this demo).

The prompts are templated variants over about ten canonical algorithm tasks (binary search, cycle detection, moving averages, prime checking, list flattening, and so on) crossed with eight languages (C++, Rust, Python, JavaScript, TypeScript, Go, Java, Ruby) and a few framings: explain, refactor, debug, reason it through.

What the grader says about it

SynthKit grades what it makes, so this demo comes with its own scorecard, and you can reproduce it from a clean checkout:

Axis Score What it measures
Overall B (89.8 / 100) headline grade
Validity 100 200/200 records well-formed
Uniqueness 92 185/200 unique (0 exact, 15 near-duplicate)
Diversity 70 leans on pairwise self-similarity, since distinct-n shrinks as a set grows
Contamination 98 flags exactly the 5 records that overlap the benchmark, no more, no fewer

Usage

Each split is selectable. Load what you need:

from datasets import load_dataset

ds = load_dataset("LaelaZ/synthkit-demo")
train     = ds["train"]       # 200 prompts
benchmark = ds["benchmark"]   # 40 prompts, 5 planted in train

# Reproduce the contamination signal: which prompts sit in both splits?
overlap = set(r["prompt"] for r in train) & set(r["prompt"] for r in benchmark)
print(len(overlap), "contaminated prompts")  # -> 5

How it was generated

SynthKit's template provider built it: deterministic template substitution over a small task / language / framing grid, then a near-duplicate filter. It's a pure function of the seed templates (examples/*.json in the repo), runs on the Python standard library alone, and contains no real, scraped, or personal data.

What it's good for, and what it isn't

Use it as a tiny, reproducible fixture for demonstrating data-quality grading, validity, uniqueness, diversity, and contamination, or as a quick instruction-prompt sample for a tutorial.

Don't use it to train a model. It's small (240 prompts), single-domain (coding), template-generated so its lexical diversity is bounded by design, and the prompts have no reference answers attached. It's a demonstration of grading, not a training corpus.

License & citation

MIT © 2026 Laela Zorana.

@misc{zorana_synthkit_demo_2026,
  author = {Laela Zorana},
  title  = {SynthKit Demo: Synthetic Coding-Instruction Prompts},
  year   = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/LaelaZ/synthkit-demo}}
}

Links: SynthKit on GitHub · live grader Space · related: LaelaZ/synthetic-ecommerce

Downloads last month
28

Collection including LaelaZ/synthkit-demo