<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ 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/functions" prefix="fn" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>

<tiles:importAttribute/>

<!-- view.jsp -->
  <div class="heading">
    <fmt:message key="view.notEmpty.description"/><im:helplink key="view.help.output"/>
  </div>
  <c:choose>
  <c:when test="${empty QUERY.view}">
    <div class="body">
      <fmt:message key="view.empty.description"/>
    </div>
  </c:when>
  <c:otherwise>
    <div class="view">
      <div class="body">
      <c:if test="${fn:length(QUERY.view) > 1}">
        <div>
          <fmt:message key="view.columnOrderingTip"/>
        </div>
      </c:if>
      <br/>
      
      <div>
        <c:forEach var="path" items="${QUERY.view}" varStatus="status">
          <div class="viewpath" id="showing${fn:replace(path,".","")}"
                          onMouseOver="enterPath('${fn:replace(path,".","")}')"
                          onMouseOut="exitPath('${fn:replace(path,".","")}')">
            <div>
              <nobr>
                <c:if test="${not fn:contains(path, '.')}">
                  ${path}
                </c:if>
                <c:if test="${fn:contains(path, '.')}">
                  ${fn:substringBefore(path, ".")}.${fn:substringAfter(path, ".")}
                </c:if>
              </nobr>
            </div>
            <div>
              <nobr>
                <c:if test="${!status.first}">
                  <fmt:message key="view.moveLeftHelp" var="moveLeftTitle">
                    <fmt:param value="${path}"/>
                  </fmt:message>
                  [
                  <html:link action="/viewChange?method=moveLeft&index=${status.index}"
                    title="${moveLeftTitle}">
                    <fmt:message key="view.moveLeftSymbol"/>
                  </html:link>
                  ]
                </c:if>
                <c:if test="${!status.last}">
                  <fmt:message key="view.moveRightHelp" var="moveRightTitle">
                    <fmt:param value="${path}"/>
                  </fmt:message>
                  [
                  <html:link action="/viewChange?method=moveRight&index=${status.index}"
                    title="${moveRightTitle}">
                    <fmt:message key="view.moveRightSymbol"/>
                  </html:link>
                  ]
                </c:if>
                <fmt:message key="view.removeFromViewHelp" var="removeFromViewTitle">
                  <fmt:param value="${path}"/>
                </fmt:message>
                [
                <html:link action="/viewChange?method=removeFromView&path=${path}"
                  title="${removeFromViewTitle}"><commit_msg>Added the type under the path in the view.<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ 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/functions" prefix="fn" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>

<tiles:importAttribute/>

<!-- view.jsp -->
  <div class="heading">
    <fmt:message key="view.notEmpty.description"/><im:helplink key="view.help.output"/>
  </div>
  <c:choose>
  <c:when test="${empty QUERY.view}">
    <div class="body">
      <fmt:message key="view.empty.description"/>
    </div>
  </c:when>
  <c:otherwise>
    <div class="view">
      <div class="body">
      <c:if test="${fn:length(QUERY.view) > 1}">
        <div>
          <fmt:message key="view.columnOrderingTip"/>
        </div>
      </c:if>
      <br/>
      
      <div>
        <c:forEach var="path" items="${QUERY.view}" varStatus="status">
          <div class="viewpath" id="showing${fn:replace(path,".","")}"
                          onMouseOver="enterPath('${fn:replace(path,".","")}')"
                          onMouseOut="exitPath('${fn:replace(path,".","")}')">
            <div>
              <nobr>
                <c:if test="${not fn:contains(path, '.')}">
                  ${path}
                </c:if>
                <c:if test="${fn:contains(path, '.')}">
                  ${fn:substringBefore(path, ".")}.${fn:substringAfter(path, ".")}
                </c:if>
              </nobr>
            </div>
            <div>
              <span class="type"><small>${viewPathTypes[path]}</small></span>
            </div>
            <div>
              <nobr>
                <c:if test="${!status.first}">
                  <fmt:message key="view.moveLeftHelp" var="moveLeftTitle">
                    <fmt:param value="${path}"/>
                  </fmt:message>
                  [
                  <html:link action="/viewChange?method=moveLeft&index=${status.index}"
                    title="${moveLeftTitle}">
                    <fmt:message key="view.moveLeftSymbol"/>
                  </html:link>
                  ]
                </c:if>
                <c:if test="${!status.last}">
                  <fmt:message key="view.moveRightHelp" var="moveRightTitle">
                    <fmt:param value="${path}"/>
                  </fmt:message>
                  [
                  <html:link action="/viewChange?method=moveRight&index=${status.index}"
                    title="${moveRightTitle}">
                    <fmt:message key="view.moveRightSymbol"/>
                  </html:link>
                  ]
                </c:if>
                <fmt:message key="view.removeFromViewHelp" var="removeFromViewTitle">
                  <fmt:param value="${path}"/>
                </fmt:message>
                [
                <html:link action="/viewChange?method=removeFromView&path=${path}"
                  title="${removeFromViewTitle}">
{'fraction_non_alphanumeric': 0.19404958677685952, 'fraction_numerical': 0.00033057851239669424, 'mean_word_length': 1.7342973339358336, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 131, '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': '4120393', 'n_tokens_mistral': 1898, 'n_tokens_neox': 1789, 'n_words': 243}