<commit_before><%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ 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" %>

<!-- bagDetails.jsp -->

<html:xhtml/>

<link rel="stylesheet" href="css/resultstables.css" type="text/css" />
<link rel="stylesheet" href="css/toolbar.css" type="text/css" media="screen" title="Toolbar Style" charset="utf-8"/>

<script type="text/javascript">
<!--//<![CDATA[
  var modifyDetailsURL = '<html:rewrite action="/modifyDetails"/>';
  var detailsType = 'bag';
//]]>-->
</script>
<script type="text/javascript" src="<html:rewrite page='/js/inlinetemplate.js'/>"></script>
<script type="text/javascript" src="<html:rewrite page='/js/widget.js'/>"></script>
<div class="body">
<c:choose>
<c:when test="${!empty bag}">









<div class="bochs wide">
  <h1>
    <span><fmt:message key="bagDetails.title"/></span> ${bag.name}
    <span>of</span> ${bag.size} ${bag.type}<c:if test="${bag.size != 1}">s</c:if>
    <small>created  <fmt:formatDate dateStyle="full" timeStyle="full" value="${bag.dateCreated}" /></small>
    <div class="description">
      <c:choose>
        <c:when test="${myBag == 'true'}">
            <div id="bagDescriptionDiv" onclick="jQuery('#bagDescriptionDiv').toggle();jQuery('#bagDescriptionTextarea').toggle();jQuery('#textarea').focus()">
                <c:choose>
                  <c:when test="${! empty bag.description}">
                      <p><c:out value="${bag.description}" escapeXml="false" /></p>
                    </c:when>
                   <c:otherwise>
                      <div id="emptyDesc"><fmt:message key="bagDetails.bagDescr"/></div>
                    </c:otherwise>
                </c:choose>
              </div>
              <div id="bagDescriptionTextarea" style="display:none">
                <textarea id="textarea"><c:if test="${! empty bag.description}"><c:out value="${fn:replace(bag.description,'<br/>','')}" /></c:if></textarea>
                <div class="buttons">
                    <input type="button" onclick="jQuery('#bagDescriptionTextarea').toggle();
                        jQuery('#bagDescriptionDiv').toggle(); return false;" value='<fmt:message key="confirm.cancel"/>' />
                    <input type="button" onclick="saveBagDescription('${bag.name}'); return false;" value='<fmt:message key="button.save"/>' />
                </div>
              </div>
        </c:when>
          <c:when test="${! empty bag.description}">
            <div id="bagDescriptionDiv">
                <b>Description:</b> ${bag.description}
              </div>
        </c:when>
      </c:choose>
    </div>
  </h1>
  <!--
  <table>
    <tr><td>Name:</td><td><strong>${bag.name}</strong></td></tr>
    <tr><td>Created:</td><td><im:dateDisplay date="${bag.dateCreated}"/></td></tr>
    <tr><td>Size:</td><td>${bag.size} record<c:if test="${bag.size != 1}">s</c:if></td></tr>
  </table>
  -->
</div>

<div style="clear:both;"></div>

<!-- convert -->
<div id="convertList" class="bochs">
  <h4 class="convert">Convert to a different type</h4>
  <html:form action="/modifyBagDetailsAction" styleId="bagDetailsForm">
  <html:hidden property="bagName" value="${bag.name}"/>
    <p>
      <tiles:insert name="convertBag.tile">
           <tiles:put name="bag" beanName="bag" />
           <tiles:put name="idname" value="cp" />
           <tiles:put name="orientation" value="h" />
      </tiles:insert>
    </p>
  </html:form>
</div>

<!-- export list -->
<div class="bochs">
  <h4 class="export">Download</h4>
  <c:set var="tableName" value="bag.${bag.name}" scope="request"/>
  <c:set var="pagedTable" value="${pagedResults}" scope="request"/>
  <tiles:get name="export.tile"/>
</div>

<!-- orthologues in other mines -->
<div id="otherMines" class="bochs last">
  <html:form action="/modifyBagDetailsAction" styleId="bagDetailsForm">
  <html:hidden property="bagName" value="${bag.name}"/>
    <tiles:insert page="/bagDisplayers.jsp">
        <tiles:put name="bag" beanName="bag"/>
           <tiles:put name="showOnLeft" value="false"/>
    </tiles:insert>
  </html:form>
</div>

<!-- tags -->
<c:if test="${PROFILE.loggedIn}">
  <div class="bochs">
      <c:set var="taggable" value="${bag}"/>
        <tiles:insert name="inlineTagEditor.tile">
          <tiles:put name="taggable" beanName="taggable"/>
            <tiles:put name="vertical" value="true"/>
            <tiles:put name="show" value="true"/>
    </tiles:insert>
  </div>
</c:if>

<div style="clear:both;"></div>

<tiles:insert page="/bagDisplayers.jsp">
  <tiles:put name="bag" beanName="bag"/>
  <tiles:put name="showOnLeft" value="true"/>
</tiles:insert>

<div style="clear:both;"></div>

<div id="alien">
  <div class="bochs noborder">
    <script type="text/javascript">
      // will show/hide the results table and toolbox & change the link appropriately (text, ico)<commit_msg>Blank external links box fix<commit_after><%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ 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" %>

<!-- bagDetails.jsp -->

<html:xhtml/>

<link rel="stylesheet" href="css/resultstables.css" type="text/css" />
<link rel="stylesheet" href="css/toolbar.css" type="text/css" media="screen" title="Toolbar Style" charset="utf-8"/>

