<commit_before>var http = require('http');
var fs = require('fs');

var server = http.createServer(function (req, res) {
  var action = req.method + ' ' + req.url;

  switch(action) {
    case 'GET /':
      res.writeHead(200, { 'Content-Type': 'text/html' });
      fs.createReadStream('app/app.html').pipe(res);
      break;
    default:
      res.writeHead(404);
      res.end('Not Found\n')
  }
});

server.listen(3000);
console.log("http server listening on http://localhost:3000");<commit_msg>updated server.js to use es6 syntax. fixes #4.<commit_after>const http = require('http');
const fs = require('fs');

var port = 3000;

const server = http.createServer((req, res) => {
  var action = req.method + ' ' + req.url;

  switch(action) {
    case 'GET /':
      res.writeHead(200, { 'Content-Type': 'text/html' });
      fs.createReadStream('app/app.html').pipe(res);
      break;
    default:
      res.writeHead(404);
      res.end('Not Found\n')
  }
});

server.listen(port);
console.log(`http server listening on http://localhost:${port}`);
{'fraction_non_alphanumeric': 0.18536121673003803, 'fraction_numerical': 0.024714828897338403, 'mean_word_length': 3.3875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6660178', 'n_tokens_mistral': 372, 'n_tokens_neox': 351, 'n_words': 74}