Dataset · nampdn-ai
Synthetic textbooks with source code analysis
nampdn-ai/tiny-code-textbooks
207 thousand code examples in various languages with detailed explanations in a mini-textbook format.
What's inside
A collection of 207 thousand examples in English representing code snippets and generated textbook-style explanations for them. The source code is filtered from the-stack corpus—the author selected the most meaningful fragments, several thousand for each programming language.
What you can do with it
- SFT training of compact language models for code explanation and analysis
- Training of AI assistants for programming and creating educational materials
- Tasks
- Text generation
- Languages
- English
- Size
- 100K–1M rows
- Downloads this month
- 75
- Likes
- 15
- Access
- on request on Hugging Face
How to load it
from datasets import load_dataset
ds = load_dataset("nampdn-ai/tiny-code-textbooks")