HF RL Explorer

Build a byte sequence analyzer module that uses chardet to detect character encodings in byte sequences…

Build a byte sequence analyzer module that uses chardet to detect character encodings in byte sequences…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Requirements: - Use chardet.detect() on each byte sequence - Return results as {byte str: {'charset name': str, 'confidence': float}} -…

The task

Requirements: - Use `chardet.detect()` on each byte sequence - Return results as `{byte_str: {'charset_name': str, 'confidence': float}}` - Must include a `reset_prober` helper function that creates a fresh `chardet` prober instance - Handle edge cases: empty sequences, invalid UTF-8 bytes, and sequences shorter than…

Part of Essacheez/r2e-code-instruct-qwen3.5.