<commit_before>{* test for caps lock*}
{literal}
	<script type="text/javascript">
	<!--
		function capLock(e){
			kc = e.keyCode?e.keyCode:e.which;
			sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
			if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
				document.getElementById('divCapson').style.visibility = 'visible';
			else
				document.getElementById('divCapson').style.visibility = 'hidden';
		}
	// -->
	</script>
{/literal}
	<h2>{tr}Register as a new user{/tr}</h2>
	<div id="divCapson" style="visibility:hidden">{icon _id=error style="vertical-align:middle"} {tr}CapsLock is on.{/tr}</div>

{if $prefs.feature_ajax eq 'y'}
		<script src="lib/registration/register_ajax.js" type="text/javascript"></script>
{/if}

{if $showmsg eq 'y'}
		<div class="simplebox highlight">
	{$msg|nl2br}
		</div>

{elseif $userTrackerData}
	{$userTrackerData}

{elseif $email_valid eq 'n'}
	{icon _id=error style="vertical-align:middle" align="left"} {tr}Your email could not be validated; make sure you email is correct and click register below.{/tr}
 		<form action="tiki-register.php" method="post">
			<input type="text" name="email" value="{$smarty.post.email}"/>
			<input type="hidden" name="name" value="{$smarty.post.name}"/>
			<input type="hidden" name="pass" value="{$smarty.post.pass}"/>
			<input type="hidden" name="regcode" value="{$smarty.post.regcode}"/>
			<input type="hidden" name="novalidation" value="yes"/>
	{if isset($smarty.post.antibotcode)}		<input type="hidden" name="antibotcode" value="{$smarty.post.antibotcode}"/>{/if}
	{if $smarty.post.chosenGroup}		<input type="hidden" name="chosenGroup" value="{$smarty.post.chosenGroup}" />{/if}
			<input type="submit" name="register" value="{tr}Register{/tr}" />
		</form>

{else}

		<form action="tiki-register.php" method="post" name="RegForm"> 
			<table class="normal">

				<tr>
					<td class="formcolor">{if $prefs.login_is_email eq 'y'}{tr}Email{/tr}{else}{tr}Username{/tr}{/if}:</td>
					<td class="formcolor">
						<input type="text" name="name" id="name"{if $prefs.feature_ajax eq 'y'} onKeyUp="return check_name()"{/if} />
	{if $prefs.feature_ajax eq'y'}
						<div id="checkfield" style="float:left"></div>{/if}
	{if $prefs.login_is_email eq 'y'}
						<em>{tr}Use your email as login{/tr}</em>.
	{else}
		{if $prefs.min_username_length > 1}
						<em>{tr}Minimum {$prefs.min_username_length} characters long{/tr}</em>.{/if}
		{if $prefs.lowercase_username eq 'y'}
						<em>{tr}Lowercase only{/tr}</em>.{/if}
					</td>
	{/if}
				</tr>

	{if $prefs.useRegisterPasscode eq 'y'}
				<tr>
					<td class="formcolor">{tr}Passcode to register{/tr}:</td>
					<td class="formcolor">
						<input type="password" name="passcode" onkeypress="capLock(event)" />
						<em>{tr}Not your password.{/tr} {tr}To request a passcode, {if $prefs.feature_contact eq 'y'}<a href="tiki-contact.php">{/if}
	contact the sytem administrator{if $prefs.feature_contact eq 'y'}</a>{/if}{/tr}.</em>
					</td>
				</tr>
	{/if}
 
				<tr>
					<td class="formcolor">{tr}Password{/tr}:</td>
					<td class="formcolor">
						<input style="float:left"  id='pass1' type="password" name="pass" onkeypress="capLock(event)" onKeyUp="runPassword(this.value, 'mypassword');{if $prefs.feature_ajax eq 'y'}check_pass();{/if}" />
						<div style="float:left;width:150px;margin-left:5px;">
							<div id="mypassword_text"></div>
							<div id="mypassword_bar" style="font-size: 5px; height: 2px; width: 0px;"></div> 
						</div>
	{if $prefs.feature_ajax ne 'y'}
						<p>
							<div>{/if}
	{if $prefs.feature_ajax ne 'y' and $prefs.min_pass_length > 1}<commit_msg>[FIX] wrong position of </td> + SVN $Id<commit_after>{* $Id$ *}
{* test for caps lock*}
{literal}
	<script type="text/javascript">
	<!--
		function capLock(e){
			kc = e.keyCode?e.keyCode:e.which;
			sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
			if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
				document.getElementById('divCapson').style.visibility = 'visible';
			else
				document.getElementById('divCapson').style.visibility = 'hidden';
		}
	// -->
	</script>
{/literal}
	<h2>{tr}Register as a new user{/tr}</h2>
	<div id="divCapson" style="visibility:hidden">{icon _id=error style="vertical-align:middle"} {tr}CapsLock is on.{/tr}</div>

