<commit_before><div class="attributes index">
	<h2><?php echo __('Attributes'); ?></h2>
		<?php
			if ($isSearch == 1) {
				// The following block should serve as an example and food
				// for thought on how to optimize i18n & l10n (especially for languages that are not SOV)
				echo "<h4>" . __("Results for all attributes");
				if ($keywordSearch != null) echo __(" with the value containing "). "\"<b>" . h($keywordSearch) . "</b>\"";
				if ($attributeTags != null) echo __(" being tagged with ") ."\"<b>" . h($attributeTags) . "</b>\"";
				if ($keywordSearch2 != null) echo __(" from the events ") . "\"<b>" . h($keywordSearch2) . "</b>\"";
				if ($tags != null) echo " from events tagged \"<b>" . h($tags) . "</b>\"";
				if ($categorySearch != "ALL") echo __(" of category ") . "\"<b>" . h($categorySearch) . "</b>\"";
				if ($typeSearch != "ALL") echo __(" of type ") . "\"<b>" . h($typeSearch) . "</b>\"";
				if (isset($orgSearch) && $orgSearch != '' && $orgSearch != null) echo __(" created by the organisation ") . "\"<b>" . h($orgSearch) . "</b>\"";
				echo ":</h4>";
			}
		?>
	<div class="pagination">
		<ul>
		<?php
		$this->Paginator->options(array(
			'update' => '.span12',
			'evalScripts' => true,
			'before' => '$(".progress").show()',
			'complete' => '$(".progress").hide()',
		));

			echo $this->Paginator->prev('&laquo; ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
			echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
			echo $this->Paginator->next(__('next') . ' &raquo;', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
		?>
		</ul>
	</div>
	<table class="table table-striped table-hover table-condensed">
	<tr>
			<th><?php echo $this->Paginator->sort('event_id');?></th>
			<?php if (Configure::read('MISP.showorg') || $isAdmin): ?>
			<th><?php echo $this->Paginator->sort('org_id', 'Org');?></th>
			<?php endif; ?>
			<th><?php echo $this->Paginator->sort('category');?></th>
			<th><?php echo $this->Paginator->sort('type');?></th>
			<th><?php echo $this->Paginator->sort('value');?></th>
			<th>Tags</th>
			<th><?php echo $this->Paginator->sort('comment');?></th>
			<th<?php echo ' title="' . $attrDescriptions['signature']['desc'] . '"';?>>
			<?php echo $this->Paginator->sort('IDS');?></th>
			<th class="actions">Actions</th>
	</tr>
	<?php
	$currentCount = 0;
	if ($isSearch == 1) {

		// sanitize data
		if (isset($keywordArray)) {
			foreach ($keywordArray as &$keywordArrayElement) {
				$keywordArrayElement = h($keywordArrayElement);
			}
		// build the $replacePairs variable used to highlight the keywords
		$replacePairs = $this->Highlight->build_replace_pairs($keywordArray);
		}
	}

foreach ($attributes as $attribute):
	?>
	<tr>
		<td class="short">
			<div ondblclick="document.location='<?php echo $baseurl?>/events/view/<?php echo $attribute['Event']['id'];?>';" title="<?php echo h($attribute['Event']['info']); ?>">
			<?php
				if ($attribute['Event']['orgc_id'] == $me['org_id']) {
					$style='style="color:red;"';
				} else {
					$style='';
				}
				$currentCount++;
			?>
				<a href="<?php echo $baseurl;?>/events/view/<?php echo $attribute['Event']['id'];?>" <?php echo $style;?>><?php echo $attribute['Event']['id'];?></a>
			</div>
		</td>
		<?php if (Configure::read('MISP.showorg') || $isAdmin): ?>
		<td class="short" ondblclick="document.location.href ='<?php echo $baseurl;?>/events/view/<?php echo $attribute['Event']['id'];?>'">
			<?php
        echo $this->OrgImg->getOrgImg(array('name' => $attribute['Event']['Orgc']['name'], 'id' => $attribute['Event']['Orgc']['id'], 'size' => 24));<commit_msg>fix: GUI: Listing Attributes creates many debug.log entries fixes #2969<commit_after><div class="attributes index">
	<h2><?php echo __('Attributes'); ?></h2>
		<?php
			if ($isSearch == 1) {
				// The following block should serve as an example and food
				// for thought on how to optimize i18n & l10n (especially for languages that are not SOV)
				echo "<h4>" . __("Results for all attributes");
				if ($keywordSearch != null) echo __(" with the value containing "). "\"<b>" . h($keywordSearch) . "</b>\"";
				if ($attributeTags != null) echo __(" being tagged with ") ."\"<b>" . h($attributeTags) . "</b>\"";
				if ($keywordSearch2 != null) echo __(" from the events ") . "\"<b>" . h($keywordSearch2) . "</b>\"";
				if ($tags != null) echo " from events tagged \"<b>" . h($tags) . "</b>\"";
				if ($categorySearch != "ALL") echo __(" of category ") . "\"<b>" . h($categorySearch) . "</b>\"";
				if ($typeSearch != "ALL") echo __(" of type ") . "\"<b>" . h($typeSearch) . "</b>\"";
				if (isset($orgSearch) && $orgSearch != '' && $orgSearch != null) echo __(" created by the organisation ") . "\"<b>" . h($orgSearch) . "</b>\"";
				echo ":</h4>";
			}
		?>
	<div class="pagination">
		<ul>
		<?php
		$this->Paginator->options(array(
			'update' => '.span12',
			'evalScripts' => true,
			'before' => '$(".progress").show()',
			'complete' => '$(".progress").hide()',
		));

			echo $this->Paginator->prev('&laquo; ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
			echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
			echo $this->Paginator->next(__('next') . ' &raquo;', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
		?>
		</ul>
	</div>
	<table class="table table-striped table-hover table-condensed">
	<tr>
			<th><?php echo $this->Paginator->sort('event_id');?></th>
			<?php if (Configure::read('MISP.showorg') || $isAdmin): ?>
			<th><?php echo $this->Paginator->sort('org_id', 'Org');?></th>
			<?php endif; ?>
			<th><?php echo $this->Paginator->sort('category');?></th>
			<th><?php echo $this->Paginator->sort('type');?></th>
			<th><?php echo $this->Paginator->sort('value');?></th>
			<th>Tags</th>
			<th><?php echo $this->Paginator->sort('comment');?></th>
			<th<?php echo ' title="' . $attrDescriptions['signature']['desc'] . '"';?>>
			<?php echo $this->Paginator->sort('IDS');?></th>
			<th class="actions">Actions</th>
	</tr>
	<?php
	$currentCount = 0;
	if ($isSearch == 1) {

		// sanitize data
		if (isset($keywordArray)) {
			foreach ($keywordArray as &$keywordArrayElement) {
				$keywordArrayElement = h($keywordArrayElement);
			}
		// build the $replacePairs variable used to highlight the keywords
		$replacePairs = $this->Highlight->build_replace_pairs($keywordArray);
		}
	}

foreach ($attributes as $attribute):
	?>
	<tr>
		<td class="short">
			<div ondblclick="document.location='<?php echo $baseurl?>/events/view/<?php echo $attribute['Event']['id'];?>';" title="<?php echo h($attribute['Event']['info']); ?>">
			<?php
				if ($attribute['Event']['orgc_id'] == $me['org_id']) {
					$style='style="color:red;"';
				} else {
					$style='';
				}
				$currentCount++;
			?>
				<a href="<?php echo $baseurl;?>/events/view/<?php echo $attribute['Event']['id'];?>" <?php echo $style;?>><?php echo $attribute['Event']['id'];?></a>
			</div>
		</td>
		<?php if (Configure::read('MISP.showorg') || $isAdmin): ?>
		<td class="short" ondblclick="document.location.href ='<?php echo $baseurl;?>/events/view/<?php echo $attribute['Event']['id'];?>'">
			<?php
        echo $this->OrgImg->getOrgImg(array('name' => $attribute['Event']['Orgc']['name'], 'id' => $attribute['Event']['orgc_id'], 'size' => 24));
{'fraction_non_alphanumeric': 0.2635005744925316, 'fraction_numerical': 0.005361930294906166, 'mean_word_length': 4.198407431984075, 'pattern_counts': {'":': 2, '<': 159, '<?xml version=': 0, '>': 257, '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': '5298022', 'n_tokens_mistral': 2982, 'n_tokens_neox': 2701, 'n_words': 610}