MCPcopy
hub / github.com/apache/caldera / retrieve

Method retrieve

app/utility/base_object.py:47–48  ·  view source on GitHub ↗
(collection, unique)

Source from the content-addressed store, hash-verified

45
46 @staticmethod
47 def retrieve(collection, unique):
48 return next((i for i in collection if i.unique == unique), None)
49
50 @staticmethod
51 def hash(s):

Callers 12

storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80
storeMethod · 0.80

Calls 1

nextFunction · 0.50

Tested by 1

storeMethod · 0.64