Datasets:
Upload Dataset
Browse files- README.md +90 -3
- train/dataset_info.json +68 -0
- train/train-00000-of-00001.parquet +3 -0
- validation/dataset_info.json +68 -0
- validation/validation-00000-of-00001.parquet +3 -0
README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
- question-answering
|
| 8 |
+
pretty_name: Rust-Coder
|
| 9 |
+
size_categories:
|
| 10 |
+
- 10K<n<100K
|
| 11 |
+
tags:
|
| 12 |
+
- rust
|
| 13 |
+
- programming
|
| 14 |
+
- education
|
| 15 |
+
- code-generation
|
| 16 |
+
dataset_info:
|
| 17 |
+
features:
|
| 18 |
+
- name: id
|
| 19 |
+
dtype: string
|
| 20 |
+
- name: instruction
|
| 21 |
+
dtype: string
|
| 22 |
+
- name: code
|
| 23 |
+
dtype: string
|
| 24 |
+
- name: explanation
|
| 25 |
+
dtype: string
|
| 26 |
+
- name: category
|
| 27 |
+
dtype: string
|
| 28 |
+
- name: topic
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: metadata
|
| 31 |
+
struct:
|
| 32 |
+
- name: adjective
|
| 33 |
+
dtype: string
|
| 34 |
+
- name: verb
|
| 35 |
+
dtype: string
|
| 36 |
+
- name: context
|
| 37 |
+
dtype: string
|
| 38 |
+
- name: length
|
| 39 |
+
dtype: int64
|
| 40 |
+
splits:
|
| 41 |
+
- name: train
|
| 42 |
+
num_examples: 10800
|
| 43 |
+
- name: validation
|
| 44 |
+
num_examples: 1200
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
# Rust-Coder
|
| 48 |
+
|
| 49 |
+
**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.
|
| 50 |
+
|
| 51 |
+
## Dataset Structure
|
| 52 |
+
|
| 53 |
+
Each sample consists of:
|
| 54 |
+
- `id`: A unique UUID.
|
| 55 |
+
- `instruction`: A prompt or question about a Rust concept.
|
| 56 |
+
- `code`: An idiomatic Rust code snippet.
|
| 57 |
+
- `explanation`: A detailed explanation of the concept and code.
|
| 58 |
+
- `category`: The high-level Rust category (e.g., Ownership & Borrowing).
|
| 59 |
+
- `topic`: The specific topic within the category.
|
| 60 |
+
- `metadata`: Additional details like used adjectives, verbs, and context.
|
| 61 |
+
|
| 62 |
+
## Covered Topics
|
| 63 |
+
|
| 64 |
+
- Ownership & Borrowing
|
| 65 |
+
- Types & Data Structures
|
| 66 |
+
- Control Flow & Logic
|
| 67 |
+
- Functions & Methods
|
| 68 |
+
- Error Handling
|
| 69 |
+
- Standard Library & Collections
|
| 70 |
+
- Concurrency & Parallelism
|
| 71 |
+
- Macros & Metaprogramming
|
| 72 |
+
- Unsafe & FFI
|
| 73 |
+
- Cargo & Tooling
|
| 74 |
+
|
| 75 |
+
## Duplicate Detection
|
| 76 |
+
|
| 77 |
+
Strict duplicate detection was implemented using SHA-256 hashing of instructions and code snippets to ensure 100% uniqueness across all 12,000 samples.
|
| 78 |
+
|
| 79 |
+
## Usage
|
| 80 |
+
|
| 81 |
+
```python
|
| 82 |
+
from datasets import load_dataset
|
| 83 |
+
|
| 84 |
+
dataset = load_dataset("Convence/Rust-Coder")
|
| 85 |
+
print(dataset['train'][0])
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## License
|
| 89 |
+
|
| 90 |
+
Apache 2.0
|
train/dataset_info.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"builder_name": "Rust-Coder",
|
| 3 |
+
"dataset_name": "Rust-Coder",
|
| 4 |
+
"dataset_size": 12000,
|
| 5 |
+
"description": "A comprehensive text dataset for Rust programming language learning, featuring instructions, code snippets, and detailed explanations.",
|
| 6 |
+
"features": {
|
| 7 |
+
"id": {
|
| 8 |
+
"dtype": "string",
|
| 9 |
+
"_type": "Value"
|
| 10 |
+
},
|
| 11 |
+
"instruction": {
|
| 12 |
+
"dtype": "string",
|
| 13 |
+
"_type": "Value"
|
| 14 |
+
},
|
| 15 |
+
"code": {
|
| 16 |
+
"dtype": "string",
|
| 17 |
+
"_type": "Value"
|
| 18 |
+
},
|
| 19 |
+
"explanation": {
|
| 20 |
+
"dtype": "string",
|
| 21 |
+
"_type": "Value"
|
| 22 |
+
},
|
| 23 |
+
"category": {
|
| 24 |
+
"dtype": "string",
|
| 25 |
+
"_type": "Value"
|
| 26 |
+
},
|
| 27 |
+
"topic": {
|
| 28 |
+
"dtype": "string",
|
| 29 |
+
"_type": "Value"
|
| 30 |
+
},
|
| 31 |
+
"metadata": {
|
| 32 |
+
"adjective": {
|
| 33 |
+
"dtype": "string",
|
| 34 |
+
"_type": "Value"
|
| 35 |
+
},
|
| 36 |
+
"verb": {
|
| 37 |
+
"dtype": "string",
|
| 38 |
+
"_type": "Value"
|
| 39 |
+
},
|
| 40 |
+
"context": {
|
| 41 |
+
"dtype": "string",
|
| 42 |
+
"_type": "Value"
|
| 43 |
+
},
|
| 44 |
+
"length": {
|
| 45 |
+
"dtype": "int64",
|
| 46 |
+
"_type": "Value"
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
},
|
| 50 |
+
"splits": {
|
| 51 |
+
"train": {
|
| 52 |
+
"name": "train",
|
| 53 |
+
"num_examples": 10800
|
| 54 |
+
},
|
| 55 |
+
"validation": {
|
| 56 |
+
"name": "validation",
|
| 57 |
+
"num_examples": 1200
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"license": "apache-2.0",
|
| 61 |
+
"task_categories": [
|
| 62 |
+
"text-generation",
|
| 63 |
+
"question-answering"
|
| 64 |
+
],
|
| 65 |
+
"language": [
|
| 66 |
+
"en"
|
| 67 |
+
]
|
| 68 |
+
}
|
train/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a4b64d3a5164a5b46534e2f484e6b6023389e7073490a1c56c30af945561d90
|
| 3 |
+
size 1371450
|
validation/dataset_info.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"builder_name": "Rust-Coder",
|
| 3 |
+
"dataset_name": "Rust-Coder",
|
| 4 |
+
"dataset_size": 12000,
|
| 5 |
+
"description": "A comprehensive text dataset for Rust programming language learning, featuring instructions, code snippets, and detailed explanations.",
|
| 6 |
+
"features": {
|
| 7 |
+
"id": {
|
| 8 |
+
"dtype": "string",
|
| 9 |
+
"_type": "Value"
|
| 10 |
+
},
|
| 11 |
+
"instruction": {
|
| 12 |
+
"dtype": "string",
|
| 13 |
+
"_type": "Value"
|
| 14 |
+
},
|
| 15 |
+
"code": {
|
| 16 |
+
"dtype": "string",
|
| 17 |
+
"_type": "Value"
|
| 18 |
+
},
|
| 19 |
+
"explanation": {
|
| 20 |
+
"dtype": "string",
|
| 21 |
+
"_type": "Value"
|
| 22 |
+
},
|
| 23 |
+
"category": {
|
| 24 |
+
"dtype": "string",
|
| 25 |
+
"_type": "Value"
|
| 26 |
+
},
|
| 27 |
+
"topic": {
|
| 28 |
+
"dtype": "string",
|
| 29 |
+
"_type": "Value"
|
| 30 |
+
},
|
| 31 |
+
"metadata": {
|
| 32 |
+
"adjective": {
|
| 33 |
+
"dtype": "string",
|
| 34 |
+
"_type": "Value"
|
| 35 |
+
},
|
| 36 |
+
"verb": {
|
| 37 |
+
"dtype": "string",
|
| 38 |
+
"_type": "Value"
|
| 39 |
+
},
|
| 40 |
+
"context": {
|
| 41 |
+
"dtype": "string",
|
| 42 |
+
"_type": "Value"
|
| 43 |
+
},
|
| 44 |
+
"length": {
|
| 45 |
+
"dtype": "int64",
|
| 46 |
+
"_type": "Value"
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
},
|
| 50 |
+
"splits": {
|
| 51 |
+
"train": {
|
| 52 |
+
"name": "train",
|
| 53 |
+
"num_examples": 10800
|
| 54 |
+
},
|
| 55 |
+
"validation": {
|
| 56 |
+
"name": "validation",
|
| 57 |
+
"num_examples": 1200
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"license": "apache-2.0",
|
| 61 |
+
"task_categories": [
|
| 62 |
+
"text-generation",
|
| 63 |
+
"question-answering"
|
| 64 |
+
],
|
| 65 |
+
"language": [
|
| 66 |
+
"en"
|
| 67 |
+
]
|
| 68 |
+
}
|
validation/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9c0dcc96a3e638a1ca668c26cdc8e7104e82610ce692f43c78e569bcb8bc486
|
| 3 |
+
size 180847
|