<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/resources/templates/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:comp="http://java.sun.com/jsf/composite/components"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:idm="http://midpoint.evolveum.com/xml/ns/custom-taglib/">

	<ui:define name="title">#{msg['page.login.title']}</ui:define>
	<ui:define name="sidebar">
		<div id="sidebarImage"></div>
	</ui:define>

	<ui:define name="content">
		<br />

		<hr />
		<div class="loginDiv">
			<form method="post" action="j_spring_security_check" name="loginForm">
				<ice:panelGrid id="loginForm" columns="2" style="margin-top: 20px;">
					<ice:outputText id="userNameLabel" for="j_username"
						value="#{msg['page.login.username']}" />
					<ice:inputText id="j_username" autocomplete="off" />
					<ice:outputText id="passwordLabel" for="j_password"
						value="#{msg['page.login.password']}" />
					<ice:inputSecret id="j_password" autocomplete="off" />
                    <ice:outputText id="error" value="#{SPRING_SECURITY_LAST_EXCEPTION.message}"/>
				</ice:panelGrid>
				<br />
				<h:panelGroup id="loginButtons" columns="1"
					style="text-align: center;">
					<h:commandButton class="submit" type="submit"
						value="#{msg['page.login.button']}" />
				</h:panelGroup>
			</form>
		</div>
		<script type="text/javascript">
			var centerOfLoginDiv = jQuery(".loginDiv").width() / 2;
			var loginForm = jQuery("#loginForm").width() / 2;
			var loginButton = jQuery("#loginButton").width() / 2;
			loginButton = loginButton + 40;
			jQuery("#loginForm").css("margin-left",
					centerOfLoginDiv - loginForm);
			jQuery("#loginButton").css("margin-left", loginForm - loginButton);
			
			jQuery(".iceInpSecrt").keypress(function(e) {
		        if(e.which == 13) {
		            jQuery(this).blur();
		            jQuery('.submit').focus().click();
		        }
		    });<commit_msg>fixed bug when sending the login form by pressing enter<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/resources/templates/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:comp="http://java.sun.com/jsf/composite/components"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:idm="http://midpoint.evolveum.com/xml/ns/custom-taglib/">
		
	<ui:define name="title">#{msg['page.login.title']}</ui:define>
	<ui:define name="sidebar">
		<div id="sidebarImage"></div>
	</ui:define>

	<ui:define name="content">
		<br />

		<hr />
		<div class="loginDiv">
			<form method="post" action="j_spring_security_check" name="loginForm">
				<ice:panelGrid id="loginForm" columns="2" style="margin-top: 20px;">
					<ice:outputText id="userNameLabel" for="j_username"
						value="#{msg['page.login.username']}" />
					<ice:inputText onkeypress="if (event.keyCode == 13) this.submit();" id="j_username" autocomplete="off" />
					<ice:outputText id="passwordLabel" for="j_password"
						value="#{msg['page.login.password']}" />
					<ice:inputSecret onkeypress="if (event.keyCode == 13) this.submit();" id="j_password" autocomplete="off" />
					<ice:outputText id="error" 
						value="#{SPRING_SECURITY_LAST_EXCEPTION.message}" />
				</ice:panelGrid>
				<br />
				<h:panelGroup id="loginButtons" columns="1"
					style="text-align: center;">
					<h:commandButton id="submitForm" class="submit" type="submit"
						value="#{msg['page.login.button']}" />
				</h:panelGroup>
			</form>
		</div>
		<script type="text/javascript">
			var centerOfLoginDiv = jQuery(".loginDiv").width() / 2;
			var loginForm = jQuery("#loginForm").width() / 2;
			var loginButton = jQuery("#loginButtons").width() / 2;
			loginButton = loginButton + 40;
			jQuery("#loginForm").css("margin-left",
					centerOfLoginDiv - loginForm);
			jQuery("#loginButtons").css("margin-left", loginForm - loginButton);

			/* jQuery("#j_password").keypress(function(e) {
				if (e.which == 13) {
					jQuery('#submitForm').click();
				}
			}); */
{'fraction_non_alphanumeric': 0.2044548651817116, 'fraction_numerical': 0.00984759671746776, 'mean_word_length': 4.208791208791209, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 2, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 18}, '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': '7046707', 'n_tokens_mistral': 1709, 'n_tokens_neox': 1462, 'n_words': 204}