<commit_before><div class="group-email archive">
	<p>
		<?=lang( 'email_index_intro' )?>
	</p>

	<hr />

	<?php

		//	TODO: Add search facilities

		$this->load->view( 'admin/email/utilities/pagination' );

	?>

	<table>
		<thead>
			<tr>
				<th class="id"><?=lang( 'email_index_thead_id' )?></th>
				<th class="ref"><?=lang( 'email_index_thead_ref' )?></th>
				<th class="user"><?=lang( 'email_index_thead_to' )?></th>
				<th class="sent"><?=lang( 'email_index_thead_sent' )?></th>
				<th class="type"><?=lang( 'email_index_thead_type' )?></th>
				<th class="reads"><?=lang( 'email_index_thead_reads' )?></th>
				<th class="clicks"><?=lang( 'email_index_thead_clicks' )?></th>
				<th class="actions"><?=lang( 'email_index_thead_actions' )?></th>
			</tr>
		</thead>
		<tbody>
			<?php

				if ( $emails->data ) :

					foreach ( $emails->data AS $email ) :

						?>
						<tr>
							<td class="id"><?=number_format( $email->id )?></td>
							<td class="ref"><?=$email->ref?></td>
							<?php

								$this->load->view( 'admin/_utilities/table-cell-user', $email->user );
								$this->load->view( 'admin/_utilities/table-cell-datetime', array( 'datetime' => $email->time_sent, 'nodata' => '<span class="queued">' . lang( 'email_index_queued' ) . '</span>' ) );

							?>
							<td class="type">
								<?=$email->name?>
								<small><?=lang( 'email_index_subject', $email->subject )?></small>
							</td>
							<td class="reads"><?=$email->read_count?></td>
							<td class="clicks"><?=$email->link_click_count?></td>
							<td class="actions">
								<?=anchor( site_url( 'email/view_online/' . $email->ref, page_is_secure() ), lang( 'action_preview' ), 'class="awesome small fancybox fancybox.iframe" target="_blank"' )?>
							</td>
						</tr>
						<?php

					endforeach;

				else :

					?>
					<tr>
						<td class="no-data" colspan="9"><?=lang( 'email_index_noemail' )?></td>
					</tr>
					<?php

				endif;

			?>
		</tbody><commit_msg>Removed unnecessary data (plus it was erroring)<commit_after><div class="group-email archive">
	<p>
		<?=lang( 'email_index_intro' )?>
	</p>

	<hr />

	<?php

		//	TODO: Add search facilities

		$this->load->view( 'admin/email/utilities/pagination' );

	?>

	<table>
		<thead>
			<tr>
				<th class="id"><?=lang( 'email_index_thead_id' )?></th>
				<th class="ref"><?=lang( 'email_index_thead_ref' )?></th>
				<th class="user"><?=lang( 'email_index_thead_to' )?></th>
				<th class="sent"><?=lang( 'email_index_thead_sent' )?></th>
				<th class="type"><?=lang( 'email_index_thead_type' )?></th>
				<th class="reads"><?=lang( 'email_index_thead_reads' )?></th>
				<th class="clicks"><?=lang( 'email_index_thead_clicks' )?></th>
				<th class="actions"><?=lang( 'email_index_thead_actions' )?></th>
			</tr>
		</thead>
		<tbody>
			<?php

				if ( $emails->data ) :

					foreach ( $emails->data AS $email ) :

						?>
						<tr>
							<td class="id"><?=number_format( $email->id )?></td>
							<td class="ref"><?=$email->ref?></td>
							<?php

								$this->load->view( 'admin/_utilities/table-cell-user', $email->user );
								$this->load->view( 'admin/_utilities/table-cell-datetime', array( 'datetime' => $email->time_sent ) );

							?>
							<td class="type">
								<?=$email->name?>
								<small><?=lang( 'email_index_subject', $email->subject )?></small>
							</td>
							<td class="reads"><?=$email->read_count?></td>
							<td class="clicks"><?=$email->link_click_count?></td>
							<td class="actions">
								<?=anchor( site_url( 'email/view_online/' . $email->ref, page_is_secure() ), lang( 'action_preview' ), 'class="awesome small fancybox fancybox.iframe" target="_blank"' )?>
							</td>
						</tr>
						<?php

					endforeach;

				else :

					?>
					<tr>
						<td class="no-data" colspan="9"><?=lang( 'email_index_noemail' )?></td>
					</tr>
					<?php

				endif;

			?>
		</tbody>
{'fraction_non_alphanumeric': 0.23527905785970302, 'fraction_numerical': 0.0005120327700972862, 'mean_word_length': 3.1475583864118897, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 180, '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': '488287', 'n_tokens_mistral': 1870, 'n_tokens_neox': 1452, 'n_words': 245}