<commit_before>package me.rkfg.xmpp.bot.plugins;

import static org.jsoup.helper.HttpConnection.*;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.io.UnsupportedEncodingException;
import java.net.IDN;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.http.client.ClientProtocolException;
import org.jsoup.Jsoup;
import org.jsoup.UnsupportedMimeTypeException;
import org.jsoup.nodes.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import me.rkfg.xmpp.bot.message.BotMessage;

public class TitlePlugin extends MessagePluginImpl {

    private static final int MAX_BODY_SIZE = 102400;
    private static final int TIMEOUT = 10000;
    private Logger log = LoggerFactory.getLogger(getClass());
    private Pattern hostnamePattern = Pattern.compile("https?://([^/]*)/?.*", Pattern.CASE_INSENSITIVE);
    private Pattern hostnameReplacePattern = Pattern.compile("(https?://)[^/]*(/?.*)", Pattern.CASE_INSENSITIVE);<commit_msg>Increase max body size for title plugin<commit_after>package me.rkfg.xmpp.bot.plugins;

import static org.jsoup.helper.HttpConnection.*;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.io.UnsupportedEncodingException;
import java.net.IDN;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.http.client.ClientProtocolException;
import org.jsoup.Jsoup;
import org.jsoup.UnsupportedMimeTypeException;
import org.jsoup.nodes.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import me.rkfg.xmpp.bot.message.BotMessage;

public class TitlePlugin extends MessagePluginImpl {

    private static final int MAX_BODY_SIZE = 1024000;
    private static final int TIMEOUT = 10000;
    private Logger log = LoggerFactory.getLogger(getClass());
    private Pattern hostnamePattern = Pattern.compile("https?://([^/]*)/?.*", Pattern.CASE_INSENSITIVE);
    private Pattern hostnameReplacePattern = Pattern.compile("(https?://)[^/]*(/?.*)", Pattern.CASE_INSENSITIVE);
{'fraction_non_alphanumeric': 0.11943040881947635, 'fraction_numerical': 0.01240238860817639, 'mean_word_length': 5.701538461538462, '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': '4666303', 'n_tokens_mistral': 696, 'n_tokens_neox': 669, 'n_words': 137}