<commit_before>package me.capit.entropy.currency;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class Token implements CommandExecutor {
	
	public static String getPrefix(){
		return ChatColor.BLUE + "[Tokens] ";
	}

	public static int getTokens(String player) {
		return 0;
	}

	public static void setTokens(String player, int amount) {

	}

	public static void addTokens(String player, int amount) {
		setTokens(player, getTokens(player) + amount);
	}

	public static void removeTokens(String player, int amount) {
		setTokens(player, getTokens(player) - amount);
	}
	
	public static boolean hasEnough(String player, int amount){
		if(getTokens(player) - amount >= 0){
			return true;
		}
		return false;
			
	}

	@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
		if (label.equalsIgnoreCase("tokens")) {
			if (sender instanceof Player) {
				if (args[0].equalsIgnoreCase("get")) {
					// check if args[1] is a player
					getTokens("");
					return true;<commit_msg>Removed annotation to comply with SE8.<commit_after>package me.capit.entropy.currency;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class Token implements CommandExecutor {
	
	public static String getPrefix(){
		return ChatColor.BLUE + "[Tokens] ";
	}

	public static int getTokens(String player) {
		return 0;
	}

	public static void setTokens(String player, int amount) {

	}

	public static void addTokens(String player, int amount) {
		setTokens(player, getTokens(player) + amount);
	}

	public static void removeTokens(String player, int amount) {
		setTokens(player, getTokens(player) - amount);
	}
	
	public static boolean hasEnough(String player, int amount){
		if(getTokens(player) - amount >= 0){
			return true;
		}
		return false;
			
	}

	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
		if (label.equalsIgnoreCase("tokens")) {
			if (sender instanceof Player) {
				if (args[0].equalsIgnoreCase("get")) {
					// check if args[1] is a player
					getTokens("");
					return true;
{'fraction_non_alphanumeric': 0.10893617021276596, 'fraction_numerical': 0.003829787234042553, 'mean_word_length': 4.355353075170843, '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': '4656468', 'n_tokens_mistral': 787, 'n_tokens_neox': 714, 'n_words': 203}