MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / pad

Function pad

scripts/mcp_probe/probe.py:290–293  ·  view source on GitHub ↗
(lst, fallback)

Source from the content-addressed store, hash-verified

288 out["qnames"] = list(dict.fromkeys(out["qnames"]))[:5]
289
290 def pad(lst, fallback):
291 while len(lst) < 5:
292 lst.append(fallback)
293 return lst
294
295 out["ids"] = pad(out["ids"], "__missing__")
296 out["qnames"] = pad(out["qnames"], "__missing__")

Callers 1

discoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected