<commit_before>package me.galaran.bukkitutils.__utils_project_name__;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import java.util.logging.Level;
import java.util.logging.Logger;

public class Messaging {

    private static Logger log;
    private static String chatPrefix;

    public static void init(Logger logger, String chatPrefixx) {
        log = logger;
        chatPrefix = ChatColor.GRAY + "[" + chatPrefixx + "] " + ChatColor.WHITE;
    }

    public static void log(Level level, String message, Object... params) {
        String finalString = StringUtils.parameterizeString(message, params);
        log.log(level, ChatColor.stripColor(finalString));
    }

    public static void log(String message, Object... params) {
        log(Level.INFO, message, params);
    }

    public static void send(CommandSender sender, String message, Object... params) {
        String decorated = StringUtils.decorateString(message, params);
        if (!decorated.equals("$suppress")) {
            sender.sendMessage(chatPrefix + decorated);
        }
    }

    public static void sendPlayerIfOnline(String playerName, String message, Object... params) {
        Player player = Bukkit.getPlayerExact(playerName);
        if (player != null) {
            send(player, message, params);
        }
    }

    public static void broadcastServer(String message, Object... params) {
        String decorated = StringUtils.decorateString(message, params);
        if (!decorated.equals("$suppress")) {
            Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "say " + decorated);
        }
    }

    public static void broadcastLoc(Location loc, double radius, String message, Object... params) {
        for (Player curPlayer : Bukkit.getOnlinePlayers()) {
            Location curPlayerLoc = curPlayer.getLocation();
            if (!curPlayerLoc.getWorld().equals(loc.getWorld())) continue;
            if (curPlayerLoc.distance(loc) <= radius) {
                send(curPlayer, message, params);
            }
        }
    }
<commit_msg>Added no prefix messaging<commit_after>package me.galaran.bukkitutils.__utils_project_name__;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import java.util.logging.Level;
import java.util.logging.Logger;

public class Messaging {

    private static Logger log;
    private static String chatPrefix;

    public static void init(Logger logger, String chatPrefixx) {
        log = logger;
        chatPrefix = ChatColor.GRAY + "[" + chatPrefixx + "] " + ChatColor.WHITE;
    }

    public static void log(Level level, String message, Object... params) {
        String finalString = StringUtils.parameterizeString(message, params);
        log.log(level, ChatColor.stripColor(finalString));
    }

    public static void log(String message, Object... params) {
        log(Level.INFO, message, params);
    }

    public static void send(CommandSender sender, String message, Object... params) {
        send(chatPrefix, sender, message, params);
    }

    public static void sendNoPrefix(CommandSender sender, String message, Object... params) {
        send("", sender, message, params);
    }

    private static void send(String prefix, CommandSender sender, String message, Object... params) {
        String decorated = StringUtils.decorateString(message, params);
        if (!decorated.equals("$suppress")) {
            sender.sendMessage(prefix + decorated);
        }
    }

    /** Does nothing, if player with specified name is not online */
    public static void send(String playerName, String message, Object... params) {
        Player player = Bukkit.getPlayerExact(playerName);
        if (player != null) {
            send(player, message, params);
        }
    }

    /** Does nothing, if player with specified name is not online */
    public static void sendNoPrefix(String playerName, String message, Object... params) {
        Player player = Bukkit.getPlayerExact(playerName);
        if (player != null) {
            sendNoPrefix(player, message, params);
        }
    }

    public static void broadcast(Location loc, double radius, String message, Object... params) {
        broadcast(chatPrefix, loc, radius, message, params);
    }

    public static void broadcastNoPrefix(Location loc, double radius, String message, Object... params) {
        broadcast("", loc, radius, message, params);
    }

    private static void broadcast(String prefix, Location loc, double radius, String message, Object... params) {
        for (Player curPlayer : Bukkit.getOnlinePlayers()) {
            Location curPlayerLoc = curPlayer.getLocation();
            if (!curPlayerLoc.getWorld().equals(loc.getWorld())) continue;
            if (curPlayerLoc.distance(loc) <= radius) {
                send(prefix, curPlayer, message, params);
            }
        }
    }

    public static void broadcastServerNoPrefix(String message, Object... params) {
        String decorated = StringUtils.decorateString(message, params);
        if (!decorated.equals("$suppress")) {
            Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "say " + decorated);
        }
    }

{'fraction_non_alphanumeric': 0.10832869597477277, 'fraction_numerical': 0.0, 'mean_word_length': 2.947291361639824, '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': '6345665', 'n_tokens_mistral': 1449, 'n_tokens_neox': 1409, 'n_words': 390}