HF RL Explorer

Bits with zero length serializes as '0' instead of ''

Bits with zero length serializes as '0' instead of '': a task in repo2rlenv-swe-next (Harbor dataset). When creating an empty Bits object (length 0) and calling as bin() , the result is '0' instead of an empty string '' . This means empty Bits values don't round-trip correctly through binary, hex…

The task

When creating an empty `Bits` object (length 0) and calling `as_bin()`, the result is `'0'` instead of an empty string `''`. This means empty `Bits` values don't round-trip correctly through binary, hex, or byte conversions.

Part of FineEnvs/repo2rlenv-swe-next.