4eb75141ee285b24cdfb0d5a5940da6ee5c59f75,DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py,ClassifierSignature,identify_product,#ClassifierSignature#Any#Any#,28
Before Change
list_match = re.findall(signature, response, flags=re.IGNORECASE)
if len(list_match) != 0:
// Add product name and version.
prod_info_list.append(product + str(items[1]) + " " + list_match[0])
except Exception as err:
self.util.print_message(WARNING, "{}".format(err))
return list(set(prod_info_list))
After Change
if len(list_match) != 0:
// Check version.
version_info = ""
for target_string in list_match:
version_info = self.extract_version(target_string).lower()
if version_info != "":
break
// Add product name and version.
if str(items[1]) != "":
prod_info_list.append(product + "@" + str(items[1]))
elif version_info != "":
prod_info_list.append(product + "@" + version_info)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 4eb75141ee285b24cdfb0d5a5940da6ee5c59f75
Time: 2018-07-06
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: identify_product
Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/objectClassification/objectClassificationGui.py
Class Name: ObjectClassificationGui
Method Name: setupLayers
Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: setupLayers
Project Name: pyinstaller/pyinstaller
Commit Name: d437018f0fca2b15bbdd5b380c1654d354ae5672
Time: 2012-09-13
Author: mzibr.public@gmail.com
File Name: PyInstaller/hooks/shared_PIL_Image.py
Class Name:
Method Name: hook
Project Name: pysb/pysb
Commit Name: 31bedbc4d8d62fc42a7c9a20dd51c372cb510447
Time: 2017-05-02
Author: ben.gyori@gmail.com
File Name: pysb/kappa.py
Class Name:
Method Name: _parse_kasim_outfile