<commit_before><?php namespace A11yc; ?>
<h2><?php echo $title ?></h2>

<table class="a11yc_table a11yc_table_report">

	<!-- target level -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_TARGET_LEVEL ?></th>
		<td><?php echo Util::num2str($target_level) ?></td>
	</tr>
	<!-- /target level -->

	<!-- current total level -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_CURRENT_LEVEL_WEBPAGES ?></th>
		<td>
		<?php
		$site_level = Evaluate::check_site_level();
		echo Evaluate::result_str($site_level, $target_level);

		if (Evaluate::check_alt_url_exception()):
			echo ' ('.A11YC_LANG_ALT_URL_EXCEPTION.')';
		endif;
		?>
		</td>
	</tr>
	<!-- /current total level -->

	<?php if ( ! $is_total): ?>
	<!-- current level -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_CURRENT_LEVEL ?></th>
		<td>
		<?php
		// Non-inter
		$sql = 'SELECT * FROM '.A11YC_TABLE_CHECKS_NGS.' WHERE `url` = ?';
		$sql.= Controller_Setup::curent_version_sql().';';
		$all = Db::fetch_all($sql, array($page['url']));
		if (Evaluate::is_non_interferences($all))
		{
			echo A11YC_LANG_CHECKLIST_CONFORMANCE_FAILED;
		}
		else
		{
			echo Evaluate::result_str($page['level'], $target_level);
		}

		if ( ! empty($page['alt_url'])):
		$chk = Util::remove_query_strings(Util::uri(), array('url', 'a11yc_pages'));
		$chk = Util::add_query_strings(
			$chk,
			array(
				array('url', Util::urlenc($page['alt_url'])),
			));

			echo ' ('.sprintf(A11YC_LANG_ALT_URL_LEVEL, $chk).': '.Evaluate::result_str(Evaluate::check_level_url($page['alt_url']), $target_level).')';
		endif;

		?>
		</td>
	</tr>
	<!-- /current level -->
	<?php endif; ?>

	<?php if ($is_total && $setup['dependencies']): ?>
	<!-- dependencies -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_DEPENDENCIES ?></th>
		<td><?php echo $setup['dependencies']; ?></td>
	</tr>
	<!-- /dependencies -->
	<?php endif; ?>

	<?php if ($page['selection_reason'] != '0'): ?>
	<!-- selected method -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_CANDIDATES_TITLE ?></th>
		<td>
		<?php
		if ($is_total):
			echo Controller_Setup::selected_methods()[$selected_method];
			if ( ! $is_center):
				echo ' (<a href="'.$pages_link.'">'.A11YC_LANG_CHECKED_PAGES.'</a>)';
			endif;
		else:
			echo isset(Controller_Checklist::selection_reasons()[$page['selection_reason']]) and $selection_reasons[$page['selection_reason']];
		endif;
		?>
		</td>
	</tr>
	<!-- /selected method -->
	<?php endif; ?>

	<?php if (isset($page) && Arr::get($page, 'url')): ?>
	<!-- target page -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_PAGES_URLS ?></th>
		<td><?php
			echo '<a href="'.$page['url'].'">'.$page['url'].'</a>';
			if (\Kontiki\Auth::auth()):
				echo ' <a href="'.A11YC_CHECKLIST_URL.Util::urlenc($page['url']).'"'.A11YC_TARGET.' class="a11yc_hasicon"><span class="a11yc_skip"><?php echo A11YC_LANG_PAGES_CHECK ?></span><span class="a11yc_icon_check a11yc_icon_fa" role="presentation" aria-hidden="true"></span></a>';
			endif;
		?></td>
	</tr>
	<!-- /target page -->
	<?php endif; ?>

	<!-- period of date --><commit_msg>show selected reason<commit_after><?php namespace A11yc; ?>
<h2><?php echo $title ?></h2>

