<commit_before><?php defined('C5_EXECUTE') or die('Access denied.');

$activeAuths = AuthenticationType::getActiveListSorted();
$form = Loader::helper('form');
?>
<style>
.authForm .row {
	margin-left:0;
}
.authForm .actions {
	margin-left:20px;
}
</style>
<div class='row'>
	<div class='span10 offset1'>
		
		<div class="page-header">
			<h1><?=t('Sign in to %s', SITE)?></h1>
		</div>
		<?php
		// render authentication type specific views
		if($authType instanceof AuthenticationType && strlen($authTypeElement)) {
			$authType->renderForm($authTypeElement);
		} else { // render authentication type(s) initial view
			if (count($activeAuths) > 1) {
				?>
				<ul class="nav nav-tabs">
					<?php
					$first = true;
					foreach ($activeAuths as $auth) {
						?>
						<li<?=$first?" class='active'":''?>>
							<a data-authType='<?=$auth->getAuthenticationTypeHandle()?>' href='#<?=$auth->getAuthenticationTypeHandle()?>'><?=$auth->getAuthenticationTypeName()?></a>
						</li>
						<?php
						$first = false;
					}
					?>
				</ul>
				<?php
			}
			?>
			<div class='authTypes row'>
				<?php
				$first = true;
				foreach ($activeAuths as $auth) {
					?>
					<div data-authType='<?=$auth->getAuthenticationTypeHandle()?>' style='<?=$first?"display:block":"display:none"?>'>
						<fieldset>
							<form method='post' class='form-horizontal' action='<?=$this->action('authenticate', $auth->getAuthenticationTypeHandle())?>'>
								<div class='authForm'>
									<?$auth->renderForm()?>
								</div>
							</form>
						</fieldset>
					</div>
					<?php
					$first = false;
				}
				?>
			</div><commit_msg>Fixing problem with login on home page<commit_after><?php defined('C5_EXECUTE') or die('Access denied.');

$activeAuths = AuthenticationType::getActiveListSorted();
$form = Loader::helper('form');
?>
<style>
.authForm .row {
	margin-left:0;
}
.authForm .actions {
	margin-left:20px;
}
</style>
<div class='row'>
	<div class='span10 offset1'>
		
		<div class="page-header">
			<h1><?=t('Sign in to %s', SITE)?></h1>
		</div>
		<?php
		// render authentication type specific views
		if($authType instanceof AuthenticationType && strlen($authTypeElement)) {
			$authType->renderForm($authTypeElement);
		} else { // render authentication type(s) initial view
			if (count($activeAuths) > 1) {
				?>
				<ul class="nav nav-tabs">
					<?php
					$first = true;
					foreach ($activeAuths as $auth) {
						?>
						<li<?=$first?" class='active'":''?>>
							<a data-authType='<?=$auth->getAuthenticationTypeHandle()?>' href='#<?=$auth->getAuthenticationTypeHandle()?>'><?=$auth->getAuthenticationTypeName()?></a>
						</li>
						<?php
						$first = false;
					}
					?>
				</ul>
				<?php
			}
			?>
			<div class='authTypes row'>
				<?php
				$first = true;
				foreach ($activeAuths as $auth) {
					?>
					<div data-authType='<?=$auth->getAuthenticationTypeHandle()?>' style='<?=$first?"display:block":"display:none"?>'>
						<fieldset>
							<form method='post' class='form-horizontal' action='<?=$this->url('/login', 'authenticate', $auth->getAuthenticationTypeHandle())?>'>
								<div class='authForm'>
									<?$auth->renderForm()?>
								</div>
							</form>
						</fieldset>
					</div>
					<?php
					$first = false;
				}
				?>
			</div>
{'fraction_non_alphanumeric': 0.20618556701030927, 'fraction_numerical': 0.006064281382656155, 'mean_word_length': 3.301173402868318, 'pattern_counts': {'":': 4, '<': 83, '<?xml version=': 0, '>': 101, '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': '3381043', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1091, 'n_words': 208}