Datasets:
Tasks:
Text Generation
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
code
DOI:
License:
tiginamaria
commited on
Commit
•
0cbcd06
1
Parent(s):
8bc5337
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# LCA (Bug Localization)
|
2 |
+
This is the data for **Bug Localization** benchmark as part of LCA.
|
3 |
+
|
4 |
+
## How-to
|
5 |
+
|
6 |
+
1. Since the dataset is private, if you haven't used HF Hub before, add your token via `huggingface-cli` first:
|
7 |
+
|
8 |
+
```
|
9 |
+
huggingface-cli login
|
10 |
+
```
|
11 |
+
|
12 |
+
2. List all the available configs via [`datasets.get_dataset_config_names`](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.get_dataset_config_names) and choose an appropriate one
|
13 |
+
|
14 |
+
|
15 |
+
3. Load the data via [`load_dataset`](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.load_dataset):
|
16 |
+
|
17 |
+
```
|
18 |
+
from datasets import load_dataset
|
19 |
+
|
20 |
+
configuration = "TODO" # select a configuration
|
21 |
+
dataset = load_dataset("JetBrains-Research/lca-bug-localization", configuration, split="test")
|
22 |
+
```
|
23 |
+
|
24 |
+
Some notes:
|
25 |
+
* All the data we have is considered to be in test split
|
26 |
+
|
27 |
+
## Dataset Structure
|
28 |
+
|
29 |
+
TODO: some overall structure or repo
|
30 |
+
|
31 |
+
### Bug localization data
|
32 |
+
|
33 |
+
This section concerns configuration with *full data* about each commit (no `-labels` suffix).
|
34 |
+
|
35 |
+
Each example has the following fields:
|
36 |
+
|
37 |
+
| **Field** | **Description** |
|
38 |
+
|:------------------:|:----------------------------------------:|
|
39 |
+
| `repo_owner` | Bug issue repository owner. |
|
40 |
+
| `repo_name` | Bug issue repository name. |
|
41 |
+
| `issue_url` | GitHub link to issue <br> `https://github.com/{repo_owner}/{repo_name}/issues/{issue_id}`. |
|
42 |
+
| `pull_url` | GitHub link to pull request <br> `https://github.com/{repo_owner}/{repo_name}/pull/{pull_id}`. |
|
43 |
+
| `comment_url` | GitHub link to comment with pull request to issue reference <br> `https://github.com/{repo_owner}/{repo_name}/pull/{pull_id}#issuecomment-{comment_id}`. |
|
44 |
+
| `issue_title` | Issue title. |
|
45 |
+
| `issue_body` | Issue body. |
|
46 |
+
| `base_sha` | Pull request base sha. |
|
47 |
+
| `head_sha` | Pull request head sha. |
|
48 |
+
| `diff_url` | Pull request diff url between base and head sha <br> `https://github.com/{repo_owner}/{repo_name}/compare/{base_sha}...{head_sha}`. |
|
49 |
+
| `diff` | Pull request diff content. |
|
50 |
+
| `changed_files` | List of changed files parsed from diff. |
|
51 |
+
| `changed_files_exts` | Dict from changed files extension to count. |
|
52 |
+
| `java_changed_files_count` | Number of changed `.java` files. |
|
53 |
+
| `kt_changed_files_count` | Number of changed `.kt` files. |
|
54 |
+
| `py_changed_files_count` | Number of changed `.py` files. |
|
55 |
+
| `code_changed_files_count` | Number of changed `.java`, `.kt` or `.py` files. |
|
56 |
+
| `pull_create_at` | Data of pull request creation in format yyyy-mm-ddThh:mm:ssZ. |
|
57 |
+
| `stars` | Number of repo stars. |
|
58 |
+
|
59 |
+
### Repos data
|
60 |
+
|
61 |
+
TODO: describe repos data as `.tar.gz` archives with list of repos metadata
|