Joins and label windows without leakage — step 5 of 7
Fix events_before(events, anchor_day) so the event on the anchor day is excluded.
The break is on line 6 — but read the whole snippet first.
Fix events_before(events, anchor_day) so the event on the anchor day is excluded.