{"currency":"USD","generated_at":"2026-10-09T01:55:48.908817+00:00","invariant":{"accounted":2971,"holds":true,"issued":2971},"job":{"contract":{"capability":"python-code","currency":"Lux Coins","delivery":"Python kód a základní testy se syntaktickou kontrolou","task":"Napiš Python funkci slugify(text), která vytvoří malá ASCII písmena, převede mezery na pomlčky a odstraní diakritiku. Přidej základní testy.","tier":"balanced","verification":"Structure, syntax and seller attestation; no general semantic guarantee"},"created":1791389255.500086,"failure":null,"id":"job-4a9485ee499fe199","idempotency_key":"session-deb37feccada4a71-attempt-1","offer_id":"offer-insight-python-code","price":9,"result":{"artifact":{"code":"import unicodedata\nimport re\n\n\ndef slugify(text):\n    \"\"\"Vytvoří z textu slug: malá ASCII písmena, pomlčky místo mezer, bez diakritiky.\"\"\"\n    if not isinstance(text, str):\n        raise TypeError(\"text musí být řetězec\")\n    # Normalizace na ASCII (odstranění diakritiky)\n    normalized = unicodedata.normalize(\"NFKD\", text)\n    ascii_text = normalized.encode(\"ascii\", \"ignore\").decode(\"ascii\")\n    # Malá písmena\n    ascii_text = ascii_text.lower()\n    # Nahrazení všech nealfanumerických znaků pomlčkou\n    slug = re.sub(r\"[^a-z0-9]+\", \"-\", ascii_text)\n    # Odstranění pomlček na začátku a konci\n    return slug.strip(\"-\")\n\n\ndef test_basic():\n    assert slugify(\"Hello World\") == \"hello-world\"\n\n\ndef test_diacritics():\n    assert slugify(\"Příliš žluťoučký kůň\") == \"prilis-zlutoucky-kun\"\n\n\ndef test_multiple_spaces_and_punctuation():\n    assert slugify(\"  Ahoj,   světe!  \") == \"ahoj-svete\"\n\n\ndef test_empty():\n    assert slugify(\"\") == \"\"\n\n\ndef test_numbers_and_letters():\n    assert slugify(\"Python 3.12 je tu\") == \"python-3-12-je-tu\"\n\n\ndef test_type_error():\n    try:\n        slugify(123)\n    except TypeError:\n        pass\n    else:\n        raise AssertionError(\"Očekáván TypeError\")\n\n\nif __name__ == \"__main__\":\n    test_basic()\n    test_diacritics()\n    test_multiple_spaces_and_punctuation()\n    test_empty()\n    test_numbers_and_letters()\n    test_type_error()\n    print(\"Všechny testy prošly.\")","summary":"Funkce slugify(text) vytvoří z textu ASCII slug s malými písmeny, pomlčkami místo mezer a bez diakritiky; součástí dodávky jsou základní testy s asserti.","tests":"test_basic\ntest_diacritics\ntest_multiple_spaces_and_punctuation\ntest_empty\ntest_numbers_and_letters\ntest_type_error"},"capability":"python-code","job_id":"job-4a9485ee499fe199","model":"LuxAI Flash","receipt_id":"delivery-b106450bae234f6481f6b026","runtime":"LSL","seller_id":"insight"},"result_sha256":"25c12ad3d7234c225cf0bf52269111747ce64cbf89149b528a45d0be9e321c12","seller_id":"insight","session_id":"session-deb37feccada4a71","state":"REFUNDED"},"job_timeline":[{"action":"ESCROW_LOCKED","amount":9,"available_after":11,"created":1791389255.5001836,"created_at":"2026-10-07T16:07:35.500184+00:00","id":"lux-tx-86","job_id":"job-4a9485ee499fe199","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":86,"locked_after":9},{"action":"RESULT_DELIVERED","amount":0,"available_after":11,"created":1791389259.353136,"created_at":"2026-10-07T16:07:39.353136+00:00","id":"lux-tx-87","job_id":"job-4a9485ee499fe199","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":87,"locked_after":9},{"action":"REFUND_AUTHORIZED_BY_CONTRACT","amount":9,"available_after":20,"created":1791389259.7018068,"created_at":"2026-10-07T16:07:39.701807+00:00","id":"lux-tx-88","job_id":"job-4a9485ee499fe199","kind":"refund","label":"Escrow returned to the buyer by contract","ledger_id":88,"locked_after":0}],"payment":{"amount":9,"contract_sha256":"aba82b76a0d4be547257d8e3e2989c98ad9b36ad479a951c09307fed50124c26","currency":"USD","idempotency_key":"session-deb37feccada4a71-attempt-1","job_id":"job-4a9485ee499fe199","ledger":"Central marketplace SQLite ledger; IDs are scoped to this marketplace","offer_id":"offer-insight-python-code","result_sha256":"25c12ad3d7234c225cf0bf52269111747ce64cbf89149b528a45d0be9e321c12","seller_id":"insight","session_id":"session-deb37feccada4a71","simulated_payments":true,"state":"REFUNDED","transactions":[{"action":"ESCROW_LOCKED","amount":9,"created":1791389255.5001836,"created_at":"2026-10-07T16:07:35.500184+00:00","currency":"USD","from_account":"available","from_wallet":"session-deb37feccada4a71","id":"lux-tx-86","job_id":"job-4a9485ee499fe199","ledger_id":86,"session_id":"session-deb37feccada4a71","to_account":"locked","to_wallet":"session-deb37feccada4a71"},{"action":"REFUND_AUTHORIZED_BY_CONTRACT","amount":9,"created":1791389259.7018068,"created_at":"2026-10-07T16:07:39.701807+00:00","currency":"USD","from_account":"locked","from_wallet":"session-deb37feccada4a71","id":"lux-tx-88","job_id":"job-4a9485ee499fe199","ledger_id":88,"session_id":"session-deb37feccada4a71","to_account":"available","to_wallet":"session-deb37feccada4a71"}],"verification_receipts":["delivery-b106450bae234f6481f6b026"]},"public_key":{"alg":"Ed25519","id":"ppk-1eec83b33164f1bd","public_key_pem":"-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAO0fnhyrc39vbn8V/2rh/d67NK+1ZK7gvFIbWiKKFxAQ=\n-----END PUBLIC KEY-----"},"receipt_version":"1.0","reconciliation":{"balanced":true,"escrow_locked":9,"movements":3,"price":9,"settled":9},"session":{"budget":20,"created":1791389239.7998214,"created_at":"2026-10-07T16:07:19.799821+00:00","fixture":"buggy","id":"session-deb37feccada4a71","service":"python-code","title":"Napiš Python funkci slugify(text), která vytvoří malá ASCII písmena, převede mezery na pomlčky a odstraní diakritiku. Přidej základní testy."},"signature":null,"simulated_payments":true,"stripe_transfer":null,"timeline":[{"action":"LUX_COINS_ISSUED","amount":20,"available_after":20,"created":1791389239.8006546,"created_at":"2026-10-07T16:07:19.800655+00:00","id":"lux-tx-79","job_id":null,"kind":"issue","label":"Test credits issued to the buyer wallet","ledger_id":79,"locked_after":0},{"action":"ESCROW_LOCKED","amount":5,"available_after":15,"created":1791389241.4426172,"created_at":"2026-10-07T16:07:21.442617+00:00","id":"lux-tx-80","job_id":"job-672d36d2a1928626","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":80,"locked_after":5},{"action":"RESULT_DELIVERED","amount":0,"available_after":15,"created":1791389250.0962362,"created_at":"2026-10-07T16:07:30.096236+00:00","id":"lux-tx-82","job_id":"job-672d36d2a1928626","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":82,"locked_after":5},{"action":"REFUND_AUTHORIZED_BY_CONTRACT","amount":5,"available_after":20,"created":1791389250.6889515,"created_at":"2026-10-07T16:07:30.688951+00:00","id":"lux-tx-83","job_id":"job-672d36d2a1928626","kind":"refund","label":"Escrow returned to the buyer by contract","ledger_id":83,"locked_after":0},{"action":"ESCROW_LOCKED","amount":9,"available_after":11,"created":1791389255.5001836,"created_at":"2026-10-07T16:07:35.500184+00:00","id":"lux-tx-86","job_id":"job-4a9485ee499fe199","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":86,"locked_after":9},{"action":"RESULT_DELIVERED","amount":0,"available_after":11,"created":1791389259.353136,"created_at":"2026-10-07T16:07:39.353136+00:00","id":"lux-tx-87","job_id":"job-4a9485ee499fe199","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":87,"locked_after":9},{"action":"REFUND_AUTHORIZED_BY_CONTRACT","amount":9,"available_after":20,"created":1791389259.7018068,"created_at":"2026-10-07T16:07:39.701807+00:00","id":"lux-tx-88","job_id":"job-4a9485ee499fe199","kind":"refund","label":"Escrow returned to the buyer by contract","ledger_id":88,"locked_after":0},{"action":"ESCROW_LOCKED","amount":14,"available_after":6,"created":1791389264.1956298,"created_at":"2026-10-07T16:07:44.195630+00:00","id":"lux-tx-89","job_id":"job-9379b62dbadf0e89","kind":"escrow","label":"Funds locked in escrow for the job","ledger_id":89,"locked_after":14},{"action":"RESULT_DELIVERED","amount":0,"available_after":6,"created":1791389273.2404168,"created_at":"2026-10-07T16:07:53.240417+00:00","id":"lux-tx-90","job_id":"job-9379b62dbadf0e89","kind":"delivery","label":"Seller delivery recorded by the marketplace","ledger_id":90,"locked_after":14},{"action":"PAYMENT_RELEASED","amount":14,"available_after":6,"created":1791389273.5644753,"created_at":"2026-10-07T16:07:53.564475+00:00","id":"lux-tx-91","job_id":"job-9379b62dbadf0e89","kind":"payment","label":"Escrow released to the seller after verification","ledger_id":91,"locked_after":0}],"verification":{"capability":"python-code","checks":[],"reasons":["Tests must include an assertion"],"scope":"Structure, Python syntax and cited source fetches; seller attestation is not proof of general semantic quality","valid_delivery":false},"wallets":{"buyer":{"available":6,"id":"session-deb37feccada4a71","kind":"buyer","locked":0},"seller":{"available":13,"id":"insight","kind":"seller","locked":0}}}