6cf04adfa52a1a1cfc5a2f7ed040ce8b75c55956,labelImg.py,MainWindow,newShape,#MainWindow#,754

Before Change


        self.diffcButton.setChecked(False)
        if text is not None:
            self.prevLabelText = text
            self.addLabel(self.canvas.setLastLabel(text))
            if self.beginner():  // Switch to edit mode.
                self.canvas.setEditing(True)
                self.actions.create.setEnabled(True)
            else:

After Change


        if text is not None:
            self.prevLabelText = text
            generate_color = generateColorByText(text)
            shape = self.canvas.setLastLabel(text, generate_color, generate_color)
            self.addLabel(shape)
            if self.beginner():  // Switch to edit mode.
                self.canvas.setEditing(True)
                self.actions.create.setEnabled(True)
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tzutalin/labelImg
Commit Name: 6cf04adfa52a1a1cfc5a2f7ed040ce8b75c55956
Time: 2017-10-23
Author: tzu.ta.lin@gmail.com
File Name: labelImg.py
Class Name: MainWindow
Method Name: newShape


Project Name: wkentaro/labelme
Commit Name: 92d2b226ba53ce51ec2ff17b3b26a3d2467adb89
Time: 2019-05-15
Author: cmerchant@camgian.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: newShape


Project Name: wkentaro/labelme
Commit Name: 3936c550232bc751a258ecd39ec5c3ed346c60f1
Time: 2020-01-25
Author: www.kentaro.wada@gmail.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: newShape