"""Gated language-model predictions (clarification H9): _lm_gated. Per row: the LM output where the greedy output is non-empty, the empty string where the greedy output is empty. "Empty" means no character other than white space (str.strip() == ""); until 23 Nov 2026 only the exact empty string counted, and a greedy output of one space let the LM text through (545 rows in 3 folders, found by a PAGES check on A2 long2x synth_clutter_val). Pure file work, no model run, no tuned parameter. Same columns as every prediction file; conf = the LM conf where the LM output is kept and the greedy conf (and conf_min) where the output is emptied. Rows are those of the _lm file (which holds at most 4,000 random lines per set). Applies to every preds/