<commit_before>package org.royaldev.royalcommands.rcommands;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.royaldev.royalcommands.RUtils;
import org.royaldev.royalcommands.RoyalCommands;

public class CmdFeed implements CommandExecutor {

    RoyalCommands plugin;

    public CmdFeed(RoyalCommands plugin) {
        this.plugin = plugin;
    }

    @Override
    public boolean onCommand(CommandSender cs, Command cmd, String label, String[] args) {
        if (cmd.getName().equalsIgnoreCase("feed")) {
            if (!plugin.isAuthorized(cs, "rcmds.feed")) {
                RUtils.dispNoPerms(cs);
                return true;
            }
            if (args.length < 1) {
                if (!(cs instanceof Player)) {
                    cs.sendMessage(ChatColor.RED + "You can't feed the console!");
                    return true;
                }
                Player t = (Player) cs;
                t.sendMessage(ChatColor.BLUE + "You have fed yourself!");
                t.setFoodLevel(20);
                return true;
            }
            Player t = plugin.getServer().getPlayer(args[0]);
            if (!plugin.isAuthorized(cs, "rcmds.feed.others")) {
                RUtils.dispNoPerms(cs);
                return true;
            }
            if (t == null || plugin.isVanished(t)) {
                cs.sendMessage(ChatColor.RED + "That player does not exist!");
                return true;
            }
            cs.sendMessage(ChatColor.BLUE + "You have fed " + ChatColor.GRAY + t.getName() + ChatColor.BLUE + ".");
            t.sendMessage(ChatColor.BLUE + "You have been fed by " + ChatColor.GRAY + cs.getName() + ChatColor.BLUE + "!");
            t.setFoodLevel(20);
            return true;
        }
        return false;
    }

}<commit_msg>Added: /feed now saturates you as well<commit_after>package org.royaldev.royalcommands.rcommands;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.royaldev.royalcommands.RUtils;
import org.royaldev.royalcommands.RoyalCommands;

public class CmdFeed implements CommandExecutor {

    RoyalCommands plugin;

    public CmdFeed(RoyalCommands plugin) {
        this.plugin = plugin;
    }

    @Override
    public boolean onCommand(CommandSender cs, Command cmd, String label, String[] args) {
        if (cmd.getName().equalsIgnoreCase("feed")) {
            if (!plugin.isAuthorized(cs, "rcmds.feed")) {
                RUtils.dispNoPerms(cs);
                return true;
            }
            if (args.length < 1) {
                if (!(cs instanceof Player)) {
                    cs.sendMessage(ChatColor.RED + "You can't feed the console!");
                    return true;
                }
                Player t = (Player) cs;
                t.sendMessage(ChatColor.BLUE + "You have fed yourself!");
                t.setFoodLevel(20);
                t.setSaturation(20);
                return true;
            }
            Player t = plugin.getServer().getPlayer(args[0]);
            if (!plugin.isAuthorized(cs, "rcmds.feed.others")) {
                RUtils.dispNoPerms(cs);
                return true;
            }
            if (t == null || plugin.isVanished(t)) {
                cs.sendMessage(ChatColor.RED + "That player does not exist!");
                return true;
            }
            cs.sendMessage(ChatColor.BLUE + "You have fed " + ChatColor.GRAY + t.getName() + ChatColor.BLUE + ".");
            t.sendMessage(ChatColor.BLUE + "You have been fed by " + ChatColor.GRAY + cs.getName() + ChatColor.BLUE + "!");
            t.setFoodLevel(20);
            t.setSaturation(20);
            return true;
        }
        return false;
    }

}
{'fraction_non_alphanumeric': 0.11343584572724981, 'fraction_numerical': 0.00403327451474666, 'mean_word_length': 1.9090909090909092, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4550808', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1104, 'n_words': 240}