HF RL Explorer

Write a Python function called split unquoted newlines(stmt) that splits a string on all unquoted newline…

Write a Python function called split unquoted newlines(stmt) that splits a string on all unquoted newline…: a task in repo2rlenv-r2e (Harbor dataset). Behavior requirements: - The input stmt is converted to a string via str() before any processing, so non-string types (e.g., integers) are…

The task

Behavior requirements: - The input `stmt` is converted to a string via `str()` before any processing, so non-string types (e.g., integers) are accepted. - The function splits on bare newline characters (\n), carriage returns (\r), and CRLF sequences (\r\n) that are NOT enclosed within a quoted string literal. -…

Part of FineEnvs/repo2rlenv-r2e.