<commit_before><table class="table table-striped table-hover table-condensed">
	<tr>
		<th class="filter">
			<?php echo $this->Paginator->sort('published');?>
		</th>
		<?php
			if (Configure::read('MISP.showorgalternate') && Configure::read('MISP.showorg')):
		?>
			<th class="filter"><?php echo $this->Paginator->sort('Org', 'Source org'); ?></th>
			<th class="filter"><?php echo $this->Paginator->sort('Org', 'Member org'); ?></th>
		<?php
			else:
				if (Configure::read('MISP.showorg') || $isAdmin):
		?>
					<th class="filter"><?php echo $this->Paginator->sort('Org'); ?></th>
		<?php
				endif;
				if ($isSiteAdmin):
		?>
			<th class="filter"><?php echo $this->Paginator->sort('owner org');?></th>
		<?php
				endif;
			endif;
		?>
		<th><?php echo $this->Paginator->sort('id');?></th>
		<?php if (Configure::read('MISP.tagging')): ?>
			<th class="filter">Tags</th>
		<?php endif; ?>
		<th title="Attribute Count"><?php echo $this->Paginator->sort('attribute_count', '#Attr.');?></th>
		<?php if (Configure::read('MISP.showCorrelationsOnIndex')):?>
			<th title="Correlation Count"><?php echo $this->Paginator->sort('correlation_count', '#Corr.');?></th>
		<?php endif; ?>
		<?php if (Configure::read('MISP.showSightingsCountOnIndex') && Configure::read('Plugin.Sightings_enable')):?>
			<th title="Sigthing Count"><?php echo $this->Paginator->sort('sighting_count', '#Sightings');?></th>
		<?php endif; ?>
		<?php if (Configure::read('MISP.showProposalsOnIndex')):?>
			<th title="Proposal Count"><?php echo $this->Paginator->sort('proposal_count', '#Prop.');?></th>
		<?php endif; ?>
		<?php if ($isSiteAdmin): ?>
		<th><?php echo $this->Paginator->sort('user_id', 'Email');?></th>
		<?php endif; ?>
		<th class="filter"><?php echo $this->Paginator->sort('date');?></th>
		<th class="filter" title="<?php echo $eventDescriptions['threat_level_id']['desc'];?>"><?php echo $this->Paginator->sort('threat_level_id');?></th>
		<th title="<?php echo $eventDescriptions['analysis']['desc'];?>">
			<?php echo $this->Paginator->sort('analysis');?>
		</th>
		<th class="filter"><?php echo $this->Paginator->sort('info');?></th>
		<th title="<?php echo $eventDescriptions['distribution']['desc'];?>">
			<?php echo $this->Paginator->sort('distribution');?>
		</th>
		<th class="actions">Actions</th>

	</tr>
	<?php foreach ($events as $event): ?>
	<tr <?php if ($event['Event']['distribution'] == 0) echo 'class = "privateRed"'?>>
		<td class="short" ondblclick="document.location.href ='<?php echo $baseurl."/events/view/".$event['Event']['id'];?>'">
			<?php
			if ($event['Event']['published'] == 1) {
			?>
				<a href="<?php echo $baseurl."/events/view/".$event['Event']['id'] ?>" class = "icon-ok" title = "View"></a>
			<?php
			} else {
			?>
				<a href="<?php echo $baseurl."/events/view/".$event['Event']['id'] ?>" class = "icon-remove" title = "View"></a>
			<?php
			}?>&nbsp;
		</td><commit_msg>fix: Do not try to sort on fields that are not paginated<commit_after><table class="table table-striped table-hover table-condensed">
	<tr>
		<th class="filter">
			<?php echo $this->Paginator->sort('published');?>
		</th>
		<?php
			if (Configure::read('MISP.showorgalternate') && Configure::read('MISP.showorg')):
		?>
			<th class="filter"><?php echo $this->Paginator->sort('Org', 'Source org'); ?></th>
			<th class="filter"><?php echo $this->Paginator->sort('Org', 'Member org'); ?></th>
		<?php
			else:
				if (Configure::read('MISP.showorg') || $isAdmin):
		?>
					<th class="filter"><?php echo $this->Paginator->sort('Org'); ?></th>
		<?php
				endif;
				if ($isSiteAdmin):
		?>
			<th class="filter"><?php echo $this->Paginator->sort('owner org');?></th>
		<?php
				endif;
			endif;
		?>
		<th><?php echo $this->Paginator->sort('id');?></th>
		<?php if (Configure::read('MISP.tagging')): ?>
			<th class="filter">Tags</th>
		<?php endif; ?>
		<th title="Attribute Count"><?php echo $this->Paginator->sort('attribute_count', '#Attr.');?></th>
		<?php if (Configure::read('MISP.showCorrelationsOnIndex')):?>
			<th title="Correlation Count">#Corr.</th>
		<?php endif; ?>
		<?php if (Configure::read('MISP.showSightingsCountOnIndex') && Configure::read('Plugin.Sightings_enable')):?>
			<th title="Sigthing Count">#Sightings</th>
		<?php endif; ?>
		<?php if (Configure::read('MISP.showProposalsOnIndex')):?>
			<th title="Proposal Count">#Prop</th>
		<?php endif; ?>
		<?php if ($isSiteAdmin): ?>
		<th><?php echo $this->Paginator->sort('user_id', 'Email');?></th>
		<?php endif; ?>
		<th class="filter"><?php echo $this->Paginator->sort('date');?></th>
		<th class="filter" title="<?php echo $eventDescriptions['threat_level_id']['desc'];?>"><?php echo $this->Paginator->sort('threat_level_id');?></th>
		<th title="<?php echo $eventDescriptions['analysis']['desc'];?>">
			<?php echo $this->Paginator->sort('analysis');?>
		</th>
		<th class="filter"><?php echo $this->Paginator->sort('info');?></th>
		<th title="<?php echo $eventDescriptions['distribution']['desc'];?>">
			<?php echo $this->Paginator->sort('distribution');?>
		</th>
		<th class="actions">Actions</th>

	</tr>
	<?php foreach ($events as $event): ?>
	<tr <?php if ($event['Event']['distribution'] == 0) echo 'class = "privateRed"'?>>
		<td class="short" ondblclick="document.location.href ='<?php echo $baseurl."/events/view/".$event['Event']['id'];?>'">
			<?php
			if ($event['Event']['published'] == 1) {
			?>
				<a href="<?php echo $baseurl."/events/view/".$event['Event']['id'] ?>" class = "icon-ok" title = "View"></a>
			<?php
			} else {
			?>
				<a href="<?php echo $baseurl."/events/view/".$event['Event']['id'] ?>" class = "icon-remove" title = "View"></a>
			<?php
			}?>&nbsp;
		</td>
{'fraction_non_alphanumeric': 0.2644323565537814, 'fraction_numerical': 0.0007018775223723461, 'mean_word_length': 5.129032258064516, 'pattern_counts': {'":': 0, '<': 174, '<?xml version=': 0, '>': 232, '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': '7310478', 'n_tokens_mistral': 2213, 'n_tokens_neox': 2036, 'n_words': 379}