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

Function conv

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

Source from the content-addressed store, hash-verified

102
103item_re = re.compile(r"\A\\(?P<index>\d+)\Z")
104def conv(astr):
105 b = astr.split(',')
106 l = [x.strip() for x in b]
107 for i in range(len(l)):
108 m = item_re.match(l[i])
109 if m:
110 j = int(m.group('index'))
111 l[i] = l[j]
112 return ','.join(l)
113
114def unique_key(adict):
115 """ Obtain a unique key given a dictionary."""

Callers 5

find_repl_patternsFunction · 0.70
listreplFunction · 0.70
test_shuffleMethod · 0.50
test_shuffleMethod · 0.50
test_shuffleMethod · 0.50

Calls 3

splitMethod · 0.80
stripMethod · 0.80
joinMethod · 0.80

Tested by 3

test_shuffleMethod · 0.40
test_shuffleMethod · 0.40
test_shuffleMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…