def _chunk_fill_out_first_week(year, month, count, event, diff):
first_of_the_month = date(year, month, <NUM_LIT:1>)<EOL>d = _first_weekday(event.l_end_date.weekday(), first_of_the_month)<EOL>d2 = _first_weekday(event.l_start_date.weekday(), first_of_the_month)<EOL>diff_weekdays = d.day - d2.day<EOL>day = first_of_the_month.day<EOL>start = event.l_start_date.weekday()<EOL>first = first_of_the_month.weekday()<EOL>if start == first or diff_weekdays == diff:<EOL><INDENT>return count<EOL><DEDENT>elif start > first:<EOL><INDENT>end = event.l_end_date.weekday()<EOL>diff = end - first + <NUM_LIT:1><EOL><DEDENT>elif start < first:<EOL><INDENT>diff = d.day<EOL><DEDENT>for i in xrange(diff):<EOL><INDENT>if event.end_repeat is not None anddate(year, month, day) >= event.end_repeat:<EOL><INDENT>break<EOL><DEDENT>count[day].append((event.title, event.pk))<EOL>day += <NUM_LIT:1><EOL><DEDENT>return count<EOL>
If a repeating chunk event exists in a particular month, but didn't
start that month, it may be neccessary to fill out the first week.
Five cases:
    1. event starts repeating on the 1st day of month
    2. event starts repeating past the 1st day of month
    3. event starts repeating before the 1st day of month, and continues
    through it.
    4. event starts repeating before the 1st day of month, and finishes
    repeating before it.
    5. event starts repeating before the 1st day of month, and finishes
    on it.