<commit_before>package com.mcbans.firestar.mcbans.callBacks;

import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

import com.mcbans.firestar.mcbans.MCBans;
import com.mcbans.firestar.mcbans.api.data.PlayerLookupData;
import com.mcbans.firestar.mcbans.util.Util;

public class LookupCallback extends BaseCallback{
    public LookupCallback(final MCBans plugin, final CommandSender sender) {
        super(plugin, sender);
    }
    public LookupCallback(){
        super(MCBans.getInstance(), null);
    }

    //@Override
    public void success(final PlayerLookupData data){
        Util.message(sender, ChatColor.GRAY + "Player " + ChatColor.RED + data.getPlayerName() + ChatColor.GRAY + " has " + ChatColor.RED
                + data.getTotal() + " ban(s)" + ChatColor.GRAY + " and " + ChatColor.BLUE + data.getReputation() + " REP"
                + ChatColor.GRAY + ".");


        if (data.getGlobals().size() > 0) {
            Util.message(sender, ChatColor.RED + "Global Bans:");
            for (String record : data.getGlobals()){
                Util.message(sender, record);
            }
        }
        if (data.getLocals().size() > 0) {
            Util.message(sender, ChatColor.GOLD + "Local Bans:");
            for (String record : data.getLocals()){
                Util.message(sender, record);
            }
        }
        if (data.getOthers().size() > 0) {
            for (String record : data.getOthers()){
                Util.message(sender, record);
            }
        }
    }

    @Override
    public void success(){
        throw new IllegalArgumentException("Wrong Usage!");
    }

    @Override
    public void error(final String error){
        if (error != null && sender != null){<commit_msg>Smart-ish line breaks!<commit_after>package com.mcbans.firestar.mcbans.callBacks;

import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

import com.mcbans.firestar.mcbans.MCBans;
import com.mcbans.firestar.mcbans.api.data.PlayerLookupData;
import com.mcbans.firestar.mcbans.util.Util;

public class LookupCallback extends BaseCallback{
    public LookupCallback(final MCBans plugin, final CommandSender sender) {
        super(plugin, sender);
    }
    public LookupCallback(){
        super(MCBans.getInstance(), null);
    }

    //@Override
    public void success(final PlayerLookupData data){

        if (data.getGlobals().size() > 0 || data.getLocals().size() > 0 || data.getOthers().size() > 0) {
            Util.message(sender, ChatColor.DARK_GRAY + "------------------------------");
        }

        Util.message(sender, ChatColor.GRAY + "Player " + ChatColor.RED + data.getPlayerName() + ChatColor.GRAY + " has " + ChatColor.RED
                + data.getTotal() + " ban(s)" + ChatColor.GRAY + " and " + ChatColor.BLUE + data.getReputation() + " REP"
                + ChatColor.GRAY + ".");

        if (data.getGlobals().size() > 0) {
            Util.message(sender, ChatColor.RED + "Global Bans:");
            for (String record : data.getGlobals()){
                Util.message(sender, record);
            }
        }
        if (data.getLocals().size() > 0) {
            Util.message(sender, ChatColor.GOLD + "Local Bans:");
            for (String record : data.getLocals()){
                Util.message(sender, record);
            }
        }
        if (data.getOthers().size() > 0) {
            for (String record : data.getOthers()){
                Util.message(sender, record);
            }
        }

        if (data.getGlobals().size() > 0 || data.getLocals().size() > 0 || data.getOthers().size() > 0) {
            Util.message(sender, ChatColor.DARK_GRAY + "------------------------------");
        }

    }

    @Override
    public void success(){
        throw new IllegalArgumentException("Wrong Usage!");
    }

    @Override
    public void error(final String error){
        if (error != null && sender != null){
{'fraction_non_alphanumeric': 0.15091463414634146, 'fraction_numerical': 0.003048780487804878, 'mean_word_length': 2.19821283509342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5934556', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1161, 'n_words': 231}