<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="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im" %>

<tiles:importAttribute/>

<!-- objectView.jsp -->
<html:xhtml/>
<c:set var="object" value="${resultElement.field}"/>

<c:set var="leafClds" value="${LEAF_DESCRIPTORS_MAP[object]}"/>


<div class="objectView">
  <c:choose>
    <c:when test="${empty leafClds}">
      <fmt:message key="objectDetails.nullField" var="nullFieldText"/>
      <c:set var="maxLength" value="60"/>
      <c:choose>
        <c:when test="${object != null && object.class.name == 'java.lang.String' && fn:length(object) > maxLength}">
          <im:abbreviate value="${object}" length="${maxLength}"/>
        </c:when>
        <c:when test="${resultElement.keyField}">
          <html:link action="/objectDetails?id=${resultElement.id}&amp;trail=${param.trail}|${resultElement.id}">
            <c:out value="${object}" default="${nullFieldText}"/>
          </html:link>
          <c:if test="${(!empty columnType) && (resultElement.typeClass != columnType)}">
 	    [<c:out value="${resultElement.type}" />]
 	  </c:if>
        </c:when>
        <c:otherwise>
          <c:out value="${object}" default="${nullFieldText}"/>
        </c:otherwise>
      </c:choose>
    </c:when>
    <c:otherwise>


      <c:set var="linkAction" value="/objectDetails?id=${resultElement.id}&amp;trail=${param.trail}|${resultElement.id}" scope="request"/>
      <span style="white-space:nowrap">
        <c:forEach var="cld" items="${leafClds}">
          <span class="type"><c:out value="${cld.unqualifiedName}"/></span>
        </c:forEach>
        [<html:link action="${linkAction}">
          <fmt:message key="results.details"/>
        </html:link>]
      </span>
      <br/>
      <div style="margin-left: 8px">
        <c:set var="displayObject" value="${DISPLAY_OBJECT_CACHE[object]}"/>
        <c:forEach items="${displayObject.fieldExprs}" var="expr">
          <im:eval evalExpression="object.${expr}" evalVariable="outVal"/>
          <c:if test="${displayObject.fieldConfigMap[expr].showInResults}">
            <c:set var="style" value="white-space:nowrap"/>
            <c:if test="${outVal.class.name == 'java.lang.String' && fn:length(outVal) > 25}">
              <c:if test="${fn:length(outVal) > 65}">
                <c:set var="outVal" value="${fn:substring(outVal, 0, 60)}..." scope="request"/>
              </c:if>
              <c:set var="style" value=""/>
            </c:if>
            <div style="${style}">
              <span class="attributeField">${expr}</span>
              <im:value>${outVal}</im:value>
            </div>
          </c:if>
        </c:forEach>
        <c:forEach items="${leafClds}" var="cld">
          <c:if test="${WEBCONFIG.types[cld.name].tableDisplayer != null}">
            <div>
              <c:set var="cld" value="${cld}" scope="request"/>
              <tiles:insert page="${WEBCONFIG.types[cld.name].tableDisplayer.src}"/>
            </div>
          </c:if>
        </c:forEach>
      </div>
    </c:otherwise>
  </c:choose>
</div>
<!-- /objectView.jsp -->
<commit_msg>Small formatting fix for IE6: if a table cell contains just an empty string make sure it has borders.<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="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im" %>

<tiles:importAttribute/>

<!-- objectView.jsp -->
<html:xhtml/>
<c:set var="object" value="${resultElement.field}"/>

<c:set var="leafClds" value="${LEAF_DESCRIPTORS_MAP[object]}"/>


<div class="objectView">
  <c:choose>
    <c:when test="${empty leafClds}">
      <fmt:message key="objectDetails.nullField" var="nullFieldText"/>
      <c:set var="maxLength" value="60"/>
      <c:choose>
        <c:when test="${object != null && object.class.name == 'java.lang.String' && fn:length(object) > maxLength}">
          <im:abbreviate value="${object}" length="${maxLength}"/>
        </c:when>
        <c:when test="${resultElement.keyField}">
          <html:link action="/objectDetails?id=${resultElement.id}&amp;trail=${param.trail}|${resultElement.id}">
            <c:out value="${object}" default="${nullFieldText}"/>
          </html:link>
          <c:if test="${(!empty columnType) && (resultElement.typeClass != columnType)}">
 	    [<c:out value="${resultElement.type}" />]
 	  </c:if>
        </c:when>
        <c:otherwise>
          <c:out value="${object}" default="${nullFieldText}"/>   <%-- for IE 6: --%> &nbsp;
        </c:otherwise>
      </c:choose>
    </c:when>
    <c:otherwise>


      <c:set var="linkAction" value="/objectDetails?id=${resultElement.id}&amp;trail=${param.trail}|${resultElement.id}" scope="request"/>
      <span style="white-space:nowrap">
        <c:forEach var="cld" items="${leafClds}">
          <span class="type"><c:out value="${cld.unqualifiedName}"/></span>
        </c:forEach>
        [<html:link action="${linkAction}">
          <fmt:message key="results.details"/>
        </html:link>]
      </span>
      <br/>
      <div style="margin-left: 8px">
        <c:set var="displayObject" value="${DISPLAY_OBJECT_CACHE[object]}"/>
        <c:forEach items="${displayObject.fieldExprs}" var="expr">
          <im:eval evalExpression="object.${expr}" evalVariable="outVal"/>
          <c:if test="${displayObject.fieldConfigMap[expr].showInResults}">
            <c:set var="style" value="white-space:nowrap"/>
            <c:if test="${outVal.class.name == 'java.lang.String' && fn:length(outVal) > 25}">
              <c:if test="${fn:length(outVal) > 65}">
                <c:set var="outVal" value="${fn:substring(outVal, 0, 60)}..." scope="request"/>
              </c:if>
              <c:set var="style" value=""/>
            </c:if>
            <div style="${style}">
              <span class="attributeField">${expr}</span>
              <im:value>${outVal}</im:value>
            </div>
          </c:if>
        </c:forEach>
        <c:forEach items="${leafClds}" var="cld">
          <c:if test="${WEBCONFIG.types[cld.name].tableDisplayer != null}">
            <div>
              <c:set var="cld" value="${cld}" scope="request"/>
              <tiles:insert page="${WEBCONFIG.types[cld.name].tableDisplayer.src}"/>
            </div>
          </c:if>
        </c:forEach>
      </div>
    </c:otherwise>
  </c:choose>
</div>
<!-- /objectView.jsp -->

{'fraction_non_alphanumeric': 0.2221738499492091, 'fraction_numerical': 0.0031925700188651864, 'mean_word_length': 2.8981900452488687, 'pattern_counts': {'":': 0, '<': 162, '<?xml version=': 0, '>': 168, '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': '1212277', 'n_tokens_mistral': 2369, 'n_tokens_neox': 2287, 'n_words': 346}