MCPcopy Create free account
hub / github.com/C3ting/ARL / __init__

Method __init__

app/services/githubSearch.py:13–21  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

11
12class GithubResult(object):
13 def __init__(self, item):
14 self.raw_data = item
15 self.git_url = item["git_url"]
16 self.html_url = item["html_url"]
17 self.repo_full_name = item["repository"]["full_name"]
18 self.path = item["path"]
19 self.hash_md5 = gen_md5(self.repo_full_name + "/" + item["path"])
20 self._commit_date = None # 记录文件最后一次 Commit 时间
21 self._content = None
22
23 def __str__(self):
24 return "{} {}".format(self.repo_full_name, self.path)

Callers

nothing calls this directly

Calls 1

gen_md5Function · 0.90

Tested by

no test coverage detected