<commit_before>package net.piratjsk.sddls;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.PluginDescriptionFile;

public final class SddlsCommand implements CommandExecutor {

    private static final String TAG = "&6[Sddls] &r";
    private final Sddls sddls;

    public SddlsCommand(final Sddls sddlsPlugin) {
        this.sddls = sddlsPlugin;
    }

    public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
        if (args.length > 0 && args[0].equalsIgnoreCase("reload")){
            if (sender instanceof ConsoleCommandSender || sender.hasPermission("sddls.reload")) {
                sddls.reloadConfig();
                sendMsg(sender, "Reloaded!");
                return true;
            }
        }
        this.sendPluginInfo(sender);
        if (sender.hasPermission("sddls.reload"))
            sendMsg(sender, "/sddls reload &7- reloads config");
        return true;
    }

    private void sendPluginInfo(final CommandSender recipient) {
        final PluginDescriptionFile info = sddls.getDescription();
        sendMsg(recipient, info.getFullName() + " v" + info.getVersion());
        sendMsg(recipient, "by " + info.getAuthors());
        sendMsg(recipient, info.getDescription());
        sendMsg(recipient, "&7"+ info.getWebsite());
    }

    private static void sendMsg(final CommandSender recipient, final String message) {
        recipient.sendMessage(ChatColor.translateAlternateColorCodes('&', TAG + message));
    }

}<commit_msg>improve message sent by command /sddls<commit_after>package net.piratjsk.sddls;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.plugin.PluginDescriptionFile;

public final class SddlsCommand implements CommandExecutor {

    private static final String TAG = "&6[Sddls] &r";
    private final Sddls sddls;

    public SddlsCommand(final Sddls sddlsPlugin) {
        this.sddls = sddlsPlugin;
    }

    public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
        if (args.length > 0 && args[0].equalsIgnoreCase("reload")){
            if (sender instanceof ConsoleCommandSender || sender.hasPermission("sddls.reload")) {
                sddls.reloadConfig();
                sendMsg(sender, "Reloaded!");
                return true;
            }
        }
        this.sendPluginInfo(sender);
        if (sender.hasPermission("sddls.reload"))
            sendMsg(sender, "/sddls reload &7- reloads config");
        return true;
    }

    private void sendPluginInfo(final CommandSender recipient) {
        final PluginDescriptionFile info = sddls.getDescription();
        sendMsg(recipient, info.getFullName());
        sendMsg(recipient, "by " + String.join(", ", info.getAuthors()));
        sendMsg(recipient, info.getDescription());
        sendMsg(recipient, "&7"+ info.getWebsite());
    }

    private static void sendMsg(final CommandSender recipient, final String message) {
        recipient.sendMessage(ChatColor.translateAlternateColorCodes('&', TAG + message));
    }

}
{'fraction_non_alphanumeric': 0.10844782227418884, 'fraction_numerical': 0.0029231218941829875, 'mean_word_length': 3.266832917705736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3428884', 'n_tokens_mistral': 1000, 'n_tokens_neox': 949, 'n_words': 222}