MCPcopy Index your code
hub / github.com/numpy/numpy / find_repl_patterns

Function find_repl_patterns

numpy/f2py/_src_pyf.py:87–95  ·  view source on GitHub ↗
(astr)

Source from the content-addressed store, hash-verified

85list_re = re.compile(r"<\s*((.*?))\s*>")
86
87def find_repl_patterns(astr):
88 reps = named_re.findall(astr)
89 names = {}
90 for rep in reps:
91 name = rep[0].strip() or unique_key(names)
92 repl = rep[1].replace(r'\,', '@comma@')
93 thelist = conv(repl)
94 names[name] = thelist
95 return names
96
97def find_and_remove_repl_patterns(astr):
98 names = find_repl_patterns(astr)

Callers 3

expand_subFunction · 0.85
_src_pyf.pyFile · 0.85

Calls 4

stripMethod · 0.80
replaceMethod · 0.80
unique_keyFunction · 0.70
convFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…