<script type="text/javascript">
<!--//<![CDATA[
  var modifyDetailsURL = '<html:rewrite action="/modifyDetails"/>';
  var detailsType = 'bag';
//]]>-->
</script>
<script type="text/javascript" src="<html:rewrite page='/js/inlinetemplate.js'/>"></script>
<script type="text/javascript" src="<html:rewrite page='/js/widget.js'/>"></script>
<div class="body">
<c:choose>
<c:when test="${!empty bag}">









<div class="bochs wide">
  <h1>
    <span><fmt:message key="bagDetails.title"/></span> ${bag.name}
    <span>of</span> ${bag.size} ${bag.type}<c:if test="${bag.size != 1}">s</c:if>
    <small>created  <fmt:formatDate dateStyle="full" timeStyle="full" value="${bag.dateCreated}" /></small>
    <div class="description">
      <c:choose>
        <c:when test="${myBag == 'true'}">
            <div id="bagDescriptionDiv" onclick="jQuery('#bagDescriptionDiv').toggle();jQuery('#bagDescriptionTextarea').toggle();jQuery('#textarea').focus()">
                <c:choose>
                  <c:when test="${! empty bag.description}">
                      <p><c:out value="${bag.description}" escapeXml="false" /></p>
                    </c:when>
                   <c:otherwise>
                      <div id="emptyDesc"><fmt:message key="bagDetails.bagDescr"/></div>
                    </c:otherwise>
                </c:choose>
              </div>
              <div id="bagDescriptionTextarea" style="display:none">
                <textarea id="textarea"><c:if test="${! empty bag.description}"><c:out value="${fn:replace(bag.description,'<br/>','')}" /></c:if></textarea>
                <div class="buttons">
                    <input type="button" onclick="jQuery('#bagDescriptionTextarea').toggle();
                        jQuery('#bagDescriptionDiv').toggle(); return false;" value='<fmt:message key="confirm.cancel"/>' />
                    <input type="button" onclick="saveBagDescription('${bag.name}'); return false;" value='<fmt:message key="button.save"/>' />
                </div>
              </div>
        </c:when>
          <c:when test="${! empty bag.description}">
            <div id="bagDescriptionDiv">
                <b>Description:</b> ${bag.description}
              </div>
        </c:when>
      </c:choose>
    </div>
  </h1>
  <!--
  <table>
    <tr><td>Name:</td><td><strong>${bag.name}</strong></td></tr>
    <tr><td>Created:</td><td><im:dateDisplay date="${bag.dateCreated}"/></td></tr>
    <tr><td>Size:</td><td>${bag.size} record<c:if test="${bag.size != 1}">s</c:if></td></tr>
  </table>
  -->
</div>

<div style="clear:both;"></div>

<!-- convert -->
<div id="convertList" class="bochs">
  <h4 class="convert">Convert to a different type</h4>
  <html:form action="/modifyBagDetailsAction" styleId="bagDetailsForm">
  <html:hidden property="bagName" value="${bag.name}"/>
    <p>
      <tiles:insert name="convertBag.tile">
           <tiles:put name="bag" beanName="bag" />
           <tiles:put name="idname" value="cp" />
           <tiles:put name="orientation" value="h" />
      </tiles:insert>
    </p>
  </html:form>
</div>

<!-- export list -->
<div class="bochs">
  <h4 class="export">Download</h4>
  <c:set var="tableName" value="bag.${bag.name}" scope="request"/>
  <c:set var="pagedTable" value="${pagedResults}" scope="request"/>
  <tiles:get name="export.tile"/>
</div>

<!-- orthologues in other mines -->
<div id="otherMines" class="bochs last">
  <html:form action="/modifyBagDetailsAction" styleId="bagDetailsForm">
  <html:hidden property="bagName" value="${bag.name}"/>
    <tiles:insert page="/bagDisplayers.jsp">
        <tiles:put name="bag" beanName="bag"/>
           <tiles:put name="showOnLeft" value="false"/>
    </tiles:insert>
  </html:form>
</div>
<script type="text/javascript">
// not wanting to touch bagDisplayers.jsp tile, add External links header if said tile comes out blank
if (jQuery('#otherMines div.externalLinks').length == 0) {
  jQuery('#otherMines form').remove();
  jQuery('#otherMines').append('<div class="externalLinks"><h3>External links</h3><div id="externalLinksClear"></div></div>');
}
</script>

<!-- tags -->
<c:if test="${PROFILE.loggedIn}">
  <div class="bochs">
      <c:set var="taggable" value="${bag}"/>
        <tiles:insert name="inlineTagEditor.tile">
          <tiles:put name="taggable" beanName="taggable"/>
            <tiles:put name="vertical" value="true"/>
            <tiles:put name="show" value="true"/>
    </tiles:insert>
  </div>
</c:if>

<div style="clear:both;"></div>

<tiles:insert page="/bagDisplayers.jsp">
  <tiles:put name="bag" beanName="bag"/>
  <tiles:put name="showOnLeft" value="true"/>
</tiles:insert>

<div style="clear:both;"></div>

<div id="alien">
  <div class="bochs noborder">
    <script type="text/javascript">
      // will show/hide the results table and toolbox & change the link appropriately (text, ico)
{'fraction_non_alphanumeric': 0.22434782608695653, 'fraction_numerical': 0.002654462242562929, 'mean_word_length': 3.4163298302344383, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 337, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1081342', 'n_tokens_mistral': 3696, 'n_tokens_neox': 3578, 'n_words': 618}