<commit_before>import discord
import commands

bot = discord.Client()

@bot.event
def on_ready():
    print('Logged in as:')
    print('Username: ' + bot.user.name)
    print('ID: ' + bot.user.id)
    print('------')

@bot.event
def on_message(message):
    commands.dispatch_messages(bot, message)

if __name__ == '__main__':
    commands.load_config()
    bot.login(commands.config['username'], commands.config['password'])
    bot.run()
<commit_msg>Add welcome message for /r/splatoon chat.<commit_after>import discord
import commands

bot = discord.Client()

@bot.event
def on_ready():
    print('Logged in as:')
    print('Username: ' + bot.user.name)
    print('ID: ' + bot.user.id)
    print('------')

@bot.event
def on_message(message):
    commands.dispatch_messages(bot, message)

@bot.event
def on_member_join(member):
    if member.server.id == '86177841854566400':
        # check if this is /r/Splatoon
        channel = discord.utils.find(lambda c: c.id == '86177841854566400', member.server.channels)
        if channel is not None:
            bot.send_message(channel, 'Welcome {}, to the /r/Splatoon Discord.'.format(member.name))

if __name__ == '__main__':
    commands.load_config()
    bot.login(commands.config['username'], commands.config['password'])
    bot.run()

{'fraction_non_alphanumeric': 0.15712074303405574, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 3.6344086021505375, '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': '2899911', 'n_tokens_mistral': 453, 'n_tokens_neox': 424, 'n_words': 91}