3f490de2c61c51cdf7cb78c8217842d2a9232758,src/python/pants/engine/legacy/change_calculator.py,EngineChangeCalculator,iter_changed_target_addresses,#EngineChangeCalculator#Any#,98

Before Change


    // For dependee finding, we need to parse all build files.
    product_iter = (t
                    for targets in self._engine.product_request(HydratedTargets, [DescendantAddresses("")])
                    for t in targets.dependencies)
    graph = _HydratedTargetDependentGraph.from_iterable(product_iter)

    if changed_request.include_dependees == "direct":
      for address in graph.dependents_of_addresses(changed_addresses):
        yield address
    elif changed_request.include_dependees == "transitive":
      for address in graph.transitive_dependents_of_addresses(changed_addresses):
        yield address

After Change


      pass

    if changed_request.include_dependees == "direct":
      emitted = set()
      for address in changed_addresses:
        for dependee in graph.dependents_of(address):
          if dependee not in emitted:
            emitted.add(dependee)
            yield dependee
    elif changed_request.include_dependees == "transitive":
      for target in graph.transitive_dependees_of_addresses(changed_addresses):
        yield target.address
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 3f490de2c61c51cdf7cb78c8217842d2a9232758
Time: 2017-04-04
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/change_calculator.py
Class Name: EngineChangeCalculator
Method Name: iter_changed_target_addresses


Project Name: HazyResearch/fonduer
Commit Name: 42fcf4d02cf96176bada9f84a1c52371615f2cb5
Time: 2017-04-18
Author: senwu@stanford.edu
File Name: features/content_features.py
Class Name:
Method Name: get_word_feats


Project Name: HazyResearch/fonduer
Commit Name: 0de3c091c75e36ffb4c12a2048110df37cafb644
Time: 2018-09-20
Author: lwhsiao@stanford.edu
File Name: src/fonduer/candidates/mentions.py
Class Name: Ngrams
Method Name: apply


Project Name: pantsbuild/pants
Commit Name: eddc69841ee64ca86a687e52d487b46354883175
Time: 2018-03-07
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/engine/legacy/source_mapper.py
Class Name: EngineSourceMapper
Method Name: iter_target_addresses_for_sources