<commit_before>DEBUG = true;

var fu = exports;

var NOT_FOUND = "Not Found\n";
function notFound(req, res) {
  res.sendHeader(404, [ ["Content-Type", "text/plain"]
                    , ["Content-Length", NOT_FOUND.length]
                    ]);
  res.sendBody(NOT_FOUND);
  res.finish();
}

var getMap = {};

fu.get = function (path, handler) {
  getMap[path] = handler;
};

var server = new node.http.Server(function (req, res) {
  if (req.method === "GET" || req.method === "HEAD") {
    var handler = getMap[req.uri.path] || notFound;<commit_msg>Change 'new node.http.Server' to 'node.http.createServer' for 0.1 compatibility.<commit_after>DEBUG = true;

var fu = exports;

var NOT_FOUND = "Not Found\n";
function notFound(req, res) {
  res.sendHeader(404, [ ["Content-Type", "text/plain"]
                    , ["Content-Length", NOT_FOUND.length]
                    ]);
  res.sendBody(NOT_FOUND);
  res.finish();
}

var getMap = {};

fu.get = function (path, handler) {
  getMap[path] = handler;
};

var server = node.http.createServer(function (req, res) {
  if (req.method === "GET" || req.method === "HEAD") {
    var handler = getMap[req.uri.path] || notFound;
{'fraction_non_alphanumeric': 0.17561807331628304, 'fraction_numerical': 0.0068201193520886615, 'mean_word_length': 3.0905923344947737, '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': '3640364', 'n_tokens_mistral': 412, 'n_tokens_neox': 401, 'n_words': 89}