ac0b7e4b3d8267c682b2e821f8db592ca94103e3,tests/python/pants_test/engine/test_mapper.py,AddressMapperTest,resolve,#AddressMapperTest#Any#,169

Before Change


    if len(result.root_products) != 1:
      raise Exception("Wrong number of result products: {}".format(result.root_products))
    state = result.root_products[0][1]
    if type(state) is Throw:
      raise Exception(state.exc)
    return state.value.dependencies

  def resolve_multi(self, spec):
    return {uhs.address: uhs.struct for uhs in self.resolve(spec)}

After Change


                             type_alias="target")

  def resolve(self, spec):
    uhs, = self.scheduler.product_request(UnhydratedStructs, [Specs(tuple([spec]))])
    return uhs.dependencies

  def resolve_multi(self, spec):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: tests/python/pants_test/engine/test_mapper.py
Class Name: AddressMapperTest
Method Name: resolve


Project Name: pyinstaller/pyinstaller
Commit Name: 0c86b9ca74a23a0ea790130e254aacef51f4b4f4
Time: 2015-12-17
Author: codewarrior@hawaii.rr.com
File Name: PyInstaller/building/api.py
Class Name: PYZ
Method Name: _strip_paths_in_code


Project Name: pytorch/text
Commit Name: 889b03c66f434b4ea2a281b847751afc760b2c8b
Time: 2018-03-17
Author: martin.tutek@gmail.com
File Name: torchtext/data/batch.py
Class Name:
Method Name: _short_str