<commit_before>package com.techcavern.wavetact.ircCommands.fun;

import com.techcavern.wavetact.annot.IRCCMD;
import com.techcavern.wavetact.objects.IRCCommand;
import com.techcavern.wavetact.utils.GeneralUtils;
import com.techcavern.wavetact.utils.IRCUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.pircbotx.Channel;
import org.pircbotx.PircBotX;
import org.pircbotx.User;

@IRCCMD
public class Quote extends IRCCommand {

    public Quote() {
        super(GeneralUtils.toArray("quote randquote"), 0, "quote", "Gets a random quote", false);
    }

    @Override
    public void onCommand(User user, PircBotX network, String prefix, Channel channel, boolean isPrivate, int userPermLevel, String... args) throws Exception {
        Document doc = Jsoup.connect("http://wwww.quotationspage.com/random.php3").get();
        String c = doc.select(".quote").get(0).text();
        String d = doc.select(".author").get(0).text();
        IRCUtils.sendMessage(user, network, channel, c +" -" + d, prefix);
    }
}
<commit_msg>Fix Quote Formatting<commit_after>package com.techcavern.wavetact.ircCommands.fun;

import com.techcavern.wavetact.annot.IRCCMD;
import com.techcavern.wavetact.objects.IRCCommand;
import com.techcavern.wavetact.utils.GeneralUtils;
import com.techcavern.wavetact.utils.IRCUtils;
import org.apache.commons.lang3.StringUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.pircbotx.Channel;
import org.pircbotx.PircBotX;
import org.pircbotx.User;

@IRCCMD
public class Quote extends IRCCommand {

    public Quote() {
        super(GeneralUtils.toArray("quote randquote"), 0, "quote", "Gets a random quote", false);
    }

    @Override
    public void onCommand(User user, PircBotX network, String prefix, Channel channel, boolean isPrivate, int userPermLevel, String... args) throws Exception {
        Document doc = Jsoup.connect("http://wwww.quotationspage.com/random.php3").get();
        String c = doc.select(".quote").get(0).text();
        String d = doc.select(".author").get(0).text();
        if(d.contains("-")){
            if(!d.contains("("))
            d = d.split("-")[0];
            else
                d = d.split("\\(")[0];
        }
        IRCUtils.sendMessage(user, network, channel, c +" -" + d, prefix);
    }
}

{'fraction_non_alphanumeric': 0.14044213263979194, 'fraction_numerical': 0.004768097095795405, 'mean_word_length': 3.6626262626262625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '417505', 'n_tokens_mistral': 783, 'n_tokens_neox': 767, 'n_words': 153}