<commit_before>'use strict';

var http = require('http');
var url = require('url');

// http.createServer(function(request, response) {
  // response.writeHead(200, {'Content-Type': 'text/plain'});
  // response.write('Hello World');
  // response.end();
// });

function start(route, handle) {
  function onRequest(request, response) {
    var pathname = url.parse(request.url).pathname;
    console.log('Request for ' + pathname + ' received.');

    route(handle, pathname, response);

    // response.writeHead(200, {'Content-Type': 'text/plain'});
    // var content = route(handle, pathname);
    // response.write(content);
    // response.end();
  }

  http.createServer(onRequest).listen(8888);
  console.log('Server has started.');
}

exports.start = start;<commit_msg>updating server.js<commit_after>'use strict';

var http = require('http');
var url = require('url');


function start(route, handle) {
  function onRequest(request, response) {
    var pathname = url.parse(request.url).pathname;
    console.log('Request for ' + pathname + ' received.');

    route(handle, pathname, response);

    // response.writeHead(200, {'Content-Type': 'text/plain'});
    // var content = route(handle, pathname);
    // response.write(content);
    // response.end();
  }

  http.createServer(onRequest).listen(8888);
  console.log('Server has started.');
}

exports.start = start;
{'fraction_non_alphanumeric': 0.18037518037518038, 'fraction_numerical': 0.012265512265512266, 'mean_word_length': 3.9184397163120566, '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': '279672', 'n_tokens_mistral': 440, 'n_tokens_neox': 425, 'n_words': 86}