<commit_before>'use strict';

require('dotenv').config();

const low   = require('lowdb');
const https = require('https');

/*
 * Message
 * Put together the message to post to the chat
 * Arguements: input - an array of fixtures
 */
function message(input) {
    // write a message to post to the chat
    let message = 'Kicking off soon:\n';

    // get those fixtures in a more appropriate format for posting
    for(let i = 0; i < input.length; i++) {
        // remove ' FC', 'AFC ', or ' SC' from team names (for shorter names in chat)
        input[i].homeTeamName = input[i].homeTeamName.replace(/ FC|AFC | SC/g, '');
        input[i].awayTeamName = input[i].awayTeamName.replace(/ FC|AFC | SC/g, '');

        input[i].message = input[i].homeTeamName + ' v ' + input[i].awayTeamName;
    }

    // add each fixture to the message
    for(let i = 0; i < input.length; i++) {
        message += input[i].message;

        if(i+1 != input.length) {
            message += ",\n";
        }
    }

    return message;
}

module.exports = message;
<commit_msg>Update club name string replacement<commit_after>'use strict';

require('dotenv').config();

const low   = require('lowdb');
const https = require('https');

/*
 * Message
 * Put together the message to post to the chat
 * Arguements: input - an array of fixtures
 */
function message(input) {
    // write a message to post to the chat
    let message = 'Kicking off soon:\n';

    // get those fixtures in a more appropriate format for posting
    for(let i = 0; i < input.length; i++) {
        // remove ' FC', 'AFC ', or ' SC' from team names (for shorter names in chat)
        input[i].homeTeamName = input[i].homeTeamName.replace(/ FC| FC|AFC | SC| CF|SL |VfL /g, '');
        input[i].awayTeamName = input[i].awayTeamName.replace(/ FC| FC|AFC | SC| CF|SL |VfL /g, '');

        input[i].message = input[i].homeTeamName + ' v ' + input[i].awayTeamName;
    }

    // add each fixture to the message
    for(let i = 0; i < input.length; i++) {
        message += input[i].message;

        if(i+1 != input.length) {
            message += ",\n";
        }
    }

    return message;
}

module.exports = message;

{'fraction_non_alphanumeric': 0.15123739688359303, 'fraction_numerical': 0.002749770852428964, 'mean_word_length': 2.5963756177924218, 'pattern_counts': {'":': 0, '<': 7, '<?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': '55421', 'n_tokens_mistral': 703, 'n_tokens_neox': 684, 'n_words': 218}