<commit_before><%@ page import="java.util.ArrayList"%>
<%@ page import="java.sql.*"%>
<%@page import="edu.ucsf.mousedatabase.HTMLGeneration"%>
<%@page import="edu.ucsf.mousedatabase.DBConnect"%>
<%@ page import="edu.ucsf.mousedatabase.objects.*"%>
<%=HTMLGeneration.getPageHeader(null,false,true) %>
<%=HTMLGeneration.getNavBar("EditMouseSelection.jsp", true) %>

<%@ include file="protectAgainstDuplicateHolders.jspf" %>
<%


  if (request.getParameter("id") == null)
  {
    %>
    <div class="site_container">
    <h2>No record specified</h2>
    </div>
    <%
    return;
  }
    int mouseID = Integer.parseInt(request.getParameter("id"));


    ArrayList<MouseRecord> records = DBConnect.getMouseRecord(mouseID);
    if(records.size() < 1)
    {
      %>
    <div class="site_container">
    <h2>Record #<%=mouseID %> not found</h2>
    </div>
    <%
    return;
    }

    MouseRecord record = records.get(0);

    if(record.getStatus() != null && record.getStatus().equalsIgnoreCase("incomplete"))
  {
    %>
    <div class="site_container">
    <h2>This record is part of an incomplete submission.  Please go to the 'hold' submissions page and click the 'create new record' link to edit.</h2>
    </div>
    <%
    return;
  }

    String existingRecord = HTMLGeneration.getMouseTable(records,true,false,true);
    String editForm = HTMLGeneration.getEditMouseForm(record);

%>


<div class="site_container">
<h2>Editing record# <%=record.getMouseID() %>: <%=record.getMouseName() %> (<%= record.getMouseType() %>  )
</h2>
<%=existingRecord %>
<%=editForm %>

</div>
<commit_msg>Add space in edit record title<commit_after><%@ page import="java.util.ArrayList"%>
<%@ page import="java.sql.*"%>
<%@page import="edu.ucsf.mousedatabase.HTMLGeneration"%>
<%@page import="edu.ucsf.mousedatabase.DBConnect"%>
<%@ page import="edu.ucsf.mousedatabase.objects.*"%>
<%=HTMLGeneration.getPageHeader(null,false,true) %>
<%=HTMLGeneration.getNavBar("EditMouseSelection.jsp", true) %>

<%@ include file="protectAgainstDuplicateHolders.jspf" %>
<%


  if (request.getParameter("id") == null)
  {
    %>
    <div class="site_container">
    <h2>No record specified</h2>
    </div>
    <%
    return;
  }
    int mouseID = Integer.parseInt(request.getParameter("id"));


    ArrayList<MouseRecord> records = DBConnect.getMouseRecord(mouseID);
    if(records.size() < 1)
    {
      %>
    <div class="site_container">
    <h2>Record #<%=mouseID %> not found</h2>
    </div>
    <%
    return;
    }

    MouseRecord record = records.get(0);

    if(record.getStatus() != null && record.getStatus().equalsIgnoreCase("incomplete"))
  {
    %>
    <div class="site_container">
    <h2>This record is part of an incomplete submission.  Please go to the 'hold' submissions page and click the 'create new record' link to edit.</h2>
    </div>
    <%
    return;
  }

    String existingRecord = HTMLGeneration.getMouseTable(records,true,false,true);
    String editForm = HTMLGeneration.getEditMouseForm(record);

%>


<div class="site_container">
<h2>Editing record # <%=record.getMouseID() %>: <%=record.getMouseName() %> (<%= record.getMouseType() %>  )
</h2>
<%=existingRecord %>
<%=editForm %>

</div>

{'fraction_non_alphanumeric': 0.17794486215538846, 'fraction_numerical': 0.006265664160401002, 'mean_word_length': 4.158319870759289, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 73, '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': '7136418', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1065, 'n_words': 191}