a6add8ae090edaf8ce525d49d9fe0cf38a0a91c7,src/python/pants/backend/codegen/protobuf/python/python_protobuf_module_mapper.py,,map_protobuf_to_python_modules,#Any#,30
Before Change
)
modules_to_addresses: Dict[str, Tuple[Address]] = {}
modules_with_multiple_owners: Set[str] = set()
def add_module(module: str, tgt: Target) -> None:
if module in modules_to_addresses:
After Change
for ambiguous_module in modules_with_multiple_owners:
modules_to_addresses.pop(ambiguous_module)
return FirstPartyPythonMappingImpl(
mapping=FrozenDict(sorted(modules_to_addresses.items())),
ambiguous_modules=FrozenDict(
(k, tuple(sorted(v))) for k, v in sorted(modules_with_multiple_owners.items())
),
)
def rules():
return (
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: pantsbuild/pants
Commit Name: a6add8ae090edaf8ce525d49d9fe0cf38a0a91c7
Time: 2021-03-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/codegen/protobuf/python/python_protobuf_module_mapper.py
Class Name:
Method Name: map_protobuf_to_python_modules
Project Name: pantsbuild/pants
Commit Name: a6add8ae090edaf8ce525d49d9fe0cf38a0a91c7
Time: 2021-03-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/dependency_inference/module_mapper.py
Class Name:
Method Name: merge_first_party_module_mappings
Project Name: pantsbuild/pants
Commit Name: a6add8ae090edaf8ce525d49d9fe0cf38a0a91c7
Time: 2021-03-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/dependency_inference/module_mapper.py
Class Name:
Method Name: map_third_party_modules_to_addresses