<commit_before><comment th:remove="all">
<!-- This component represents a tabbed entity form with collections -->
<!-- Additional parameters that can be specified include: -->
<!--    additionalClasses - any additional CSS classes to apply to the form -->
<!--    additionalTabClasses - any additional CSS classes to apply to the tabs -->
<!--    showSingleTab - boolean value determining whether or not to show tabs if there is only one -->
<!--    hideTranslations - boolean value determining whether or not to hide the translation icon -->
<!--    hideActions - boolean value determining whether or not to hide the entity form actions -->
</comment>

<blc:form th:object="${entityForm}"
      method="POST"
      class="twelve columns custom entity-form"
      th:classappend="${(additionalClasses == null ? '' : additionalClasses + ' ') 
        + (additionalControllerClasses == null ? '' : additionalControllerClasses)}"
      th:action="@{${currentUrl}}"
      th:with="renderTabs=${#lists.size(entityForm.tabs) > 1 or (showSingleTab != null and showSingleTab)}">
      
    <span style="display: none;" id="previewurl" 
        th:attr="data-href=@{/sandbox/preview(ceilingEntity=*{ceilingEntityClassname}, id=*{id}, directPreview=true)}" />

    <input type="hidden" th:field="*{ceilingEntityClassname}" />
    <input type="hidden" th:field="*{entityType}" />
    <input type="hidden" th:field="*{id}" />
    <input type="hidden" th:field="*{sectionCrumbs}"  />

    <div th:unless="${hideTopLevelErrors}">
        <div class="errors" blc_admin:errors="*{*}" th:if="${#fields.hasErrors('*')}">
            <div class="tabError" th:each="tab : ${tabErrors.entrySet()}" th:inline="text">
                <b>[[#{__${tab.key}__}]]</b>
            <span class="fieldError error" th:each="field : ${tab.value.entrySet()}">
                [[#{__${field.key}__}]]: [[#{__${field.value}__}]]
            </span>
                <br />
            </div>
        </div>
    </div>
    
    <div class="tabs-container" th:if="${renderTabs}">
        <dl class="tabs" th:classappend="${additionalTabClasses}">
            <dd th:each="tab : ${entityForm.tabs}" th:class="${tabStat.first}? 'active'">
                <a th:href="'#tab' + ${tabStat.count}" 
                   th:classappend="${tab.tabClass}"
                   th:text="#{${tab.title}}" /> 
            </dd>
        </dl> 
    </div>
    <commit_msg>#808 - Collapsed th:unless tag into the tag where the errors are being checked.<commit_after><comment th:remove="all">
<!-- This component represents a tabbed entity form with collections -->
<!-- Additional parameters that can be specified include: -->
<!--    additionalClasses - any additional CSS classes to apply to the form -->
<!--    additionalTabClasses - any additional CSS classes to apply to the tabs -->
<!--    showSingleTab - boolean value determining whether or not to show tabs if there is only one -->
<!--    hideTranslations - boolean value determining whether or not to hide the translation icon -->
<!--    hideActions - boolean value determining whether or not to hide the entity form actions -->
</comment>

<blc:form th:object="${entityForm}"
      method="POST"
      class="twelve columns custom entity-form"
      th:classappend="${(additionalClasses == null ? '' : additionalClasses + ' ') 
        + (additionalControllerClasses == null ? '' : additionalControllerClasses)}"
      th:action="@{${currentUrl}}"
      th:with="renderTabs=${#lists.size(entityForm.tabs) > 1 or (showSingleTab != null and showSingleTab)}">
      
    <span style="display: none;" id="previewurl" 
        th:attr="data-href=@{/sandbox/preview(ceilingEntity=*{ceilingEntityClassname}, id=*{id}, directPreview=true)}" />

    <input type="hidden" th:field="*{ceilingEntityClassname}" />
    <input type="hidden" th:field="*{entityType}" />
    <input type="hidden" th:field="*{id}" />
    <input type="hidden" th:field="*{sectionCrumbs}"  />

    <div th:unless="${hideTopLevelErrors}" class="errors" blc_admin:errors="*{*}" th:if="${#fields.hasErrors('*')}">
        <div class="tabError" th:each="tab : ${tabErrors.entrySet()}" th:inline="text">
            <b>[[#{__${tab.key}__}]]</b>
        <span class="fieldError error" th:each="field : ${tab.value.entrySet()}">
            [[#{__${field.key}__}]]: [[#{__${field.value}__}]]
        </span>
            <br />
        </div>
    </div>

    <div class="tabs-container" th:if="${renderTabs}">
        <dl class="tabs" th:classappend="${additionalTabClasses}">
            <dd th:each="tab : ${entityForm.tabs}" th:class="${tabStat.first}? 'active'">
                <a th:href="'#tab' + ${tabStat.count}" 
                   th:classappend="${tab.tabClass}"
                   th:text="#{${tab.title}}" /> 
            </dd>
        </dl> 
    </div>
    
{'fraction_non_alphanumeric': 0.18304033092037228, 'fraction_numerical': 0.001034126163391934, 'mean_word_length': 3.136869118905047, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4633199', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1371, 'n_words': 334}