<commit_before><html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:b="http://butterfaces.org/components"
        >

<h:body>
    <composite:interface>
        <composite:attribute name="component"
                             type="de.larmic.butterfaces.component.showcase.AbstractCodeShowcase"
                             required="true"/>
    </composite:interface>

    <composite:implementation>

        <h:panelGroup layout="block" styleClass="code-examples">
            <!-- Tabs-Navs -->
            <ul class="nav nav-tabs" role="tablist">
                <ui:repeat value="#{cc.attrs.component.codeExamples}" var="example">
                    <li role="presentation">
                        <a href="##{example.tabId}" role="tab" data-toggle="tab">#{example.tabName}</a>
                    </li>
                </ui:repeat>
            </ul>

            <!-- Tab-Inhalte -->
            <div class="tab-content">
                <ui:repeat value="#{cc.attrs.component.codeExamples}" var="example">
                    <div role="tabpanel" class="tab-pane fade" id="#{example.tabId}">
                        <b:prettyprint language="#{example.prettyPrintLang}">
                            #{example.toString()}
                        </b:prettyprint>
                    </div>
                </ui:repeat>
            </div>

            <ui:remove>
                <!-- Don't know why calling butter.prettyprint.cleanup() but after changing panel to tab is does not work out of the box anymore. -->
            </ui:remove>
            <script type="text/javascript">
                butter.prettyprint.cleanup();

                $(function() {
                    $("li[role='presentation']").first().addClass("active");
                    $("div[role='tabpanel']").first().addClass("in active");
                });
            </script>
        </h:panelGroup>

    </composite:implementation>
</h:body>
</html><commit_msg>#150 Fix code examples (xhtml, java, js and css)<commit_after><html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:b="http://butterfaces.org/components">

<h:body>
    <composite:interface>
        <composite:attribute name="component"
                             type="de.larmic.butterfaces.component.showcase.AbstractCodeShowcase"
                             required="true"/>
    </composite:interface>

    <composite:implementation>

        <h:panelGroup layout="block" styleClass="code-examples">
            <!-- Tabs-Navs -->
            <ul class="nav nav-tabs" role="tablist">
                <ui:repeat value="#{cc.attrs.component.codeExamples}" var="example">
                    <li class="nav-item">
                        <a href="##{example.tabId}" class="nav-link" role="tab" data-toggle="tab">#{example.tabName}</a>
                    </li>
                </ui:repeat>
            </ul>

            <!-- Tab-Inhalte -->
            <div class="tab-content">
                <ui:repeat value="#{cc.attrs.component.codeExamples}" var="example">
                    <div role="tabpanel" class="tab-pane fade" id="#{example.tabId}">
                        <b:prettyprint language="#{example.prettyPrintLang}">
                            #{example.toString()}
                        </b:prettyprint>
                    </div>
                </ui:repeat>
            </div>

            <ui:remove>
                <!-- Don't know why calling butter.prettyprint.cleanup() but after changing panel to tab is does not work out of the box anymore. -->
            </ui:remove>
            <script type="text/javascript">
                butter.prettyprint.cleanup();

                $(function() {
                    $(".code-examples").find(".nav-link").first().addClass("active show");
                    $(".code-examples").find("div[role='tabpanel']").first().addClass("active show");
                });
            </script>
        </h:panelGroup>

    </composite:implementation>
</h:body>
</html>
{'fraction_non_alphanumeric': 0.1628232005590496, 'fraction_numerical': 0.003028185418122525, 'mean_word_length': 1.7040302267002518, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 14}, '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': '1370515', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1164, 'n_words': 181}