{if $prefs.feature_ajax eq 'y'}
		<script src="lib/registration/register_ajax.js" type="text/javascript"></script>
{/if}

{if $showmsg eq 'y'}
		<div class="simplebox highlight">
	{$msg|nl2br}
		</div>

{elseif $userTrackerData}
	{$userTrackerData}

{elseif $email_valid eq 'n'}
	{icon _id=error style="vertical-align:middle" align="left"} {tr}Your email could not be validated; make sure you email is correct and click register below.{/tr}
 		<form action="tiki-register.php" method="post">
			<input type="text" name="email" value="{$smarty.post.email}"/>
			<input type="hidden" name="name" value="{$smarty.post.name}"/>
			<input type="hidden" name="pass" value="{$<PASSWORD>}"/>
			<input type="hidden" name="regcode" value="{$smarty.post.regcode}"/>
			<input type="hidden" name="novalidation" value="yes"/>
	{if isset($smarty.post.antibotcode)}		<input type="hidden" name="antibotcode" value="{$smarty.post.antibotcode}"/>{/if}
	{if $smarty.post.chosenGroup}		<input type="hidden" name="chosenGroup" value="{$smarty.post.chosenGroup}" />{/if}
			<input type="submit" name="register" value="{tr}Register{/tr}" />
		</form>

{else}

		<form action="tiki-register.php" method="post" name="RegForm"> 
			<table class="normal">

				<tr>
					<td class="formcolor">{if $prefs.login_is_email eq 'y'}{tr}Email{/tr}{else}{tr}Username{/tr}{/if}:</td>
					<td class="formcolor">
						<input type="text" name="name" id="name"{if $prefs.feature_ajax eq 'y'} onKeyUp="return check_name()"{/if} />
	{if $prefs.feature_ajax eq'y'}
						<div id="checkfield" style="float:left"></div>{/if}
	{if $prefs.login_is_email eq 'y'}
						<em>{tr}Use your email as login{/tr}</em>.
	{else}
		{if $prefs.min_username_length > 1}
						<em>{tr}Minimum {$prefs.min_username_length} characters long{/tr}</em>.{/if}
		{if $prefs.lowercase_username eq 'y'}
						<em>{tr}Lowercase only{/tr}</em>.{/if}
	{/if}
					</td>
				</tr>

	{if $prefs.useRegisterPasscode eq 'y'}
				<tr>
					<td class="formcolor">{tr}Passcode to register{/tr}:</td>
					<td class="formcolor">
						<input type="password" name="passcode" onkeypress="capLock(event)" />
						<em>{tr}Not your password.{/tr} {tr}To request a passcode, {if $prefs.feature_contact eq 'y'}<a href="tiki-contact.php">{/if}
	contact the sytem administrator{if $prefs.feature_contact eq 'y'}</a>{/if}{/tr}.</em>
					</td>
				</tr>
	{/if}
 
				<tr>
					<td class="formcolor">{tr}Password{/tr}:</td>
					<td class="formcolor">
						<input style="float:left"  id='pass1' type="password" name="pass" onkeypress="capLock(event)" onKeyUp="runPassword(this.value, '<PASSWORD>');{if $prefs.feature_ajax eq 'y'}check_pass();{/if}" />
						<div style="float:left;width:150px;margin-left:5px;">
							<div id="mypassword_text"></div>
							<div id="mypassword_bar" style="font-size: 5px; height: 2px; width: 0px;"></div> 
						</div>
	{if $prefs.feature_ajax ne 'y'}
						<p>
							<div>{/if}
	{if $prefs.feature_ajax ne 'y' and $prefs.min_pass_length > 1}
{'fraction_non_alphanumeric': 0.21359090286340596, 'fraction_numerical': 0.006576243321002877, 'mean_word_length': 4.472263868065967, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 0, '>': 138, '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': '5080922', 'n_tokens_mistral': 3129, 'n_tokens_neox': 2732, 'n_words': 534}