<commit_before>import datetime

import discord
from discord.ext import commands


class Meta:
    def __init__(self, bot: commands.Bot):
        self.bot = bot
        self.rustacean_role = None
        self.unsafe_role = None

    def _setup_commands(self, ctx):
        if not self.rustacean_role:
            self.rustacean_role = discord.utils.get(
                ctx.guild.roles, id=319_953_207_193_501_696
            )

        if not self.unsafe_role:
            self.unsafe_role = discord.utils.get(
                ctx.guild.roles, id=468_114_715_210_678_272
            )

        if not self.bot.emoji_rustok:
            self.bot.log.info("Loading the rustOk emoji...")
            self.bot.emoji_rustok = discord.utils.get(self.bot.emojis, name="rustOk")

    @commands.command()
    async def uptime(self, ctx: commands.Context):
        """Tells you how long the bot has been up for."""

        now = datetime.datetime.utcnow()
        delta = now - self.bot.uptime
        hours, remainder = divmod(int(delta.total_seconds()), 3600)
        minutes, seconds = divmod(remainder, 60)
        days, hours = divmod(hours, 24)

        fmt = "{h}h {m}m {s}s"
        if days:
            fmt = "{d}d " + fmt
<commit_msg>Remove redundant check<commit_after>import datetime

import discord
from discord.ext import commands


class Meta:
    def __init__(self, bot: commands.Bot):
        self.bot = bot
        self.rustacean_role = None
        self.unsafe_role = None

    def _setup_commands(self, ctx):
        if not self.rustacean_role:
            self.rustacean_role = discord.utils.get(
                ctx.guild.roles, id=319_953_207_193_501_696
            )

        if not self.unsafe_role:
            self.unsafe_role = discord.utils.get(
                ctx.guild.roles, id=468_114_715_210_678_272
            )

    @commands.command()
    async def uptime(self, ctx: commands.Context):
        """Tells you how long the bot has been up for."""

        now = datetime.datetime.utcnow()
        delta = now - self.bot.uptime
        hours, remainder = divmod(int(delta.total_seconds()), 3600)
        minutes, seconds = divmod(remainder, 60)
        days, hours = divmod(hours, 24)

        fmt = "{h}h {m}m {s}s"
        if days:
            fmt = "{d}d " + fmt

{'fraction_non_alphanumeric': 0.10466637592673354, 'fraction_numerical': 0.03837767117313563, 'mean_word_length': 2.0791946308724834, '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': '1253169', 'n_tokens_mistral': 818, 'n_tokens_neox': 718, 'n_words': 170}