<commit_before>const logger = require('./services/logger');
const config = require('./services/config');
const { getMyIpAddresses } = require('./services/get-my-ip-addresses');
const app = require('./app');

app.listen(config.port, (err) => {
    if (err) {
        logger.error(`RPNow failed to start: ${err}`);
    } else {
        logger.info('RPNow is running!');
        logger.info(`You may access it in your browser at http://localhost:${config.port}`);
        logger.info("Other devices should navigate to this computer's network IP, which is probably one of the following:")
        const addresses = getMyIpAddresses().map(ip => `http://${ip}:${config.port}`);
        logger.info(...addresses);
        logger.info('Have fun!');
    }
});<commit_msg>Slightly improve formatting<commit_after>const logger = require('./services/logger');
const config = require('./services/config');
const { getMyIpAddresses } = require('./services/get-my-ip-addresses');
const app = require('./app');

app.listen(config.port, (err) => {
    if (err) {
        logger.error(`RPNow failed to start: ${err}`);
    } else {
        logger.info('RPNow is running!');
        logger.info(`You may access it in your browser at http://localhost:${config.port}`);
        const addresses = getMyIpAddresses().map(ip => `http://${ip}:${config.port}`);
        if (addresses.length === 0) {
            logger.info("(We could not determine what address it is available at for other computers.)");
        } else if(addresses.length === 1) {
            logger.info(`Other devices should navigate to this computer's local network IP, which is probably: ${addresses[0]}`);
        } else {
            logger.info("Other devices should navigate to this computer's local network IP, which is probably one of the following:")
            addresses.forEach(address => logger.info(address));
        }
        logger.info('Have fun!');
    }
});
{'fraction_non_alphanumeric': 0.16389177939646202, 'fraction_numerical': 0.0015608740894901144, 'mean_word_length': 3.189542483660131, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1010559', 'n_tokens_mistral': 531, 'n_tokens_neox': 529, 'n_words': 152}