<commit_before><div class="table-responsive">
    <br/>
    <div class="alert alert-info" role="alert"><span style="font-weight: bold">Pro Tip:</span> Use the check boxes to keep track of people you've already matched.</div>

    <h4>Continuing Team Members</h4>
    <div class="tableContainer">
    <table id="teamMembersTable" class="table table-condensed table-striped table-hover">
        <thead>
        <tr>
            <th>&nbsp;</th>
            <th>First Name</th>
            <th>Last Name</th>
            <th class="data-point">Team Year</th>
            <th class="data-point">Quarter</th>
            <th>Status</th>
            <th>Attention</th>
        </tr>
        </thead>
        <tbody>
            @foreach (['missing', 'new', 'changed'] as $type)
                @if ($teamMemberSummary[$type] )
                    @foreach ($teamMemberSummary[$type] as $existingPair)
                        <?php $new = $existingPair[0]; ?>
                        <?php $old = $existingPair[1]; ?>
                        <?php $member = $type !== 'missing' ? $new : $old; ?>
                        @if ($member->quarterNumber != 1)
                        <tr>
                            <td><input type="checkbox" /></td>
                            <td>{{ $member->firstName }}</td>
                            <td>{{ $member->lastName }}</td>
                            <td class="data-point">{{ $member->teamYear }}</td>
                            <td class="data-point">Q{{ $member->quarterNumber }}</td>
                            <td>{{ $type }}</td>
                            <td {!! ($type == 'changed') ? 'class="bg-warning"' : '' !!}><?php
                                if ($type == 'new' && $old) {
                                    echo 'Withdrawn last quarter: ' . $old->withdrawCode->display;
                                } else if ($type == 'changed' && $new->incomingQuarter->id != $old->incomingQuarter->id) {
                                    // Quarter number is calculated based on the current report date. That means when we get the quarter number
                                    // for a person from the previous quarter, we need to manually adjust the value to be accurate.
                                    $teamQuarterLastWeek = $old->quarterNumber - 1;
                                    echo "Was listed as Q{$teamQuarterLastWeek} last quarter, but is Q{$new->quarterNumber} this quarter. Were they added to the correct section on the class list?";
                                }
                            ?></td>
                        </tr>
                        @endif
                    @endforeach
                @endif
            @endforeach
        </tbody>
    </table>
    </div>
    <br/><br/><commit_msg>Fix bug in people transfercheck for non-withdrawn<commit_after><div class="table-responsive">
    <br/>
    <div class="alert alert-info" role="alert"><span style="font-weight: bold">Pro Tip:</span> Use the check boxes to keep track of people you've already matched.</div>

    <h4>Continuing Team Members</h4>
    <div class="tableContainer">
    <table id="teamMembersTable" class="table table-condensed table-striped table-hover">
        <thead>
        <tr>
            <th>&nbsp;</th>
            <th><NAME></th>
            <th><NAME></th>
            <th class="data-point">Team Year</th>
            <th class="data-point">Quarter</th>
            <th>Status</th>
            <th>Attention</th>
        </tr>
        </thead>
        <tbody>
            @foreach (['missing', 'new', 'changed'] as $type)
                @if ($teamMemberSummary[$type] )
                    @foreach ($teamMemberSummary[$type] as $existingPair)
                        <?php $new = $existingPair[0]; ?>
                        <?php $old = $existingPair[1]; ?>
                        <?php $member = $type !== 'missing' ? $new : $old; ?>
                        @if ($member->quarterNumber != 1)
                        <tr>
                            <td><input type="checkbox" /></td>
                            <td>{{ $member->firstName }}</td>
                            <td>{{ $member->lastName }}</td>
                            <td class="data-point">{{ $member->teamYear }}</td>
                            <td class="data-point">Q{{ $member->quarterNumber }}</td>
                            <td>{{ $type }}</td>
                            <td {!! ($type == 'changed') ? 'class="bg-warning"' : '' !!}><?php
                                if ($type == 'new' && $old && $old->withdrawCode) {
                                    echo 'Withdrawn last quarter: ' . $old->withdrawCode->display;
                                } else if ($type == 'changed' && $new->incomingQuarter->id != $old->incomingQuarter->id) {
                                    // Quarter number is calculated based on the current report date. That means when we get the quarter number
                                    // for a person from the previous quarter, we need to manually adjust the value to be accurate.
                                    $teamQuarterLastWeek = $old->quarterNumber - 1;
                                    echo "Was listed as Q{$teamQuarterLastWeek} last quarter, but is Q{$new->quarterNumber} this quarter. Were they added to the correct section on the class list?";
                                }
                            ?></td>
                        </tr>
                        @endif
                    @endforeach
                @endif
            @endforeach
        </tbody>
    </table>
    </div>
    <br/><br/>
{'fraction_non_alphanumeric': 0.14202023788389845, 'fraction_numerical': 0.002130303568258477, 'mean_word_length': 1.3213844252163165, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 142, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4671884', 'n_tokens_mistral': 1465, 'n_tokens_neox': 1395, 'n_words': 382}