RawthiL commited on
Commit
a602020
·
1 Parent(s): 4ad564b

fixed data

Browse files
.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
- - 1K<n<10K
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
- 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
  # 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 reformated 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.).
53
 
54
- This dataset includes all the orginal fields and the following ones:
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 enviroment needs the requiered dependencies installed.
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
- - Requiere external data (either downloads or hardcoded csv files):
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:878c00000803f54282ced2a0c559bab4fd19089f17f0e0d7216440d0e9bea874
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:f7bd51dbde1beb1bf984c3c2febc82ce493afa13cf85331f4f91b74ee6ffbd59
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:ffa21424aefbae8f604dc705c43256752b730053d860dd6571b466370d1dede9
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:dbbfad9c4e979d8bcc86fba665a888bee774e38b0377674e148cae9407ebd1d0
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:eca450d49ed4ac1b8d84410f8602f7865d44378933069964191fe532b2c03257
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:80a61f29c1e93e8c1c17e79813be4f07b48718d0dd1e98d764194a88e5eca4d9
3
- size 295792
 
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:c9c309bb67dddeff2a32d0152a31550d7b350e70f292a7b7c424114a15b9f3f4
3
  size 73459
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa1c0f6d221d893750a4271078c7ed326dbafd74f601c453e565a1a1f4260d35
3
  size 73459