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

Before Change


            A list of keywords to search for (case insensitive).
            Usual examples are TODO and FIXME.
        """
        results = list()

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

After Change


            Usual examples are TODO and FIXME.
        """
        keywords_regex = re.compile(
            "(" + "|".join(re.escape(key) for key in keywords) + ")",
            re.IGNORECASE)

        for line_number, line in enumerate(file):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: dgasmith/opt_einsum
Commit Name: 05de336e95320733969c86d22a0bf0ae78d438e0
Time: 2018-06-18
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/parser.py
Class Name:
Method Name: parse_einsum_input


Project Name: oddt/oddt
Commit Name: e456cc88392f8cc0587b8d79c08678dab0b36e44
Time: 2017-11-23
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit.py
Class Name:
Method Name: MolToPDBQTBlock