MCPcopy Create free account
hub / github.com/catboost/catboost / get

Function get

library/python/func/__init__.py:105–114  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

103 keys = collections.deque()
104
105 def get(args):
106 if args not in memory:
107 with lock:
108 if args not in memory:
109 fargs = args[-1]
110 memory[args] = func(*fargs)
111 keys.append(args)
112 if len(keys) > limit:
113 del memory[keys.popleft()]
114 return memory[args]
115
116 else:
117

Callers 1

wrapperFunction · 0.70

Calls 3

funcFunction · 0.85
lenFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected