40c214aa1c044a02b5290aa3ec7cc9570dbe24ad,src/python/pants/engine/legacy/graph.py,LegacyBuildGraph,_index,#LegacyBuildGraph#Any#,69

Before Change


      if node.product is not LegacyTarget:
        continue
      if type(node) is not TaskNode:
        continue

      // We have a successfully parsed LegacyTarget, which includes its declared dependencies.
      address = state.value.adaptor.address
      all_addresses.add(address)
      if address not in self._target_by_address:
        new_targets.append(self._index_target(state.value))

After Change


            "Build graph construction failed for {}:\n{}".format(node, trace))
      elif type(state) is not Return:
        State.raise_unrecognized(state)
      if type(state.value) is not HydratedTargets:
        raise TypeError("Expected roots to hold {}; got: {}".format(
          HydratedTargets, type(state.value)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 40c214aa1c044a02b5290aa3ec7cc9570dbe24ad
Time: 2016-11-06
Author: stuhood@gmail.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: _index


Project Name: apache/incubator-mxnet
Commit Name: e2cbf6605e1a6f15777099f56821b42159605335
Time: 2020-08-12
Author: lausen@amazon.com
File Name: python/mxnet/gluon/trainer.py
Class Name: Trainer
Method Name: __init__


Project Name: uber/petastorm
Commit Name: 0af7a0cbaae5bc2d04deb3aa77dff65eb81cc8d9
Time: 2018-10-10
Author: yevgeni@uber.com
File Name: petastorm/workers_pool/process_pool.py
Class Name: ProcessPool
Method Name: get_results