<commit_before><ui:composition template="/WEB-INF/templates/defaultComponentBase.xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:b="http://butterfaces.org/components"
                xmlns:common="http://xmlns.jcp.org/jsf/composite/common"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="header">
        <strong>b:section</strong> The section tag renders an HTML "section" tag.
    </ui:define>

    <ui:define name="tagsContainers">
        <common:tagsContainer label="Tag attributes">
            <b:text label="label" value="#{sectionShowcase.label}">
                <f:ajax event="keyup" execute="@this" render="output"/>
            </b:text>
            <b:text label="badgeText" value="#{sectionShowcase.badgeText}"/>
            <b:checkBox label="rendered" value="#{sectionShowcase.rendered}">
                <f:ajax event="change" execute="@this" render="output"/>
            </b:checkBox>
        </common:tagsContainer>

        <common:tagsContainer label="Tag controls">
            <b:treeBox label="additional header" value="#{sectionShowcase.selectedAdditionalHeaderType}" values="#{sectionShowcase.additionalHeaderTypes}" required="true" showClearButton="false">
                <f:ajax event="change" execute="@this" render="output"/>
            </b:treeBox>
        </common:tagsContainer>
    </ui:define>

    <ui:define name="output">
        <b:section label="#{sectionShowcase.label}"
                   rendered="#{sectionShowcase.rendered}"
                   badgeText="#{sectionShowcase.badgeText}"
                   styleClass="arquillian_component">
            <f:facet name="additional-header">
                <h:panelGroup rendered="#{sectionShowcase.selectedAdditionalHeaderType eq 'TEXT'}">
                    additional text
                </h:panelGroup>
                <h:panelGroup rendered="#{sectionShowcase.selectedAdditionalHeaderType eq 'BUTTON'}" styleClass="btn btn-danger btn-sm">
                    additional button<commit_msg>#172 fixed showcase section badge text<commit_after><ui:composition template="/WEB-INF/templates/defaultComponentBase.xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:b="http://butterfaces.org/components"
                xmlns:common="http://xmlns.jcp.org/jsf/composite/common"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="header">
        <strong>b:section</strong> The section tag renders an HTML "section" tag.
    </ui:define>

    <ui:define name="tagsContainers">
        <common:tagsContainer label="Tag attributes">
            <b:text label="label" value="#{sectionShowcase.label}">
                <f:ajax event="keyup" execute="@this" render="output"/>
            </b:text>
            <b:text label="badgeText" value="#{sectionShowcase.badgeText}">
                <f:ajax event="keyup" execute="@this" render="output"/>
            </b:text>
            <b:checkBox label="rendered" value="#{sectionShowcase.rendered}">
                <f:ajax event="change" execute="@this" render="output"/>
            </b:checkBox>
        </common:tagsContainer>

        <common:tagsContainer label="Tag controls">
            <b:treeBox label="additional header" value="#{sectionShowcase.selectedAdditionalHeaderType}" values="#{sectionShowcase.additionalHeaderTypes}" required="true" showClearButton="false">
                <f:ajax event="change" execute="@this" render="output"/>
            </b:treeBox>
        </common:tagsContainer>
    </ui:define>

    <ui:define name="output">
        <b:section label="#{sectionShowcase.label}"
                   rendered="#{sectionShowcase.rendered}"
                   badgeText="#{sectionShowcase.badgeText}"
                   styleClass="arquillian_component">
            <f:facet name="additional-header">
                <h:panelGroup rendered="#{sectionShowcase.selectedAdditionalHeaderType eq 'TEXT'}">
                    additional text
                </h:panelGroup>
                <h:panelGroup rendered="#{sectionShowcase.selectedAdditionalHeaderType eq 'BUTTON'}" styleClass="btn btn-danger btn-sm">
                    additional button
{'fraction_non_alphanumeric': 0.1465319246669729, 'fraction_numerical': 0.0006890215893431327, 'mean_word_length': 2.587314662273476, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '657408', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1172, 'n_words': 181}