MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / get_repo_hash

Method get_repo_hash

codewiki/src/fe/cache_manager.py:61–63  ·  view source on GitHub ↗

Generate hash for repository URL.

(self, repo_url: str)

Source from the content-addressed store, hash-verified

59 print(f"Error saving cache index: {e}")
60
61 def get_repo_hash(self, repo_url: str) -> str:
62 """Generate hash for repository URL."""
63 return hashlib.sha256(repo_url.encode()).hexdigest()[:16]
64
65 def get_cached_docs(self, repo_url: str) -> Optional[str]:
66 """Get cached documentation path if available."""

Callers 3

get_cached_docsMethod · 0.95
add_to_cacheMethod · 0.95
remove_from_cacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected