smol edits (#1)
Browse files- Edit README a bit & add config (310e7302dcd2d57176ceae6357d683ed96cf85f6)
- Fix table (e05b08d7b8179744826abd8ca9fe2074bcbe070f)
- Remove apache license (991be1c5faed42226d7d978f089a204ebbcb9a40)
Co-authored-by: Aleksandra Eliseeva <[email protected]>
- README.md +86 -31
- data/{0828c8d.json β python/0828c8d.json} +0 -0
- data/{0f71221.json β python/0f71221.json} +0 -0
- data/{102f918.json β python/102f918.json} +0 -0
- data/{2a104bf.json β python/2a104bf.json} +0 -0
- data/{2c06ffa.json β python/2c06ffa.json} +0 -0
- data/{2e41e78.json β python/2e41e78.json} +0 -0
- data/{434321a.json β python/434321a.json} +0 -0
- data/{43dd59c.json β python/43dd59c.json} +0 -0
- data/{72cd8be.json β python/72cd8be.json} +0 -0
- data/{79f4668.json β python/79f4668.json} +0 -0
- data/{cc2ad92.json β python/cc2ad92.json} +0 -0
- data/{cdfe3ca.json β python/cdfe3ca.json} +0 -0
- data/{d2e06b5.json β python/d2e06b5.json} +0 -0
- data/{db6550a.json β python/db6550a.json} +0 -0
- data/{eaba357.json β python/eaba357.json} +0 -0
- data/{f9f4b05.json β python/f9f4b05.json} +0 -0
README.md
CHANGED
@@ -1,42 +1,97 @@
|
|
1 |
---
|
2 |
-
license: apache-2.0
|
3 |
configs:
|
4 |
-
- config_name:
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
---
|
9 |
|
10 |
-
|
11 |
-
The following dataset contains logs of the GitHub action for a failed workflow of some commits,
|
12 |
-
followed by the commit that passes the workflow successfully. A full list of the datapoints' content is given below.
|
13 |
|
|
|
|
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
Note that the dataset does not contain repo snapshot.
|
18 |
-
During benchmark, the method clones the necessary repo on the user's local machine.
|
19 |
-
The user's model should correct the files of the repo, and benchmark pushes repo to GitHub, returning the result of the workflow run aggregated by all datapoints.
|
20 |
|
21 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
**TODO** Add http links to failed commit
|
24 |
**TODO** Add file list os changed files
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
1 |
---
|
|
|
2 |
configs:
|
3 |
+
- config_name: python
|
4 |
+
data_files:
|
5 |
+
- split: test
|
6 |
+
path: data/python/*.json
|
7 |
---
|
8 |
|
9 |
+
# ποΈ Long Code Arena (CI Fixing)
|
|
|
|
|
10 |
|
11 |
+
> π οΈ CI Fixing: given logs of a failed GitHub Actions workflow and the corresponding repository shapshot, fix the
|
12 |
+
> repository contents in order to make the workflow pass.
|
13 |
|
14 |
+
This is the benchmark for **CI Fixing** task as part of
|
15 |
+
ποΈ [**Long Code Arena** benchmark](https://huggingface.co/spaces/JetBrains-Research/long-code-arena).
|
|
|
|
|
|
|
16 |
|
17 |
+
## How-to
|
18 |
+
|
19 |
+
1. List all the available configs
|
20 |
+
via [`datasets.get_dataset_config_names`](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.get_dataset_config_names)
|
21 |
+
and choose an appropriate one.
|
22 |
+
|
23 |
+
Current configs: `python`
|
24 |
+
|
25 |
+
2. Load the data
|
26 |
+
via [`load_dataset`](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.load_dataset):
|
27 |
+
|
28 |
+
```
|
29 |
+
from datasets import load_dataset
|
30 |
+
|
31 |
+
configuration = "TODO" # select a configuration
|
32 |
+
dataset = load_dataset("JetBrains-Research/lca-ci-fix", configuration, split="test")
|
33 |
+
```
|
34 |
+
|
35 |
+
Note that all the data we have is considered to be in the test split.
|
36 |
+
|
37 |
+
## Dataset Structure
|
38 |
+
|
39 |
+
This dataset contains logs of the failed GitHub Action workflows for some commits
|
40 |
+
followed by the commit that passes the workflow successfully.
|
41 |
+
|
42 |
+
Note that, unlike many other π Long Code Arena datasets, this dataset doesn't contain repositories.
|
43 |
+
|
44 |
+
* Our [CI Fixing benchmark](todo) (π§ todo) clones the necessary repos to the user's local machine. The user should run
|
45 |
+
their model to
|
46 |
+
fix the failing CI workflows, and the benchmark will push commits to GitHub, returning the results of the workflow
|
47 |
+
runs
|
48 |
+
for all the datapoints.
|
49 |
+
|
50 |
+
### Datapoint Schema
|
51 |
+
|
52 |
+
**TODO** Add http links to failed commit
|
53 |
+
**TODO** Add file list of changed files
|
54 |
+
|
55 |
+
Each example has the following fields:
|
56 |
+
|
57 |
+
| Field | Description |
|
58 |
+
|---------------------|------------------------------------------------------------------------------------------------------------------------------|
|
59 |
+
| `contributor` | Username of the contributor that committed changes |
|
60 |
+
| `difficulty` | Difficulty of the problem (assessor-based) |
|
61 |
+
| `diff` | Contents of the diff between the failed and the successful commits |
|
62 |
+
| `head_branch` | Name of the original branch that the commit was pushed at |
|
63 |
+
| `id` | Unique ID of the datapoint |
|
64 |
+
| `language` | Main language of the repo |
|
65 |
+
| `logs` | List of dicts with keys `log` (logs of the failed job, particular step) and `step_name` (name of the failed step of the job) |
|
66 |
+
| `repo_name` | Name of the original repo (second part of the `owner/name` on GitHub) |
|
67 |
+
| `repo owner` | Owner of the original repo (first part of the `owner/name` on GitHub) |
|
68 |
+
| `sha_fail` | SHA of the failed commit |
|
69 |
+
| `sha_success` | SHA of the successful commit |
|
70 |
+
| `workflow` | Contents of the workflow file |
|
71 |
+
| `workflow_filename` | The name of the workflow file (without directories) |
|
72 |
+
| `workflow_name` | The name of the workflow |
|
73 |
+
| `workflow_path` | The full path to the workflow file |
|
74 |
+
|
75 |
+
### Datapoint Example
|
76 |
|
77 |
**TODO** Add http links to failed commit
|
78 |
**TODO** Add file list os changed files
|
79 |
|
80 |
+
```
|
81 |
+
{'contributor': 'Gallaecio',
|
82 |
+
'diff': 'diff --git a/scrapy/crawler.py b/scrapy/crawler.py/n<...>',
|
83 |
+
'difficulty': '1',
|
84 |
+
'head_branch': 'component-getters',
|
85 |
+
'id': 18,
|
86 |
+
'language': 'Python',
|
87 |
+
'logs': [{'log': '##[group]Run pip install -U tox\n<...>',
|
88 |
+
'step_name': 'checks (3.12, pylint)/4_Run check.txt'}],
|
89 |
+
'repo_name': 'scrapy',
|
90 |
+
'repo_owner': 'scrapy',
|
91 |
+
'sha_fail': '0f71221cf9875ed8ef3400e1008408e79b6691e6',
|
92 |
+
'sha_success': 'c1ba9ccdf916b89d875628ba143dc5c9f6977430',
|
93 |
+
'workflow': 'name: Checks\non: [push, pull_request]\n\n<...>',
|
94 |
+
'workflow_filename': 'checks.yml',
|
95 |
+
'workflow_name': 'Checks',
|
96 |
+
'workflow_path': '.github/workflows/checks.yml'}
|
97 |
+
```
|
data/{0828c8d.json β python/0828c8d.json}
RENAMED
File without changes
|
data/{0f71221.json β python/0f71221.json}
RENAMED
File without changes
|
data/{102f918.json β python/102f918.json}
RENAMED
File without changes
|
data/{2a104bf.json β python/2a104bf.json}
RENAMED
File without changes
|
data/{2c06ffa.json β python/2c06ffa.json}
RENAMED
File without changes
|
data/{2e41e78.json β python/2e41e78.json}
RENAMED
File without changes
|
data/{434321a.json β python/434321a.json}
RENAMED
File without changes
|
data/{43dd59c.json β python/43dd59c.json}
RENAMED
File without changes
|
data/{72cd8be.json β python/72cd8be.json}
RENAMED
File without changes
|
data/{79f4668.json β python/79f4668.json}
RENAMED
File without changes
|
data/{cc2ad92.json β python/cc2ad92.json}
RENAMED
File without changes
|
data/{cdfe3ca.json β python/cdfe3ca.json}
RENAMED
File without changes
|
data/{d2e06b5.json β python/d2e06b5.json}
RENAMED
File without changes
|
data/{db6550a.json β python/db6550a.json}
RENAMED
File without changes
|
data/{eaba357.json β python/eaba357.json}
RENAMED
File without changes
|
data/{f9f4b05.json β python/f9f4b05.json}
RENAMED
File without changes
|