<commit_before># Poll command
async def ex_poll(dclient, channel, author, mention, a, poll, poll_question, options, votes, voted, cmd_char):
    if channel.permissions_for(author):
        a = a.split(' ')
        if len(a) >= 1:
            if a[0].lower() == 'start':
                if len(a) >= 3:
                    if poll:
                        await dclient.send_message(channel, '{}, poll is already running! If you want to close the '
                                                            'poll, do {}poll stop!'.format(mention, cmd_char))
                    else:
                        poll = True
                        i = 2
                        while i < len(a):
                            poll_question += a[i] + ' '
                            i += 1
                        options = a[1].lower().split('|')
                        votes = [0] * len(options)
                        voted = []
                        await dclient.send_message(channel, '''```CSS
[Poll Started]: {}
Answer: -vote <{}>```'''.format(poll_question, '|'.join(options)))
                else:
                    await dclient.send_message(channel, '{}, **USAGE:** {}poll start <options1|options2|etc...> '
                                                        '<question>'.format(mention, cmd_char))
            elif a[0].lower() == 'stop':
                if poll:
                    r = '''```CSS
[Poll Closed]: ''' + poll_question + '''
Results:
'''
                    cnt = 0<commit_msg>Force users to add more than one options for poll<commit_after># Poll command
async def ex_poll(dclient, channel, author, mention, a, poll, poll_question, options, votes, voted, cmd_char):
    if channel.permissions_for(author):
        a = a.split(' ')
        if len(a) >= 1:
            if a[0].lower() == 'start':
                if len(a) >= 3:
                    if '|' in a[1]:
                        if poll:
                            await dclient.send_message(channel, '{}, poll is already running! If you want to close the '
                                                                'poll, do {}poll stop!'.format(mention, cmd_char))
                        else:
                            poll = True
                            i = 2
                            while i < len(a):
                                poll_question += a[i] + ' '
                                i += 1
                            options = a[1].lower().split('|')
                            votes = [0] * len(options)
                            voted = []
                            await dclient.send_message(channel, '''```CSS
[Poll Started]: {}
Answer: -vote <{}>```'''.format(poll_question, '|'.join(options)))
                    else:
                        await dclient.send_message(channel, "{}, there can't be a vote when there's no options to vote "
                                                            "for, right? (Ex: {}poll start yes|no LIke this?"
                                                   .format(mention, cmd_char))
                else:
                    await dclient.send_message(channel, '{}, **USAGE:** {}poll start <options1|options2|etc...> '
                                                        '<question>'.format(mention, cmd_char))
            elif a[0].lower() == 'stop':
                if poll:
                    r = '''```CSS
[Poll Closed]: ''' + poll_question + '''
Results:
'''
                    cnt = 0
{'fraction_non_alphanumeric': 0.12880966072455435, 'fraction_numerical': 0.006612995974698103, 'mean_word_length': 1.084481725584182, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 13, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1913416', 'n_tokens_mistral': 878, 'n_tokens_neox': 839, 'n_words': 229}