<commit_before><%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    </html:form>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>


<!-- historyBagView.jsp -->
<html:xhtml/>

<script type="text/javascript" src="js/tablesort.js"></script>
<script type="text/javascript" src="js/historyBagView.js"></script>
<link rel="stylesheet" type="text/css" href="css/sorting.css"/>
<c:set var="type" value="bag"/>
<c:set var="index" value="0"/>
<script type="text/javascript">
if (!im.bagWorks) {
    im.bagWorks = {};
    <%-- config JS bag works here --%>
    im.bagWorks.upgradingMessage = 'Your lists are being automatically upgraded, please wait.';
    im.bagWorks.timeout = 1000;
} else if (typeof im.bagWorks != 'object') {
    throw new Error("im.bagWorks already exists");
}
</script>

<im:body id="bagHistory">

  <h1>
    <fmt:message key="history.savedbags.intro"/>
     <c:if test="${!PROFILE.loggedIn}">
      - <html:link action="/login?returnto=/mymine.do?subtab=lists"><fmt:message key="history.savedbags.login"/></html:link>&nbsp;&nbsp;
    </c:if>
  </h1>

  <c:choose>
    <c:when test="${empty PROFILE.savedBags}">
      <div class="altmessage">
        <fmt:message key="msgs.noResults"/>
      </div>
    </c:when>
    <c:otherwise>

  <html:form action="/modifyBag">
  <c:forEach items="${PROFILE.savedBagsByStatus}" var="statusSavedBag">

    <div class="${statusSavedBag.key} status-table" <c:if test="${empty(statusSavedBag.value) || statusSavedBag.key == 'NOT_CURRENT'}">style="display:none;"</c:if>>
    <c:choose>
      <c:when test="${statusSavedBag.key == 'TO_UPGRADE'}"><commit_msg>closes #118<commit_after><%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    </html:form>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>


<!-- historyBagView.jsp -->
<html:xhtml/>

<script type="text/javascript" src="js/tablesort.js"></script>
<script type="text/javascript" src="js/historyBagView.js"></script>
<link rel="stylesheet" type="text/css" href="css/sorting.css"/>
<c:set var="type" value="bag"/>
<c:set var="index" value="0"/>
<script type="text/javascript">
if (!im.bagWorks) {
    im.bagWorks = {};
    <%-- config JS bag works here --%>
    im.bagWorks.upgradingMessage = 'Your lists are being automatically upgraded, please wait.';
    im.bagWorks.timeout = 1000;
} else if (typeof im.bagWorks != 'object') {
    throw new Error("im.bagWorks already exists");
}
</script>

<im:body id="bagHistory">

  <h1>
    <fmt:message key="history.savedbags.intro"/>
     <c:if test="${!PROFILE.loggedIn}">
      - <html:link action="/login?returnto=/mymine.do?subtab=lists"><fmt:message key="history.savedbags.login"/></html:link>&nbsp;&nbsp;
    </c:if>
  </h1>

  <c:choose>
    <c:when test="${empty PROFILE.savedBags}">
      <div class="altmessage">
        <fmt:message key="msgs.noResults"/>
      </div>
    </c:when>
    <c:otherwise>

  <html:form action="/modifyBag">
  <c:forEach items="${PROFILE.savedBagsByStatus}" var="statusSavedBag">

    <div class="${statusSavedBag.key} status-table" <c:if test="${empty(statusSavedBag.value) || statusSavedBag.key == 'NOT_CURRENT' || statusSavedBag.key == 'UPGRADING'}">style="display:none;"</c:if>>
    <c:choose>
      <c:when test="${statusSavedBag.key == 'TO_UPGRADE'}">
{'fraction_non_alphanumeric': 0.22374541003671972, 'fraction_numerical': 0.006119951040391677, 'mean_word_length': 4.604938271604938, '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': '4552289', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1488, 'n_words': 234}