Datasets:

Modalities:
Text
Formats:
json
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
File size: 1,708 Bytes
50d3ea7
5d9dfdd
 
 
 
 
d84fea0
 
 
 
5d9dfdd
50d3ea7
 
5d9dfdd
50d3ea7
98a1132
50d3ea7
c0e850b
50d3ea7
5d9dfdd
98a1132
50d3ea7
5d9dfdd
 
 
 
98a1132
5d9dfdd
 
 
 
4329e40
e92fe48
5d9dfdd
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
dataset_info:
  splits:
  - name: test
    num_bytes: 4645427
    num_examples: 100
configs:
- config_name: default
  data_files:
  - split: test
    path: dataset.json
---

### Dataset Summary

RES-Q is a codebase editing benchmark based on compact, natural language instructions. The task is to, given an edit instruction and a codebase, produce a patch file that makes the correct edit to the codebase.

The dataset was released as part of [RES-Q: Evaluating Code-Editing Large Language Model Systems at the Repository Scale](https://arxiv.org/abs/2406.16801)

### Dataset Structure
An example of a RES-Q task instance is as follows:

```
id (str) - A unique identifier for the task instance.
repo_url (str) - The URL of the repository involved in the task.
instruction (str) - The repository edit instruction.
base_commit (str) - The commit hash of the repository representing the HEAD of the repository immediately before the instruction was carried out.
test_script (str) - The task's test suite as a python script to be run from the root of the repository. 
testbed_environment (str) - The python version used to run the test suite. 
requirements_txt (str) - The pip package dependencies required to run the test suite.
solution_commit (str) - The commit hash of the repository representing the HEAD of the repository immediately after the instruction was carried out.
solution_patch (str) - The patch in the unified diff format representing the difference between the base and solution commit.
modified_files (list): A list of dictionaries containing the relative paths and content of files modified by the solution commit.
language (str) - The primary programming language of the repository.
```