HF RL Explorer

Bits conversion methods don't preserve empty instances

Bits conversion methods don't preserve empty instances: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When creating an empty Bits object (zero length), the conversion methods like as bin() and as hex() don't return empty strings as expected. Instead, as bin() returns '0' and as hex()…

The task

When creating an empty `Bits` object (zero length), the conversion methods like `as_bin()` and `as_hex()` don't return empty strings as expected. Instead, `as_bin()` returns `'0'` and `as_hex()` returns a non-empty hex string. This also means round-trips through `from_bin` / `from_hex` / `from_bytes` don't preserve…

Part of FineEnvs/repo2rlenv-r2e-gym.