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

Method content

app/services/githubSearch.py:36–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34
35 @property
36 def content(self):
37 if self._content is None:
38 try:
39 content_base64 = github_client(self.git_url)["content"]
40 decode_bytes = base64.decodebytes(content_base64.encode("utf-8"))
41 self._content = decode_bytes.decode("utf-8", errors="replace")
42 except Exception as e:
43 logger.info("error on {}".format(self.git_url))
44 logger.exception(e)
45 self._content = ""
46
47 return self._content
48 else:
49 return self._content
50
51 @property
52 def commit_date(self):

Callers

nothing calls this directly

Calls 1

github_clientFunction · 0.70

Tested by

no test coverage detected