9357b91c16118f2b7f29dcdd7e3f96934e1c4184,bugbug/models/duplicate.py,DuplicateModel,get_labels,#DuplicateModel#,62
Before Change
def get_labels(self):
all_ids = []
for bug_data in bugzilla.get_bugs():
if (
bug_data["creator"] in REPORTERS_TO_IGNORE
or "dupeme" in bug_data["keywords"]
):
continue
all_ids.append(bug_data["id"])
all_ids = set(all_ids)
classes = {}
After Change
def get_labels(self):
all_ids = set(
bug["id"]
for bug in bugzilla.get_bugs()
if bug["creator"] not in REPORTERS_TO_IGNORE
and "dupeme" not in bug["keywords"]
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: mozilla/bugbug
Commit Name: 9357b91c16118f2b7f29dcdd7e3f96934e1c4184
Time: 2019-06-03
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/duplicate.py
Class Name: DuplicateModel
Method Name: get_labels
Project Name: mozilla/bugbug
Commit Name: 69ac23fe504ff69e873997042c0a0824ceabd165
Time: 2018-10-11
Author: mcastelluccio@mozilla.com
File Name: run.py
Class Name:
Method Name: go
Project Name: mozilla/bugbug
Commit Name: b5b1b6af59837c6402ac3ca8d2285c5907885be4
Time: 2020-10-19
Author: mcastelluccio@mozilla.com
File Name: bugbug/model.py
Class Name: CommitModel
Method Name: items_gen