MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / output_payload

Function output_payload

tools/provenance-eval/run.py:50–54  ·  view source on GitHub ↗
(index, size)

Source from the content-addressed store, hash-verified

48
49
50def output_payload(index, size):
51 # Deterministic, varied hex avoids an unrealistically compressible repeated byte.
52 text = "".join(hashlib.sha256(f"event-{index}-block-{block}".encode()).hexdigest()
53 for block in range((size + 63) // 64))
54 return text[:size]
55
56
57def tool_payload(index, size, turn):

Callers 2

tool_payloadFunction · 0.85
measure_turnFunction · 0.85

Calls 2

rangeFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected