<commit_before>package com.github.otbproject.otbproject.bot.beam;

import pro.beam.api.resource.chat.events.DeleteMessageEvent;
import pro.beam.api.resource.chat.events.EventHandler;

public class DeletedMessageHandler implements EventHandler<DeleteMessageEvent> {
    private final BeamChatChannel beamChatChannel;

    public DeletedMessageHandler(BeamChatChannel beamChatChannel) {
        this.beamChatChannel = beamChatChannel;
    }

    @Override
    public void onEvent(DeleteMessageEvent event) {
        beamChatChannel.messageCache.invalidate(event.data.id);
    }
}<commit_msg>Added explicit call to toString() for message UUID just in case.<commit_after>package com.github.otbproject.otbproject.bot.beam;

import pro.beam.api.resource.chat.events.DeleteMessageEvent;
import pro.beam.api.resource.chat.events.EventHandler;

public class DeletedMessageHandler implements EventHandler<DeleteMessageEvent> {
    private final BeamChatChannel beamChatChannel;

    public DeletedMessageHandler(BeamChatChannel beamChatChannel) {
        this.beamChatChannel = beamChatChannel;
    }

    @Override
    public void onEvent(DeleteMessageEvent event) {
        beamChatChannel.messageCache.invalidate(event.data.id.toString());
    }
}
{'fraction_non_alphanumeric': 0.08064516129032258, 'fraction_numerical': 0.0, 'mean_word_length': 4.937799043062201, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2501135', 'n_tokens_mistral': 349, 'n_tokens_neox': 338, 'n_words': 62}