<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
 The MIT License (MIT)

 View the full license at:
 https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md

 Copyright (c) 2015 <NAME>

 Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree

-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
                xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:form id="#{widgetVar}_form">
        <p:dialog header="#{header}" modal="true" widgetVar="#{widgetVar}" id="#{widgetVar}">
            <p>
                <p:panelGrid columns="2">
                    <c:set var="inputLength" value="100" />

                    <p:outputLabel value="Id" />
                    <p:inputText value="#{person.id}" disabled="true" rendered="#{!isNewPerson}" />
                    <p:inputText value="Id will be autogenerated by database." size="#{inputLength}" disabled="true" rendered="#{isNewPerson}" />

                    <p:outputLabel value="Name:" />
                    <p:inputText value="#{person.name}" maxlength="#{inputLength}" size="#{inputLength}" />

                    <p:outputLabel value="Gender:" />
                    <p:selectOneMenu id="gender" value="Male" style="width:125px">
                        <f:selectItem itemLabel="Select One" itemValue="notSelected" />
                        <f:selectItems value="#{genderBean.genders}" />
                    </p:selectOneMenu>

                    <p:outputLabel value="Place of birth:" />
                    <p:inputText value="#{person.birth.place}" maxlength="#{inputLength}" size="#{inputLength}" />

                    <p:outputLabel value="Date of birth:" />
                    <p:calendar value="#{person.birth.date}" pattern="MMM dd yyyy"/>

                    <p:outputLabel value="Place of death:" />
                    <p:inputText value="#{person.death.place}" maxlength="#{inputLength}" size="#{inputLength}" />

                    <p:outputLabel value="Date of death:" />
                    <p:calendar value="#{person.death.date}" pattern="MMM dd yyyy" />
                </p:panelGrid>
            </p>
            <p>
                <p:commandButton value="Submit" ajax="false" />
                <p:commandButton value="Cancel" oncomplete="PF('#{widgetVar}').hide()" />
            </p>
        </p:dialog>
    </h:form>
</ui:composition><commit_msg>Update editPersonDialog.xhtml<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
 The MIT License (MIT)

 View the full license at:
 https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md

 Copyright (c) 2015 <NAME>

 Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree

-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
                xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:form id="#{widgetVar}_form">
        <p:dialog header="#{header}" modal="true" widgetVar="#{widgetVar}" id="#{widgetVar}">
            <p>
                <p:panelGrid columns="2">
                    <c:set var="inputLength" value="100" />

                    <p:outputLabel value="Id" />
                    <p:inputText value="#{person.id}" disabled="true" rendered="#{!isNewPerson}" />
                    <p:inputText value="Id will be autogenerated by database." size="#{inputLength}" disabled="true" rendered="#{isNewPerson}" />

                    <p:outputLabel value="Name:" />
                    <p:inputText value="#{person.name}" maxlength="#{inputLength}" size="#{inputLength}" />

                    <p:outputLabel value="Gender:" />
                    <p:selectOneMenu id="gender" value="Male" style="width:125px">
                        <f:selectItem itemLabel="Select One" itemValue="notSelected" />
                        <f:selectItems value="#{genderBean.genders}" />
                    </p:selectOneMenu>

                    <p:outputLabel value="Place of birth:" />
                    <p:inputText value="#{person.birth.place}" maxlength="#{inputLength}" size="#{inputLength}" />

                    <p:outputLabel value="Date of birth:" />
                    <p:calendar value="#{person.birth.date}" pattern="MMM dd yyyy"/>

                    <p:outputLabel value="Place of death:" />
                    <p:inputText value="#{person.death.place}" maxlength="#{inputLength}" size="#{inputLength}" />

                    <p:outputLabel value="Date of death:" />
                    <p:calendar value="#{person.death.date}" pattern="MMM dd yyyy" />
                </p:panelGrid>
            </p>
            <p>
                <p:commandButton value="Submit" ajax="false" rendered="#{!isNewPerson}" />
                <p:commandButton value="Submit" ajax="false" rendered="#{isNewPerson}" actionListener="#{individualBean.updatePerson()}" />
                <p:commandButton value="Cancel" oncomplete="PF('#{widgetVar}').hide()" />
            </p>
        </p:dialog>
    </h:form>
</ui:composition>
{'fraction_non_alphanumeric': 0.1764497251285689, 'fraction_numerical': 0.008866820358219542, 'mean_word_length': 2.1438127090301005, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 2, '>': 78, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 20}, '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': '4262303', 'n_tokens_mistral': 1774, 'n_tokens_neox': 1616, 'n_words': 270}