<commit_before>'use strict';

const express = require("express"),
    path = require('path'),
    compression = require('compression');

const app = express();

app.use(compression());
app.use(express.static(path.resolve('build')));

const config = buildConfig();
app.listen(config.port, config.ipAddress, function() {
    var url = `http://${config.ipAddress}:${config.port}`;
    console.log(`Your server is listening on port ${config.port} (${url})`);
});

function buildConfig() {
    return {
        ipAddress: "127.0.0.1",
        port: process.env.PORT || 3000
    };
}

/*
function buildOpenshiftConfig() {
    let ip = process.env.OPENSHIFT_NODEJS_IP;
    let port = process.env.OPENSHIFT_NODEJS_PORT;

    let config = buildConfig();
    if (ip) {
        config.ipAddress = ip;
    } else {
        console.warn(`No OPENSHIFT_NODEJS_IP var, using ${config.ipAddress}`)
    }

    if (port) {
        config.port = port;
    };

    return config;
}
*/<commit_msg>updated server.js<commit_after>'use strict';

const express = require("express"),
    path = require('path'),
    compression = require('compression');

const app = express();

app.use(compression());
app.use(express.static(path.resolve('build')));

app.listen(process.env.PORT || 3000, function() {
    let address = this.address();
    console.log(address);
    let url = `http://localhost:${address.port}`;
    console.log(`Server listening on port ${address.port} (${url})`);
});
{'fraction_non_alphanumeric': 0.1755829903978052, 'fraction_numerical': 0.009602194787379973, 'mean_word_length': 3.6613418530351436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1299747', 'n_tokens_mistral': 468, 'n_tokens_neox': 458, 'n_words': 97}