Dataset creation for backout commits#4159
Draft
benjaminmah wants to merge 38 commits intomozilla:masterfrom
Draft
Dataset creation for backout commits#4159benjaminmah wants to merge 38 commits intomozilla:masterfrom
benjaminmah wants to merge 38 commits intomozilla:masterfrom
Conversation
Member
suhaibmujahid
left a comment
There was a problem hiding this comment.
Thank you, @benjaminmah! Please see my comments. Also, please fix the linting errors (you may want to consider installing pre-commit1).
Footnotes
scripts/backout_data_collection.py
Outdated
| def main(): | ||
| download_databases() | ||
|
|
||
| commit_dict, bug_to_commit_dict, bug_dict = preprocess_commits_and_bugs() |
Member
There was a problem hiding this comment.
We may want to consider the space complexity when iterating over the whole dataset.
Contributor
Author
There was a problem hiding this comment.
Removed unused keys when constructing the dictionaries and implemented a cache to use generated dictionaries from previous instances of running the code via saving them as JSON files. Let me know if this needs additional changes/fixes!
…gzilla.get_bugs`, removed a few tqdm lines
… found, and number of commits with multiple non backed out commits following it
… out commits is <= 2
…he dataset, separated by filename and split into `added_lines` and `removed_line`.
…he fix commit to extract the exact fix.
…t 2 years. Added batch file writing to reduce memory load.
…iff from fix commit
Contributor
Author
|
Example diffs extracted: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Script to generate dataset of bug-inducing commits, backout commits, and the subsequent fix commit.
Intended to include:
pushdate,desc).