Datasets:
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- code
|
4 |
+
- en
|
5 |
+
license: mit
|
6 |
+
task_categories:
|
7 |
+
- text-generation
|
8 |
+
pretty_name: RepoExec-Instruct
|
9 |
+
viewer: true
|
10 |
+
---
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
## Table of Contents
|
15 |
+
- [Dataset Summary](#dataset-summary)
|
16 |
+
- [Dataset Structure](#dataset-structure)
|
17 |
+
- [Data Instances](#data-instances)
|
18 |
+
- [Data Fields](#data-fields)
|
19 |
+
- [Data Splits](#data-splits)
|
20 |
+
- [Usage](#usage)
|
21 |
+
- [Additional Information](#additional-information)
|
22 |
+
- - [Other Resources](#other-resources)
|
23 |
+
- [Licensing Information](#licensing-information)
|
24 |
+
- [Citation Information](#citation-information)
|
25 |
+
- [Contributions](#contributions)
|
26 |
+
|
27 |
+
|
28 |
+
## Dataset Description
|
29 |
+
|
30 |
+
- **Repository:** [FSoft-AI4Code/RepoExec](https://github.com/FSoft-AI4Code/RepoExec)
|
31 |
+
- **Paper:** [RepoExec: Evaluate Code Generation with a Repository-Level Executable Benchmark](https://arxiv.org/html/2406.11927v1)
|
32 |
+
- **Contact:** [email protected]
|
33 |
+
- **Website:** https://www.fpt-aicenter.com/ai-residency/
|
34 |
+
|
35 |
+
|
36 |
+
# RepoExec: Evaluate Code Generation with a Repository-Level Executable Benchmark
|
37 |
+
|
38 |
+
|
39 |
+
## Dataset Summary
|
40 |
+
This source contains the instruction-tuning dataset to fine-tune models in our work.
|
41 |
+
|
42 |
+
## Dataset Structure
|
43 |
+
### Data Instances
|
44 |
+
```
|
45 |
+
{
|
46 |
+
"id": 0,
|
47 |
+
"prompt": "import base64\nimport random\nimport unicodedata\nimport zlib\nfrom typing import Union\nfrom uuid import uuid4\nfrom ._regex import *\nfrom .errors import InvalidInputError\nfrom .validation import is_snake_case, is_full_string, is_camel_case, is_integer, is_string\n\nclass InvalidInputError(TypeError):\n \"\"\"\n Custom error raised when received object is not a string as expected.\n \"\"\"\n\n def __init__(self, input_data: Any):\n \"\"\"\n :param input_data: Any received object\n \"\"\"\n type_name = type(input_data).__name__\n msg = 'Expected \"str\", received \"{}\"'.format(type_name)\n super().__init__(msg)\n\ndef is_string(obj: Any) -> bool:\n \"\"\"\n Checks if an object is a string.\n\n *Example:*\n\n >>> is_string('foo') # returns true\n >>> is_string(b'foo') # returns false\n\n :param obj: Object to test.\n :return: True if string, false otherwise.\n \"\"\"\n return isinstance(obj, str)\n\ndef reverse(input_string: str) -> str:\n \"\"\"\n Returns the string with its chars reversed.\n\n *Example:*\n\n >>> reverse('hello') # returns 'olleh'\n\n :param input_string: String to revert.\n :type input_string: str\n :return: Reversed string.\n \"\"\"\n",
|
48 |
+
"docstring":
|
49 |
+
}
|
50 |
+
```
|
51 |
+
### Data Fields
|
52 |
+
|
53 |
+
Data fields for inline level:
|
54 |
+
- **id** (string): the unique id
|
55 |
+
- **prompt** (string): sequence to fine-tune LM
|
56 |
+
- **docstring** (string): docstring of the target function. If docstring is not None, instruction template is applied; otherwise raw format or small context is applied.
|
57 |
+
|
58 |
+
|
59 |
+
### Data Splits
|
60 |
+
|
61 |
+
The instruction tuning dataset is not split and only contains `train` subset.
|
62 |
+
|
63 |
+
|
64 |
+
## Usage
|
65 |
+
You can load this dataset using datasets library: ```pip install datasets```
|
66 |
+
|
67 |
+
```python
|
68 |
+
from datasets import load_dataset
|
69 |
+
|
70 |
+
# Load full dataset
|
71 |
+
dataset = load_dataset("Fsoft-AIC/RepoExec-Instruct")
|
72 |
+
```
|
73 |
+
|
74 |
+
|
75 |
+
## Additional Information
|
76 |
+
### Other Resources:
|
77 |
+
- Github: https://github.com/FSoft-AI4Code/RepoExec
|
78 |
+
- Webpage: https://fsoft-ai4code.github.io/repoexec
|
79 |
+
- Leaderboard: https://repoexec.github.io
|
80 |
+
- Paper: https://arxiv.org/html/2406.11927v1
|
81 |
+
|
82 |
+
|
83 |
+
### Licensing Information
|
84 |
+
MIT License
|
85 |
+
|
86 |
+
### Citation Information
|
87 |
+
|
88 |
+
```
|
89 |
+
@article{nam2024repoexec,
|
90 |
+
title={RepoExec: Evaluate Code Generation with a Repository-Level Executable Benchmark},
|
91 |
+
author={Hai, Nam Le and Manh, Dung Nguyen and Bui, Nghi DQ},
|
92 |
+
journal={arXiv preprint arXiv:2406.11927v1},
|
93 |
+
year={2024}
|
94 |
+
}
|
95 |
+
```
|
96 |
+
|
97 |
+
### Contributions
|
98 |
+
This dataset is developed by [FSOFT AI4Code team](https://github.com/FSoft-AI4Code).
|