Datasets:
gabeorlanski
commited on
Commit
·
719ef4d
1
Parent(s):
488ee38
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,131 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
task_categories:
|
4 |
+
- text-generation
|
5 |
+
- text2text-generation
|
6 |
+
- translation
|
7 |
+
language:
|
8 |
+
- en
|
9 |
+
tags:
|
10 |
+
- code
|
11 |
+
pretty_name: BabelCode TP3
|
12 |
+
size_categories:
|
13 |
+
- 1K<n<10K
|
14 |
---
|
15 |
+
# Dataset Card for BabelCode HumanEval
|
16 |
+
|
17 |
+
## Dataset Description
|
18 |
+
|
19 |
+
- **Repository:** [GitHub Repository](https://github.com/google-research/babelcode)
|
20 |
+
- **Paper:** [Measuring The Impact Of Programming Language Distribution](https://arxiv.org/abs/2302.01973)
|
21 |
+
|
22 |
+
### How To Use This Dataset
|
23 |
+
|
24 |
+
To quickly evaluate BC-TP3 predictions, save the `qid` and `language` keys along with the postprocessed prediction code in a JSON lines file. Then follow the install instructions for [BabelCode](https://github.com/google-research/babelcode), and you can evaluate your predictions.
|
25 |
+
|
26 |
+
### Dataset Summary
|
27 |
+
|
28 |
+
The Translating Python Programming Puzzles (TP3) dataset is created from the verification functions in the Python Programming Puzzles dataset (Schuster et al., 2021) to create this dataset. These functions are hand-crafted by the
|
29 |
+
authors and are used to check if an answer satisfies the constraints of the puzzle. These puzzles range in difficulty from basic character checking to competitive programming problems.
|
30 |
+
|
31 |
+
### Supported Tasks and Leaderboards
|
32 |
+
|
33 |
+
### Languages
|
34 |
+
BC-HumanEval supports:
|
35 |
+
* C++
|
36 |
+
* C#
|
37 |
+
* Dart
|
38 |
+
* Go
|
39 |
+
* Haskell
|
40 |
+
* Java
|
41 |
+
* Javascript
|
42 |
+
* Julia
|
43 |
+
* Kotlin
|
44 |
+
* Lua
|
45 |
+
* PHP
|
46 |
+
* Python
|
47 |
+
* R
|
48 |
+
* Rust
|
49 |
+
* Scala
|
50 |
+
* TypeScript
|
51 |
+
|
52 |
+
## Dataset Structure
|
53 |
+
|
54 |
+
```python
|
55 |
+
>>> from datasets import load_dataset
|
56 |
+
>>> load_dataset("gabeorlanski/bc-tp3")
|
57 |
+
DatasetDict({
|
58 |
+
test: Dataset({
|
59 |
+
features: ['qid', 'title', 'language', 'text', 'signature_with_docstring', 'signature', 'arguments', 'entry_fn_name', 'entry_cls_name', 'test_code'],
|
60 |
+
num_rows: 2576
|
61 |
+
})
|
62 |
+
})
|
63 |
+
```
|
64 |
+
|
65 |
+
### Data Fields
|
66 |
+
|
67 |
+
- `qid`: The question ID used for running tests.
|
68 |
+
- `title`: The title of the question.
|
69 |
+
- `language`: The programming language of the example.
|
70 |
+
- `text`: The description of the problem.
|
71 |
+
- `signature`: The signature for the problem.
|
72 |
+
- `signature_with_docstring`: The signature with the adequately formatted docstring for the given problem.
|
73 |
+
- `arguments`: The arguments of the problem.
|
74 |
+
- `entry_fn_name`: The function's name to use an entry point.
|
75 |
+
- `entry_cls_name`: The class name to use an entry point.
|
76 |
+
- `test_code`: The raw testing script used in the language. If you want to use this, replace `PLACEHOLDER_FN_NAME` (and `PLACEHOLDER_CLS_NAME` if needed) with the corresponding entry points. Next, replace `PLACEHOLDER_CODE_BODY` with the postprocessed prediction.
|
77 |
+
|
78 |
+
## Dataset Creation
|
79 |
+
See section 2 of the [BabelCode Paper](https://arxiv.org/abs/2302.01973) to learn more about how the datasets are translated.
|
80 |
+
|
81 |
+
### Curation Rationale
|
82 |
+
|
83 |
+
### Source Data
|
84 |
+
|
85 |
+
#### Initial Data Collection and Normalization
|
86 |
+
|
87 |
+
#### Who are the source language producers?
|
88 |
+
|
89 |
+
### Annotations
|
90 |
+
|
91 |
+
#### Annotation process
|
92 |
+
|
93 |
+
#### Who are the annotators?
|
94 |
+
|
95 |
+
### Personal and Sensitive Information
|
96 |
+
None.
|
97 |
+
|
98 |
+
## Considerations for Using the Data
|
99 |
+
|
100 |
+
### Social Impact of Dataset
|
101 |
+
|
102 |
+
|
103 |
+
### Discussion of Biases
|
104 |
+
|
105 |
+
### Other Known Limitations
|
106 |
+
|
107 |
+
## Additional Information
|
108 |
+
|
109 |
+
### Dataset Curators
|
110 |
+
Google Research
|
111 |
+
|
112 |
+
### Licensing Information
|
113 |
+
CC-BY-4.0
|
114 |
+
|
115 |
+
### Citation Information
|
116 |
+
```
|
117 |
+
@article{orlanski2023measuring,
|
118 |
+
title={Measuring The Impact Of Programming Language Distribution},
|
119 |
+
author={Orlanski, Gabriel and Xiao, Kefan and Garcia, Xavier and Hui, Jeffrey and Howland, Joshua and Malmaud, Jonathan and Austin, Jacob and Singh, Rishah and Catasta, Michele},
|
120 |
+
journal={arXiv preprint arXiv:2302.01973},
|
121 |
+
year={2023}
|
122 |
+
}
|
123 |
+
@inproceedings{
|
124 |
+
schuster2021programming,
|
125 |
+
title={Programming Puzzles},
|
126 |
+
author={Tal Schuster and Ashwin Kalyan and Alex Polozov and Adam Tauman Kalai},
|
127 |
+
booktitle={Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
|
128 |
+
year={2021},
|
129 |
+
url={https://arxiv.org/abs/2106.05784}
|
130 |
+
}
|
131 |
+
```
|