<commit_before>from datetime import datetime

from discord.ext import commands


class ChannelOrMember(commands.Converter):
    async def convert(self, ctx, argument):
        try:
            return await commands.TextChannelConverter().convert(ctx, argument)
        except commands.BadArgument:
            return await commands.MemberConverter().convert(ctx, argument)


class UserRaidEndTime(commands.Converter):
    async def convert(self, ctx, argument):
        try:
            return datetime.strptime(argument, '%m/%d/%y %H')
        except ValueError:
            raise commands.BadArgument(f'Unable to parse end time `{argument}` expected "MM/DD/YY 24H"')<commit_msg>UserRaidEndTime converter now expects minutes.<commit_after>from datetime import datetime

from discord.ext import commands


class ChannelOrMember(commands.Converter):
    async def convert(self, ctx, argument):
        try:
            return await commands.TextChannelConverter().convert(ctx, argument)
        except commands.BadArgument:
            return await commands.MemberConverter().convert(ctx, argument)


class UserRaidEndTime(commands.Converter):
    async def convert(self, ctx, argument):
        try:
            return datetime.strptime(argument, '%m/%d/%y %H:%M')
        except ValueError:
            raise commands.BadArgument(f'Unable to parse end time `{argument}` expected "mm/dd/yy 24H:MM"')
{'fraction_non_alphanumeric': 0.09721229449606862, 'fraction_numerical': 0.0028591851322373124, 'mean_word_length': 3.40251572327044, 'pattern_counts': {'":': 0, '<': 3, '<?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': '481109', 'n_tokens_mistral': 364, 'n_tokens_neox': 356, 'n_words': 103}