<commit_before>package com.bwfcwalshy.flarebot.github;

import com.arsenarsen.githubwebhooks4j.events.EventListener;
import com.arsenarsen.githubwebhooks4j.events.PushEvent;
import com.arsenarsen.githubwebhooks4j.objects.Commit;
import com.bwfcwalshy.flarebot.FlareBot;
import com.bwfcwalshy.flarebot.MessageUtils;
import net.dv8tion.jda.core.EmbedBuilder;

public class GithubListener implements EventListener<PushEvent> {

	@Override
	public void handle(PushEvent e) {
		if (!FlareBot.getInstance().isReady())
			return;
		EmbedBuilder eb = MessageUtils.getEmbed();
		eb.setAuthor(e.getSender().getLogin(), e.getSender().getProfile(), e.getSender().getAvatarUrl());
		for (Commit commit : e.getCommits()) {
			eb.addField("Commit:", "[" + 
			commit.getId().substring(0, 7) + "](" + 
			commit.getUrl() + ")\n Branch `" + 
			e.getRef().substring(e.getRef().lastIndexOf('/') + 1) + "` " + "```" + 
			commit.getMessage() + "```", false);

			if (commit.getAdded().length > 0) {
				StringBuilder sb = new StringBuilder();
				sb.append("```Markdown\n");
				for (String file : commit.getAdded()) {
					sb.append("* " + file + "\n\n");
				}
				String added = sb.toString() + "```";
				eb.addField("Added files", added, false);
			}

			if (commit.getRemoved().length > 0) {
				StringBuilder sb = new StringBuilder();
				sb.append("```Markdown\n");
				for (String file : commit.getRemoved()) {
					sb.append("* " + file + "\n\n");
				}
				String removed = sb.toString() + "```";
				eb.addField("Removed files", removed, false);
			}
			
			if (commit.getModified().length > 0) {
				StringBuilder sb = new StringBuilder();
				sb.append("```Markdown\n");
				for (String file : commit.getModified()) {
					sb.append("* " + file + "\n\n");
				}
				String modified = sb.toString() + "```";
				eb.addField("Modified files", modified, false);
			}
		}
		FlareBot.getInstance().getChannelByID("229236239201468417").sendMessage(eb.build()).queue();
	}
}
<commit_msg>I think i fixed formatting now?<commit_after>package com.bwfcwalshy.flarebot.github;

import com.arsenarsen.githubwebhooks4j.events.EventListener;
import com.arsenarsen.githubwebhooks4j.events.PushEvent;
import com.arsenarsen.githubwebhooks4j.objects.Commit;
import com.bwfcwalshy.flarebot.FlareBot;
import com.bwfcwalshy.flarebot.MessageUtils;
import net.dv8tion.jda.core.EmbedBuilder;

public class GithubListener implements EventListener<PushEvent> {

    @Override
    public void handle(PushEvent e) {
        if (!FlareBot.getInstance().isReady())
            return;
        EmbedBuilder eb = MessageUtils.getEmbed();
        eb.setAuthor(e.getSender().getLogin(), e.getSender().getProfile(), e.getSender().getAvatarUrl());
        for (Commit commit : e.getCommits()) {
            eb.addField("Commit:", "[" +
                    commit.getId().substring(0, 7) + "](" +
                    commit.getUrl() + ")\n Branch `" +
                    e.getRef().substring(e.getRef().lastIndexOf('/') + 1) + "` " + "```" +
                    commit.getMessage() + "```", false);

            if (commit.getAdded().length > 0) {
                StringBuilder sb = new StringBuilder();
                sb.append("```Markdown\n");
                for (String file : commit.getAdded()) {
                    sb.append("* " + file + "\n\n");
                }
                String added = sb.toString() + "```";
                eb.addField("Added files", added, false);
            }

            if (commit.getRemoved().length > 0) {
                StringBuilder sb = new StringBuilder();
                sb.append("```Markdown\n");
                for (String file : commit.getRemoved()) {
                    sb.append("* " + file + "\n\n");
                }
                String removed = sb.toString() + "```";
                eb.addField("Removed files", removed, false);
            }

            if (commit.getModified().length > 0) {
                StringBuilder sb = new StringBuilder();
                sb.append("```Markdown\n");
                for (String file : commit.getModified()) {
                    sb.append("* " + file + "\n\n");
                }
                String modified = sb.toString() + "```";
                eb.addField("Modified files", modified, false);
            }
        }
        FlareBot.getInstance().getChannelByID("229236239201468417").sendMessage(eb.build()).queue();
    }
}

{'fraction_non_alphanumeric': 0.168141592920354, 'fraction_numerical': 0.012707056954844566, 'mean_word_length': 2.479084451460142, 'pattern_counts': {'":': 0, '<': 5, '<?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': '532149', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1335, 'n_words': 233}