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

<!-- convertBag.jsp -->
<tiles:importAttribute />

    <c:forEach items="${conversionTypes}" var="type">
      <script type="text/javascript" charset="utf-8">
        getConvertCountForBag('${bag.name}','${type}','${idname}');
      </script>
      <html:link action="/modifyBagDetailsAction.do?convert=${type}&bagName=${bag.name}">${type}</html:link>&nbsp;&nbsp;<span id="${type}_convertcount_${idname}">&nbsp;</span><br>
    </c:forEach>
    <c:if test="${orientation!='h'}">
      <hr/>
    </c:if>
    <c:if test="${orientation=='h'}">
     <c:forEach items="${customConverters}" var="converterInfo">
    <h3><%--<c:out value="${converterInfo.key}" />--%>Orthologues</h3>
    <p>
    <html:select property="extraFieldValue" styleId="extraConstraintSelect" >
        <c:forEach items="${converterInfo.value}" var="value">
         <html:option value="${value}">${value}</html:option>
       </c:forEach>
    </html:select>
    <html:submit property="convertToThing">Convert</html:submit>
    </p>
    </c:forEach> 
    </c:if>

<!-- /convertBag.jsp --><commit_msg>add no results msg to page if nothing can be converted<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" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>

<!-- convertBag.jsp -->
<tiles:importAttribute />

    <c:forEach items="${conversionTypes}" var="type">
      <script type="text/javascript" charset="utf-8">
        getConvertCountForBag('${bag.name}','${type}','${idname}');
      </script>
      <c:set var="nameForURL"/>
      <str:encodeUrl var="nameForURL">${bag.name}</str:encodeUrl>      
      <html:link action="/modifyBagDetailsAction.do?convert=${type}&bagName=${nameForURL}">${type}</html:link>&nbsp;&nbsp;<span id="${type}_convertcount_${idname}">&nbsp;</span><br>
    </c:forEach>
    <c:if test="${orientation!='h'}">
      <hr/>
    </c:if>
    <c:if test="${orientation=='h'}">
     <c:forEach items="${customConverters}" var="converterInfo">
    <h3><%--<c:out value="${converterInfo.key}" />--%>Orthologues</h3>
    <p>
    <html:select property="extraFieldValue" styleId="extraConstraintSelect" >
        <c:forEach items="${converterInfo.value}" var="value">
         <html:option value="${value}">${value}</html:option>
       </c:forEach>
    </html:select>
    <html:submit property="convertToThing">Convert</html:submit>
    </p>
    </c:forEach> 
    </c:if>

<c:if test="${empty conversionTypes}">
    <div><i>no results found</i></div>
</c:if>

<!-- /convertBag.jsp -->
{'fraction_non_alphanumeric': 0.24503105590062113, 'fraction_numerical': 0.002484472049689441, 'mean_word_length': 4.377295492487479, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '6982586', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1139, 'n_words': 148}