MCPcopy Create free account
hub / github.com/numpy/numpy / get_count

Function get_count

tools/commitstats.py:9–14  ·  view source on GitHub ↗
(filename, repo)

Source from the content-addressed store, hash-verified

7names = re.compile(r'r\d+\s\|\s(.*)\s\|\s200')
8
9def get_count(filename, repo):
10 mystr = open(filename).read()
11 result = names.findall(mystr)
12 u = np.unique(result)
13 count = [(x, result.count(x), repo) for x in u]
14 return count
15
16
17command = 'svn log -l 2300 > output.txt'

Callers 1

commitstats.pyFile · 0.85

Calls 3

openFunction · 0.85
readMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected