Muennighoff
commited on
Commit
•
cb382f1
1
Parent(s):
236410f
Update README.md
Browse files
README.md
CHANGED
@@ -68,6 +68,15 @@ language:
|
|
68 |
</tr>
|
69 |
</table>
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
## Dataset Structure
|
72 |
|
73 |
|
@@ -99,7 +108,7 @@ An example looks as follows:
|
|
99 |
### Data Fields
|
100 |
|
101 |
The data fields are the same among all splits:
|
102 |
-
- `task_id`: task id (from 0 to 163)
|
103 |
- `prompt`: the prompt for models relying on code continuation
|
104 |
- `declaration`: the declaration of the function (same as prompt but without the docstring)
|
105 |
- `canonical_solution`: the correct solution passing all unit tests for the problem
|
|
|
68 |
</tr>
|
69 |
</table>
|
70 |
|
71 |
+
## Usage
|
72 |
+
|
73 |
+
```python
|
74 |
+
# pip install -q datasets
|
75 |
+
from datasets import load_dataset
|
76 |
+
ds = load_dataset("bigcode/humanevalpack", "python")["test"]
|
77 |
+
ds[0]
|
78 |
+
```
|
79 |
+
|
80 |
## Dataset Structure
|
81 |
|
82 |
|
|
|
108 |
### Data Fields
|
109 |
|
110 |
The data fields are the same among all splits:
|
111 |
+
- `task_id`: Indicates the language (Python/JavaScript/Java/Go/C++/Rust) and task id (from 0 to 163) of the problem
|
112 |
- `prompt`: the prompt for models relying on code continuation
|
113 |
- `declaration`: the declaration of the function (same as prompt but without the docstring)
|
114 |
- `canonical_solution`: the correct solution passing all unit tests for the problem
|