HF RL Explorer

Implement a Write-Ahead Log (WAL) based key-value store in a single Python script at /app/wal kv.py . The…

Implement a Write-Ahead Log (WAL) based key-value store in a single Python script at /app/wal kv.py . The…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The script must support three commands invoked via CLI arguments: - python /app/wal kv.py set <key <value —…

The task

The script must support three commands invoked via CLI arguments: - `python /app/wal_kv.py set <key> <value>` — sets a key to a value, returns nothing on stdout. - `python /app/wal_kv.py get <key>` — prints the value to stdout if found, or prints nothing and exits with code 1 if not found. - `python /app/wal_kv.py…

Part of ai-and/termgrade-environments.