MCPcopy Index your code
hub / github.com/Persper/code-analytics / run

Function run

tools/build_history.py:19–29  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

17
18
19def run(i):
20 repo_path = os.path.join(root_path, 'repos/linux-complete')
21 pickle_path = os.path.join(
22 root_path, 'data/branch_commits_chunk' + i + '.pickle')
23 with open(pickle_path, 'rb') as f:
24 sha_lst = pickle.load(f)
25
26 az = Analyzer(repo_path, CGraph())
27 r = Repo(repo_path)
28 chunk_commits = [r.commit(sha) for sha in sha_lst]
29 az.build_history(chunk_commits, phase='history-chunk-' + i)
30
31
32def main():

Callers 1

mainFunction · 0.85

Calls 2

build_historyMethod · 0.95
AnalyzerClass · 0.90

Tested by

no test coverage detected