7e48e0aad8d93f47e78a76dcb65c929e36020801,src/python/pants/goal/context.py,Context,targets,#Context#Any#,274

Before Change


    
    target_set = OrderedSet()
    for target in self._target_roots:
      target_set.update(target.closure())
    return filter(predicate, target_set)

  def dependents(self, on_predicate=None, from_predicate=None):
    Returns  a map from targets that satisfy the from_predicate to targets they depend on that

After Change



    :return: a list of targets evaluated by the predicate in inorder traversal order.
    
    target_root_addresses = [target.address for target in self._target_roots]
    target_set = self.build_graph.transitive_subgraph_of_addresses(target_root_addresses)
    return filter(predicate, target_set)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 7e48e0aad8d93f47e78a76dcb65c929e36020801
Time: 2014-10-08
Author: tejal29@gmail.com
File Name: src/python/pants/goal/context.py
Class Name: Context
Method Name: targets


Project Name: pantsbuild/pants
Commit Name: 293b31e7adc0993926864e66134bae2b53a9934c
Time: 2014-11-10
Author: zundel@squareup.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: _calculate_sources


Project Name: pantsbuild/pants
Commit Name: 327a8d989f986623b258d5926142333d80697e4c
Time: 2018-03-09
Author: benjyw@gmail.com
File Name: tests/python/pants_test/base_test.py
Class Name: BaseTest
Method Name: context