<commit_before><a href="./">Basic demo</a><br />
<br />
<?php
$formregister = array();
if( isPOST('submitLogin') ) {
	
	try {
		SiteUser::userLogin($_POST['login']);
		reportSuccess('You\'re successfully loggued in.');
		
	} catch(UserException $e) {
		reportError($e);
	}
} else if( isPOST('submitRegister') ) {
// 	text('Register');
	try {
		$formregister = POST('register');
// 		text($formregister);
		$Membre = SiteUser::create($formregister);
		reportSuccess('You\'re successfully registered.');
	} catch(UserException $e) {
		reportError($e);
	}
}
displayReportsHTML();

if( User::is_login() ) {
	echo "<p>Welcome {$USER->fullname} </p>";
}
?>
<div class="row">
	
	<div class="col-xs-6">
		<form method="POST" role="form">
		<fieldset>
			<legend>Sign in</legend>
			<div class="form-group">
				<label for="loginUsername">Nickname</label>
				<input type="text" class="form-control" id="loginUsername" name="login[name]" placeholder="Enter your username" />
			</div>
			<div class="form-group">
				<label for="loginPassword">Password</label>
				<input type="password" class="form-control" id="loginPassword" name="login[password]" placeholder="<PASSWORD>" />
			</div>
			<button name="submitLogin" type="submit" class="btn btn-primary">Sign in</button>
		</fieldset>
		</form>
	</div>
		
	<div class="col-xs-6">
		<form method="POST" role="form">
		<fieldset>
			<legend>Register</legend>
			
			<div class="form-group">
				<label for="registerUsername">Your nickname</label>
				<input type="text" class="form-control" id="registerUsername" name="register[name]" required />
			</div>
			<div class="form-group">
				<label for="registerFullname">Your public name</label>
				<input type="text" class="form-control" id="registerFullname" name="register[fullname]" required />
			</div>
			<div class="form-group">
				<label for="registerEmail">Email</label>
				<input type="email" class="form-control" id="registerEmail" name="register[email]" required /><commit_msg>Updating user login module<commit_after><a href="./">Basic demo</a><br />
<br />
<?php
$formregister = array();
if( isPOST('submitLogin') ) {
	
	try {
		SiteUser::userLogin($_POST['login']);
		reportSuccess('You\'re successfully loggued in.');
		
	} catch(UserException $e) {
		reportError($e);
	}
} else if( isPOST('submitRegister') ) {
// 	text('Register');
	try {
		$formregister = POST('register');
// 		text($formregister);
		$Membre = SiteUser::create($formregister);
		reportSuccess('You\'re successfully registered.');
	} catch(UserException $e) {
		reportError($e);
	}
}
displayReportsHTML();

if( User::is_login() ) {
	echo "<p>Welcome {$USER->fullname} </p>";
}
?>
<div class="row">
	
	<div class="col-xs-6">
		<form method="POST" role="form">
		<fieldset>
			<legend>Sign in</legend>
			<div class="form-group">
				<label for="loginUsername">Nickname</label>
				<input type="text" class="form-control" id="loginUsername" name="login[name]" placeholder="Enter your username"/>
			</div>
			<div class="form-group">
				<label for="loginPassword">Password</label>
				<input type="password" class="form-control" id="loginPassword" name="login[password]" placeholder="Enter your password"/>
			</div>
			<button name="submitLogin" type="submit" class="btn btn-primary">Sign in</button>
		</fieldset>
		</form>
	</div>
		
	<div class="col-xs-6">
		<form method="POST" role="form">
		<fieldset>
			<legend>Register</legend>
			
			<div class="form-group">
				<label for="registerUsername">Your nickname</label>
				<input type="text" class="form-control" id="registerUsername" name="register[name]" required placeholder="My ID to sign in, e.g. cartman"/>
			</div>
			<div class="form-group">
				<label for="registerFullname">Your public name</label>
				<input type="text" class="form-control" id="registerFullname" name="register[fullname]" required placeholder="the displayed name, e.g. <NAME>" />
			</div>
			<div class="form-group">
				<label for="registerEmail">Email</label>
				<input type="email" class="form-control" id="registerEmail" name="register[email]" required placeholder="<EMAIL>"/>
{'fraction_non_alphanumeric': 0.19794971930680985, 'fraction_numerical': 0.000976324139614352, 'mean_word_length': 4.947750362844703, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 102, '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': '733423', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1324, 'n_words': 270}