<commit_before>from discord.ext import commands


class Game:
    def __init__(self, bot):
        self.bot = bot

    @commands.command()
    async def play(self, *game: str):
        """
        Play a game

        Keyword arguments:
        game -- The game you want to play
        """
        game: str = ' '.join(game)
        await self.bot.say('You start playing %s.' % (game if game else 'with yourself'))

    @commands.command()
    async def run(self):
        """
        Run away from the fight
        """
        await self.bot.say('You run away like a coward.')


def setup(bot):
    bot.add_cog(Game(bot))<commit_msg>Easter egg in play command. Example context access.<commit_after>from discord.ext import commands


class Game:
    def __init__(self, bot):
        self.bot = bot

    @commands.command()
    async def play(self, *game: str):
        """
        Play a game

        Keyword arguments:
        game -- The game you want to play
        """
        game: str = ' '.join(game) if game else 'with yourself'
        if game.lower() == 'thermonuclear war':
            await self.bot.say('You die.')
            await self.bot.say('Everyone dies.')
        else:
            await self.bot.say('You start playing {}.'.format(game))

    @commands.command()
    async def run(self):
        """
        Run away from the fight
        """
        await self.bot.say('You run away like a coward.')

    @commands.command(pass_context=True)
    async def whoami(self, ctx, *words: str):
        words: str = ' '.join(words) if words else None
        extra: str = ''
        if words:
            extra = ' You said: {}'.format(words)
        await self.bot.say('You\'re {}.{}'.format(ctx.message.author, extra))


def setup(bot):
    bot.add_cog(Game(bot))
{'fraction_non_alphanumeric': 0.13101903695408734, 'fraction_numerical': 0.0, 'mean_word_length': 2.033955857385399, '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': '1652029', 'n_tokens_mistral': 539, 'n_tokens_neox': 528, 'n_words': 166}