<commit_before>package de.st_ddt.crazyplugin;

import java.nio.charset.Charset;

import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;

public abstract class CrazyPluginMessageListener implements PluginMessageListener
{

	protected final CrazyPlugin plugin;
	protected final Charset charset = Charset.forName("UTF-8");

	public CrazyPluginMessageListener(CrazyPlugin plugin)
	{
		super();
		this.plugin = plugin;
	}

	public CrazyPlugin getPlugin()
	{
		return plugin;
	}

	@Override
	public final void onPluginMessageReceived(final String channel, final Player player, final byte[] bytes)
	{
		final String message = new String(bytes, charset);
		if (channel.equals(plugin.getName()))
		{
			if (message.equals("Q_PING"))
				sendPluginMessage(player, "A_PING " + plugin.getName());
			if (message.equals("Q_Version"))
				sendPluginMessage(player, "A_Version " + plugin.getDescription().getVersion());
		}
	}

	public abstract void pluginMessageRecieved(final String channel, final Player player, String message);

	protected final void sendPluginMessage(final Player player, final String message)
	{
		player.sendPluginMessage(plugin, plugin.getName(), message.getBytes(charset));
	}

	protected final void sendPluginMessage(final String channel, final Player player, final String message)
	{
		player.sendPluginMessage(plugin, channel, message.getBytes(charset));
	}
}
<commit_msg>CrazyCore: added missing method call<commit_after>package de.st_ddt.crazyplugin;

import java.nio.charset.Charset;

import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;

public abstract class CrazyPluginMessageListener implements PluginMessageListener
{

	protected final CrazyPlugin plugin;
	protected final Charset charset = Charset.forName("UTF-8");

	public CrazyPluginMessageListener(CrazyPlugin plugin)
	{
		super();
		this.plugin = plugin;
	}

	public CrazyPlugin getPlugin()
	{
		return plugin;
	}

	@Override
	public final void onPluginMessageReceived(final String channel, final Player player, final byte[] bytes)
	{
		final String message = new String(bytes, charset);
		if (channel.equals(plugin.getName()))
		{
			if (message.equals("Q_PING"))
				sendPluginMessage(player, "A_PING " + plugin.getName());
			if (message.equals("Q_Version"))
				sendPluginMessage(player, "A_Version " + plugin.getDescription().getVersion());
		}
		pluginMessageRecieved(channel, player, message);
	}

	public abstract void pluginMessageRecieved(final String channel, final Player player, String message);

	protected final void sendPluginMessage(final Player player, final String message)
	{
		player.sendPluginMessage(plugin, plugin.getName(), message.getBytes(charset));
	}

	protected final void sendPluginMessage(final String channel, final Player player, final String message)
	{
		player.sendPluginMessage(plugin, channel, message.getBytes(charset));
	}
}

{'fraction_non_alphanumeric': 0.0967848856479947, 'fraction_numerical': 0.0006629101756711965, 'mean_word_length': 4.662288930581614, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5214434', 'n_tokens_mistral': 923, 'n_tokens_neox': 828, 'n_words': 213}