<commit_before><html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>CollabNet Subversion Edge <g:message code="logs.page.show.title" args="${[params.fileName]}"/></title>
</head>

<content tag="title">
   <g:message code="server.page.edit.header" />
</content>

<g:render template="/server/leftNav" />

<body>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
 <table class="Container">
  <tbody>
    <tr class="ContainerHeader">
      <td><g:message code="logs.page.show.header.fileName" />: ${params.fileName} &nbsp;<g:message code="logs.page.show.header.size" />: ${fileSize} &nbsp;<g:message code="logs.page.show.header.lastModification" />: ${fileModification}</td>
    </tr>
    <g:if test="${file}">  
    <tr>
      <td>
        <!-- This is still in progress, need to look for grails ui component that does this gracefully  -->
        <div style="width: 800px; height: 300px; overflow: auto;">
<!-- Leave this left-justified so that spaces are not padded in the first line of the log -->        
<pre>
<% file.withReader { out << it } %>           
</pre>
        </div>
      </td>    
    </tr>
    </g:if>
  <g:else>
    <tr class="ItemListNoData">
        <td colspan="3"><g:message code="logs.page.show.header.fileNotFound" args="${[params.fileName]}"/></td>
      </tr>
  </g:else>
   
  <tr class="ContainerFooter">
        <td >
          <div class="AlignRight">
              <div class="Button"><div class="Middle">                
                <g:link target="_blank" action="show" params="[fileName : file.name, rawView : true]" class="Button"><g:message code="logs.page.show.button.viewRaw" /> &#133;</g:link>
              </div></div>
              <div class="Button"><div class="Middle">
                <g:link action="list" class="Button"><g:message code="logs.page.show.button.return" /></g:link>
              </div></div>
            </div>
        </td>
      </tr>
   </tbody>  
   </table>
</body>
</html>
<commit_msg>Changing the output formatting for the log view GSP<commit_after><%@ page import="org.apache.commons.lang.StringEscapeUtils" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>CollabNet Subversion Edge <g:message code="logs.page.show.title" args="${[params.fileName]}"/></title>
</head>

<content tag="title">
   <g:message code="server.page.edit.header" />
</content>

<g:render template="/server/leftNav" />

<body>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
 <table class="Container">
  <tbody>
    <tr class="ContainerHeader">
      <td><g:message code="logs.page.show.header.fileName" />: ${params.fileName} &nbsp;<g:message code="logs.page.show.header.size" />: ${fileSize} &nbsp;<g:message code="logs.page.show.header.lastModification" />: ${fileModification}</td>
    </tr>
    <g:if test="${file}">  
    <tr>
      <td>
        <!-- This is still in progress, need to look for grails ui component that does this gracefully  -->
        <div style="width: 800px; height: 300px; overflow: auto;">
<!-- Leave this left-justified so that spaces are not padded in the first line of the log -->        
<pre>
<%
file.withReader { reader ->
  String line
  while ( (line = reader.readLine() ) != null ) {
    out << StringEscapeUtils.escapeHtml(line) + "\n"
  }
}
%>           
</pre>
        </div>
      </td>    
    </tr>
    </g:if>
  <g:else>
    <tr class="ItemListNoData">
        <td colspan="3"><g:message code="logs.page.show.header.fileNotFound" args="${[params.fileName]}"/></td>
      </tr>
  </g:else>
   
  <tr class="ContainerFooter">
        <td >
          <div class="AlignRight">
              <div class="Button"><div class="Middle">                
                <g:link target="_blank" action="show" params="[fileName : file.name, rawView : true]" class="Button"><g:message code="logs.page.show.button.viewRaw" /> &#133;</g:link>
              </div></div>
              <div class="Button"><div class="Middle">
                <g:link action="list" class="Button"><g:message code="logs.page.show.button.return" /></g:link>
              </div></div>
            </div>
        </td>
      </tr>
   </tbody>  
   </table>
</body>
</html>

{'fraction_non_alphanumeric': 0.19986295111923252, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 2.827797202797203, 'pattern_counts': {'":': 0, '<': 148, '<?xml version=': 0, '>': 145, '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': '2203360', 'n_tokens_mistral': 1460, 'n_tokens_neox': 1430, 'n_words': 299}