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

<!-- objectDetailsTemplate.jsp -->

<html:xhtml/>

<tiles:importAttribute name="displayObject" ignore="true"/>
<tiles:importAttribute name="templateQuery"/>
<tiles:importAttribute name="aspect"/>
<tiles:importAttribute name="type"/>

<%-- from controller: --%>
<tiles:importAttribute name="table" ignore="true"/>

<c:set var="templateName" value="${templateQuery.name}"/>

<c:set var="aspectAndField" value="${aspect}_${templateName}"/>
<c:if test="${!empty displayObject}">
  <c:set var="verbose" value="${!empty displayObject.verbosity[aspectAndField]}"/>
  <c:set var="interMineObject" value="${displayObject.object}"/>
</c:if>

<div>
  <c:choose>
    <c:when test="${empty displayObject}">

    </c:when>
    <c:when test="${!empty templateCounts[templateName] &&
                  templateCounts[templateName] == 0}">
      <img border="0" src="images/blank.gif" alt=" " width="11" height="11"/>
      <c:set var="cssClass" value="nullStrike"/>
    </c:when>
    <c:when test="${empty table}">
      <img border="0" src="images/blank.gif" alt=" " width="11" height="11"/>
    </c:when>
    <c:when test="${verbose}">
      <html:link action="/modifyDetails?method=unverbosify&amp;field=${templateName}&amp;aspect=${aspect}&amp;id=${object.id}&amp;trail=${param.trail}">
        <img border="0" src="images/minus.gif" alt="-" width="11" height="11"/>
      </html:link>
    </c:when>
    <c:otherwise>
      <html:link action="/modifyDetails?method=verbosify&amp;field=${templateName}&amp;aspect=${aspect}&amp;id=${object.id}&amp;trail=${param.trail}">
        <img border="0" src="images/plus.gif" alt="+" width="11" height="11"/>
      </html:link>
    </c:otherwise>
  </c:choose>
  <span class="${cssClass}">
    <im:templateLine type="${type}" templateQuery="${templateQuery}"
                     className="${className}" interMineObject="${interMineObject}"/>
    <c:if test="${IS_SUPERUSER}">
      <tiles:insert name="inlineTagEditor.tile">
        <tiles:put name="taggable" beanName="templateQuery"/>
        <tiles:put name="vertical" value="true"/>
        <tiles:put name="show" value="true"/>
      </tiles:insert>
    </c:if>
  </span>
  <c:if test="${verbose}">
    <c:if test="${!empty displayObject.object && !empty table.inlineResults}">
      <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
          <td width="15">
            <img border="0" src="images/blank.gif" alt="" width="15" height="11"/>
          </td>
          <td>
            <table border="0" cellspacing="0" class="refSummary" align="right">
              <thead style="text-align: center">
                <tr>
                  <c:forEach items="${table.columnNames}" var="columnName"
                             varStatus="status">
                    <td>
                      <span class="attributeField" style="white-space:nowrap">
                        ${columnName}
                      </span>
                    </td>
                  </c:forEach>
                </tr>
              </thead>
              <tbody>
                <c:forEach items="${table.inlineResults}" var="row" varStatus="status">
                  <tr>
                    <c:forEach items="${row}" var="col">
                      <td>
                        <c:choose>
                          <c:when test="${empty col}">
                            <fmt:message key="objectDetails.nullField"/>
                          </c:when>
                          <c:otherwise>
                            ${col}
                          </c:otherwise>
                        </c:choose>
                      </td>
                    </c:forEach>
                  </tr>
                </c:forEach>
              </tbody>
            </table>
          </td>
        </tr>
      </table>
    </c:if>
  </c:if>
</div>
<!-- /objectDetailsTemplate.jsp --><commit_msg>In the inline template table, separate parts of the paths with ">" rather than "." and put the table in a scrollable div. Also fixed bug that was striking out valid templates.<commit_after><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>

<!-- objectDetailsTemplate.jsp -->

<html:xhtml/>

