<commit_before>var http = require('http');
var portscanner = require('portsacnner');
http.createServer(function(req, res) {

});
<commit_msg>modify<commit_after>var http = require('http');
var path = require('path');
var url = require('url');
var portscanner = require('portsacnner');
http.createServer(function(req, res) {
    var reqURL = req.url;
    var pathname = url.parse(reqURL).pathname;
    path.exists(pathname, function(exists) {
        if (!exists) {
            req.writeHead('404', {
                'Content-Type': 'text/plain'
            });
            req.write();
        }
    });
});

{'fraction_non_alphanumeric': 0.16940789473684212, 'fraction_numerical': 0.004934210526315789, 'mean_word_length': 3.06, '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': '1900098', 'n_tokens_mistral': 194, 'n_tokens_neox': 190, 'n_words': 36}