<commit_before><!doctype html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Log Viewer</title>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/1.4.6/jquery.scrollTo.min.js"></script>
 <script type="text/javascript">
    $(function() {

    var conn;
    var log = $("#thread");
    var error_msg = new RegExp("ERROR");
     // Display a message
    function appendLog(msg) {
        var message = $("<div class='message'/>").appendTo(log)
        msg.appendTo(message)
        if (error_msg.test($(msg).text())) {
          message.addClass('error')
        }
        $('#thread').scrollTo('max')
    }

   if (window["WebSocket"]) {
        conn = new WebSocket("ws://{{.host}}/ws");
        conn.onclose = function(evt) {
            appendLog($("<div class='message'><p>Connection closed.</p></div>"))
        }
        conn.onmessage = function(evt) {
           appendLog($("<p/>").text(evt.data + " ERROR ")) 
        }
    } else {
        appendLog($("<div><b>Your browser does not support WebSockets.</b></div>"))
    }
    });
</script>
<style type="text/css" media="all">
html, body {
    background: #000;
    padding: 0;
    margin: 0;
    font-family: Helvetica, Arial, Sans;
}


h1 {
    background: #111;
    margin: 0;
    color: #fff;
    padding: 7px 14px;
    font-size: 18px;<commit_msg>fixed defect related to remote host<commit_after><!doctype html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Log Viewer</title>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/1.4.6/jquery.scrollTo.min.js"></script>
 <script type="text/javascript">
    $(function() {

    var conn;
    var log = $("#thread");
    var error_msg = new RegExp("ERROR");
     // Display a message
    function appendLog(msg) {
        var message = $("<div class='message'/>").appendTo(log)
        msg.appendTo(message)
        if (error_msg.test($(msg).text())) {
          message.addClass('error')
        }
        $('#thread').scrollTo('max')
    }

   if (window["WebSocket"]) {
        conn = new WebSocket("ws://"+ window.location.host +"/ws");
        conn.onclose = function(evt) {
            appendLog($("<div class='message'><p>Connection closed.</p></div>"))
        }
        conn.onmessage = function(evt) {
           appendLog($("<p/>").text(evt.data)) 
        }
    } else {
        appendLog($("<div><b>Your browser does not support WebSockets.</b></div>"))
    }
    });
</script>
<style type="text/css" media="all">
html, body {
    background: #000;
    padding: 0;
    margin: 0;
    font-family: Helvetica, Arial, Sans;
}


h1 {
    background: #111;
    margin: 0;
    color: #fff;
    padding: 7px 14px;
    font-size: 18px;
{'fraction_non_alphanumeric': 0.19560223170331473, 'fraction_numerical': 0.01444043321299639, 'mean_word_length': 2.7863354037267083, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '4961729', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1014, 'n_words': 187}