<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>

<tiles:importAttribute name="resultElementMap" ignore="false"/>
<tiles:importAttribute name="columnNames" ignore="false"/>
<tiles:importAttribute name="issueType" ignore="false"/>
<tiles:importAttribute name="initialTypeMap" ignore="false"/>

<!-- bagUploadConfirmIssue.jsp -->
<table class="collection" cellspacing="0">
    <tr>
      <td>
        Identifier
      </td>
      <td width="10"> 
        <fmt:message key="objectDetails.class"/>
      </td>
      <c:forEach items="${columnNames}" var="name"
                 varStatus="status">
        <td>
          <span class="attributeField" style="white-space:nowrap">
            ${name} <im:typehelp type="${columnNames[status.index]}"/>
          </span>
        </td>
      </c:forEach>
      <td width="10">
        &nbsp;<%--for IE--%>
      </td>
    </tr>
  <c:set var="idcounter" value="0"/>
  <c:forEach var="resultElementEntry" items="${resultElementMap}" >
    <c:set var="identifier" value="${resultElementEntry.key}"/>
    <c:set var="resultElementRowList" value="${resultElementEntry.value}"/>

    <c:forEach var="resultElementRow" items="${resultElementRowList}" varStatus="status">
      <c:set var="rowClass">
        <c:choose>
          <c:when test="${status.count % 2 == 1}">odd</c:when>
          <c:otherwise>even</c:otherwise>
        </c:choose>
      </c:set>

      <tr class="${rowClass}" id="tr_${identifier}"/>
        <c:if test="${status.index == 0}">
          <td border="1" rowSpan="${fn:length(resultElementRowList)}"
              valign="top" id="td_${issueType}_${identifier}">${identifier}</td>
          <c:if test="${issueType == 'converted' }">
            <!-- <td border="1" rowSpan="${fn:length(resultElementRowList)}"
                valign="top" id="td_${issueType}_${identifier}">${initialTypeMap[identifier]}</td> -->
             <td border="1" rowSpan="${fn:length(resultElementRowList)}"
                valign="top" id="row_${issueType}_${idcounter}">${initialTypeMap[identifier]}</td>
          </c:if>
        </c:if>
        <c:forEach var="resultElement" items="${resultElementRow}" varStatus="rowStatus">
          <td id="row_${issueType}_${idcounter}">
            <c:choose>
              <c:when test="${rowStatus.index == 0 && issueType != 'converted'}">
                <%-- special case: the first element is the class name --%>
                ${resultElement}
              </c:when>
              <c:when test="${rowStatus.index == fn:length(resultElementRow) - 1}">
                <%-- special case: the last element is the object id --%>
                <span id="add_${issueType}_${resultElementRow[rowStatus.index]}" onclick="addId2Bag('${resultElementRow[rowStatus.index]}','${idcounter}','${identifier}','${issueType}');" class="fakelink">Add</span>
                &nbsp;&nbsp;
                <span id="rem_${issueType}_${resultElementRow[rowStatus.index]}" onclick="removeIdFromBag('${resultElementRow[rowStatus.index]}','${idcounter}','${identifier}','${issueType}');">Remove</span>
                <!-- <html:multibox property="selectedObjects"
                               styleId="selectedObject_${rowStatus.index}">
                  ${resultElementRow[rowStatus.index]}
                </html:multibox>-->
              </c:when>
              <c:otherwise>
                ${resultElement.field}
              </c:otherwise>
            </c:choose>
            &nbsp;
          </td>
        </c:forEach>
      </tr>
      <c:set var="idcounter" value="${idcounter + 1}"/>
    </c:forEach>
  </c:forEach>
</table>
<!-- /bagUploadConfirmIssue.jsp -->
<commit_msg>added links to the bag upload confirm page.  Fixes #1532<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>

<tiles:importAttribute name="resultElementMap" ignore="false"/>
<tiles:importAttribute name="columnNames" ignore="false"/>
<tiles:importAttribute name="issueType" ignore="false"/>
<tiles:importAttribute name="initialTypeMap" ignore="false"/>

<!-- bagUploadConfirmIssue.jsp -->
<table class="collection" cellspacing="0">
    <tr>
      <td>
        Identifier
      </td>
      <td width="10"> 
        <fmt:message key="objectDetails.class"/>
      </td>
      <c:forEach items="${columnNames}" var="name"
                 varStatus="status">
        <td>
          <span class="attributeField" style="white-space:nowrap">
            ${name} <im:typehelp type="${columnNames[status.index]}"/>
          </span>
        </td>
      </c:forEach>
      <td width="10">
        &nbsp;<%--for IE--%>
      </td>
    </tr>
  <c:set var="idcounter" value="0"/>
  <c:forEach var="resultElementEntry" items="${resultElementMap}" >
    <c:set var="identifier" value="${resultElementEntry.key}"/>
    <c:set var="resultElementRowList" value="${resultElementEntry.value}"/>

    <c:forEach var="resultElementRow" items="${resultElementRowList}" varStatus="status">
      <c:set var="rowClass">
        <c:choose>
          <c:when test="${status.count % 2 == 1}">odd</c:when>
          <c:otherwise>even</c:otherwise>
        </c:choose>
      </c:set>

      <tr class="${rowClass}" id="tr_${identifier}"/>
        <c:if test="${status.index == 0}">
          <td border="1" rowSpan="${fn:length(resultElementRowList)}"
              valign="top" id="td_${issueType}_${identifier}">${identifier}</td>
          <c:if test="${issueType == 'converted' }">
             <td border="1" rowSpan="${fn:length(resultElementRowList)}"
                valign="top" id="row_${issueType}_${idcounter}">${initialTypeMap[identifier]}</td>
          </c:if>
        </c:if>
        <c:forEach var="resultElement" items="${resultElementRow}" varStatus="rowStatus">
        
      
        
          <td id="row_${issueType}_${idcounter}">
            <c:choose>
              <c:when test="${rowStatus.index == 0 && issueType != 'converted'}">
                <%-- special case: the first element is the class name --%>
                ${resultElement}
              </c:when>
              <c:when test="${rowStatus.index == fn:length(resultElementRow) - 1}">
                <%-- special case: the last element is the object id --%>
                <span id="add_${issueType}_${resultElementRow[rowStatus.index]}" onclick="addId2Bag('${resultElementRow[rowStatus.index]}','${idcounter}','${identifier}','${issueType}');" class="fakelink">Add</span>
                &nbsp;&nbsp;
                <span id="rem_${issueType}_${resultElementRow[rowStatus.index]}" onclick="removeIdFromBag('${resultElementRow[rowStatus.index]}','${idcounter}','${identifier}','${issueType}');">Remove</span>
              </c:when>
              <c:otherwise>
              		<html:link action="/objectDetails?id=${resultElementRow[fn:length(resultElementRow) - 1]}">
                		${resultElement.field}
                	</html:link>
              </c:otherwise>
            </c:choose>
            &nbsp;
          </td>
        </c:forEach>
      </tr>
      <c:set var="idcounter" value="${idcounter + 1}"/>
    </c:forEach>
  </c:forEach>
</table>
<!-- /bagUploadConfirmIssue.jsp -->

{'fraction_non_alphanumeric': 0.20156731757451182, 'fraction_numerical': 0.0046248715313463515, 'mean_word_length': 2.838757396449704, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, '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': '6614092', 'n_tokens_mistral': 2498, 'n_tokens_neox': 2397, 'n_words': 367}