<commit_before>"use strict";

var Hapi = require("hapi");
var server = new Hapi.Server();

var options = {
	port: 8000
};

server.connection(options);

server.register(require("inert"), function (err) {

    if (err) {
        throw err;
    }

    server.route({
        method: "GET",
        path: "/{param*}",
        handler: {
            directory: {
                path: "./public",
                listing: true
            }
        }
    });

    server.start(function () {
        console.log("Server running at: http://localhost:" + server.info.port); //eslint-disable-line no-console
    });
});
<commit_msg>adding env var for port<commit_after>"use strict";

var Hapi    = require("hapi");
var server  = new Hapi.Server();
var port    = process.env.PORT || 8000;

var options = {
	port: port
};

server.connection(options);

server.register(require("inert"), function (err) {

    if (err) {
        throw err;
    }

    server.route({
        method: "GET",
        path: "/{param*}",
        handler: {
            directory: {
                path: "./public",
                listing: true
            }
        }
    });

    server.start(function () {
        console.log("Server running at: http://localhost:" + server.info.port); //eslint-disable-line no-console
    });
});

{'fraction_non_alphanumeric': 0.16153846153846155, 'fraction_numerical': 0.006153846153846154, 'mean_word_length': 1.9301801801801801, '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': '6086679', 'n_tokens_mistral': 404, 'n_tokens_neox': 385, 'n_words': 88}