41f1aa3b1e87e7326f335bfd9841d72a250d111f,bugbug/models/component.py,ComponentModel,get_labels,#ComponentModel#,136
Before Change
classes = {}
for bug_data in bugzilla.get_bugs():
bug_id = int(bug_data["id"])
component = self.filter_component(bug_data)
if component:
classes[bug_id] = component
After Change
def is_meaningful(product, component):
return product in self.PRODUCTS and component not in ["General", "Untriaged"]
product_component_counts = Counter(((product, component) for product, component in product_components.values() if is_meaningful(product, component))).most_common()
max_count = product_component_counts[0][1]
threshold = max_count / 100
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: mozilla/bugbug
Commit Name: 41f1aa3b1e87e7326f335bfd9841d72a250d111f
Time: 2019-03-18
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/component.py
Class Name: ComponentModel
Method Name: get_labels
Project Name: austin-taylor/flare
Commit Name: 99caf8c4ad819a460332fac56009f32df625283f
Time: 2017-06-13
Author: jburkert82@gmail.com
File Name: flare/analytics/command_control.py
Class Name: elasticBeacon
Method Name: percent_grouping
Project Name: deeptools/HiCExplorer
Commit Name: 912fe1e2bbceeef9a33181f9fb151bbd485d9e15
Time: 2018-01-29
Author: fidel.ramirez@gmail.com
File Name: hicexplorer/hicPlotMatrix.py
Class Name:
Method Name: plotHeatmap
Project Name: rodluger/starry
Commit Name: a289e07b6e5b1cde9b7fe3a48a959996a25ce1e2
Time: 2019-04-04
Author: rodluger@gmail.com
File Name: setup.py
Class Name:
Method Name: