HF RL Explorer

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

Build a Write-Ahead Log (WAL) key-value store in a single Python script at /app/wal kv.py . The store must…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). WAL File Specification: - The WAL file is located at /data/wal.log . The directory /data/ exists initially…

The task

**WAL File Specification:** - The WAL file is located at `/data/wal.log`. The directory `/data/` exists initially. - Each WAL entry is a single line terminated by `\n` (LF). - Entry format: `<operation>\t<key>\t<value>\n` for `put`; `<operation>\t<key>\n` for `delete`. - `operation` is exactly the string `put` or…

Part of ai-and/termgrade-environments.