Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

git_blob_sha

codeintel.source.git_blob_sha

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Called by (1)
SymbolFileResolved by
_resolve_onesource.pysame file
Inside (1)
SymbolFileResolved by
sourcesource.pysame file
codeintel.source.git_blob_shabackend/app/codeintel/source.py, lines 85–86Open source
def git_blob_sha(data: bytes) -> str:    return hashlib.sha1(b"blob %d\0" % len(data) + data).hexdigest()

What the index recorded

Signature
def git_blob_sha(data: bytes) -> str:
File
backend/app/codeintel/source.py
Lines
85–86
Parser
python-ast
Git blob
c9f05cf7bf871b09919d64e9fdaf8380ecc3df2c
Call sites
3 named, 0 resolved, 3 left unlinked

Read it on GitHub at this commit