eba81ffa3639fc6278015dd8e99e42c3f0b710c6,src/python/pants/base/source_root.py,SourceRootTree,get_root_and_types,#SourceRootTree#Any#,81

Before Change


    
    found = curr_node = self._root
    found_path = []
    dir_list = os.path.normpath(path).split(os.path.sep)
    for subdir in dir_list:
      curr_node = curr_node.get(subdir)
      if not curr_node:
        break

After Change


    :returns: the source_root, set of types valid along that path, or None if no source root has
    been registered.
    
    found, found_path = self.get(path)
    if found:
      return os.path.sep.join(found_path), found.types
    return None, None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: eba81ffa3639fc6278015dd8e99e42c3f0b710c6
Time: 2014-09-10
Author: zundel@squareup.com
File Name: src/python/pants/base/source_root.py
Class Name: SourceRootTree
Method Name: get_root_and_types


Project Name: pantsbuild/pants
Commit Name: a9d693239faa07d512df5118125f4c4dfa8a5fcb
Time: 2020-04-15
Author: stuhood@gmail.com
File Name: src/python/pants/build_graph/address.py
Class Name: Address
Method Name: sanitize_path


Project Name: ilastik/ilastik
Commit Name: 99ab5a7c65dafab05f2e6c12034420ec6430624a
Time: 2012-05-08
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: updateFilePath