<commit_before>var PollModule = function () {
};

PollModule.prototype.Message = function(message)
{
    if(message.deletable)
    {
        message.delete();
    }
    var keyword = 'poll';
    var pollIndex = message.content.indexOf(keyword);
    var questionmarkIndex = message.content.lastIndexOf('?');

    var question = `**${message.author.username} polled:**\n`;
    question += message.content.substring(pollIndex + keyword.length,questionmarkIndex+1).trim();
    var options = message.content.substring(questionmarkIndex+1).trim().split(' ').map(s => s.replace(/[<>]/g, ''));

    if(question.length > 0 && options.length > 0)
    {
        message.channel.send(question).then(function (poll) {
            for (var i = 0; i < options.length; i++) {
                poll.react(options[i]);
            }
        });
    }
}

module.exports = PollModule;
<commit_msg>poll no longer requires a question mark<commit_after>var PollModule = function () {
};

PollModule.prototype.Message = function(message)
{
    if(message.deletable)
    {
        message.delete();
    }
    var keyword = 'poll';
    var pollIndex = message.content.indexOf(keyword);
    var questionmarkIndex = message.content.indexOf(':') - 1;

    var question = `**${message.author.username} asked:**\n`;
    question += message.content.substring(pollIndex + keyword.length,questionmarkIndex+1).trim();
    var options = message.content.substring(questionmarkIndex+1).trim().split(' ').map(s => s.replace(/[<>]/g, ''));

    if(question.length > 0 && options.length > 0)
    {
        message.channel.send(question).then(function (poll) {
            for (var i = 0; i < options.length; i++) {
                poll.react(options[i]);
            }
        });
    }
}

module.exports = PollModule;

{'fraction_non_alphanumeric': 0.1634349030470914, 'fraction_numerical': 0.006094182825484765, 'mean_word_length': 2.7625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5234947', 'n_tokens_mistral': 550, 'n_tokens_neox': 535, 'n_words': 95}