Datasets:
File size: 2,196 Bytes
cddfa45 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | ---
pretty_name: Rust Code Suite
language:
- code
tags:
- code
- rust
- systems-programming
- code-corpus
task_categories:
- text-generation
size_categories:
- 100K<n<1M
source_datasets:
- original
---
# NickIBrody/rust-code-suite
Rust Code Suite is a public raw Rust source corpus built from open-source repositories and selected historical git revisions.
## Splits
- `train.jsonl`
- `validation.jsonl`
- `test.jsonl`
## Schema
```json
{
"id": "owner/repo:path:chunk",
"text": "...",
"arch": "rust",
"syntax": "rust",
"kind": "rust-source",
"repo": "owner/repo",
"path": "src/lib.rs",
"license": "GPL-2.0",
"commit": "abcdef123456",
"source_url": "https://github.com/owner/repo/blob/abcdef123456/src/lib.rs"
}
```
## Build Summary
```json
{
"total_examples": 1079332,
"arch_counts": {
"rust": 1079332
},
"syntax_counts": {
"rust": 1079332
},
"kind_counts": {
"rust-source": 738167,
"macro-heavy": 251258,
"testsuite": 87434,
"inline": 2473
},
"top_repos": [
[
"RustPython/RustPython",
80000
],
[
"rhaiscript/rhai",
80000
],
[
"rust-lang/cargo",
80000
],
[
"rust-lang/rust-analyzer",
80000
],
[
"rust-lang/rust",
80000
],
[
"rustdesk/rustdesk",
80000
],
[
"clap-rs/clap",
77890
],
[
"rust-lang/rustfmt",
77682
],
[
"rust-lang/rust-clippy",
75049
],
[
"serde-rs/serde",
59024
],
[
"tokio-rs/tokio",
57979
],
[
"rust-lang/rustup",
54353
],
[
"hyperium/hyper",
44769
],
[
"awslabs/aws-sdk-rust",
29884
],
[
"mozilla/uniffi-rs",
23585
],
[
"BurntSushi/ripgrep",
21317
],
[
"serde-rs/json",
20506
],
[
"rust-bitcoin/rust-secp256k1",
16189
],
[
"tokio-rs/prost",
11952
],
[
"rust-lang/rustlings",
6059
]
],
"avg_chars": 1887.91,
"size_estimate_bytes": 2037683839,
"train": 971127,
"validation": 54238,
"test": 53967
}
```
|