af0f15967d0e5a3743bcbf2ecea875991c8cda84,framework/utils/xmlUtils.py,,findPath,#Any#Any#,146

Before Change


    else:
      return None
  else:
    toSearch = fixXmlTag(path[-1])
    return root.find(toSearch)

def findPathEllipsesParents(root,path,docLevel=0):

After Change


  assert("|" not in path), "Update XML search to use XPATH syntax!"
  // edit tags for allowable characters
  path = fixTagsInXpath(path)
  found = root.findall(path)
  if len(found) < 1:
    return None
  else:
    return found[0]

def findPathEllipsesParents(root,path,docLevel=0):
  
    As with findPath, but the parent nodes are kept and ellipses text are used to replace siblings in the resulting tree.
    @ In, root, xml.etree.ElementTree.Element, the node to start searching along
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: idaholab/raven
Commit Name: af0f15967d0e5a3743bcbf2ecea875991c8cda84
Time: 2017-10-30
Author: paul.talbot@inl.gov
File Name: framework/utils/xmlUtils.py
Class Name:
Method Name: findPath


Project Name: jhfjhfj1/autokeras
Commit Name: 71432d1890209628e189edf04d7d623160943718
Time: 2019-12-18
Author: 33369174+Davidsirui@users.noreply.github.com
File Name: autokeras/hypermodel/preprocessor.py
Class Name: TextToNgramVector
Method Name: transform


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 409245fae43d235c91cdf49e45ed5bb4aa7617ac
Time: 2015-06-08
Author: voellm@google.com
File Name: perfkitbenchmarker/benchmarks/iperf_benchmark.py
Class Name:
Method Name: _RunIperf