HF RL Explorer

Implement a class CodeAnalyzer with a method count docstrings(source) . This utility must analyze Python…

Implement a class CodeAnalyzer with a method count docstrings(source) . This utility must analyze Python…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Expected behavior: - Input: "def f():\n\"\"\"Hello\"\"\"\n pass" - Output: 1 - Input: "x = 1" - Output: 0 - Input: None - Raise TypeError .

The task

Expected behavior: - Input: `"def f():\n\"\"\"Hello\"\"\"\n pass"` -> Output: `1` - Input: `"x = 1"` -> Output: `0` - Input: `None` -> Raise `TypeError`.

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