<commit_before><%@ include file="/WEB-INF/pages/common/taglibs.jsp"%>

<script type="text/javascript">
    selectAll = function(selectAllBox, theform) {
       var state = selectAllBox.checked;
        for (i = 0; i < theform.elements.length; i++) {
            var element = theform.elements[i];
            if ("checkbox" == element.type) {
                element.checked = state;
            }
        }
    }
</script>

<c:url value="/protected/ajax/project/files/listUnimported.action" var="unimportedDataUrl">
    <c:param name="project.id" value="${project.id}" />
    <c:param name="editMode" value="${editMode}" />
</c:url>
<c:url value="/ajax/project/files/listImported.action" var="importedDataUrl">
    <c:param name="project.id" value="${project.id}" />
</c:url>
<c:url value="/ajax/project/files/listSupplemental.action" var="supplementalFilesUrl">
    <c:param name="project.id" value="${project.id}" />
</c:url>
<c:url value="/ajax/project/files/downloadFiles.action" var="downloadDataUrl">
    <c:param name="project.id" value="${project.id}" />
    <c:param name="editMode" value="${editMode}" />
</c:url>

<fmt:message key="project.tabs.unimportedFiles" var="unimportedDataTitle" />
<fmt:message key="project.tabs.importedFiles" var="importedDataTitle" />
<fmt:message key="project.tabs.supplementalFiles" var="supplementalDataTitle" />
<fmt:message key="project.tabs.downloadData" var="downloadDataTitle" />

<ajax:tabPanel panelStyleId="tablevel2" panelStyleClass="tablevel2" currentStyleClass="selected" contentStyleId="tabboxlevel2wrapper" contentStyleClass="tabboxlevel2wrapper"
        postFunction="TabUtils.setSelectedLevel2Tab" preFunction="TabUtils.showTabLoadingText">
    <c:if test="${pageContext.request.remoteUser != null}">
        <caarray:tab caption="${unimportedDataTitle}" baseUrl="${unimportedDataUrl}" defaultTab="${param.initialTab2 == null || param.initialTab2 == 'unimportedData'}" />
    </c:if>
    <caarray:tab caption="${importedDataTitle}" baseUrl="${importedDataUrl}" defaultTab="${param.initialTab2 == 'importedData'}" />
    <caarray:tab caption="${supplementalDataTitle}" baseUrl="${supplementalFilesUrl}" defaultTab="${param.initialTab2 == 'supplementalFiles'}" />
    <c:if test="${pageContext.request.remoteUser != null}">
        <caarray:tab caption="${downloadDataTitle}" baseUrl="${downloadDataUrl}" defaultTab="${param.initialTab2 == 'downloadData'}" />
    </c:if>
    <c:if test="${pageContext.request.remoteUser == null}">
        <caarray:tab caption="${downloadDataTitle}" baseUrl="${downloadDataUrl}" defaultTab="${param.initialTab2 == null || param.initialTab2 == 'downloadData'}" />
    </c:if>
</ajax:tabPanel>

<script type="text/javascript">
<c:if test="${pageContext.request.remoteUser != null}">
executeAjaxTab_tablevel2(null,'selected', '${unimportedDataUrl}', '');
</c:if>
<c:if test="${pageContext.request.remoteUser == null}">
  executeAjaxTab_tablevel2(null,'selected', '${downloadDataUrl}', '');
</c:if>
</script><commit_msg>fixing loading message for data tab - peer review dk <commit_after><%@ include file="/WEB-INF/pages/common/taglibs.jsp"%>

<script type="text/javascript">
    selectAll = function(selectAllBox, theform) {
       var state = selectAllBox.checked;
        for (i = 0; i < theform.elements.length; i++) {
            var element = theform.elements[i];
            if ("checkbox" == element.type) {
                element.checked = state;
            }
        }
    }
</script>

<c:url value="/protected/ajax/project/files/listUnimported.action" var="unimportedDataUrl">
    <c:param name="project.id" value="${project.id}" />
    <c:param name="editMode" value="${editMode}" />
</c:url>
<c:url value="/ajax/project/files/listImported.action" var="importedDataUrl">
    <c:param name="project.id" value="${project.id}" />
</c:url>
<c:url value="/ajax/project/files/listSupplemental.action" var="supplementalFilesUrl">
    <c:param name="project.id" value="${project.id}" />
</c:url>
<c:url value="/ajax/project/files/downloadFiles.action" var="downloadDataUrl">
    <c:param name="project.id" value="${project.id}" />
    <c:param name="editMode" value="${editMode}" />
</c:url>

<fmt:message key="project.tabs.unimportedFiles" var="unimportedDataTitle" />
<fmt:message key="project.tabs.importedFiles" var="importedDataTitle" />
<fmt:message key="project.tabs.supplementalFiles" var="supplementalDataTitle" />
<fmt:message key="project.tabs.downloadData" var="downloadDataTitle" />

<ajax:tabPanel panelStyleId="tablevel2" panelStyleClass="tablevel2" currentStyleClass="selected" contentStyleId="tabboxlevel2wrapper" contentStyleClass="tabboxlevel2wrapper"
        postFunction="TabUtils.setSelectedLevel2Tab" preFunction="TabUtils.preFunction">
    <c:if test="${pageContext.request.remoteUser != null}">
        <caarray:tab caption="${unimportedDataTitle}" baseUrl="${unimportedDataUrl}" defaultTab="${param.initialTab2 == null || param.initialTab2 == 'unimportedData'}" />
    </c:if>
    <caarray:tab caption="${importedDataTitle}" baseUrl="${importedDataUrl}" defaultTab="${param.initialTab2 == 'importedData'}" />
    <caarray:tab caption="${supplementalDataTitle}" baseUrl="${supplementalFilesUrl}" defaultTab="${param.initialTab2 == 'supplementalFiles'}" />
    <c:if test="${pageContext.request.remoteUser != null}">
        <caarray:tab caption="${downloadDataTitle}" baseUrl="${downloadDataUrl}" defaultTab="${param.initialTab2 == 'downloadData'}" />
    </c:if>
    <c:if test="${pageContext.request.remoteUser == null}">
        <caarray:tab caption="${downloadDataTitle}" baseUrl="${downloadDataUrl}" defaultTab="${param.initialTab2 == null || param.initialTab2 == 'downloadData'}" />
    </c:if>
</ajax:tabPanel>

<script type="text/javascript">
<c:if test="${pageContext.request.remoteUser != null}">
executeAjaxTab_tablevel2(null,'selected', '${unimportedDataUrl}', '');
</c:if>
<c:if test="${pageContext.request.remoteUser == null}">
  executeAjaxTab_tablevel2(null,'selected', '${downloadDataUrl}', '');
</c:if>
</script>
{'fraction_non_alphanumeric': 0.18868860592029105, 'fraction_numerical': 0.00496113775425831, 'mean_word_length': 5.559652928416486, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6016018', 'n_tokens_mistral': 1909, 'n_tokens_neox': 1880, 'n_words': 282}