a2e13025d2fc9c4fc172c222066438887c377ecc,src/python/pants/build_graph/mutable_build_graph.py,MutableBuildGraph,inject_address_closure,#MutableBuildGraph#Any#,125

Before Change


        traversable_spec_target = self.get_target_from_spec(traversable_spec,
                                                            relative_to=target_address.spec_path)

        if traversable_spec_target not in target.dependencies:
          self.inject_dependency(dependent=target.address,
                                 dependency=traversable_spec_target.address)
          target.mark_transitive_invalidation_hash_dirty()

After Change


        traversable_address = Address.parse(traversable_spec, relative_to=target_address.spec_path)
        self.maybe_inject_address_closure(traversable_address)

        if not any(traversable_address == t.address for t in target.dependencies):
          self.inject_dependency(dependent=target.address, dependency=traversable_address)
          target.mark_transitive_invalidation_hash_dirty()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: a2e13025d2fc9c4fc172c222066438887c377ecc
Time: 2016-04-25
Author: stuhood@gmail.com
File Name: src/python/pants/build_graph/mutable_build_graph.py
Class Name: MutableBuildGraph
Method Name: inject_address_closure


Project Name: comic/grand-challenge.org
Commit Name: 94efc44d702aecfdb88db83b13c4e3382b5639f0
Time: 2019-05-28
Author: code@jmsmkn.com
File Name: app/grandchallenge/core/validators.py
Class Name: ExtensionValidator
Method Name: _validate_filepath


Project Name: home-assistant/home-assistant
Commit Name: 99aa4307efcb98bf1edba2ac54ff4c1cd81d8480
Time: 2015-11-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/helpers/entity_component.py
Class Name: EntityComponent
Method Name: add_entities


Project Name: quiltdata/quilt
Commit Name: 7d9a7fead18653a43645c3d673499cf639337406
Time: 2020-06-03
Author: akarve@users.noreply.github.com
File Name: lambdas/es/indexer/index.py
Class Name:
Method Name: handler