<commit_before><!doctype html>
<html>
  <head>
    <title>Socket.IO Latency</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
  </head>
  <body>
    <h1>Socket.IO Latency <span id="latency"></span></h1>
    <h2 id="transport">(connecting)</h2>
    <canvas id="chart" height="200"></canvas>

    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script>
    <script>
      // socket
      var socket = io.connect('http://' + document.domain + ':' + location.port);
      var char = $('chart').get(0);
      socket.on('connect', function() {
          if (chart.getContext) {
              render();
              window.onresize = render;
          }
          send();
      });
      socket.on('pong_from_server', function() {
          var latency = new Date - last;
          $('#latency').text(latency + 'ms');
          if (time)
              time.append(+new Date, latency);
          setTimeout(send, 100);
      });
      socket.on('disconnect', function() {
          if (smoothie)
              smoothie.stop();
          $('#transport').text('(disconnected)');
      });

      var last;
      function send() {
          last = new Date;
          socket.emit('ping_from_client');
          $('#transport').text(socket.io.engine.transport.name);
      }

      // chart
      var smoothie;
      var time;
      function render() {
          if (smoothie)
              smoothie.stop();
          chart.width = document.body.clientWidth;
          smoothie = new SmoothieChart();
          smoothie.streamTo(chart, 1000);
          time = new TimeSeries();
          smoothie.addTimeSeries(time, {
              strokeStyle: 'rgb(255, 0, 0)',
              fillStyle: 'rgba(255, 0, 0, 0.4)',
              lineWidth: 2
          });
      }
    </script>
  </body>
</html><commit_msg>resolve wrong variable and css element (#177)<commit_after><!doctype html>
<html>
  <head>
    <title>Socket.IO Latency</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
  </head>
  <body>
    <h1>Socket.IO Latency <span id="latency"></span></h1>
    <h2 id="transport">(connecting)</h2>
    <canvas id="chart" height="200"></canvas>

    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script>
    <script>
      // socket
      var socket = io.connect('http://' + document.domain + ':' + location.port);
      var chart = $('#chart').get(0);
      socket.on('connect', function() {
          if (chart.getContext) {
              render();
              window.onresize = render;
          }
          send();
      });
      socket.on('pong_from_server', function() {
          var latency = new Date - last;
          $('#latency').text(latency + 'ms');
          if (time)
              time.append(+new Date, latency);
          setTimeout(send, 100);
      });
      socket.on('disconnect', function() {
          if (smoothie)
              smoothie.stop();
          $('#transport').text('(disconnected)');
      });

      var last;
      function send() {
          last = new Date;
          socket.emit('ping_from_client');
          $('#transport').text(socket.io.engine.transport.name);
      }

      // chart
      var smoothie;
      var time;
      function render() {
          if (smoothie)
              smoothie.stop();
          chart.css('width', $(document).width());
          smoothie = new SmoothieChart();
          smoothie.streamTo(chart, 1000);
          time = new TimeSeries();
          smoothie.addTimeSeries(time, {
              strokeStyle: 'rgb(255, 0, 0)',
              fillStyle: 'rgba(255, 0, 0, 0.4)',
              lineWidth: 2
          });
      }
    </script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.1786407766990291, 'fraction_numerical': 0.0191747572815534, 'mean_word_length': 1.9927378358750907, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '4369085', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1272, 'n_words': 229}