<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"%>

<tiles:importAttribute name="displayObject" ignore="true"/>
<tiles:importAttribute name="interMineIdBag" ignore="true"/>
<tiles:importAttribute name="index" ignore="true"/>
<tiles:importAttribute name="placement"/>
<tiles:importAttribute name="trail"/>

<!-- objectDetailsAspect.jsp -->

<c:forEach items="${displayObject.clds}" var="cld">
  <c:if test="${fn:length(WEBCONFIG.types[cld.name].aspectDisplayers[placement]) > 0}">
    <c:set var="foundDisplayer" value="true"/>
  </c:if>
</c:forEach>

<c:choose>
  <c:when test="${!empty placementRefsAndCollections[placement] ||
                foundDisplayer == true ||
                !empty templates}">

    <c:set var="aspect" value="${fn:replace(placement, 'aspect:', '')}" scope="request"/>

    <im:heading id="${placement}" index="${index}">    
      <html:link action="/aspect?name=${aspect}">
        ${aspect}<%--<im:manualLink section="manualObjectDetails.shtml"/>--%>
      </html:link>      
    </im:heading>
	<div class="body">
    <div id="template${index}" style="display:none;">
    
      <c:if test="${!empty displayObject}">
        <tiles:insert page="/objectDetailsRefsCols.jsp">
          <tiles:put name="object" beanName="displayObject"/>
          <tiles:put name="placement" value="${placement}"/>      
        </tiles:insert>
      </c:if>
      <%-- the controller of this tile should have already called the controller
        for the template list so just insert the jsp page --%>
      <c:if test="${!empty templates && !empty placementRefsAndCollections[placement]}">
        <hr class="seperator"/>
      </c:if>
      <tiles:insert name="/templateList.jsp">
        <tiles:put name="scope" value="global"/>
        <tiles:put name="placement" value="${placement}"/>
        <tiles:put name="displayObject" beanName="displayObject"/>
        <tiles:put name="interMineIdBag" beanName="interMineIdBag"/>
        <tiles:put name="noTemplatesMsgKey" value=""/>          
        <tiles:put name="trail" value="${trail}"/>                
      </tiles:insert>
      <c:if test="${!empty templates && foundDisplayer}">
        <hr class="seperator"/>
      </c:if>
      <c:if test="${! empty displayObject}">
        <tiles:insert page="/objectDetailsDisplayers.jsp">
          <tiles:put name="placement" value="${placement}"/>                  
          <tiles:put name="displayObject" beanName="displayObject"/>
        </tiles:insert>
      </c:if>
      <im:vspacer height="5"/>
</div>
    </div>
  </c:when>
  <c:otherwise>
    <!-- nothing to display for placement ${placement} -->
  </c:otherwise>
</c:choose>

<!-- /objectDetailsAspect.jsp -->
<commit_msg>Formatting fix.  Updated aspects link to expand.<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"%>

<tiles:importAttribute name="displayObject" ignore="true"/>
<tiles:importAttribute name="interMineIdBag" ignore="true"/>
<tiles:importAttribute name="index" ignore="true"/>
<tiles:importAttribute name="placement"/>
<tiles:importAttribute name="trail"/>

<!-- objectDetailsAspect.jsp -->

<c:forEach items="${displayObject.clds}" var="cld">
  <c:if test="${fn:length(WEBCONFIG.types[cld.name].aspectDisplayers[placement]) > 0}">
    <c:set var="foundDisplayer" value="true"/>
  </c:if>
</c:forEach>

<c:choose>
  <c:when test="${!empty placementRefsAndCollections[placement] ||
                foundDisplayer == true ||
                !empty templates}">

    <c:set var="aspect" value="${fn:replace(placement, 'aspect:', '')}" scope="request"/>

    <im:heading id="${placement}" index="${index}">    

        <a href="javascript:toggleHidden('template${index}');">${aspect}</a>

    </im:heading>
	<div class="body">
    <div id="template${index}" style="display:none;margin-left:20px;">
    
    
      <c:if test="${!empty displayObject}">
        <tiles:insert page="/objectDetailsRefsCols.jsp">
          <tiles:put name="object" beanName="displayObject"/>
          <tiles:put name="placement" value="${placement}"/>      
        </tiles:insert>
      </c:if>
      
      
      <%-- the controller of this tile should have already called the controller
        for the template list so just insert the jsp page --%>
      <c:if test="${!empty templates && !empty placementRefsAndCollections[placement]}">
        <hr class="seperator"/>
      </c:if>
      <tiles:insert name="/templateList.jsp">
        <tiles:put name="scope" value="global"/>
        <tiles:put name="placement" value="${placement}"/>
        <tiles:put name="displayObject" beanName="displayObject"/>
        <tiles:put name="interMineIdBag" beanName="interMineIdBag"/>
        <tiles:put name="noTemplatesMsgKey" value=""/>          
        <tiles:put name="trail" value="${trail}"/>                
      </tiles:insert>
      <c:if test="${!empty templates && foundDisplayer}">
        <hr class="seperator"/>
      </c:if>
      <c:if test="${! empty displayObject}">
        <tiles:insert page="/objectDetailsDisplayers.jsp">
          <tiles:put name="placement" value="${placement}"/>                  
          <tiles:put name="displayObject" beanName="displayObject"/>
        </tiles:insert>
      </c:if>
      <im:vspacer height="5"/>
</div>
    </div>
  </c:when>
  <c:otherwise>
    <!-- nothing to display for placement ${placement} -->
  </c:otherwise>
</c:choose>

<!-- /objectDetailsAspect.jsp -->

{'fraction_non_alphanumeric': 0.19838523644752018, 'fraction_numerical': 0.0009886307464162135, 'mean_word_length': 3.4371345029239766, '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': '6201370', 'n_tokens_mistral': 1994, 'n_tokens_neox': 1942, 'n_words': 343}