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

<tiles:importAttribute/>

<!-- tree.jsp -->
<html:xhtml/>
<div class="body modelBrowser">
  <c:forEach var="node" items="${nodes}">
    <div>
      <c:forEach begin="0" end="${node.indentation}">
        &nbsp;&nbsp;&nbsp;&nbsp;
      </c:forEach>
      <c:choose>
        <c:when test="${node.leaf}">
          <img src="images/blank.gif" alt=" "/>
        </c:when>
        <c:when test="${node.open}">
          <html:link action="/changeTree?method=collapse&amp;node=${node.object.name}" anchor="${node.object.name}">
            <img border="0" src="images/minus.gif" alt="-"/>
          </html:link>
        </c:when>
        <c:otherwise>
          <html:link action="/changeTree?method=expand&amp;node=${node.object.name}" anchor="${node.object.name}">
            <img border="0" src="images/plus.gif" alt="+"/>
          </html:link>
        </c:otherwise>
      </c:choose>
      <span
         <c:if test="${node.open}">
  class="treeOpen"
         </c:if>
      >
      <span   
         <c:if test="${node.selected}">
  class="treeSelected"
         </c:if>
      >
      <a name="${node.object.name}"/>
      <html:link action="/changeTree?method=select&amp;node=${node.object.name}">
        <im:unqualify className="${node.object.name}" var="name"/>${name}
      </html:link>
      <im:typehelp type="${name}"/>
      </span>
      </span>
      ${node.text}
      
      <c:if test="${IS_SUPERUSER}">
        
        <c:set var="descriptor" value="${node.object}"/>
        <tiles:insert name="inlineTagEditor.tile">
          <tiles:put name="taggable" beanName="descriptor"/>
          <tiles:put name="show" value="true"/>
        </tiles:insert>
      </c:if>
      
    </div>
  </c:forEach>
</div>
<!-- /tree.jsp --><commit_msg>Don't allow the user to start a query at InterMineObject in the webapp.<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:importAttribute/>

<!-- tree.jsp -->
<html:xhtml/>
<div class="body modelBrowser">
  <c:forEach var="node" items="${nodes}">
    <div>
      <c:forEach begin="0" end="${node.indentation}">
        &nbsp;&nbsp;&nbsp;&nbsp;
      </c:forEach>
      <c:choose>
        <c:when test="${node.leaf}">
          <img src="images/blank.gif" alt=" "/>
        </c:when>
        <c:when test="${node.open}">
          <html:link action="/changeTree?method=collapse&amp;node=${node.object.name}" anchor="${node.object.name}">
            <img border="0" src="images/minus.gif" alt="-"/>
          </html:link>
        </c:when>
        <c:otherwise>
          <html:link action="/changeTree?method=expand&amp;node=${node.object.name}" anchor="${node.object.name}">
            <img border="0" src="images/plus.gif" alt="+"/>
          </html:link>
        </c:otherwise>
      </c:choose>
      <span
         <c:if test="${node.open}">
  class="treeOpen"
         </c:if>
      >
      <span   
         <c:if test="${node.selected}">
  class="treeSelected"
         </c:if>
      >
      <a name="${node.object.name}"/>
      <c:choose>
        <c:when test="${node.object.name == 'org.intermine.model.InterMineObject'}">
          <im:unqualify className="${node.object.name}" var="name"/>${name}
        </c:when>
        <c:otherwise>
          <html:link action="/changeTree?method=select&amp;node=${node.object.name}">
            <im:unqualify className="${node.object.name}" var="name"/>${name}
          </html:link>
        </c:otherwise>
      </c:choose>
      <im:typehelp type="${name}"/>
      </span>
      </span>
      ${node.text}
      
      <c:if test="${IS_SUPERUSER}">
        
        <c:set var="descriptor" value="${node.object}"/>
        <tiles:insert name="inlineTagEditor.tile">
          <tiles:put name="taggable" beanName="descriptor"/>
          <tiles:put name="show" value="true"/>
        </tiles:insert>
      </c:if>
      
    </div>
  </c:forEach>
</div>
<!-- /tree.jsp -->
{'fraction_non_alphanumeric': 0.2224786522040157, 'fraction_numerical': 0.0013847219016847449, 'mean_word_length': 2.509311740890688, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 112, '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': '5758026', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1485, 'n_words': 221}