<commit_before>package net.mcft.copy.core.proxy;

import net.mcft.copy.core.copycore;
import net.mcft.copy.core.config.Config;
import net.mcft.copy.core.network.AbstractPacket;
import net.mcft.copy.core.network.packet.PacketSyncSettings;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;

public class CommonProxy {
	
	public void init() {
		MinecraftForge.EVENT_BUS.register(this);
		FMLCommonHandler.instance().bus().register(this);
	}
	
	@EventHandler
	public void onPlayerLoggedIn(PlayerLoggedInEvent event) {
		// Synchronize settings with newly joined players.
		AbstractPacket packet = new PacketSyncSettings(Config.getAllConfigs());
		copycore.getChannelHandler().sendToPlayer(event.player, packet);
	}
	
}<commit_msg>Replace @EventHandler with @SubscribeEvent<commit_after>package net.mcft.copy.core.proxy;

import net.mcft.copy.core.copycore;
import net.mcft.copy.core.config.Config;
import net.mcft.copy.core.network.AbstractPacket;
import net.mcft.copy.core.network.packet.PacketSyncSettings;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;

public class CommonProxy {
	
	public void init() {
		MinecraftForge.EVENT_BUS.register(this);
		FMLCommonHandler.instance().bus().register(this);
	}
	
	@SubscribeEvent
	public void onPlayerLoggedIn(PlayerLoggedInEvent event) {
		// Synchronize settings with newly joined players.
		AbstractPacket packet = new PacketSyncSettings(Config.getAllConfigs());
		copycore.getChannelHandler().sendToPlayer(event.player, packet);
	}
	
}
{'fraction_non_alphanumeric': 0.11037527593818984, 'fraction_numerical': 0.0, 'mean_word_length': 6.0271317829457365, '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': '4432204', 'n_tokens_mistral': 607, 'n_tokens_neox': 583, 'n_words': 89}