6aa9be954d0154038be542f74378d533a125bd79,bugbug/models/defect.py,DefectModel,get_bugbug_labels,#DefectModel#Any#,86

Before Change


                        if change["field_name"] == "keywords":
                            if "regression" in change["removed"].split(","):
                                classes[bug_id] = 0
                            elif "regression" in change["added"].split(","):
                                classes[bug_id] = 1

            // The conditions to use the "defect" type are more restricted.

After Change


                    for change in history["changes"]:
                        if change["field_name"] == "keywords":
                            if "regression" in [
                                k.strip() for k in change["removed"].split(",")
                            ]:
                                classes[bug_id] = 0
                            elif "regression" in [
                                k.strip() for k in change["added"].split(",")
                            ]:
                                classes[bug_id] = 1

            // The conditions to use the "defect" type are more restricted.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: mozilla/bugbug
Commit Name: 6aa9be954d0154038be542f74378d533a125bd79
Time: 2019-06-12
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/defect.py
Class Name: DefectModel
Method Name: get_bugbug_labels


Project Name: vatlab/SoS
Commit Name: 837d9dffbc7448c1ae757c2c8aac3888259c0cc3
Time: 2016-10-13
Author: ben.bog@gmail.com
File Name: pysos/sos_step.py
Class Name: Base_Step_Executor
Method Name: handle_for_each


Project Name: mynlp/ccg2lambda
Commit Name: f91c6aaadfed8c6dc7ee58f459c4aa369fcba882
Time: 2017-01-12
Author: pascual@nii.ac.jp
File Name: scripts/abduction_tools.py
Class Name:
Method Name: GetPremisesThatMatchConclusionArgs_


Project Name: pantsbuild/pants
Commit Name: a42b8a5534d2d8281e7f9b35ac9377af4a470150
Time: 2015-06-09
Author: garrett.malmquist@gmail.com
File Name: tests/python/pants_test/tasks/test_protobuf_integration.py
Class Name: ProtobufIntegrationTest
Method Name: test_source_ordering


Project Name: mozilla/bugbug
Commit Name: 6aa9be954d0154038be542f74378d533a125bd79
Time: 2019-06-12
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/defect.py
Class Name: DefectModel
Method Name: get_bugbug_labels