<commit_before>var Webtail = {
  run: function(port) {
    jQuery(function($) {
      var socket = new (WebSocket || MozWebSocket)('ws://localhost:' + port),
          body   = $('body');

      socket.onmessage = function(message) {
        // Insert a new line
        $('<pre>').text(message.data).appendTo('body');

        // Scroll to bottom of the page
        $('html, body').scrollTop($(document).height());

        // Trigger onmessage event
        body.trigger('onmessage');
      };
    });
  }
};
<commit_msg>Ignore serial empty lines in logs<commit_after>var Webtail = {
  run: function(port) {
    jQuery(function($) {
      var socket = new (WebSocket || MozWebSocket)('ws://localhost:' + port),
          body   = $('body');

      socket.onmessage = function(message) {
        // To ignore serial empty lines
        if (message.data == '\n' && $('pre:last').text() == '\n') return;

        // Insert a new line
        $('<pre>').text(message.data).appendTo('body');

        // Scroll to bottom of the page
        $('html, body').scrollTop($(document).height());

        // Trigger onmessage event
        body.trigger('onmessage');
      };
    });
  }
};

{'fraction_non_alphanumeric': 0.18174133558748942, 'fraction_numerical': 0.0, 'mean_word_length': 2.3072625698324023, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '878569', 'n_tokens_mistral': 355, 'n_tokens_neox': 342, 'n_words': 80}