HF RL Explorer

Lexer selection broken when code analysis is used

Lexer selection broken when code analysis is used: a task in harbor-swesmith-rl-artifacts: Harbor SWE-Smith 强化学习数据产物 (Harbor dataset). When using find lexer class for filename with code content, the lexer selection logic is broken due to an undefined variable error. The function fails to properly…

The task

When using `find_lexer_class_for_filename` with code content, the lexer selection logic is broken due to an undefined variable error. The function fails to properly evaluate lexers that have `analyse_text` methods.

Part of keryszhan/harbor-swesmith-rl-artifacts.