<commit_before>var WebSocketServer = require('websocket').server;
var WebSocketRouter = require('websocket').router;
var http = require('http');
var static = require('node-static');
var parseUrl = require('url').parse;
var fs = require('fs');
var path = require('path');
var less = require('less');
var coffeeCompile = require("coffee-script").compile;
var logger = require('../../lib/logger');

var server = http.createServer(function(request, response) {
  var url = parseUrl(request.url);
  var protocol = request.headers["porwarded-proto"] || "http:";
  var host = request.headers["host"];
  var base = protocol + "//" + host;
  
  if (url.path == '/status'){
    response.end("OK");
    return;
  }
});

<commit_msg>Serving 404s from non /status paths.<commit_after>var WebSocketServer = require('websocket').server;
var WebSocketRouter = require('websocket').router;
var http = require('http');
var static = require('node-static');
var parseUrl = require('url').parse;
var fs = require('fs');
var path = require('path');
var less = require('less');
var coffeeCompile = require("coffee-script").compile;
var logger = require('../../lib/logger');

var server = http.createServer(function(request, response) {
  var url = parseUrl(request.url);
  var protocol = request.headers["porwarded-proto"] || "http:";
  var host = request.headers["host"];
  var base = protocol + "//" + host;
  
  if (url.path == '/status'){
    response.end("OK");
  }
  else{
    write404(response);
  }
});


{'fraction_non_alphanumeric': 0.18670248488918736, 'fraction_numerical': 0.004029550033579583, 'mean_word_length': 4.687022900763359, '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': '869219', 'n_tokens_mistral': 466, 'n_tokens_neox': 451, 'n_words': 112}