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
line=line_number + 1,
column=keyword.start() + 1,
end_line=line_number + 1,
end_column=keyword.end() + 1,
severity=RESULT_SEVERITY.INFO)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: 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
Project Name: snipsco/snips-nlu
Commit Name: 346705a7703d6beebaa3e033520865943440e259
Time: 2017-02-24
Author: clement.doumouro@snips.ai
File Name: custom_intent_parser/entity_extractor/regex_entity_extractor.py
Class Name: RegexEntityExtractor
Method Name: get_entities