<commit_before><?php defined('_JEXEC') or die; ?>

<?php
JHtml::_('behavior.keepalive');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>

<div id="content-header">
	<h2><?php echo JText::_('Reset your Password'); ?></h2>
</div>

<div class="main section">
	<form action="<?php echo JRoute::_( 'index.php?option=com_users&task=reset.complete' ); ?>" method="post" class="josForm form-validate" name="hubForm" id="hubForm">
		<fieldset>
			<legend><?php echo JText::_('New Password'); ?></legend>

			<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
			<p><?php echo JText::_($fieldset->label); ?></p>
				<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
					<?php echo $field->label; ?>
					<?php echo $field->input; ?>
				<?php endforeach; ?>
			</fieldset>
			<?php endforeach; ?>

<?php
			// Add password rules if they apply
			if (count($this->password_rules) > 0) {
				echo "\t\t<ul id=\"passrules\">\n";
				foreach ($this->password_rules as $rule) {
					if (!empty($rule)) {
						if (is_array($this->validated)) {
							$err = in_array($rule, $this->validated);
						} else {
							$err = '';
						}

						$mclass = ($err)  ? ' class="error"' : '';
						echo "\t\t\t<li $mclass>".$rule."</li>\n";
					}
				}
				if (is_array($this->validated)) {
					foreach ($this->validated as $msg) {
						if (!in_array($msg,$this->password_rules)) {
							echo "\t\t\t".'<li class="error">'.$msg."</li>\n";
						}
					}
				}
				echo "\t\t\t</ul>\n";
			}<commit_msg>[HUBZERO][#3996][COM_USERS] quick fix for undefined var in view<commit_after><?php defined('_JEXEC') or die; ?>

<?php
JHtml::_('behavior.keepalive');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>

<div id="content-header">
	<h2><?php echo JText::_('Reset your Password'); ?></h2>
</div>

<div class="main section">
	<form action="<?php echo JRoute::_( 'index.php?option=com_users&task=reset.complete' ); ?>" method="post" class="josForm form-validate" name="hubForm" id="hubForm">
		<fieldset>
			<legend><?php echo JText::_('New Password'); ?></legend>

			<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
			<p><?php echo JText::_($fieldset->label); ?></p>
				<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
					<?php echo $field->label; ?>
					<?php echo $field->input; ?>
				<?php endforeach; ?>
			</fieldset>
			<?php endforeach; ?>

<?php
			// Add password rules if they apply
			if (count($this->password_rules) > 0) {
				echo "\t\t<ul id=\"passrules\">\n";
				foreach ($this->password_rules as $rule) {
					if (!empty($rule)) {
						echo "\t\t\t<li>".$rule."</li>\n";
					}
				}
				echo "\t\t\t</ul>\n";
			}
{'fraction_non_alphanumeric': 0.2370721048798252, 'fraction_numerical': 0.003641660597232338, 'mean_word_length': 3.6402027027027026, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 90, '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': '6433424', 'n_tokens_mistral': 1155, 'n_tokens_neox': 991, 'n_words': 199}