<commit_before><?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>BootsFaces: next-gen JSF Framework</title>
        <meta name="author" content="<NAME>"></meta>
    </h:head>
    <h:body style="padding-top: 60px">
        <ui:composition template="/applayout/pageTemplate.xhtml">
            <ui:define name="content">
                <h1>CommandButton</h1>
            <h:form id="form">
                <p>The b:commandButton tag extends the standard h:commandButton with Ajax, and partial processing features.
                </p>
                <b:well>
                    <h3>Personal Information</h3>
                    <h:panelGrid id="inform" columns="3" cellpadding="5">  
                        <h:outputLabel for="firstname" value="Firstname: *" />  
                        <b:inputText id="firstname" value="#{informBean.firstname}" >  
                            <f:validateLength minimum="2" />  
                        </b:inputText><h:message for="firstname" />

                        <h:outputLabel for="familyname" value="Family (surname/last) name: *" />  
                        <b:inputText id="familyname" value="#{informBean.familyname}" required="true" />
                        <h:message for="familyname" />
                    </h:panelGrid>
                </b:well>
                <b:row>
                    <b:column span="2">
                        <b:commandButton value="No Ajax Submit" id="cb" />
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="Ajax Submit" ajax="true" update="form:inform infoshow" id="ajaxcb" look="primary" />
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="With Icon" ajax="true" update="form:inform infoshow" id="acb" icon="plus-sign" look="success" />
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="Ajax Modal" ajax="true" update="form:inform amodal" id="ajaxmodal" 
                                         look="inverse" oncomplete="$('#amodal').modal('show');"/>
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="" ajax="true" update="form:inform infoshow" icon="plus-sign" look="info" />
                    </b:column>
                    
                </b:row>
                <!-- actionListener="" /--> 
            </h:form>
                <br/>
            <b:well id="infoshow">
                <strong>Submitted information:</strong>
                <h:panelGrid columns="2">  
                    <h:outputText value="Firstname: " />  
                    <h:outputText value="#{informBean.firstname}" />  

                    <h:outputText value="Family (surname/last) name: " />  
                    <h:outputText value="#{informBean.familyname}" />  
                </h:panelGrid>
            </b:well>
            <b:modal id="amodal" title="Person">
                <h:panelGrid columns="2">  
                    <h:outputText value="Firstname: " />  
                    <h:outputText value="#{informBean.firstname}" />  

                    <h:outputText value="Family (surname/last) name: " />  
                    <h:outputText value="#{informBean.familyname}" />  
                </h:panelGrid><commit_msg>Updated b:commandButton doc for Font Awesome support.<commit_after><?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>BootsFaces: next-gen JSF Framework</title>
        <meta name="author" content="<NAME>"></meta>
    </h:head>
    <h:body style="padding-top: 60px">
        <ui:composition template="/applayout/pageTemplate.xhtml">
            <ui:define name="content">
                <h1>CommandButton</h1>
            <h:form id="form">
                <p>The b:commandButton tag extends the standard h:commandButton with Ajax, and partial processing features.
                </p>
                <p>Like Buttons, also CommandButtons can can have an icon adding the attribute <code>icon</code> (on the left or right, default is left).</p>
                <p>You can control the icon position by specifying it in the attribute <code>iconAlign</code>.</p>
                <p>The Icon attribute will add a Glyphicon icon (Bootstrap's default), but now you can also use a Font Awesome icon using the <code>iconAwesome</code> attribute instead of <code>icon</code>.</p>
                <p>Both <code>icon</code> and <code>iconAwesome</code> attributes, require the icon name as value the icon name without the trailing <b>glyphicon-</b> prefix and <b>fa-</b> prefix respectively.</p>
                <b:well>
                    <h3>Personal Information</h3>
                    <h:panelGrid id="inform" columns="3" cellpadding="5">  
                        <h:outputLabel for="firstname" value="Firstname: *" />  
                        <b:inputText id="firstname" value="#{informBean.firstname}" >  
                            <f:validateLength minimum="2" />  
                        </b:inputText><h:message for="firstname" />

                        <h:outputLabel for="familyname" value="Family (surname/last) name: *" />  
                        <b:inputText id="familyname" value="#{informBean.familyname}" required="true" />
                        <h:message for="familyname" />
                    </h:panelGrid>
                </b:well>
                <b:row>
                    <b:column span="2">
                        <b:commandButton value="No Ajax Submit" id="cb" />
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="Ajax Submit" ajax="true" update="form:inform infoshow" id="ajaxcb" look="primary" />
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="With Icon" ajax="true" update="form:inform infoshow" id="acb" icon="plus-sign" look="success" />
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="Ajax Modal" ajax="true" update="form:inform amodal" id="ajaxmodal" 
                                         look="inverse" oncomplete="$('#amodal').modal('show');"/>
                    </b:column>
                    <b:column span="2">
                        <b:commandButton value="" ajax="true" update="form:inform infoshow" iconAwesome="thumbs-up" look="info" />
                    </b:column>
                    
                </b:row>
                <!-- actionListener="" /--> 
            </h:form>
                <br/>
            <b:well id="infoshow">
                <strong>Submitted information:</strong>
                <h:panelGrid columns="2">  
                    <h:outputText value="Firstname: " />  
                    <h:outputText value="#{informBean.firstname}" />  

                    <h:outputText value="Family (surname/last) name: " />  
                    <h:outputText value="#{informBean.familyname}" />  
                </h:panelGrid>
            </b:well>
            <b:modal id="amodal" title="Person">
                <h:panelGrid columns="2">  
                    <h:outputText value="Firstname: " />  
                    <h:outputText value="#{informBean.firstname}" />  

                    <h:outputText value="Family (surname/last) name: " />  
                    <h:outputText value="#{informBean.familyname}" />  
                </h:panelGrid>
{'fraction_non_alphanumeric': 0.14952227323489267, 'fraction_numerical': 0.005956073954584936, 'mean_word_length': 1.6202860858257477, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 2, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6862165', 'n_tokens_mistral': 2366, 'n_tokens_neox': 2171, 'n_words': 421}