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

<!-- templateProblems.jsp -->

<html:xhtml/>

<c:if test="${param.type == 'user'}">
  <c:set var="template" value="${PROFILE.savedTemplates[param.name]}"/>
</c:if>
<c:if test="${param.type == 'global'}">
  <c:set var="template" value="${GLOBAL_TEMPLATE_QUERIES[param.name]}"/>
</c:if>
<c:if test="${param.type == 'saved'}">
  <c:set var="template" value="${PROFILE.savedQueries[param.name].pathQuery}"/>
</c:if>


<c:if test="${template != null}">
  <div class="body">
  <fmt:message key="templateProblems.header"/>
  <ul>
    <c:forEach items="${template.problems}" var="problem">
      <li>${problem.message}</li>
    </c:forEach>
  </ul>
</c:if>

<!-- /templateProblems.jsp --><commit_msg>Fixed ancient problem with template problems - invalid templates are crossed out in the mymine page, but clicking on the template name didn't list the problems. Refs #1523.<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<!-- templateProblems.jsp -->

<html:xhtml/>

<c:if test="${param.scope == 'user'}">
  <c:set var="template" value="${PROFILE.savedTemplates[param.name]}"/>
</c:if>
<c:if test="${param.scope == 'global'}">
  <c:set var="template" value="${GLOBAL_TEMPLATE_QUERIES[param.name]}"/>
</c:if>
<c:if test="${param.scope == 'saved'}">
  <c:set var="template" value="${PROFILE.savedQueries[param.name].pathQuery}"/>
</c:if>


<c:if test="${template != null}">
  <div class="body">
  <fmt:message key="templateProblems.header"/>
  <ul>
    <c:forEach items="${template.problems}" var="problem">
      <li>${problem.message}</li>
    </c:forEach>
  </ul>
</c:if>

<!-- /templateProblems.jsp -->
{'fraction_non_alphanumeric': 0.25025536261491316, 'fraction_numerical': 0.0020429009193054137, 'mean_word_length': 4.954407294832826, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '5393774', 'n_tokens_mistral': 752, 'n_tokens_neox': 721, 'n_words': 124}