<tiles:importAttribute name="displayObject" ignore="true"/>
<tiles:importAttribute name="templateQuery"/>
<tiles:importAttribute name="aspect"/>
<tiles:importAttribute name="type"/>

<%-- from controller: --%>
<tiles:importAttribute name="table" ignore="true"/>

<c:set var="templateName" value="${templateQuery.name}"/>

<c:set var="aspectAndField" value="${aspect}_${templateName}"/>
<c:if test="${!empty displayObject}">
  <c:set var="verbose" value="${!empty displayObject.verbosity[aspectAndField]}"/>
  <c:set var="interMineObject" value="${displayObject.object}"/>
</c:if>

<div>
  <c:choose>
    <c:when test="${empty displayObject}">

    </c:when>
    <c:when test="${!empty templateCounts[templateName] &&
                  templateCounts[templateName] == 0}">
      <img border="0" src="images/blank.gif" alt=" " width="11" height="11"/>
    </c:when>
    <c:when test="${empty table}">
      <img border="0" src="images/blank.gif" alt=" " width="11" height="11"/>
    </c:when>
    <c:when test="${verbose}">
      <html:link action="/modifyDetails?method=unverbosify&amp;field=${templateName}&amp;aspect=${aspect}&amp;id=${object.id}&amp;trail=${param.trail}">
        <img border="0" src="images/minus.gif" alt="-" width="11" height="11"/>
      </html:link>
    </c:when>
    <c:otherwise>
      <html:link action="/modifyDetails?method=verbosify&amp;field=${templateName}&amp;aspect=${aspect}&amp;id=${object.id}&amp;trail=${param.trail}">
        <img border="0" src="images/plus.gif" alt="+" width="11" height="11"/>
      </html:link>
    </c:otherwise>
  </c:choose>

  <im:templateLine type="${type}" templateQuery="${templateQuery}"
                   className="${className}" interMineObject="${interMineObject}"/>
  <c:if test="${IS_SUPERUSER}">
    <tiles:insert name="inlineTagEditor.tile">
      <tiles:put name="taggable" beanName="templateQuery"/>
      <tiles:put name="vertical" value="true"/>
      <tiles:put name="show" value="true"/>
    </tiles:insert>
  </c:if>

  <c:if test="${verbose}">
    <div style="overflow-x: auto">
      <c:if test="${!empty displayObject.object && !empty table.inlineResults}">
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
          <tr>
            <td width="15">
              <img border="0" src="images/blank.gif" alt="" width="15" height="11"/>
            </td>
            <td>
              <table border="0" cellspacing="0" class="refSummary" align="right">
                <thead style="text-align: center">
                  <tr>
                    <c:forEach items="${table.columnNames}" var="columnName" varStatus="status">
                      <td>
                        <span class="attributeField" style="white-space:nowrap">
                          <c:out value="${fn:replace(columnName, '.', '&nbsp;> ')}" 
                                 escapeXml="false"/>
                        </span>
                      </td>
                    </c:forEach>
                  </tr>
                </thead>
                <tbody>
                  <c:forEach items="${table.inlineResults}" var="row" varStatus="status">
                    <tr>
                      <c:forEach items="${row}" var="col">
                        <td>
                          <c:choose>
                            <c:when test="${empty col}">
                              <fmt:message key="objectDetails.nullField"/>
                            </c:when>
                            <c:otherwise>
                              ${col}
                            </c:otherwise>
                          </c:choose>
                        </td>
                      </c:forEach>
                    </tr>
                  </c:forEach>
                </tbody>
              </table>
            </td>
          </tr>
        </table>
      </c:if>
    </div>
  </c:if>
</div>
<!-- /objectDetailsTemplate.jsp -->
{'fraction_non_alphanumeric': 0.1946751621344863, 'fraction_numerical': 0.008192058254636477, 'mean_word_length': 2.235185866764814, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 197, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '14341', 'n_tokens_mistral': 2789, 'n_tokens_neox': 2659, 'n_words': 450}