<commit_before><?php $this->includeAtTemplateBase('includes/header.php'); ?>

<div id="content">

	<h2><?php if (isset($this->data['header'])) { echo $this->data['header']; } else { echo "Some error occured"; } ?></h2>
	
	<p>Hi, this is the status page of simpleSAMLphp. Here you can see if your session is timed out, how long it lasts until it times out and all the attributes that is attached to your session.</p>
	
	<p>Your session is valid for <?php echo $this->data['remaining']; ?> seconds from now.</p>
	
	<p>Session size: <?php echo isset($this->data['sessionsize']) ? $this->data['sessionsize'] : 'na'; ?>
	
	<h2>Your attributes</h2>
	
		<table width="100%" class="attributes">
		<?php
		
		$attributes = $this->data['attributes'];
		foreach ($attributes AS $name => $value) {
			
			$txtname = '<code style="color: blue">' . $name . '</code>';
			if ($this->t('attribute_' . htmlspecialchars(strtolower($name)), false)) {
				$txtname = $this->t('attribute_' . htmlspecialchars(strtolower($name))) . '<br /><code style="color: blue">' . $name . '</code>';
			}
			
			if (sizeof($value) > 1) {
				echo '<tr><td>' . $txtname . '</td><td><ul>';
				foreach ($value AS $v) {
					echo '<li>' . htmlspecialchars($v) . '</li>';
				}
				echo '</ul></td></tr>';
			} else {
				echo '<tr><td>' . $txtname . '</td><td>' . htmlspecialchars($value[0]) . '</td></tr>';
			}
		}
		
		?>
		</table><commit_msg>Status-template: change to use $this->getTag(...) instead of $this->t(..., false).<commit_after><?php $this->includeAtTemplateBase('includes/header.php'); ?>

<div id="content">

	<h2><?php if (isset($this->data['header'])) { echo $this->data['header']; } else { echo "Some error occured"; } ?></h2>
	
	<p>Hi, this is the status page of simpleSAMLphp. Here you can see if your session is timed out, how long it lasts until it times out and all the attributes that is attached to your session.</p>
	
	<p>Your session is valid for <?php echo $this->data['remaining']; ?> seconds from now.</p>
	
	<p>Session size: <?php echo isset($this->data['sessionsize']) ? $this->data['sessionsize'] : 'na'; ?>
	
	<h2>Your attributes</h2>
	
		<table width="100%" class="attributes">
		<?php
		
		$attributes = $this->data['attributes'];
		foreach ($attributes AS $name => $value) {
			
			$txtname = '<code style="color: blue">' . $name . '</code>';
			if ($this->getTag('attribute_' . htmlspecialchars(strtolower($name))) !== NULL) {
				$txtname = $this->t('attribute_' . htmlspecialchars(strtolower($name))) . '<br /><code style="color: blue">' . $name . '</code>';
			}
			
			if (sizeof($value) > 1) {
				echo '<tr><td>' . $txtname . '</td><td><ul>';
				foreach ($value AS $v) {
					echo '<li>' . htmlspecialchars($v) . '</li>';
				}
				echo '</ul></td></tr>';
			} else {
				echo '<tr><td>' . $txtname . '</td><td>' . htmlspecialchars($value[0]) . '</td></tr>';
			}
		}
		
		?>
		</table>
{'fraction_non_alphanumeric': 0.22790055248618785, 'fraction_numerical': 0.006215469613259668, 'mean_word_length': 3.6426282051282053, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 103, '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': '3369658', 'n_tokens_mistral': 1089, 'n_tokens_neox': 954, 'n_words': 259}