Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMatch/UniVL-DR
/ __getitem__
Method
__getitem__
CLIP-DPR/visual.py:38–39 ·
view source on GitHub ↗
(self, pos)
Source
from the content-addressed store, hash-verified
36
return
[s.strip()
for
s in self._fp.readline().split(
'\t'
)]
37
38
def
__getitem__(self, pos):
39
return
self.seek(pos)
40
41
def
__len__(self):
42
return
self.num_rows()
Callers
nothing calls this directly
Calls
1
seek
Method · 0.95
Tested by
no test coverage detected