<commit_before>var IPADDRESS = [
    process.env.BIND_IP,
    process.env.OPENSHIFT_NODEJS_IP,
    '127.0.0.1'
];

var MONGODB = [
    process.env.MONGOLAB_URI,
    process.env.MONGOHQ_URL,
    process.env.OPENSHIFT_MONGODB_DB_URL,
    'mongodb://localhost/linear'
];

var PORT = [
    process.env.PORT,
    process.env.OPENSHIFT_NODEJS_PORT,
    5000
];

module.exports = {

    ipaddress: function () {

        return IPADDRESS.filter(function (value) { return value; })[0];

    },

    mongodb: function () {

        return MONGODB.filter(function (value) { return value; })[0];

    },

    port: function () {

        return PORT.filter(function (value) { return value; })[0];

    }

};
<commit_msg>Changed default IP address to work with Heroku.<commit_after>var IPADDRESS = [
    process.env.BIND_IP,
    process.env.OPENSHIFT_NODEJS_IP,
    '0.0.0.0'
];

var MONGODB = [
    process.env.MONGOLAB_URI,
    process.env.MONGOHQ_URL,
    process.env.OPENSHIFT_MONGODB_DB_URL,
    'mongodb://localhost/linear'
];

var PORT = [
    process.env.PORT,
    process.env.OPENSHIFT_NODEJS_PORT,
    8080
];

module.exports = {

    ipaddress: function () {

        return IPADDRESS.filter(function (value) { return value; })[0];

    },

    mongodb: function () {

        return MONGODB.filter(function (value) { return value; })[0];

    },

    port: function () {

        return PORT.filter(function (value) { return value; })[0];

    }

};

{'fraction_non_alphanumeric': 0.1413793103448276, 'fraction_numerical': 0.016551724137931035, 'mean_word_length': 2.730077120822622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4355074', 'n_tokens_mistral': 547, 'n_tokens_neox': 514, 'n_words': 89}