fixed data
Browse files- .gitignore +1 -0
- README.md +22 -13
- data/Matplotlib/test.parquet +1 -1
- data/Numpy/test.parquet +1 -1
- data/Pandas/test.parquet +1 -1
- data/Pytorch/test.parquet +1 -1
- data/Scipy/test.parquet +1 -1
- data/Sklearn/test.parquet +2 -2
- data/Tensorflow/test.parquet +1 -1
.gitignore
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
untracked
|
| 2 |
.venv
|
| 3 |
.DS_Store
|
|
|
|
| 4 |
.idea
|
| 5 |
*.pyc
|
| 6 |
__pycache__/
|
|
|
|
| 1 |
untracked
|
| 2 |
.venv
|
| 3 |
.DS_Store
|
| 4 |
+
.vscode
|
| 5 |
.idea
|
| 6 |
*.pyc
|
| 7 |
__pycache__/
|
README.md
CHANGED
|
@@ -10,7 +10,7 @@ tags:
|
|
| 10 |
- code
|
| 11 |
pretty_name: PNYX-ds1000
|
| 12 |
size_categories:
|
| 13 |
-
-
|
| 14 |
extra_gated_prompt: >-
|
| 15 |
You agree to NOT reveal examples from this dataset in plain text or images
|
| 16 |
online, to reduce the risk of leakage into foundation model training corpora.
|
|
@@ -20,38 +20,39 @@ configs:
|
|
| 20 |
- config_name: Pandas
|
| 21 |
data_files:
|
| 22 |
- split: test
|
| 23 |
-
|
| 24 |
- config_name: Numpy
|
| 25 |
data_files:
|
| 26 |
- split: test
|
| 27 |
-
|
| 28 |
- config_name: Matplotlib
|
| 29 |
data_files:
|
| 30 |
- split: test
|
| 31 |
-
|
| 32 |
- config_name: Tensorflow
|
| 33 |
data_files:
|
| 34 |
- split: test
|
| 35 |
-
|
| 36 |
- config_name: Scipy
|
| 37 |
data_files:
|
| 38 |
- split: test
|
| 39 |
-
|
| 40 |
- config_name: Sklearn
|
| 41 |
data_files:
|
| 42 |
- split: test
|
| 43 |
-
|
| 44 |
- config_name: Pytorch
|
| 45 |
data_files:
|
| 46 |
- split: test
|
| 47 |
-
|
| 48 |
---
|
| 49 |
|
|
|
|
| 50 |
# PNYX - DS-1000
|
| 51 |
|
| 52 |
-
This is a splitted and tested version of [DS-1000](https://huggingface.co/datasets/xlangai/DS-1000), based on the
|
| 53 |
|
| 54 |
-
This dataset includes all the
|
| 55 |
- **user_chat_prompt**: A chat-style prompt for the problem, adapted from the `prompt` and including an instruction to wrap the solution code into a function.
|
| 56 |
- **test_code**: A re-write of the `code_context` in a format that enable to use the `hf_evaluate` code-evaluator.
|
| 57 |
- **solution_function**: The solution in a compatible format for the `hf_evaluate` code-evaluator, derived from the `reference_code`.
|
|
@@ -96,9 +97,9 @@ results = pass_at_k.compute(references=[test_code], predictions=[[solution_code]
|
|
| 96 |
|
| 97 |
assert results[0]['pass@1'] == 1
|
| 98 |
```
|
| 99 |
-
Note that the execution
|
| 100 |
|
| 101 |
-
### Missing Samples
|
| 102 |
|
| 103 |
Some examples in the original `DS-1000` are not included here:
|
| 104 |
- Failed test, can be a bugged solution or incompatible with current test methodology:
|
|
@@ -106,8 +107,16 @@ Some examples in the original `DS-1000` are not included here:
|
|
| 106 |
- 925
|
| 107 |
- Non-standard test methodology, incompatible with current approach:
|
| 108 |
- 701
|
| 109 |
-
-
|
| 110 |
- 819
|
| 111 |
- 908
|
| 112 |
- 909
|
| 113 |
- 910
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- code
|
| 11 |
pretty_name: PNYX-ds1000
|
| 12 |
size_categories:
|
| 13 |
+
- 100<n<1K
|
| 14 |
extra_gated_prompt: >-
|
| 15 |
You agree to NOT reveal examples from this dataset in plain text or images
|
| 16 |
online, to reduce the risk of leakage into foundation model training corpora.
|
|
|
|
| 20 |
- config_name: Pandas
|
| 21 |
data_files:
|
| 22 |
- split: test
|
| 23 |
+
path: data/Pandas/test.parquet
|
| 24 |
- config_name: Numpy
|
| 25 |
data_files:
|
| 26 |
- split: test
|
| 27 |
+
path: data/Numpy/test.parquet
|
| 28 |
- config_name: Matplotlib
|
| 29 |
data_files:
|
| 30 |
- split: test
|
| 31 |
+
path: data/Matplotlib/test.parquet
|
| 32 |
- config_name: Tensorflow
|
| 33 |
data_files:
|
| 34 |
- split: test
|
| 35 |
+
path: data/Tensorflow/test.parquet
|
| 36 |
- config_name: Scipy
|
| 37 |
data_files:
|
| 38 |
- split: test
|
| 39 |
+
path: data/Scipy/test.parquet
|
| 40 |
- config_name: Sklearn
|
| 41 |
data_files:
|
| 42 |
- split: test
|
| 43 |
+
path: data/Sklearn/test.parquet
|
| 44 |
- config_name: Pytorch
|
| 45 |
data_files:
|
| 46 |
- split: test
|
| 47 |
+
path: data/Pytorch/test.parquet
|
| 48 |
---
|
| 49 |
|
| 50 |
+
|
| 51 |
# PNYX - DS-1000
|
| 52 |
|
| 53 |
+
This is a splitted and tested version of [DS-1000](https://huggingface.co/datasets/xlangai/DS-1000), based on the reformatted version [claudios/ds1000](https://huggingface.co/datasets/claudios/ds1000) (extracted metadata as columns). This version is designed to be compatible with the `hf_evaluate` [code_eval](https://github.com/huggingface/evaluate/tree/main/metrics/code_eval) package. Also, the code was modified to work with newer versions of the used python packages (numpy, scipy, etc.).
|
| 54 |
|
| 55 |
+
This dataset includes all the original fields and the following ones:
|
| 56 |
- **user_chat_prompt**: A chat-style prompt for the problem, adapted from the `prompt` and including an instruction to wrap the solution code into a function.
|
| 57 |
- **test_code**: A re-write of the `code_context` in a format that enable to use the `hf_evaluate` code-evaluator.
|
| 58 |
- **solution_function**: The solution in a compatible format for the `hf_evaluate` code-evaluator, derived from the `reference_code`.
|
|
|
|
| 97 |
|
| 98 |
assert results[0]['pass@1'] == 1
|
| 99 |
```
|
| 100 |
+
Note that the execution environment needs the required dependencies installed.
|
| 101 |
|
| 102 |
+
### Missing Samples and Changes
|
| 103 |
|
| 104 |
Some examples in the original `DS-1000` are not included here:
|
| 105 |
- Failed test, can be a bugged solution or incompatible with current test methodology:
|
|
|
|
| 107 |
- 925
|
| 108 |
- Non-standard test methodology, incompatible with current approach:
|
| 109 |
- 701
|
| 110 |
+
- Require external data (either downloads or hardcoded csv files):
|
| 111 |
- 819
|
| 112 |
- 908
|
| 113 |
- 909
|
| 114 |
- 910
|
| 115 |
+
|
| 116 |
+
Finally, four samples originally assigned to library `Numpy` were moved to `Pytorch` or `Tensorflow`, since due to prompt and imports they were not `Numpy` problems:
|
| 117 |
+
- `Numpy` to `Pytorch`:
|
| 118 |
+
- 377
|
| 119 |
+
- 378
|
| 120 |
+
- `Numpy` to `Tensorflow`:
|
| 121 |
+
- 379
|
| 122 |
+
- 380
|
data/Matplotlib/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 158912
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9aa37bd4c4d6a6e507bf055b5840fa5108449b1875e1ec8464ad1b8425fbcaa
|
| 3 |
size 158912
|
data/Numpy/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 239173
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d966545ef26b3a9671e170c77e94fccbcfa638c937fe019d28d3dacd89e28089
|
| 3 |
size 239173
|
data/Pandas/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 370605
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd20ddc730cf8d00114ecf5da5f466c7c7f9778b4e0666e836ac9746b2cbc0fe
|
| 3 |
size 370605
|
data/Pytorch/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 81198
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3720699120448c050136d0fa385ef6a19af689c27f5713ed0296f70d138e9e12
|
| 3 |
size 81198
|
data/Scipy/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 196992
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d29e33f217aafa78fe344f799b72a15129634d59e9e7288b476cea963d9b8ffc
|
| 3 |
size 196992
|
data/Sklearn/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77d9def5f6f20e9319cff9422f631e6031007502cdd7b3821ebf56ac8030d36d
|
| 3 |
+
size 297947
|
data/Tensorflow/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 73459
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa1c0f6d221d893750a4271078c7ed326dbafd74f601c453e565a1a1f4260d35
|
| 3 |
size 73459
|