6117ec6153cd9e11192e98ca2dfbd1888574cff6,labelme/labelDialog.py,LabelDialog,validate,#LabelDialog#,80
Before Change
self.edit.setText(item.text())
def validate(self):
if QT5:
if self.edit.text().strip():
self.accept()
else:
if self.edit.text().trimmed():
self.accept()
def postProcess(self):
if QT5:
self.edit.setText(self.edit.text().strip())
else:
After Change
def validate(self):
text = self.edit.text()
if hasattr(text, "strip"):
text = text.strip()
else:
text = text.trimmed()
if text:
self.accept()
def postProcess(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
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: uber/ludwig
Commit Name: ef1f03af2bfc5e9cd630f3da2c270afb2248d85d
Time: 2020-07-14
Author: kaushikbokka@gmail.com
File Name: ludwig/utils/tf_utils.py
Class Name:
Method Name: initialize_tensorflow
Project Name: microsoft/nni
Commit Name: acc311dd3e15135ca35f69b0183e5b0f9f4beadf
Time: 2019-04-27
Author: 15094695770@163.com
File Name: tools/nni_gpu_tool/gpu_metrics_collector.py
Class Name:
Method Name: check_ready_to_run
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