<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
    <h:head>
    </h:head>
    <body>
        <ui:composition template="/views/template/template.xhtml">
            <ui:define name="successFailure">
                <h:panelGrid rendered="#{notificationController.successMsg!= null}">
                    <div class="alert fade in">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>#{notificationController.successMsg}</strong>
                    </div>
                </h:panelGrid>
                <h:panelGrid rendered="#{notificationController.errorMsg != null}">
                    <div class="alert alert-block alert-error fade in">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>#{notificationController.errorMsg}</strong>
                    </div>
                 </h:panelGrid>
            </ui:define>
            <ui:define name="content">
                <div class="row">
                    <div class="span12">
                        <h3>Registration</h3>	
                        <hr class="soft"/>
                        <div class="well">
                            <h:form class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label" for="firstName">First Name <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputText id="firstName" value="#{customerController.customer.firstName}" maxlength="50" requiredMessage="First name is required">
                                            <f:validateRequired/>
                                        </h:inputText>
                                    </div>
                                    <h:message for="firstName" class="error"/>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="lastName">Last Name <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputText id="lastName" value="#{customerController.customer.lastName}" maxlength="50" requiredMessage="Last name is required">
                                            <f:validateRequired/>
                                        </h:inputText>
                                    </div>
                                    <h:message for="lastName" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="email">Email <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputText id="email" value="#{customerController.customer.email}" maxlength="50" requiredMessage="Email is required">
                                            <f:validateRequired/>
                                        </h:inputText>
                                    </div>
                                    <h:message for="email" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="password">Password <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputSecret id="password" value="#{customerController.customer.password}" maxlength="50" required="true" requiredMessage="Password is required"/>
                                    </div>
                                    <h:message for="password" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="repassword">Confirm Password <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputSecret id="repassword" maxlength="50" value="#{customerController.rePassword}" required="true" requiredMessage="Password is required"/>
                                    </div>
                                    <h:message for="repassword" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="phone">Phone </label>
                                    <div class="controls">
                                        <h:inputText id="phone" value="#{customerController.customer.phone}" maxlength="14"/>
                                    </div>
                                    <h:message for="phone" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="street">Street </label>
                                    <div class="controls">
                                        <h:inputText id="street" value="#{customerController.address.street}" maxlength="50"/>
                                    </div>
                                    <h:message for="street" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="city">City </label>
                                    <div class="controls">
                                        <h:inputText id="city" value="#{customerController.address.city}" maxlength="50"/>
                                    </div>
                                    <h:message for="city" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="state">State </label>
                                    <div class="controls">
                                        <h:inputText id="state" value="#{customerController.address.state}" maxlength="50"/>
                                    </div>
                                    <h:message for="state" class="error"/>
                                </div>
                                
                                <div class="control-group">
                                    <label class="control-label" for="state">Zip </label>
                                    <div class="controls">
                                        <h:inputText id="zip" value="#{customerController.address.zip}" maxlength="5"/>
                                    </div>
                                    <h:message for="zip" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="country">Country </label>
                                    <div class="controls">
                                        <h:selectOneMenu id="country" value="#{customerController.address.country}">
                                            <f:selectItem itemLabel="United States" itemValue="United States"/>
                                            <f:selectItem itemLabel="Canada" itemValue="Canada"/>
                                            <f:selectItem itemLabel="Greenland" itemValue="Greenland"/>
                                            <f:selectItem itemLabel="Mexico" itemValue="Mexico"/>
                                        </h:selectOneMenu>
                                    </div>
                                    <h:message for="country" class="error"/>
                                </div>

                                <div class="control-group">
                                    <div class="controls">
                                        <h:commandButton class="btn btn-small" 
                                                         value="Register" 
                                                         action="#{customerController.saveCustomer()}"/>
                                    </div>
                                </div><commit_msg>fixing design issues and adding commandLink<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
    <h:head>
    </h:head>
    <body>
        <ui:composition template="/views/template/template.xhtml">
            <ui:define name="successFailure">
                <h:panelGrid rendered="#{notificationController.successMsg!= null}">
                    <div class="alert fade in">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>#{notificationController.successMsg}</strong>
                    </div>
                </h:panelGrid>
                <h:panelGrid rendered="#{notificationController.errorMsg != null}">
                    <div class="alert alert-block alert-error fade in">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>#{notificationController.errorMsg}</strong>
                    </div>
                 </h:panelGrid>
            </ui:define>
            <ui:define name="content">
                <div class="row">
                    <div class="span12">
                        <h3>Registration</h3>	
                        <hr class="soft"/>
                        <div class="well">
                            <h:form class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label" for="firstName">First Name <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputText id="firstName" value="#{customerController.customer.firstName}" maxlength="50" requiredMessage="First name is required">
                                            <f:validateRequired/>
                                        </h:inputText>
                                    </div>
                                    <h:message for="firstName" class="error"/>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="lastName">Last Name <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputText id="lastName" value="#{customerController.customer.lastName}" maxlength="50" requiredMessage="Last name is required">
                                            <f:validateRequired/>
                                        </h:inputText>
                                    </div>
                                    <h:message for="lastName" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="email">Email <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputText id="email" value="#{customerController.customer.email}" maxlength="50" requiredMessage="Email is required">
                                            <f:validateRequired/>
                                        </h:inputText>
                                    </div>
                                    <h:message for="email" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="password">Password <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputSecret id="password" value="#{customerController.customer.password}" maxlength="50" required="true" requiredMessage="Password is required"/>
                                    </div>
                                    <h:message for="password" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="repassword">Confirm Password <sup>*</sup></label>
                                    <div class="controls">
                                        <h:inputSecret id="repassword" maxlength="50" value="#{customerController.rePassword}" required="true" requiredMessage="Password is required"/>
                                    </div>
                                    <h:message for="repassword" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="phone">Phone </label>
                                    <div class="controls">
                                        <h:inputText id="phone" value="#{customerController.customer.phone}" maxlength="14"/>
                                    </div>
                                    <h:message for="phone" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="street">Street </label>
                                    <div class="controls">
                                        <h:inputText id="street" value="#{customerController.address.street}" maxlength="50"/>
                                    </div>
                                    <h:message for="street" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="city">City </label>
                                    <div class="controls">
                                        <h:inputText id="city" value="#{customerController.address.city}" maxlength="50"/>
                                    </div>
                                    <h:message for="city" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="state">State </label>
                                    <div class="controls">
                                        <h:inputText id="state" value="#{customerController.address.state}" maxlength="50"/>
                                    </div>
                                    <h:message for="state" class="error"/>
                                </div>
                                
                                <div class="control-group">
                                    <label class="control-label" for="state">Zip </label>
                                    <div class="controls">
                                        <h:inputText id="zip" value="#{customerController.address.zip}" maxlength="5"/>
                                    </div>
                                    <h:message for="zip" class="error"/>
                                </div>

                                <div class="control-group">
                                    <label class="control-label" for="country">Country </label>
                                    <div class="controls">
                                        <h:selectOneMenu id="country" value="#{customerController.address.country}">
                                            <f:selectItem itemLabel="United States" itemValue="United States"/>
                                            <f:selectItem itemLabel="Canada" itemValue="Canada"/>
                                            <f:selectItem itemLabel="Greenland" itemValue="Greenland"/>
                                            <f:selectItem itemLabel="Mexico" itemValue="Mexico"/>
                                        </h:selectOneMenu>
                                    </div>
                                    <h:message for="country" class="error"/>
                                </div>

                                <div class="control-group">
                                    <div class="controls">
                                        <h:commandButton class="btn" 
                                                         value="Register" 
                                                         action="#{customerController.saveCustomer()}"/>
                                    </div>
                                </div>
{'fraction_non_alphanumeric': 0.11868370023953462, 'fraction_numerical': 0.004220371848979126, 'mean_word_length': 0.9526726057906458, 'pattern_counts': {'":': 0, '<': 297, '<?xml version=': 2, '>': 297, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 184, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '139073', 'n_tokens_mistral': 3744, 'n_tokens_neox': 3469, 'n_words': 619}