390ed49ad090b77e13318c03b6a894bf2978b81c,bears/coffee_script/CoffeeLintBear.py,CoffeeLintBear,process_output,#CoffeeLintBear#Any#Any#Any#,40
Before Change
return "--reporter=csv", filename
def process_output(self, output, filename, file):
reader = DictReader(StringIO(output))
for row in reader:
try:
yield Result.from_values(
origin=self,
message=row["message"],
file=filename,
line=convert_if_not_empty(row["lineNumber"], int),
end_line=convert_if_not_empty(row["lineNumberEnd"], int),
severity=self.severity_map[row["level"]])
except KeyError: // Invalid CSV line, ignore
pass
After Change
output = json.loads(output)
assert len(output) == 1, "More than 1 file parsed, something went wrong"
for item in tuple(output.values())[0]:
yield Result.from_values(
origin="{} ({})".format(self.name, item["rule"]),
message=item["message"],
file=filename,
line=item.get("lineNumber", None),
end_line=item.get("lineNumberEnd", None),
severity=self.severity_map[item["level"]],
additional_info=item.get("description",
item.get("context", "")))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: coala/coala-bears
Commit Name: 390ed49ad090b77e13318c03b6a894bf2978b81c
Time: 2016-04-26
Author: abdealikothari@gmail.com
File Name: bears/coffee_script/CoffeeLintBear.py
Class Name: CoffeeLintBear
Method Name: process_output
Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: _inject_specs
Project Name: lingpy/lingpy
Commit Name: d6691676e03553ccf7a6cfc175d49ebb2006e84f
Time: 2018-06-20
Author: tresoldi@shh.mpg.de
File Name: lingpy/sequence/ngrams.py
Class Name:
Method Name: skip_ngrams