2fcde9fa889d6b9c52f9c9721943082a27236e87,modules/Gyoi_ErrorChecker.py,ErrorChecker,get_error_message,#ErrorChecker#,37
Before Change
for pattern in matching_patterns:
list_match = re.findall(pattern, response, flags=re.IGNORECASE)
if len(list_match) != 0:
error_list.extend(list_match)
msg = "Find unnecessary error message : {}".format(list_match)
self.utility.print_message(OK, msg)
self.utility.write_log(20, msg)
After Change
with codecs.open(self.signature_path, "r", "utf-8") as fin:
matching_patterns = fin.readlines()
for signature in matching_patterns:
try:
// Find bad message.
pattern = signature.replace("\r", "").replace("\n", "")
obj_match = re.search(pattern, response, flags=re.IGNORECASE)
if obj_match is not None:
trigger = obj_match.group(1)
error_list.append(trigger)
msg = "Detect unnecessary message: {}".format(trigger)
self.utility.print_message(OK, msg)
self.utility.write_log(20, msg)
except Exception as e:
self.utility.print_exception(e, "Invalid signature: {}, {}".format(signature, e))
self.utility.write_log(30, "{}".format(e))
except Exception as e:
msg = "Getting error message is failure : {}.".format(e)
self.utility.print_exception(e, msg)
self.utility.write_log(30, msg)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: gyoisamurai/GyoiThon
Commit Name: 2fcde9fa889d6b9c52f9c9721943082a27236e87
Time: 2018-11-13
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_ErrorChecker.py
Class Name: ErrorChecker
Method Name: get_error_message
Project Name: lingpy/lingpy
Commit Name: 0b33f535fc0a643d612c7f1d758076f48dac0845
Time: 2012-11-06
Author: mattis.list@gmail.com
File Name: lingpy/algorithm/classes.py
Class Name: WordList
Method Name: getDict
Project Name: ilastik/ilastik
Commit Name: 219459f15476426276e24329cdb6f091b5f7cf41
Time: 2019-06-26
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: _createDatasetInfo