Populate MO-RELISH CodeNet dataset
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +19 -0
- README.md +289 -0
- languages/c/test_in_distribution.jsonl +0 -0
- languages/c/test_out_of_distribution.jsonl +0 -0
- languages/c/train.jsonl +3 -0
- languages/c/validation.jsonl +0 -0
- languages/cpp/test_in_distribution.jsonl +0 -0
- languages/cpp/test_out_of_distribution.jsonl +0 -0
- languages/cpp/train.jsonl +3 -0
- languages/cpp/validation.jsonl +0 -0
- languages/csharp/test_in_distribution.jsonl +3 -0
- languages/csharp/test_out_of_distribution.jsonl +3 -0
- languages/csharp/train.jsonl +3 -0
- languages/csharp/validation.jsonl +3 -0
- languages/fortran/test_in_distribution.jsonl +0 -0
- languages/fortran/test_out_of_distribution.jsonl +0 -0
- languages/fortran/train.jsonl +0 -0
- languages/fortran/validation.jsonl +0 -0
- languages/go/test_in_distribution.jsonl +0 -0
- languages/go/test_out_of_distribution.jsonl +0 -0
- languages/go/train.jsonl +3 -0
- languages/go/validation.jsonl +0 -0
- languages/haskell/test_in_distribution.jsonl +0 -0
- languages/haskell/test_out_of_distribution.jsonl +0 -0
- languages/haskell/train.jsonl +3 -0
- languages/haskell/validation.jsonl +0 -0
- languages/java/test_in_distribution.jsonl +0 -0
- languages/java/test_out_of_distribution.jsonl +0 -0
- languages/java/train.jsonl +3 -0
- languages/java/validation.jsonl +0 -0
- languages/javascript/test_in_distribution.jsonl +0 -0
- languages/javascript/test_out_of_distribution.jsonl +0 -0
- languages/javascript/train.jsonl +3 -0
- languages/javascript/validation.jsonl +0 -0
- languages/julia/test_in_distribution.jsonl +0 -0
- languages/julia/test_out_of_distribution.jsonl +0 -0
- languages/julia/train.jsonl +0 -0
- languages/julia/validation.jsonl +0 -0
- languages/kotlin/test_in_distribution.jsonl +0 -0
- languages/kotlin/test_out_of_distribution.jsonl +0 -0
- languages/kotlin/train.jsonl +3 -0
- languages/kotlin/validation.jsonl +0 -0
- languages/lisp/test_in_distribution.jsonl +0 -0
- languages/lisp/test_out_of_distribution.jsonl +0 -0
- languages/lisp/train.jsonl +0 -0
- languages/lisp/validation.jsonl +0 -0
- languages/lua/test_in_distribution.jsonl +0 -0
- languages/lua/test_out_of_distribution.jsonl +0 -0
- languages/lua/train.jsonl +0 -0
- languages/lua/validation.jsonl +0 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,22 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
languages/c/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
languages/cpp/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
languages/csharp/test_in_distribution.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
languages/csharp/test_out_of_distribution.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
languages/csharp/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
languages/csharp/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
languages/go/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
languages/haskell/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
languages/java/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
languages/javascript/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
languages/kotlin/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
languages/php/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
languages/python/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
languages/ruby/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
languages/rust/test_in_distribution.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
languages/rust/test_out_of_distribution.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
languages/rust/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
languages/rust/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
languages/scala/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: Samsoup CodeNet
|
| 3 |
+
configs:
|
| 4 |
+
- config_name: all
|
| 5 |
+
data_files:
|
| 6 |
+
- split: train
|
| 7 |
+
path: languages/*/train.jsonl
|
| 8 |
+
- split: validation
|
| 9 |
+
path: languages/*/validation.jsonl
|
| 10 |
+
- split: test_in_distribution
|
| 11 |
+
path: languages/*/test_in_distribution.jsonl
|
| 12 |
+
- split: test_out_of_distribution
|
| 13 |
+
path: languages/*/test_out_of_distribution.jsonl
|
| 14 |
+
- config_name: cpp
|
| 15 |
+
data_files:
|
| 16 |
+
- split: train
|
| 17 |
+
path: languages/cpp/train.jsonl
|
| 18 |
+
- split: validation
|
| 19 |
+
path: languages/cpp/validation.jsonl
|
| 20 |
+
- split: test_in_distribution
|
| 21 |
+
path: languages/cpp/test_in_distribution.jsonl
|
| 22 |
+
- split: test_out_of_distribution
|
| 23 |
+
path: languages/cpp/test_out_of_distribution.jsonl
|
| 24 |
+
- config_name: python
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path: languages/python/train.jsonl
|
| 28 |
+
- split: validation
|
| 29 |
+
path: languages/python/validation.jsonl
|
| 30 |
+
- split: test_in_distribution
|
| 31 |
+
path: languages/python/test_in_distribution.jsonl
|
| 32 |
+
- split: test_out_of_distribution
|
| 33 |
+
path: languages/python/test_out_of_distribution.jsonl
|
| 34 |
+
- config_name: java
|
| 35 |
+
data_files:
|
| 36 |
+
- split: train
|
| 37 |
+
path: languages/java/train.jsonl
|
| 38 |
+
- split: validation
|
| 39 |
+
path: languages/java/validation.jsonl
|
| 40 |
+
- split: test_in_distribution
|
| 41 |
+
path: languages/java/test_in_distribution.jsonl
|
| 42 |
+
- split: test_out_of_distribution
|
| 43 |
+
path: languages/java/test_out_of_distribution.jsonl
|
| 44 |
+
- config_name: c
|
| 45 |
+
data_files:
|
| 46 |
+
- split: train
|
| 47 |
+
path: languages/c/train.jsonl
|
| 48 |
+
- split: validation
|
| 49 |
+
path: languages/c/validation.jsonl
|
| 50 |
+
- split: test_in_distribution
|
| 51 |
+
path: languages/c/test_in_distribution.jsonl
|
| 52 |
+
- split: test_out_of_distribution
|
| 53 |
+
path: languages/c/test_out_of_distribution.jsonl
|
| 54 |
+
- config_name: ruby
|
| 55 |
+
data_files:
|
| 56 |
+
- split: train
|
| 57 |
+
path: languages/ruby/train.jsonl
|
| 58 |
+
- split: validation
|
| 59 |
+
path: languages/ruby/validation.jsonl
|
| 60 |
+
- split: test_in_distribution
|
| 61 |
+
path: languages/ruby/test_in_distribution.jsonl
|
| 62 |
+
- split: test_out_of_distribution
|
| 63 |
+
path: languages/ruby/test_out_of_distribution.jsonl
|
| 64 |
+
- config_name: csharp
|
| 65 |
+
data_files:
|
| 66 |
+
- split: train
|
| 67 |
+
path: languages/csharp/train.jsonl
|
| 68 |
+
- split: validation
|
| 69 |
+
path: languages/csharp/validation.jsonl
|
| 70 |
+
- split: test_in_distribution
|
| 71 |
+
path: languages/csharp/test_in_distribution.jsonl
|
| 72 |
+
- split: test_out_of_distribution
|
| 73 |
+
path: languages/csharp/test_out_of_distribution.jsonl
|
| 74 |
+
- config_name: rust
|
| 75 |
+
data_files:
|
| 76 |
+
- split: train
|
| 77 |
+
path: languages/rust/train.jsonl
|
| 78 |
+
- split: validation
|
| 79 |
+
path: languages/rust/validation.jsonl
|
| 80 |
+
- split: test_in_distribution
|
| 81 |
+
path: languages/rust/test_in_distribution.jsonl
|
| 82 |
+
- split: test_out_of_distribution
|
| 83 |
+
path: languages/rust/test_out_of_distribution.jsonl
|
| 84 |
+
- config_name: go
|
| 85 |
+
data_files:
|
| 86 |
+
- split: train
|
| 87 |
+
path: languages/go/train.jsonl
|
| 88 |
+
- split: validation
|
| 89 |
+
path: languages/go/validation.jsonl
|
| 90 |
+
- split: test_in_distribution
|
| 91 |
+
path: languages/go/test_in_distribution.jsonl
|
| 92 |
+
- split: test_out_of_distribution
|
| 93 |
+
path: languages/go/test_out_of_distribution.jsonl
|
| 94 |
+
- config_name: javascript
|
| 95 |
+
data_files:
|
| 96 |
+
- split: train
|
| 97 |
+
path: languages/javascript/train.jsonl
|
| 98 |
+
- split: validation
|
| 99 |
+
path: languages/javascript/validation.jsonl
|
| 100 |
+
- split: test_in_distribution
|
| 101 |
+
path: languages/javascript/test_in_distribution.jsonl
|
| 102 |
+
- split: test_out_of_distribution
|
| 103 |
+
path: languages/javascript/test_out_of_distribution.jsonl
|
| 104 |
+
- config_name: haskell
|
| 105 |
+
data_files:
|
| 106 |
+
- split: train
|
| 107 |
+
path: languages/haskell/train.jsonl
|
| 108 |
+
- split: validation
|
| 109 |
+
path: languages/haskell/validation.jsonl
|
| 110 |
+
- split: test_in_distribution
|
| 111 |
+
path: languages/haskell/test_in_distribution.jsonl
|
| 112 |
+
- split: test_out_of_distribution
|
| 113 |
+
path: languages/haskell/test_out_of_distribution.jsonl
|
| 114 |
+
- config_name: kotlin
|
| 115 |
+
data_files:
|
| 116 |
+
- split: train
|
| 117 |
+
path: languages/kotlin/train.jsonl
|
| 118 |
+
- split: validation
|
| 119 |
+
path: languages/kotlin/validation.jsonl
|
| 120 |
+
- split: test_in_distribution
|
| 121 |
+
path: languages/kotlin/test_in_distribution.jsonl
|
| 122 |
+
- split: test_out_of_distribution
|
| 123 |
+
path: languages/kotlin/test_out_of_distribution.jsonl
|
| 124 |
+
- config_name: php
|
| 125 |
+
data_files:
|
| 126 |
+
- split: train
|
| 127 |
+
path: languages/php/train.jsonl
|
| 128 |
+
- split: validation
|
| 129 |
+
path: languages/php/validation.jsonl
|
| 130 |
+
- split: test_in_distribution
|
| 131 |
+
path: languages/php/test_in_distribution.jsonl
|
| 132 |
+
- split: test_out_of_distribution
|
| 133 |
+
path: languages/php/test_out_of_distribution.jsonl
|
| 134 |
+
- config_name: scala
|
| 135 |
+
data_files:
|
| 136 |
+
- split: train
|
| 137 |
+
path: languages/scala/train.jsonl
|
| 138 |
+
- split: validation
|
| 139 |
+
path: languages/scala/validation.jsonl
|
| 140 |
+
- split: test_in_distribution
|
| 141 |
+
path: languages/scala/test_in_distribution.jsonl
|
| 142 |
+
- split: test_out_of_distribution
|
| 143 |
+
path: languages/scala/test_out_of_distribution.jsonl
|
| 144 |
+
- config_name: perl
|
| 145 |
+
data_files:
|
| 146 |
+
- split: train
|
| 147 |
+
path: languages/perl/train.jsonl
|
| 148 |
+
- split: validation
|
| 149 |
+
path: languages/perl/validation.jsonl
|
| 150 |
+
- split: test_in_distribution
|
| 151 |
+
path: languages/perl/test_in_distribution.jsonl
|
| 152 |
+
- split: test_out_of_distribution
|
| 153 |
+
path: languages/perl/test_out_of_distribution.jsonl
|
| 154 |
+
- config_name: fortran
|
| 155 |
+
data_files:
|
| 156 |
+
- split: train
|
| 157 |
+
path: languages/fortran/train.jsonl
|
| 158 |
+
- split: validation
|
| 159 |
+
path: languages/fortran/validation.jsonl
|
| 160 |
+
- split: test_in_distribution
|
| 161 |
+
path: languages/fortran/test_in_distribution.jsonl
|
| 162 |
+
- split: test_out_of_distribution
|
| 163 |
+
path: languages/fortran/test_out_of_distribution.jsonl
|
| 164 |
+
- config_name: julia
|
| 165 |
+
data_files:
|
| 166 |
+
- split: train
|
| 167 |
+
path: languages/julia/train.jsonl
|
| 168 |
+
- split: validation
|
| 169 |
+
path: languages/julia/validation.jsonl
|
| 170 |
+
- split: test_in_distribution
|
| 171 |
+
path: languages/julia/test_in_distribution.jsonl
|
| 172 |
+
- split: test_out_of_distribution
|
| 173 |
+
path: languages/julia/test_out_of_distribution.jsonl
|
| 174 |
+
- config_name: ocaml
|
| 175 |
+
data_files:
|
| 176 |
+
- split: train
|
| 177 |
+
path: languages/ocaml/train.jsonl
|
| 178 |
+
- split: validation
|
| 179 |
+
path: languages/ocaml/validation.jsonl
|
| 180 |
+
- split: test_in_distribution
|
| 181 |
+
path: languages/ocaml/test_in_distribution.jsonl
|
| 182 |
+
- split: test_out_of_distribution
|
| 183 |
+
path: languages/ocaml/test_out_of_distribution.jsonl
|
| 184 |
+
- config_name: lisp
|
| 185 |
+
data_files:
|
| 186 |
+
- split: train
|
| 187 |
+
path: languages/lisp/train.jsonl
|
| 188 |
+
- split: validation
|
| 189 |
+
path: languages/lisp/validation.jsonl
|
| 190 |
+
- split: test_in_distribution
|
| 191 |
+
path: languages/lisp/test_in_distribution.jsonl
|
| 192 |
+
- split: test_out_of_distribution
|
| 193 |
+
path: languages/lisp/test_out_of_distribution.jsonl
|
| 194 |
+
- config_name: lua
|
| 195 |
+
data_files:
|
| 196 |
+
- split: train
|
| 197 |
+
path: languages/lua/train.jsonl
|
| 198 |
+
- split: validation
|
| 199 |
+
path: languages/lua/validation.jsonl
|
| 200 |
+
- split: test_in_distribution
|
| 201 |
+
path: languages/lua/test_in_distribution.jsonl
|
| 202 |
+
- split: test_out_of_distribution
|
| 203 |
+
path: languages/lua/test_out_of_distribution.jsonl
|
| 204 |
+
- config_name: pascal
|
| 205 |
+
data_files:
|
| 206 |
+
- split: train
|
| 207 |
+
path: languages/pascal/train.jsonl
|
| 208 |
+
- split: validation
|
| 209 |
+
path: languages/pascal/validation.jsonl
|
| 210 |
+
- split: test_in_distribution
|
| 211 |
+
path: languages/pascal/test_in_distribution.jsonl
|
| 212 |
+
- split: test_out_of_distribution
|
| 213 |
+
path: languages/pascal/test_out_of_distribution.jsonl
|
| 214 |
+
---
|
| 215 |
+
|
| 216 |
+
# CodeNet
|
| 217 |
+
|
| 218 |
+
This dataset is the MO-RELISH CodeNet code-generation quality-estimation
|
| 219 |
+
collection derived from official Project CodeNet artifacts. It pairs a
|
| 220 |
+
programming problem, sample I/O, and submitted source code with execution and
|
| 221 |
+
source-size metadata. It is hosted as one Hugging Face dataset with one config
|
| 222 |
+
per programming language plus an `all` config across curated languages.
|
| 223 |
+
|
| 224 |
+
## Configs And Splits
|
| 225 |
+
|
| 226 |
+
| Language | Config | Group | Train | Validation | ID test | OOD test |
|
| 227 |
+
| --- | --- | --- | ---: | ---: | ---: | ---: |
|
| 228 |
+
| C++ | `cpp` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 229 |
+
| Python | `python` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 230 |
+
| Java | `java` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 231 |
+
| C | `c` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 232 |
+
| Ruby | `ruby` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 233 |
+
| C# | `csharp` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 234 |
+
| Rust | `rust` | high_resource | 100,000 | 1,000 | 1,000 | 1,000 |
|
| 235 |
+
| Go | `go` | medium_resource | 10,000 | 1,000 | 1,000 | 1,000 |
|
| 236 |
+
| JavaScript | `javascript` | medium_resource | 10,000 | 1,000 | 1,000 | 1,000 |
|
| 237 |
+
| Haskell | `haskell` | medium_resource | 10,000 | 1,000 | 1,000 | 1,000 |
|
| 238 |
+
| Kotlin | `kotlin` | medium_resource | 10,000 | 1,000 | 1,000 | 1,000 |
|
| 239 |
+
| PHP | `php` | medium_resource | 10,000 | 1,000 | 1,000 | 1,000 |
|
| 240 |
+
| Scala | `scala` | medium_resource | 10,000 | 1,000 | 1,000 | 1,000 |
|
| 241 |
+
| Perl | `perl` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 242 |
+
| Fortran | `fortran` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 243 |
+
| Julia | `julia` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 244 |
+
| OCaml | `ocaml` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 245 |
+
| Lisp | `lisp` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 246 |
+
| Lua | `lua` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 247 |
+
| Pascal | `pascal` | low_resource | 1,000 | 1,000 | 1,000 | 1,000 |
|
| 248 |
+
|
| 249 |
+
`test_in_distribution` shares problem IDs with training data. Every
|
| 250 |
+
in-distribution test problem ID has at least one same-problem training row.
|
| 251 |
+
`test_out_of_distribution` uses a global problem-ID pool that is disjoint from
|
| 252 |
+
train, validation, and in-distribution test across all curated CodeNet
|
| 253 |
+
languages.
|
| 254 |
+
|
| 255 |
+
## Columns
|
| 256 |
+
|
| 257 |
+
Input columns:
|
| 258 |
+
|
| 259 |
+
- `source_text`: plain-text problem statement.
|
| 260 |
+
- `input_text`: submitted source code to evaluate.
|
| 261 |
+
- `reference_outputs`: list containing the sample output when available.
|
| 262 |
+
- `prompt_components.problem_context`: same problem statement as `source_text`.
|
| 263 |
+
- `prompt_components.sample_input`: official sample input.
|
| 264 |
+
- `prompt_components.gold_output`: official sample output.
|
| 265 |
+
- `prompt_components.input_to_evaluate`: same source code as `input_text`.
|
| 266 |
+
|
| 267 |
+
Prediction targets:
|
| 268 |
+
|
| 269 |
+
- `targets.memory_kb`
|
| 270 |
+
- `targets.cpu_time_ms`
|
| 271 |
+
- `targets.code_size_bytes`
|
| 272 |
+
|
| 273 |
+
Output dimensions:
|
| 274 |
+
|
| 275 |
+
- `targets.memory_kb`: Peak memory usage reported by official Project CodeNet metadata, in kilobytes.
|
| 276 |
+
- `targets.cpu_time_ms`: Execution CPU time reported by official Project CodeNet metadata, in milliseconds.
|
| 277 |
+
- `targets.code_size_bytes`: Submitted source-code file size, in bytes.
|
| 278 |
+
|
| 279 |
+
The retained `metadata.status` field records the original CodeNet submission
|
| 280 |
+
status but is not a prediction target. Prediction targets: `memory_kb`, `cpu_time_ms`, `code_size_bytes`.
|
| 281 |
+
|
| 282 |
+
## Loading
|
| 283 |
+
|
| 284 |
+
```python
|
| 285 |
+
from datasets import load_dataset
|
| 286 |
+
|
| 287 |
+
python_ds = load_dataset("Samsoup/CodeNet", "python")
|
| 288 |
+
all_ds = load_dataset("Samsoup/CodeNet", "all")
|
| 289 |
+
```
|
languages/c/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/c/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/c/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82eca4957fdfb5bc62419d836218740773438e5b8d81312b090e98069adfad75
|
| 3 |
+
size 546446949
|
languages/c/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/cpp/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/cpp/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/cpp/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de2b9cdfa304fa9bb18e29b79590839a2441ac657f2d8d193d57edb85dbfcef2
|
| 3 |
+
size 713126737
|
languages/cpp/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/csharp/test_in_distribution.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0c0b80a7f73c276cf3872dc99e9544b42c31eafe42a39c67fcadc8341aed9a4
|
| 3 |
+
size 11107024
|
languages/csharp/test_out_of_distribution.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:987a25d216f000af6c5d3dbf656654a562287b5eb0efca1e4a4f69fd88aab0c3
|
| 3 |
+
size 10794978
|
languages/csharp/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:867e5d7a1114aa2e3697ac005ee9484a0a30e49b9c5c8e0a2108802743dc836f
|
| 3 |
+
size 1203129020
|
languages/csharp/validation.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38efe9ed7083f53775fb0302e2197cb625e873879b173b67d28b3039e5f6dcee
|
| 3 |
+
size 12223199
|
languages/fortran/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/fortran/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/fortran/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/fortran/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/go/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/go/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/go/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b96ef66448e990dfb8da3f7201c30682892058a4db4037cb7327a912fa663015
|
| 3 |
+
size 76766662
|
languages/go/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/haskell/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/haskell/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/haskell/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38f7dfc6a6726123a88868d546c173d486c81869451c6c646593bd199b0be77b
|
| 3 |
+
size 64273540
|
languages/haskell/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/java/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/java/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/java/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f22aaf65a0ce9c3b1ee0c55b0670220c77256135922b74463d85dda9363f5203
|
| 3 |
+
size 852727546
|
languages/java/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/javascript/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/javascript/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/javascript/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffaadded8eb5739fdaeaef587c390c87b21cdde9daad5b90405e71ca6122804d
|
| 3 |
+
size 70674724
|
languages/javascript/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/julia/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/julia/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/julia/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/julia/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/kotlin/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/kotlin/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/kotlin/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85a060b08980297c63814e7499edd767c1467b7b473486057f12b43bdfdad322
|
| 3 |
+
size 63205449
|
languages/kotlin/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lisp/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lisp/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lisp/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lisp/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lua/test_in_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lua/test_out_of_distribution.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lua/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
languages/lua/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|