<commit_before>package org.rdtif.zaxslackbot.userinterface;

import com.ullink.slack.simpleslackapi.SlackChannel;
import com.ullink.slack.simpleslackapi.SlackSession;

public class SlackTextScreen extends TextScreen {
    private final SlackSession slackSession;
    private final SlackChannel slackChannel;
    private String slackMessageTimeStamp;

    public SlackTextScreen(SlackSession slackSession, SlackChannel slackChannel, Extent size) {
        super(size);
        this.slackSession = slackSession;
        this.slackChannel = slackChannel;
    }

    void initialize() {
        slackMessageTimeStamp = slackSession.sendMessage(slackChannel, "Display loading...").getReply().getTimestamp();
    }

    void update() {
        String replaceActualBackTicks = "`" + (char) 11 + "`" + (char) 11 + "`";
        String message = "```\n" + getJoinedText().replaceAll("```", replaceActualBackTicks) + "\n```";
        slackMessageTimeStamp = slackSession.updateMessage(slackMessageTimeStamp, slackChannel, message).getReply().getTimestamp();
    }
}
<commit_msg>Cobble some code together to actually displaying something, just cuz<commit_after>package org.rdtif.zaxslackbot.userinterface;

import com.ullink.slack.simpleslackapi.SlackChannel;
import com.ullink.slack.simpleslackapi.SlackSession;

public class SlackTextScreen extends TextScreen {
    private final SlackSession slackSession;
    private final SlackChannel slackChannel;
    private String slackMessageTimeStamp;

    public SlackTextScreen(SlackSession slackSession, SlackChannel slackChannel, Extent size) {
        super(size);
        this.slackSession = slackSession;
        this.slackChannel = slackChannel;
    }

    void initialize() {
        slackMessageTimeStamp = slackSession.sendMessage(slackChannel, "Display loading...").getReply().getTimestamp();
        print("Display loading...");
        update();
    }

    void update() {
        String replaceActualBackTicks = "`" + (char) 11 + "`" + (char) 11 + "`";
        String message = "```\n" + getJoinedText().replaceAll("```", replaceActualBackTicks) + "\n```";
        slackMessageTimeStamp = slackSession.updateMessage(slackMessageTimeStamp, slackChannel, message).getReply().getTimestamp();
    }
}

{'fraction_non_alphanumeric': 0.11319073083778966, 'fraction_numerical': 0.0035650623885918, 'mean_word_length': 4.1255707762557075, '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': '4941426', 'n_tokens_mistral': 689, 'n_tokens_neox': 639, 'n_words': 128}