Datasets:

Formats:
parquet
Languages:
English
ArXiv:
Tags:
code
DOI:
Libraries:
Datasets
pandas
License:
tiginamaria commited on
Commit
8abe931
1 Parent(s): 7200215

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -12
README.md CHANGED
@@ -432,11 +432,11 @@ The bug localization problem can be formulated as follows: given an issue with a
432
 
433
  The dataset provides all required components for evaluation of **Bug Localization** approaches in real project-level large-scale data collected from GitHub, including:
434
  * Bug issue description
435
- * Repository content with the commit SHA where the bug is reproducible
436
  * List of files that should be changed in order to solve the bug
437
  * Other additional data and metrics, that can be useful in approach development
438
 
439
- The collected dataset was carefully filtered, inhances with useful metrics and, what is more, manually labeled, which assures the data quality and provides a golden subset of good examples for evaluation.
440
  The following sections will describe the utilities around the dataset as well as detailed dataset content description.
441
 
442
  ## How-to
@@ -489,15 +489,11 @@ The following sections will describe the utilities around the dataset as well as
489
  * Data streaming by [HFDataSource](https://github.com/JetBrains-Research/lca-baselines/blob/main/bug_localization/src/baselines/data_sources/hf_data_source.py) \
490
  Besides data loading, `HFDataSource` returns data point for running baseline along with the content of the repository in the state the bug is reproducible (aka `base_sha` commit of the pull request which resloves the bug issue). \
491
  All source code for working with the GitHub history of repositories (commits, diffs, etc.) are available in [`git_utils.py`](https://github.com/JetBrains-Research/lca-baselines/blob/main/bug_localization/src/utils/git_utils.py) as so as example of baselines, utilizes this dataset.
492
-
493
- ## Dataset Structure
494
-
495
- TODO: some overall structure or repo
496
 
497
  ### Bug localization data
498
 
499
- Each data point contains main subset of field as well as additional metrics calculated upon them.
500
- The core fields are:
501
 
502
  | **Field** | **Description** |
503
  |:------------------:|:----------------------------------------:|
@@ -521,7 +517,7 @@ The core fields are:
521
 
522
  \* Excluding test files that do not contain bug causes, rather changed in order to add test for proving that bug is gone.
523
 
524
- The metrics fields are:
525
  | **Field** | **Description** |
526
  |:------------------:|:----------------------------------------:|
527
  | `changed_files_exts` | Dict from changed files extension to count. |
@@ -548,6 +544,7 @@ The metrics fields are:
548
  \* Excluding test files that do not contain bug causes, rather changed in order to add test for proving that bug is gone. \
549
  \*\* Using GPT-4 tokenizer via ticktoken.
550
 
551
- ### Repos data
552
-
553
- TODO: describe repos data as `.zip` archives with list of repos metadata
 
 
432
 
433
  The dataset provides all required components for evaluation of **Bug Localization** approaches in real project-level large-scale data collected from GitHub, including:
434
  * Bug issue description
435
+ * Repositories from which the content on the state of the commit SHA where the bug is reproducible can be extracted
436
  * List of files that should be changed in order to solve the bug
437
  * Other additional data and metrics, that can be useful in approach development
438
 
439
+ The collected dataset was carefully filtered, enhances with useful metrics and, what is more, manually labeled, which assures the data quality and provides a golden subset of good examples for evaluation.
440
  The following sections will describe the utilities around the dataset as well as detailed dataset content description.
441
 
442
  ## How-to
 
489
  * Data streaming by [HFDataSource](https://github.com/JetBrains-Research/lca-baselines/blob/main/bug_localization/src/baselines/data_sources/hf_data_source.py) \
490
  Besides data loading, `HFDataSource` returns data point for running baseline along with the content of the repository in the state the bug is reproducible (aka `base_sha` commit of the pull request which resloves the bug issue). \
491
  All source code for working with the GitHub history of repositories (commits, diffs, etc.) are available in [`git_utils.py`](https://github.com/JetBrains-Research/lca-baselines/blob/main/bug_localization/src/utils/git_utils.py) as so as example of baselines, utilizes this dataset.
 
 
 
 
492
 
493
  ### Bug localization data
494
 
495
+ Each data point contains main subset of field as well as additional metrics calculated upon them. \
496
+ The main fields are:
497
 
498
  | **Field** | **Description** |
499
  |:------------------:|:----------------------------------------:|
 
517
 
518
  \* Excluding test files that do not contain bug causes, rather changed in order to add test for proving that bug is gone.
519
 
520
+ The metrics-related fields are:
521
  | **Field** | **Description** |
522
  |:------------------:|:----------------------------------------:|
523
  | `changed_files_exts` | Dict from changed files extension to count. |
 
544
  \* Excluding test files that do not contain bug causes, rather changed in order to add test for proving that bug is gone. \
545
  \*\* Using GPT-4 tokenizer via ticktoken.
546
 
547
+ ### Repositories data
548
+ The compressed repositories provided in section [repo](https://huggingface.co/datasets/JetBrains-Research/lca-bug-localization/tree/main/repos) separately from data point to provide access to the various stages of repository, saving its initial structure, as well as to reuse one's content for different data point connected to the same repository.
549
+ To extract the required information from repositories, each zip file should be unarchived. Afterwords, we recommend to use [GitPython](https://github.com/gitpython-developers/GitPython) or [PyDriller](https://github.com/ishepard/pydriller) python library to navigate thought repository history and extract one's content on required commit or calculate diff.
550
+ Most of the required utility methods are provided in our repository in [`git_utils.py`](https://github.com/JetBrains-Research/lca-baselines/blob/main/bug_localization/src/utils/git_utils.py), so you may reuse them to access required repository data.