<commit_before>package de.devgruppe.fundiscordbot.command.commands;

import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import de.devgruppe.fundiscordbot.command.Command;
import de.devgruppe.fundiscordbot.command.CommandResponse;
import de.devgruppe.fundiscordbot.util.HttpRequest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import lombok.Getter;
import net.dv8tion.jda.core.entities.Message;

public class MemeNamesCommand extends Command {

	public static final String API_URL = "https://memegen.link/";
	public static final String TEMPLATE_URL = "api/templates/";

	@Getter
	private List<String> memes;

	public MemeNamesCommand() {
		super("memes", "", "Gebe dir alle Meme-Namen aus");
		this.memes = new ArrayList<>();

		try {
			HttpRequest.RequestResponse res = HttpRequest.performRequest(new HttpRequest.RequestBuilder(API_URL + TEMPLATE_URL, HttpRequest.HttpRequestMethod.GET)
			.addHeader("User-Agent","Mozilla/5.0")
			.addHeader("Accept","application/json")
			.setReadTimeout(15000));
			JsonParser parser = new JsonParser();
			JsonObject jobject = parser.parse(res.getResultMessage()).getAsJsonObject();
			jobject.entrySet().stream()
					.map(Map.Entry::getValue)
					.map(jsonElement -> jsonElement.getAsString().replace(API_URL + TEMPLATE_URL, ""))
					.forEach(memes::add);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	@Override
	public CommandResponse triggerCommand(Message message, String[] args) {
		StringBuilder sb = new StringBuilder();
		sb.append("Folgende Memes können generiert werden");
		sb.append("```");
		memes.forEach(s -> sb.append(s).append("\n"));
		sb.append("```");
		System.out.println(sb.length());
		message.getTextChannel().sendMessage(sb.toString()).queue();
		return CommandResponse.ACCEPTED;
	}
}<commit_msg>Removed again debug message lol<commit_after>package de.devgruppe.fundiscordbot.command.commands;

import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import de.devgruppe.fundiscordbot.command.Command;
import de.devgruppe.fundiscordbot.command.CommandResponse;
import de.devgruppe.fundiscordbot.util.HttpRequest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import lombok.Getter;
import net.dv8tion.jda.core.entities.Message;

public class MemeNamesCommand extends Command {

	public static final String API_URL = "https://memegen.link/";
	public static final String TEMPLATE_URL = "api/templates/";

	@Getter
	private List<String> memes;

	public MemeNamesCommand() {
		super("memes", "", "Gebe dir alle Meme-Namen aus");
		this.memes = new ArrayList<>();

		try {
			HttpRequest.RequestResponse res = HttpRequest.performRequest(new HttpRequest.RequestBuilder(API_URL + TEMPLATE_URL, HttpRequest.HttpRequestMethod.GET)
			.addHeader("User-Agent","Mozilla/5.0")
			.addHeader("Accept","application/json")
			.setReadTimeout(15000));
			JsonParser parser = new JsonParser();
			JsonObject jobject = parser.parse(res.getResultMessage()).getAsJsonObject();
			jobject.entrySet().stream()
					.map(Map.Entry::getValue)
					.map(jsonElement -> jsonElement.getAsString().replace(API_URL + TEMPLATE_URL, ""))
					.forEach(memes::add);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	@Override
	public CommandResponse triggerCommand(Message message, String[] args) {
		StringBuilder sb = new StringBuilder();
		sb.append("Folgende Memes können generiert werden");
		sb.append("```");
		memes.forEach(s -> sb.append(s).append("\n"));
		sb.append("```");
		message.getTextChannel().sendMessage(sb.toString()).queue();
		return CommandResponse.ACCEPTED;
	}
}
{'fraction_non_alphanumeric': 0.14026536691037098, 'fraction_numerical': 0.004332520985648524, 'mean_word_length': 5.250423011844331, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '1697699', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1170, 'n_words': 217}