<commit_before>var http = require('http')
  , express = require('express')
  , getRawBody = require('raw-body');

// Forwards any data POSTed to /events to an event-stream at /events.
// Serves files from /static otherwise.
function createServer() {
  var app = express();

  app.get('/events', function(req, res) {
    req.socket.setTimeout(Infinity);
    res.writeHead(200, {
      'Content-Type': 'text/event-stream',
      'Cache-Control': 'no-cache',
      'Connection': 'keep-alive',
    });

    function forwardEvent(data) {
      res.write('name: update\ndata: ');<commit_msg>remove bogus name:<commit_after>var http = require('http')
  , express = require('express')
  , getRawBody = require('raw-body');

// Forwards any data POSTed to /events to an event-stream at /events.
// Serves files from /static otherwise.
function createServer() {
  var app = express();

  app.get('/events', function(req, res) {
    req.socket.setTimeout(Infinity);
    res.writeHead(200, {
      'Content-Type': 'text/event-stream',
      'Cache-Control': 'no-cache',
      'Connection': 'keep-alive',
    });

    function forwardEvent(data) {
      res.write('data: ');
{'fraction_non_alphanumeric': 0.16623600344530576, 'fraction_numerical': 0.00516795865633075, 'mean_word_length': 3.418250950570342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4275930', 'n_tokens_mistral': 374, 'n_tokens_neox': 363, 'n_words': 87}