Datasets:
Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html>
<h"... is not valid JSON
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.
Rust-Coder
Rust-Coder is a comprehensive text dataset designed for Rust programming language learning. It contains 12,000 unique samples focusing on distinct Rust concepts, code snippets, and explanations.
Dataset Structure
Each sample consists of:
id: A unique UUID.instruction: A prompt or question about a Rust concept.code: An idiomatic Rust code snippet.explanation: A detailed explanation of the concept and code.category: The high-level Rust category (e.g., Ownership & Borrowing).topic: The specific topic within the category.metadata: Additional details like used adjectives, verbs, and context.
Covered Topics
- Ownership & Borrowing
- Types & Data Structures
- Control Flow & Logic
- Functions & Methods
- Error Handling
- Standard Library & Collections
- Concurrency & Parallelism
- Macros & Metaprogramming
- Unsafe & FFI
- Cargo & Tooling
Duplicate Detection
Strict duplicate detection was implemented using SHA-256 hashing of instructions and code snippets to ensure 100% uniqueness across all 12,000 samples.
Usage
from datasets import load_dataset
dataset = load_dataset("Convence/Rust-Coder")
print(dataset['train'][0])
License
Apache 2.0
- Downloads last month
- 230