Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
document-retrieval
Size:
100K - 1M
ArXiv:
Tags:
code
License:
update readme
Browse files
README.md
CHANGED
@@ -1,3 +1,90 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language_creators:
|
3 |
+
- found
|
4 |
+
language:
|
5 |
+
- code
|
6 |
+
license:
|
7 |
+
- cc-by-nc-nd-4.0
|
8 |
+
multilinguality:
|
9 |
+
- multilingual
|
10 |
+
pretty_name: RepoBench-Completion
|
11 |
+
source_datasets:
|
12 |
+
- original
|
13 |
+
task_categories:
|
14 |
+
- text-retrieval
|
15 |
+
task_ids:
|
16 |
+
- document-retrieval
|
17 |
---
|
18 |
+
|
19 |
+
# Dataset Card for RepoBench-R
|
20 |
+
|
21 |
+
## Dataset Description
|
22 |
+
|
23 |
+
- **Homepage:** https://github.com/Leolty/repobench
|
24 |
+
- **Paper:** https://arxiv.org/abs/2306.03091
|
25 |
+
|
26 |
+
## Dataset Summary
|
27 |
+
|
28 |
+
RepoBench-C is a subtask of [RepoBench](https://github.com/Leolty/repobench), focuing on the prediction of the next line of code, given in-file context (including several preceding lines and import statements), and cross-file context.
|
29 |
+
code prediction.
|
30 |
+
|
31 |
+
## Settings
|
32 |
+
|
33 |
+
- `cff`: short for cross_file_first, indicating the cross-file module in next line is first used in the current file.
|
34 |
+
|
35 |
+
- `cfr`: short for cross_file_random, indicating the cross-file module in next line is not first used in the current file.
|
36 |
+
|
37 |
+
- `if`: short for in_file, indicating the next line does not contain any cross-file module.
|
38 |
+
|
39 |
+
## Supported Tasks
|
40 |
+
|
41 |
+
- `python_cff`: python code prediction with cross-file-first setting.
|
42 |
+
- `python_cfr`: python code prediction with cross-file-random setting.
|
43 |
+
- `python_if`: python code prediction with in-file setting.
|
44 |
+
- `java_cff`: java code prediction with cross-file-first setting.
|
45 |
+
- `java_cfr`: java code prediction with cross-file-random setting.
|
46 |
+
- `java_if`: java code prediction with in-file setting.
|
47 |
+
|
48 |
+
## Loading Data
|
49 |
+
|
50 |
+
For example, if you want to load the `test` set to test your model on `Python` code prediction with `cross-file-first` setting,
|
51 |
+
|
52 |
+
```python
|
53 |
+
from datasets import load_dataset
|
54 |
+
|
55 |
+
dataset = load_dataset("tianyang/repobench-c", "python_cff", split="test")
|
56 |
+
```
|
57 |
+
|
58 |
+
## Dataset Structure
|
59 |
+
|
60 |
+
```json
|
61 |
+
{
|
62 |
+
"repo_name": "repository name of the data point",
|
63 |
+
"file_path": "path/to/file",
|
64 |
+
"context": "commented and concatenated cross-file context",
|
65 |
+
"import_statement": "all import statements in the file",
|
66 |
+
"code": "the code for next-line prediction",
|
67 |
+
"next_line": "the next line of the code"
|
68 |
+
}
|
69 |
+
```
|
70 |
+
|
71 |
+
## Licensing Information
|
72 |
+
|
73 |
+
CC BY-NC-ND 4.0
|
74 |
+
|
75 |
+
## Citation Information
|
76 |
+
|
77 |
+
```bibtex
|
78 |
+
@misc{liu2023repobench,
|
79 |
+
title={RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems},
|
80 |
+
author={Tianyang Liu and Canwen Xu and Julian McAuley},
|
81 |
+
year={2023},
|
82 |
+
eprint={2306.03091},
|
83 |
+
archivePrefix={arXiv},
|
84 |
+
primaryClass={cs.CL}
|
85 |
+
}
|
86 |
+
```
|
87 |
+
|
88 |
+
## Contributions
|
89 |
+
|
90 |
+
Thanks to [@Leolty](https://github.com/Leolty) for adding this dataset.
|