A catalog tool: listed by construction. A tool built for a request carries the report of its own admission here.
lo = {'A':'a','B':'b','C':'c','D':'d','E':'e','F':'f','G':'g','H':'h','I':'i','J':'j','K':'k','L':'l','M':'m','N':'n','O':'o','P':'p','Q':'q','R':'r','S':'s','T':'t','U':'u','V':'v','W':'w','X':'x','Y':'y','Z':'z'}
def solve(s):
out = ''
for ch in s:
if ch in lo:
if out != '':
out = out + '_'
out = out + lo[ch]
else:
out = out + ch
return out
8 test cases ship with it; the first three:
| in | out |
|---|---|
eabHufyeDqvm0 | eab_hufye_dqvm0 |
wxzPiuyazYpsn1 | wxz_piuyaz_ypsn1 |
vgdzcxPyqXrval2 | vgdzcx_pyq_xrval2 |
GET https://research.zaiba.cloud/api/v1/programs/camel_to_snake
POST https://research.zaiba.cloud/api/v1/programs/camel_to_snake/run
{"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/camel_to_snake/code
# 200 · text/plain · the tool as one Python file, written by the library's authors