MCPcopy Create free account
hub / github.com/Persper/code-analytics / update_info

Function update_info

persper/graphs/detect_change.py:44–50  ·  view source on GitHub ↗

key should be one of 'adds' or 'dels'.

(fn, num_lines, key)

Source from the content-addressed store, hash-verified

42 return info
43
44 def update_info(fn, num_lines, key):
45 """key should be one of 'adds' or 'dels'."""
46 if fn in info:
47 info[fn][key] += num_lines
48 else:
49 info[fn] = {'adds': 0, 'dels': 0}
50 info[fn][key] = num_lines
51
52 add_ptr, del_ptr = 0, 0
53 num_adds, num_dels = len(additions), len(deletions)

Callers 1

get_changed_functionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected