1e3f7071cf4095abfface461164703106563c459,src/python/pants/engine/exp/mapper.py,AddressMapper,resolve,#AddressMapper#Any#,241

Before Change


    :returns: The resolved object.
    :raises: :class:`ResolveError` if the object could not be resolved.
    
    family = self.family(address.spec_path)
    obj = family.addressables.get(address)
    if not obj:
      raise ResolveError("Object with address {} was not found".format(address))
    return obj

  def walk_addressables(self, rel_path=None, path_excludes=None):
    Return an iterator over all addressable objects found under `rel_path`.

After Change


    Both the set of files that define a mappable BUILD files and the parser used to parse those
    files can be customized.  See the `pants.engine.exp.parsers` module for example parsers.

    :param string build_root: The root of the BUILD files; typically the code repository root
                              directory.
    :param string build_pattern: A regular expression for identifying BUILD files used to resolve
                                 addresses; by default looks for `BUILD*` files.
    :param parser_cls: The BUILD file parser cls to use.
    :type parser_cls: A :class:`pants.engine.exp.parser.Parser`
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 1e3f7071cf4095abfface461164703106563c459
Time: 2016-02-22
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/mapper.py
Class Name: AddressMapper
Method Name: resolve


Project Name: MolSSI/QCEngine
Commit Name: 1895a1e954eb0ee668deffe0de9b2207b5c04c9c
Time: 2019-06-07
Author: lori.burns@gmail.com
File Name: qcengine/programs/mp2d.py
Class Name: MP2DHarness
Method Name: compute


Project Name: MolSSI/QCEngine
Commit Name: 76d930ec1fe1e18300c835ddf938afd943d4ad05
Time: 2019-06-10
Author: lori.burns@gmail.com
File Name: qcengine/programs/dftd3.py
Class Name: DFTD3Harness
Method Name: compute