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

Function get_modified_func_ids

persper/graphs/commit_graph.py:36–47  ·  view source on GitHub ↗
(func_ranges, modified_intervals, func_ids)

Source from the content-addressed store, hash-verified

34 return a[0] <= b[0] <= a[1] or b[0] <= a[0] <= b[1]
35
36def get_modified_func_ids(func_ranges, modified_intervals, func_ids):
37 search_ptr = 0
38 num_intervals = len(modified_intervals)
39 modified_func_ids = []
40 for func_r, func_id in zip(func_ranges, func_ids):
41 for i in range(search_ptr, num_intervals):
42 if intersected(func_r, modified_intervals[i]):
43
44 modified_func_ids.append(func_id)
45 search_ptr = i
46 break
47 return modified_func_ids
48
49class CommitGraph(Processor):
50

Callers 2

on_renameMethod · 0.85
on_modifyMethod · 0.85

Calls 1

intersectedFunction · 0.85

Tested by

no test coverage detected