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


                        // 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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: calico/basenji
Commit Name: 7aa5f9a9d8331fe1dc5a90638ad131b0cfaf70d8
Time: 2016-07-24
Author: davidkelley44@gmail.com
File Name: basenji/genome.py
Class Name:
Method Name: split_contigs


Project Name: biocore/scikit-bio
Commit Name: 2c7eba36dfc9bed091b77c11dd3eedfab7995106
Time: 2015-08-10
Author: zhenjiang.xu@gmail.com
File Name: skbio/io/format/genbank.py
Class Name:
Method Name: _parse_single_genbank