bfd61fb7a0c4456ce812a227f3b1962b2c727879,bears/general/KeywordBear.py,KeywordBear,run,#KeywordBear#Any#Any#Any#,14

Before Change


        """
        results = list()

        for i in range(len(keywords)):
            keywords[i] = keywords[i].lower()

        for line_number, line in enumerate(file):
            for keyword in keywords:
                results += self.check_line_for_keyword(line.lower(),
                                                       filename,

After Change


                            .format(keyword.group()),
                    file=filename,
                    line=line_number + 1,
                    column=keyword.start() + 1,
                    end_line=line_number + 1,
                    end_column=keyword.end() + 1,
                    severity=RESULT_SEVERITY.INFO)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: coala/coala-bears
Commit Name: bfd61fb7a0c4456ce812a227f3b1962b2c727879
Time: 2016-09-03
Author: abdealikothari@gmail.com
File Name: bears/general/KeywordBear.py
Class Name: KeywordBear
Method Name: run


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 67fa4171fffad014ef7f072ef56426e52080fcb5
Time: 2016-11-10
Author: cuducos@gmail.com
File Name: src/fetch_suspicious_places.py
Class Name:
Method Name: search_suspicious_around_companies


Project Name: HazyResearch/fonduer
Commit Name: b4ec3ea5a927e5ff3736c180157d8a727b67107d
Time: 2018-09-20
Author: senwu@cs.stanford.edu
File Name: src/fonduer/candidates/mentions.py
Class Name: Ngrams
Method Name: apply