<commit_before>IPWhitelist = function() {

    var environment = new Environment(),
        firewall = new Firewall(),
        whitelist = environment.getWhitelist(),
        clientIP;

    WebApp.connectHandlers.use(function(request, response, next) {
        clientIP = request.headers['x-forwarded-for'];
        if (!firewall.allow(clientIP, whitelist)) {
            response.writeHead(404);
            response.end('Page Not Found');
        } else {
            next();
        }
    });
};

<commit_msg>resolves #4. Removed body when returning a 404.<commit_after>IPWhitelist = function() {

    var environment = new Environment(),
        firewall = new Firewall(),
        whitelist = environment.getWhitelist(),
        clientIP;

    WebApp.connectHandlers.use(function(request, response, next) {
        clientIP = request.headers['x-forwarded-for'];
        if (!firewall.allow(clientIP, whitelist)) {
            response.writeHead(404);
            response.end();
        } else {
            next();
        }
    });
};


{'fraction_non_alphanumeric': 0.1295585412667946, 'fraction_numerical': 0.009596928982725527, 'mean_word_length': 2.279874213836478, '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': '2467555', 'n_tokens_mistral': 303, 'n_tokens_neox': 284, 'n_words': 57}