<commit_before>package uk.co.cloudhunter.rpgthing.partyline;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatMessageComponent;
import uk.co.cloudhunter.rpgthing.core.Party;
import uk.co.cloudhunter.rpgthing.core.Player;

public class PartyInvite 
{
	private Party theParty;
	private Player thePlayer;
	private String ownerName;
	
	public PartyInvite(Party party, Player player)
	{
		ownerName = party.getOwner().getName();
		theParty = party;
		thePlayer = player;
	}

	public void accept()
	{
		theParty.sendMessageToPlayers(ChatMessageComponent.createFromTranslationWithSubstitutions("rpgthing.party.joined", thePlayer.getName()));
		theParty.addPlayer(thePlayer);
		thePlayer.getMinecraftPlayer().sendChatToPlayer(ChatMessageComponent.createFromTranslationKey("rpgthing.party.selfjoin"));
		thePlayer.removeInvite(ownerName);
		thePlayer.clearInvites();
	}
	
	public void decline()
	{
		thePlayer.removeInvite(ownerName);
		thePlayer.getMinecraftPlayer().sendChatToPlayer(ChatMessageComponent.createFromTranslationWithSubstitutions("command.party.declined", ownerName));
		declineNoRemove();
	}
	
	public String getOwnerName()
	{
		return ownerName;
	}

	public void declineNoRemove()
	{
		EntityPlayer player = theParty.getOwner().getMinecraftPlayer();
		player.sendChatToPlayer(ChatMessageComponent.createFromTranslationWithSubstitutions("command.party.declineOwner",  thePlayer.getName()));
	}
}<commit_msg>Much commit. Very auto. Wow.<commit_after>package uk.co.cloudhunter.rpgthing.partyline;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatMessageComponent;
import uk.co.cloudhunter.rpgthing.core.Party;
import uk.co.cloudhunter.rpgthing.core.Player;

public class PartyInvite 
{
	private Party theParty;
	private Player thePlayer;
	private String ownerName;
	
	public PartyInvite(Party party, Player player) {
		ownerName = party.getOwner().getName();
		theParty = party;
		thePlayer = player;
	}

	public void accept() {
		theParty.sendMessageToPlayers(ChatMessageComponent.createFromTranslationWithSubstitutions("rpgthing.party.joined", thePlayer.getName()));
		theParty.addPlayer(thePlayer);
		thePlayer.getMinecraftPlayer().sendChatToPlayer(ChatMessageComponent.createFromTranslationKey("rpgthing.party.selfjoin"));
		thePlayer.removeInvite(ownerName);
		thePlayer.clearInvites();
	}
	
	public void decline() {
		thePlayer.removeInvite(ownerName);
		thePlayer.getMinecraftPlayer().sendChatToPlayer(ChatMessageComponent.createFromTranslationWithSubstitutions("command.party.declined", ownerName));
		declineNoRemove();
	}
	
	public String getOwnerName() {
		return ownerName;
	}

	public void declineNoRemove() {
		EntityPlayer player = theParty.getOwner().getMinecraftPlayer();
		player.sendChatToPlayer(ChatMessageComponent.createFromTranslationWithSubstitutions("command.party.declineOwner",  thePlayer.getName()));
	}
}
{'fraction_non_alphanumeric': 0.10724137931034483, 'fraction_numerical': 0.0, 'mean_word_length': 6.819407008086253, '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': '5449762', 'n_tokens_mistral': 932, 'n_tokens_neox': 867, 'n_words': 128}