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

Method __init__

persper/graphs/call_commit_graph.py:67–81  ·  view source on GitHub ↗
(self, repo_path, lang='c')

Source from the content-addressed store, hash-verified

65class CallCommitGraph(Processor):
66
67 def __init__(self, repo_path, lang='c'):
68 super().__init__(repo_path)
69 self.G = None
70 self.lang = lang
71 if lang == 'c':
72 self.exts = ('.c', '.h')
73 elif lang == 'java':
74 self.exts = ('.java',)
75 else:
76 print("Invalid language option, terminated.")
77 sys.exit(-1)
78 self.env = {}
79 self.history = {}
80 self.share = {}
81 self.patch_parser = PatchParser()
82
83 def _reset_state(self):
84 super()._reset_state()

Callers

nothing calls this directly

Calls 2

PatchParserClass · 0.90
exitMethod · 0.80

Tested by

no test coverage detected