Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Albert-Ma/PROP
/ __len__
Method
__len__
prop/preprocessing_data.py:39–40 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
37
self.docids.append(doc_id)
38
39
def
__len__(self):
40
return
len(self.docids)
41
42
def
__getitem__(self, item):
43
return
self.document_shelf[str(item)]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected