705a3dcb90454c2d6ab2a857ac0b88dff2ef0bab,src/python/pants/core/goals/lint.py,,lint,#Any#Any#Any#Any#Any#,134

Before Change


    if not sorted_results:
        return Lint(exit_code=0)

    linter_to_reports = defaultdict(list)
    for result in sorted_results:
        if result.report:
            linter_to_reports[result.linter_name].append(result.report)
    if linter_to_reports:
        // TODO(/�): Tolerate when a linter has multiple reports.
        linters_with_multiple_reports = [
            linter for linter, reports in linter_to_reports.items() if len(reports) > 1
        ]
        if linters_with_multiple_reports:
            if lint_subsystem.per_target_caching:

After Change



    all_results = tuple(sorted(all_results, key=lambda results: results.linter_name))

    reports = list(itertools.chain.from_iterable(results.reports for results in all_results))
    if reports:
        // TODO(/�): Tolerate when a linter has multiple reports.
        linters_with_multiple_reports = [
            results.linter_name for results in all_results if len(results.reports) > 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 705a3dcb90454c2d6ab2a857ac0b88dff2ef0bab
Time: 2020-08-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/lint.py
Class Name:
Method Name: lint


Project Name: jbms/beancount-import
Commit Name: bc19ed6b434f77e5758f4baf9cb23ed5d2b25a72
Time: 2020-08-07
Author: dumbpyx@gmail.com
File Name: beancount_import/source/generic_importer_source.py
Class Name: ImporterSource
Method Name: prepare


Project Name: dmlc/dgl
Commit Name: c50b90cf7e9d5fd7c861ff3b8c162c8b640505ed
Time: 2018-07-12
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: update_by_edge