9357b91c16118f2b7f29dcdd7e3f96934e1c4184,bugbug/models/duplicate.py,DuplicateModel,get_labels,#DuplicateModel#,62

Before Change


        self.clf = LinearSVCWithLabelEncoding(LinearSVC())

    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 = {}

        // Only store ids of bugs that have duplicates or are duplicates

After Change


        self.clf = LinearSVCWithLabelEncoding(LinearSVC())

    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"]
        )

        classes = {}

        // Only store ids of bugs that have duplicates or are duplicates
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

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: theislab/scanpy
Commit Name: 49899ef69309d2a0ab6ad785f455eb53a8443a06
Time: 2017-02-08
Author: f.alex.wolf@gmx.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw


Project Name: theislab/scanpy
Commit Name: 315859c5586116434ea3b7ce97512a5e2a1030e2
Time: 2017-02-06
Author: flying-sheep@web.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw