390ed49ad090b77e13318c03b6a894bf2978b81c,bears/coffee_script/CoffeeLintBear.py,CoffeeLintBear,process_output,#CoffeeLintBear#Any#Any#Any#,40

Before Change



        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"],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: e77a650432097e3eeb867dfe4fec5235450414bf
Time: 2016-03-06
Author: cheister@gmail.com
File Name: src/python/pants/backend/graph_info/tasks/list_owners.py
Class Name: ListOwners
Method Name: console_output


Project Name: pyannote/pyannote-audio
Commit Name: 4e3de8d9fa39fcfea8de12a7692ca5cef6dae9cf
Time: 2020-03-07
Author: bredin@limsi.fr
File Name: pyannote/audio/train/generator.py
Class Name: BatchGenerator
Method Name: __call__