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

<!-- aspect -->

<html:xhtml/>

<script language="javascript">
<!--//<![CDATA[
  
   function toggleDiv(elementId) {
      var element = document.getElementById(elementId);
      var display = element.style.display;
      if(display=='block') {
          element.style.display='none';
          document.getElementById(elementId + 'Toggle').src = 'images/undisclosed.gif';
      } else {
          element.style.display='block';
          document.getElementById(elementId + 'Toggle').src = 'images/disclosed.gif';
      }
   }
//]]>-->
</script>


<%-- Import into request scope so that popup can see it --%>
<tiles:importAttribute name="aspect" scope="request"/>
<tiles:importAttribute name="startingPoints"/>

<im:box title="${aspect.name}" topRightTile="/aspectPopup.jsp">

  <c:if test="${!empty aspect.aspectSources}">
    <div class="aspectSources">
      <fmt:message key="aspect.sources.from"/>
      <ul>
        <c:forEach items="${aspect.aspectSources}" var="source">
          <li><a href="${source.url}" target="_blank" class="extlink">${source.name}</a></li>
        </c:forEach>
      </ul>
    </div>
  </c:if>

  <img src="${ASPECTS[aspect.name].iconImage}" class="aspectPageIcon" align="left"/>
  <div class="body aspectIntro">
    ${aspect.introText}
  </div>
  <div style="clear:both;"></div>

  <c:if test="${!empty aspect.tileName}">
    <div class="aspectTile">
      <tiles:insert name="${aspect.tileName}"/>
    </div>
  </c:if>

  <div class="heading">
    <fmt:message key="aspect.templates.heading"/>
  </div>
  <div class="body aspectTemplates">
    <tiles:insert name="templateList.tile">
      <tiles:put name="scope" value="global"/>
      <tiles:put name="placement" value="${aspect.name}"/>
      <tiles:put name="noTemplatesMsgKey" value="templateList.noTemplates"/>
    </tiles:insert>
  </div>

  <div class="heading">
    <fmt:message key="aspect.starting.points.heading"/>
  </div>
  <div class="body aspectStartingPoints">
    <p><fmt:message key="aspect.starting.points.helptext"/>

    See the <a href="${WEB_PROPERTIES['project.helpLocation']}/tutorials">tutorials</a> about the query builder.
    </p>

    <c:forEach items="${startingPoints}" var="classname" varStatus="status"><commit_msg>removed reference to tutorials<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"%>

<!-- aspect -->

<html:xhtml/>

<script language="javascript">
<!--//<![CDATA[
  
   function toggleDiv(elementId) {
      var element = document.getElementById(elementId);
      var display = element.style.display;
      if(display=='block') {
          element.style.display='none';
          document.getElementById(elementId + 'Toggle').src = 'images/undisclosed.gif';
      } else {
          element.style.display='block';
          document.getElementById(elementId + 'Toggle').src = 'images/disclosed.gif';
      }
   }
//]]>-->
</script>


<%-- Import into request scope so that popup can see it --%>
<tiles:importAttribute name="aspect" scope="request"/>
<tiles:importAttribute name="startingPoints"/>

<im:box title="${aspect.name}" topRightTile="/aspectPopup.jsp">

  <c:if test="${!empty aspect.aspectSources}">
    <div class="aspectSources">
      <fmt:message key="aspect.sources.from"/>
      <ul>
        <c:forEach items="${aspect.aspectSources}" var="source">
          <li><a href="${source.url}" target="_blank" class="extlink">${source.name}</a></li>
        </c:forEach>
      </ul>
    </div>
  </c:if>

  <img src="${ASPECTS[aspect.name].iconImage}" class="aspectPageIcon" align="left"/>
  <div class="body aspectIntro">
    ${aspect.introText}
  </div>
  <div style="clear:both;"></div>

  <c:if test="${!empty aspect.tileName}">
    <div class="aspectTile">
      <tiles:insert name="${aspect.tileName}"/>
    </div>
  </c:if>

  <div class="heading">
    <fmt:message key="aspect.templates.heading"/>
  </div>
  <div class="body aspectTemplates">
    <tiles:insert name="templateList.tile">
      <tiles:put name="scope" value="global"/>
      <tiles:put name="placement" value="${aspect.name}"/>
      <tiles:put name="noTemplatesMsgKey" value="templateList.noTemplates"/>
    </tiles:insert>
  </div>

  <div class="heading">
    <fmt:message key="aspect.starting.points.heading"/>
  </div>
  <div class="body aspectStartingPoints">
    <p><fmt:message key="aspect.starting.points.helptext"/></p>

    <c:forEach items="${startingPoints}" var="classname" varStatus="status">
{'fraction_non_alphanumeric': 0.2072317262830482, 'fraction_numerical': 0.0, 'mean_word_length': 3.890684410646388, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '7052597', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1721, 'n_words': 281}