4be101000cb9179a9ee5edd1fc7e74af3a00348d,src/python/pants/rules/core/fmt.py,,fmt,#Any#Any#Any#Any#,87
Before Change
for target in targets
if FormatTarget.is_formattable(target.adaptor, union_membership=union_membership)
)
individual_results = [
result
for aggregated_result in aggregated_results
for result in aggregated_result.results
]
if not individual_results:
return Fmt(exit_code=0)
After Change
workspace: Workspace,
union_membership: UnionMembership
) -> Fmt:
adaptors_with_origins = [
TargetAdaptorWithOrigin.create(target_with_origin.target.adaptor, target_with_origin.origin)
for target_with_origin in targets_with_origins
]
aggregated_results = await MultiGet(
Get[AggregatedFmtResults](FormatTarget, adaptor_with_origin)
for adaptor_with_origin in adaptors_with_origins
if FormatTarget.is_formattable(adaptor_with_origin, union_membership=union_membership)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: 4be101000cb9179a9ee5edd1fc7e74af3a00348d
Time: 2020-02-15
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/fmt.py
Class Name:
Method Name: fmt
Project Name: apache/incubator-tvm
Commit Name: e63e08febd682f40a536075998a6839bccccd3c6
Time: 2020-04-04
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_target_custom_datatypes.py
Class Name:
Method Name: lower_datatypes_and_build
Project Name: pantsbuild/pants
Commit Name: 4be101000cb9179a9ee5edd1fc7e74af3a00348d
Time: 2020-02-15
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/lint.py
Class Name:
Method Name: lint