6117ec6153cd9e11192e98ca2dfbd1888574cff6,labelme/labelDialog.py,LabelDialog,validate,#LabelDialog#,80

Before Change


            if self.edit.text().strip():
                self.accept()
        else:
            if self.edit.text().trimmed():
                self.accept()

    def postProcess(self):

After Change


        self.edit.setText(item.text())

    def validate(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: 3

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: validate


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: 9195ca74d2b4f38ae27617368ba501ab06280a7d
Time: 2011-10-12
Author: mpitid@gmail.com
File Name: labelme.py
Class Name: MainWindow
Method Name: newShape