{"api":"v1","generated_at":"2026-09-15T20:53:26.909Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/api-statemind-ai-v1-x402-repair-504c72","pinned_page":"https://tollindex.com/e/api-statemind-ai-v1-x402-repair-504c72/at/2026-09-15T16-57Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-09-15T16:57:44.360Z","snapshot_stamp":"2026-09-15T16-57Z","endpoint":{"slug":"api-statemind-ai-v1-x402-repair-504c72","canonical_url":"https://api.statemind.ai/v1/x402/repair","resource":"https://api.statemind.ai/v1/x402/repair","http_method":"POST","type":"http","x402_version":2,"registries":[],"primary_registry":"cdp","curated_by_coinbase":false,"description":"Return corrected Python for code that fails those checks: the fix is applied and re-checked, and only returned when it holds.","service_name":"Python Code Validator","declared_category":null,"declared_tags":["python","code-review","static-analysis","testing","developer-tools"],"route_template":null,"registry_updated":"2026-08-16T15:34:20.611Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"repair","category":"compute","first_observed_by_toll":"2026-09-10T19:08:24.178Z","last_observed_by_toll":"2026-09-15T11:42:41.317Z","observation_began":"2026-09-10"},"presence":{"listed_now":false,"first_absent_at":"2026-09-15T16:57:44.360Z","delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-10T19:08:24.178Z","event":"listed"},{"registry":"cdp","at":"2026-09-15T16:57:44.360Z","event":"delisted"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.03 USDC","amount_units":0.03,"decimals_known":true,"pay_to":"0xaa7116CdDA58286F4cdA40C6F735762C22447104","scheme":"exact"}],"counters":{"observed_at":"2026-09-15T11:42:41.317Z","calls_30d":1,"unique_payers_30d":1,"last_called_at":"2026-08-16T15:34:20.187Z"},"validation":{"latest":{"observed_at":"2026-09-15T04:43:49.446Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-09-15"},"uptime":[{"days":7,"observed":5,"passed":5,"ratio":1},{"days":30,"observed":5,"passed":5,"ratio":1},{"days":90,"observed":5,"passed":5,"ratio":1}],"history_90d":[{"observed_at":"2026-09-15T04:43:49.446Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-15","state_changed":false},{"observed_at":"2026-09-14T04:39:18.453Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-14","state_changed":false},{"observed_at":"2026-09-13T04:37:29.037Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-13","state_changed":false},{"observed_at":"2026-09-12T06:54:03.287Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-12","state_changed":false},{"observed_at":"2026-09-11T10:28:51.458Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-11","state_changed":true}]},"seller":{"wallet":"0xaa7116CdDA58286F4cdA40C6F735762C22447104","page":"https://tollindex.com/seller/0xaa7116CdDA58286F4cdA40C6F735762C22447104","endpoints":6,"hosts":1},"reports":0,"registry_record":{"cdp":[{"tags":["python","code-review","static-analysis","testing","developer-tools"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0xaa7116CdDA58286F4cdA40C6F735762C22447104","amount":"30000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":60}],"quality":{"lastCalledAt":"2026-08-16T15:34:20.187Z","l30DaysTotalCalls":1,"l30DaysUniquePayers":1},"resource":"https://api.statemind.ai/v1/x402/repair","extensions":{"bazaar":{"info":{"input":{"body":{"code":"def bitcount(n):\n    count = 0\n    while n:\n        n ^= n - 1\n    return count\n","options":{"examples":"assert bitcount(127) == 7\nassert bitcount(0) == 0"}},"type":"http","method":"POST","bodyType":"json"},"output":{"type":"json","example":{"score":0.4,"valid":false,"fixed_code":"def bitcount(n):\n    count = 0\n    while n:\n        n &= n - 1\n        count += 1\n    return count\n","diagnostics":[{"code":"python:example-mismatch","message":"assert bitcount(127) == 7 failed: the code loops forever","severity":"error"}]}}},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The Python source to check."},"options":{"type":"object","properties":{"intent":{"type":"string","description":"What the code was asked to do, in words."},"examples":{"type":"string","description":"What the code is supposed to do, as assert or doctest lines, one per line. This is the only check that can fail code which parses, lints and runs."}}}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"description":"Return corrected Python for code that fails those checks: the fix is applied and re-checked, and only returned when it holds.","lastUpdated":"2026-08-16T15:34:20.611Z","serviceName":"Python Code Validator","x402Version":2}]}}