<table class="a11yc_table a11yc_table_report">

	<!-- target level -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_TARGET_LEVEL ?></th>
		<td><?php echo Util::num2str($target_level) ?></td>
	</tr>
	<!-- /target level -->

	<!-- current total level -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_CURRENT_LEVEL_WEBPAGES ?></th>
		<td>
		<?php
		$site_level = Evaluate::check_site_level();
		echo Evaluate::result_str($site_level, $target_level);

		if (Evaluate::check_alt_url_exception()):
			echo ' ('.A11YC_LANG_ALT_URL_EXCEPTION.')';
		endif;
		?>
		</td>
	</tr>
	<!-- /current total level -->

	<?php if ( ! $is_total): ?>
	<!-- current level -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_CURRENT_LEVEL ?></th>
		<td>
		<?php
		// Non-inter
		$sql = 'SELECT * FROM '.A11YC_TABLE_CHECKS_NGS.' WHERE `url` = ?';
		$sql.= Controller_Setup::curent_version_sql().';';
		$all = Db::fetch_all($sql, array($page['url']));
		if (Evaluate::is_non_interferences($all))
		{
			echo A11YC_LANG_CHECKLIST_CONFORMANCE_FAILED;
		}
		else
		{
			echo Evaluate::result_str($page['level'], $target_level);
		}

		if ( ! empty($page['alt_url'])):
		$chk = Util::remove_query_strings(Util::uri(), array('url', 'a11yc_pages'));
		$chk = Util::add_query_strings(
			$chk,
			array(
				array('url', Util::urlenc($page['alt_url'])),
			));

			echo ' ('.sprintf(A11YC_LANG_ALT_URL_LEVEL, $chk).': '.Evaluate::result_str(Evaluate::check_level_url($page['alt_url']), $target_level).')';
		endif;

		?>
		</td>
	</tr>
	<!-- /current level -->
	<?php endif; ?>

	<?php if ($is_total && $setup['dependencies']): ?>
	<!-- dependencies -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_DEPENDENCIES ?></th>
		<td><?php echo $setup['dependencies']; ?></td>
	</tr>
	<!-- /dependencies -->
	<?php endif; ?>

	<?php if ($page['selection_reason'] != '0'): ?>
	<!-- selected method -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_CANDIDATES_TITLE ?></th>
		<td>
		<?php
		if ($is_total):
			echo Controller_Setup::selected_methods()[$selected_method];
			if ( ! $is_center):
				echo ' (<a href="'.$pages_link.'">'.A11YC_LANG_CHECKED_PAGES.'</a>)';
			endif;
		else:
			if (isset(Controller_Checklist::selection_reasons()[$page['selection_reason']]))
			{
				echo Controller_Checklist::selection_reasons()[$page['selection_reason']];
			}
		endif;
		?>
		</td>
	</tr>
	<!-- /selected method -->
	<?php endif; ?>

	<?php if (isset($page) && Arr::get($page, 'url')): ?>
	<!-- target page -->
	<tr>
		<th scope="row"><?php echo A11YC_LANG_PAGES_URLS ?></th>
		<td><?php
			echo '<a href="'.$page['url'].'">'.$page['url'].'</a>';
			if (\Kontiki\Auth::auth()):
				echo ' <a href="'.A11YC_CHECKLIST_URL.Util::urlenc($page['url']).'"'.A11YC_TARGET.' class="a11yc_hasicon"><span class="a11yc_skip"><?php echo A11YC_LANG_PAGES_CHECK ?></span><span class="a11yc_icon_check a11yc_icon_fa" role="presentation" aria-hidden="true"></span></a>';
			endif;
		?></td>
	</tr>
	<!-- /target page -->
	<?php endif; ?>

	<!-- period of date -->
{'fraction_non_alphanumeric': 0.2355526615660101, 'fraction_numerical': 0.015627543545498942, 'mean_word_length': 4.375328083989501, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, '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': '3731182', 'n_tokens_mistral': 2612, 'n_tokens_neox': 2395, 'n_words': 410}