HF RL Explorer

Task: Extract Outermost Balanced Brace Blocks from Source Code

Task: Extract Outermost Balanced Brace Blocks from Source Code: a task in Terminal-Lego-15k (Harbor dataset). Regular expressions in the classical sense (finite automata) cannot match nested patterns of arbitrary depth. However, in practice, we often need to extract balanced/nested brace blocks…

The task

Regular expressions in the classical sense (finite automata) cannot match nested patterns of arbitrary depth. However, in practice, we often need to extract balanced/nested brace blocks from source code or structured text.

Part of PrimeIntellect/Terminal-Lego-15k.