<commit_before>﻿using CupCake.Core.Log;
using CupCake.Messages.Receive;
using CupCake.Players;

namespace CupCake.Server.Muffins
{
    public class LogMuffin : CupCakeMuffin
    {
        protected override void Enable()
        {
            this.Events.Bind<SayPlayerEvent>(this.OnSay);
            this.Events.Bind<WriteReceiveEvent>(this.OnWrite);
            this.Events.Bind<InfoReceiveEvent>(this.OnInfo);
            this.Events.Bind<UpgradeReceiveEvent>(this.OnUpgrade);
        }

        private void OnUpgrade(object sender, UpgradeReceiveEvent e)
        {
            this.Logger.Log(LogPriority.Message, "The game has been updated.");
        }

        private void OnInfo(object sender, InfoReceiveEvent e)
        {
            this.Logger.LogPlatform.Log(e.Title, LogPriority.Message, e.Text);
        }

        private void OnWrite(object sender, WriteReceiveEvent e)<commit_msg>Make info messages look better<commit_after>﻿using CupCake.Core.Log;
using CupCake.Messages.Receive;
using CupCake.Players;

namespace CupCake.Server.Muffins
{
    public class LogMuffin : CupCakeMuffin
    {
        protected override void Enable()
        {
            this.Events.Bind<SayPlayerEvent>(this.OnSay);
            this.Events.Bind<WriteReceiveEvent>(this.OnWrite);
            this.Events.Bind<InfoReceiveEvent>(this.OnInfo);
            this.Events.Bind<UpgradeReceiveEvent>(this.OnUpgrade);
        }

        private void OnUpgrade(object sender, UpgradeReceiveEvent e)
        {
            this.Logger.Log(LogPriority.Message, "The game has been updated.");
        }

        private void OnInfo(object sender, InfoReceiveEvent e)
        {
            this.Logger.Log(LogPriority.Message, e.Title);
            this.Logger.Log(LogPriority.Message, e.Text);
        }

        private void OnWrite(object sender, WriteReceiveEvent e)
{'fraction_non_alphanumeric': 0.09649595687331536, 'fraction_numerical': 0.0, 'mean_word_length': 2.5968992248062017, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4535244', 'n_tokens_mistral': 549, 'n_tokens_neox': 521, 'n_words': 98}