6117ec6153cd9e11192e98ca2dfbd1888574cff6,labelme/labelDialog.py,LabelDialog,postProcess,#LabelDialog#,88

Before Change


                self.accept()

    def postProcess(self):
        if QT5:
            self.edit.setText(self.edit.text().strip())
        else:
            self.edit.setText(self.edit.text().trimmed())

    def popUp(self, text=None, move=True):
        // if text is None, the previous label in self.edit is kept
        if text is None:
            text = self.edit.text()

After Change


            self.accept()

    def postProcess(self):
        text = self.edit.text()
        if hasattr(text, "strip"):
            text = text.strip()
        else:
            text = text.trimmed()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: postProcess


Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: validate


Project Name: descarteslabs/descarteslabs-python
Commit Name: d18c806eea526e7606bbf800d96d60f952e75ab5
Time: 2020-02-17
Author: 51922948+sdelany2@users.noreply.github.com
File Name: descarteslabs/workflows/cereal/tests/test_cereal.py
Class Name:
Method Name: