d94492d77167ea23d41215e495018c663b2f8a8f,src/python/pants/engine/internals/mapper.py,AddressFamily,create,#Any#Any#Any#,84

Before Change


                previous = objects_by_name.get(name)
                if previous:
                    previous_path, _ = previous
                    raise DuplicateNameError(
                        "An object with name {name!r} is already defined in "
                        "{previous_path!r}, will not overwrite with {obj!r} from "
                        "{current_path!r}.".format(
                            name=name,
                            previous_path=previous_path,
                            obj=obj,
                            current_path=current_path,
                        )
                    )
                objects_by_name[name] = (current_path, obj)
        return AddressFamily(
            namespace=spec_path,
            objects_by_name={

After Change


                        f"is also defined in {address_map.path!r}. Because both targets share the "
                        f"same namespace of {spec_path!r}, this is not allowed."
                    )
                name_to_target_adaptors[name] = (address_map.path, target_adaptor)
        return AddressFamily(
            namespace=spec_path,
            name_to_target_adaptors=dict(sorted(name_to_target_adaptors.items())),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: d94492d77167ea23d41215e495018c663b2f8a8f
Time: 2020-07-08
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/internals/mapper.py
Class Name: AddressFamily
Method Name: create


Project Name: pantsbuild/pants
Commit Name: d94492d77167ea23d41215e495018c663b2f8a8f
Time: 2020-07-08
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/internals/mapper.py
Class Name: AddressMap
Method Name: parse


Project Name: pantsbuild/pants
Commit Name: 08bc2add6e98feefdce36f6f094a15e3e598b1e7
Time: 2016-02-23
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/mapper.py
Class Name: AddressMap
Method Name: parse