88072c9b78824a5f78cf62399246eecdc360a33c,src/python/pants/core/goals/typecheck.py,,typecheck,#Any#Any#Any#,78

Before Change


        Get(TypecheckResults, TypecheckRequest, request) for request in valid_requests
    )

    sorted_results = sorted(
        itertools.chain.from_iterable(results), key=lambda res: res.typechecker_name
    )
    if not sorted_results:
        return Typecheck(exit_code=0)

    exit_code = 0

After Change


    exit_code = 0
    if all_results:
        console.print_stderr("")
    for results in sorted(all_results, key=lambda results: results.typechecker_name):
        if results.skipped:
            sigil = console.yellow("-")
            status = "skipped"
        elif results.exit_code == 0:
            sigil = console.green("✓")
            status = "succeeded"
        else:
            sigil = console.red("𐄂")
            status = "failed"
            exit_code = results.exit_code
        console.print_stderr(f"{sigil} {results.typechecker_name} {status}.")

    return Typecheck(exit_code)


def rules():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: 88072c9b78824a5f78cf62399246eecdc360a33c
Time: 2020-08-19
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/typecheck.py
Class Name:
Method Name: typecheck


Project Name: HazyResearch/fonduer
Commit Name: 307c761839a0e5923d333a75538f72a2abdbdeb3
Time: 2019-10-22
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/features/featurizer.py
Class Name: FeaturizerUDF
Method Name: apply


Project Name: pantsbuild/pants
Commit Name: 954a38a74bab0cd688b68393ff16313686cea7e0
Time: 2020-09-03
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/pylint/rules.py
Class Name: PylintPartition
Method Name: __init__