<commit_before>package info.tregmine.lookup;

import java.io.IOException;
import java.net.InetSocketAddress;

//import org.bukkit.ChatColor;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
//import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerListener;

import com.maxmind.geoip.Location;
import com.maxmind.geoip.LookupService;


public class LookupPlayer extends PlayerListener {
	private final Lookup plugin;
	private LookupService cl = null;

	public LookupPlayer(Lookup instance) {
		plugin = instance;
		try {
			cl = new LookupService("/home/minecraft/minecraft/GeoIPCity.dat", LookupService.GEOIP_MEMORY_CACHE );
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}

	public void onPlayerJoin(PlayerJoinEvent event) {
		Player player = event.getPlayer();
		InetSocketAddress sock = player.getAddress();
		String ip = sock.getAddress().getHostAddress();
		String host = sock.getAddress().getCanonicalHostName();
		info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tregminePlayer.get(player.getName());

		if (cl != null) {
			Location l1 = cl.getLocation(ip);
			plugin.log.info(event.getPlayer().getName() + ": " + l1.countryName + ", " + l1.city + ", " + ip + ", " + l1.postalCode + ", " + l1.region + ", " + host);
			tregminePlayer.setMetaString("countryName", l1.countryName);
			tregminePlayer.setMetaString("city", l1.city);
			tregminePlayer.setMetaString("ip", ip);
			tregminePlayer.setMetaString("postalCode", l1.postalCode);
			tregminePlayer.setMetaString("region", l1.region);
			tregminePlayer.setMetaString("hostname", host);
			if(!event.getPlayer().getName().matches("einand") && !event.getPlayer().getName().matches("mejjad")) {
				event.getPlayer().setPlayerListName("");
				this.plugin.getServer().broadcastMessage(ChatColor.DARK_AQUA + "Welcome! " + tregminePlayer.getChatName() + ChatColor.DARK_AQUA + " from " +l1.countryName);
				event.getPlayer().sendMessage(ChatColor.DARK_AQUA + l1.city + " - " + l1.postalCode);
			}
		}
	}    
}<commit_msg>just a test<commit_after>package info.tregmine.lookup;

import java.io.IOException;
import java.net.InetSocketAddress;

//import org.bukkit.ChatColor;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
//import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerListener;

import com.maxmind.geoip.Location;
import com.maxmind.geoip.LookupService;


public class LookupPlayer extends PlayerListener {
	private final Lookup plugin;
	private LookupService cl = null;

	public LookupPlayer(Lookup instance) {
		plugin = instance;
		try {
			cl = new LookupService("/home/minecraft/minecraft/GeoIPCity.dat", LookupService.GEOIP_MEMORY_CACHE );
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}

	public void onPlayerJoin(PlayerJoinEvent event) {
		Player player = event.getPlayer();
		InetSocketAddress sock = player.getAddress();
		String ip = sock.getAddress().getHostAddress();
		String host = sock.getAddress().getCanonicalHostName();
		info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tregminePlayer.get(player.getName());

		if (cl != null) {
			Location l1 = cl.getLocation(ip);
			plugin.log.info(event.getPlayer().getName() + ": " + l1.countryName + ", " + l1.city + ", " + ip + ", " + l1.postalCode + ", " + l1.region + ", " + host);
			tregminePlayer.setMetaString("countryName", l1.countryName);
			tregminePlayer.setMetaString("city", l1.city);
			tregminePlayer.setMetaString("ip", ip);
			tregminePlayer.setMetaString("postalCode", l1.postalCode);
			tregminePlayer.setMetaString("region", l1.region);
			tregminePlayer.setMetaString("hostname", host);
			if(!event.getPlayer().getName().matches("einand") && !event.getPlayer().getName().matches("mejjad")) {
				event.getPlayer().setPlayerListName("DuckHunt");
				this.plugin.getServer().broadcastMessage(ChatColor.DARK_AQUA + "Welcome! " + tregminePlayer.getChatName() + ChatColor.DARK_AQUA + " from " +l1.countryName);
				event.getPlayer().sendMessage(ChatColor.DARK_AQUA + l1.city + " - " + l1.postalCode);
			}
		}
	}    
}
{'fraction_non_alphanumeric': 0.14542870677404074, 'fraction_numerical': 0.005684509711037423, 'mean_word_length': 4.973125884016973, 'pattern_counts': {'":': 2, '<': 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': '3394303', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1403, 'n_words': 216}