<commit_before><h2><span class="label label-default">Pending surveys</span></h2>
<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th>Survey ID</th>
            <th>Description</th>
            <th>Date Scheduled</th>
            <th>Test type</th>
            <th>Accession</th>
            <th>Survey Note</th>
            <th></th>
		</tr>
	</thead>
	<tbody>
@foreach ($pendingSurveys as $pending)
		<tr>
			<td><a href="{{ route('surveys.edit', $pending->id)}}">{{ $pending->id }}</a></td>
			<td><a href="{{ route('machines.show', $pending->machine->id) }}">{{ $pending->machine->description }}</a></td>
			<td>{{ $pending->test_date}}</td>
            <td>{{ $pending->type->test_type}}</td>
			<td>{{ $pending->accession }}</td>
			<td>{{ $pending->notes }}</td>
            <td><a href="{{ route('surveys.edit', $pending->id) }}" class="btn btn-default btn-xs" role="button" data-toggle="tooltip" title="Modify this machine">
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
            </td>
		</tr>
@endforeach
	</tbody>
</table><commit_msg>Check for deleted machine when showing pending surveys.<commit_after><h2><span class="label label-default">Pending surveys</span></h2>
<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th>Survey ID</th>
            <th>Description</th>
            <th>Date Scheduled</th>
            <th>Test type</th>
            <th>Accession</th>
            <th>Survey Note</th>
            <th></th>
		</tr>
	</thead>
	<tbody>
@foreach ($pendingSurveys as $pending)
    if (is_null($pending->machine)) {
        break;
    }
    else {
		<tr>
			<td><a href="{{ route('surveys.edit', $pending->id)}}">{{ $pending->id }}</a></td>
			<td><a href="{{ route('machines.show', $pending->machine->id) }}">{{ $pending->machine->description }}</a></td>
			<td>{{ $pending->test_date}}</td>
            <td>{{ $pending->type->test_type}}</td>
			<td>{{ $pending->accession }}</td>
			<td>{{ $pending->notes }}</td>
            <td><a href="{{ route('surveys.edit', $pending->id) }}" class="btn btn-default btn-xs" role="button" data-toggle="tooltip" title="Modify this machine">
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
            </td>
		</tr>
    }
@endforeach
	</tbody>
</table>
{'fraction_non_alphanumeric': 0.2300771208226221, 'fraction_numerical': 0.001713796058269066, 'mean_word_length': 2.9442567567567566, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1994178', 'n_tokens_mistral': 842, 'n_tokens_neox': 787, 'n_words': 154}