MCPcopy
hub / github.com/stanford-futuredata/ColBERT / set

Method set

colbert/infra/config/core_config.py:62–69  ·  view source on GitHub ↗
(self, key, value, ignore_unrecognized=False)

Source from the content-addressed store, hash-verified

60 """
61
62 def set(self, key, value, ignore_unrecognized=False):
63 if hasattr(self, key):
64 setattr(self, key, value)
65 self.assigned[key] = True
66 return True
67
68 if not ignore_unrecognized:
69 raise Exception(f"Unrecognized key `{key}` for {type(self)}")
70
71 def help(self):
72 print(ujson.dumps(self.export(), indent=4))

Callers 15

configureMethod · 0.95
load_from_checkpointMethod · 0.80
jquery.jsFile · 0.80
ZFunction · 0.80
leFunction · 0.80
yeFunction · 0.80
AeFunction · 0.80
OeFunction · 0.80
jquery-3.5.1.jsFile · 0.80
dataAttrFunction · 0.80
showHideFunction · 0.80
setGlobalEvalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected