<commit_before>package me.AKZOMBIE74;

import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;

/**
 * Created by AKZOMBIE74 on 1/22/2016.
 */
public class ICE implements Listener {

    @EventHandler
    public void clickI(InventoryClickEvent e) {

        if (e.getInventory().getName().equalsIgnoreCase(ChatColor.translateAlternateColorCodes('&', Selector.getInstance().getConfig().getString("menu_name")))) {

            Player p = (Player) e.getWhoClicked();


            if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR || !e.getCurrentItem().hasItemMeta()) {
                p.closeInventory();
                return;
            }
            switch (e.getCurrentItem().getType()) {
                default:
                    for (String key : Selector.getInstance().getSectionKeys()) {
                        int sl = Selector.getInstance().getConfig().getInt("Servers."+key+".slot");
                        String name = Selector.getInstance().getConfig().getString("Servers."+key+".name");
                        if (e.getSlot()==sl) {
                            Selector.getInstance().getSelected().put(p.getUniqueId(), name);
                            break;
                        }
                    }
                    p.performCommand("ss");
                    p.closeInventory();
                    break;
            }
        }

    }
}<commit_msg>Stopped players from being able to move items.<commit_after>package me.AKZOMBIE74;

import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.ClickType;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.ItemStack;

/**
 * Created by AKZOMBIE74 on 1/22/2016.
 */
public class ICE implements Listener {

    @EventHandler
    public void clickI(InventoryClickEvent e) {

        if (e.getInventory().getName().equalsIgnoreCase(ChatColor.translateAlternateColorCodes('&', Selector.getInstance().getConfig().getString("menu_name")))) {

            Player p = (Player) e.getWhoClicked();


            if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR || !e.getCurrentItem().hasItemMeta()) {
                p.closeInventory();
                return;
            }
            if (e.getClick().isShiftClick()){
                e.setCancelled(true);
                return;
            }
            switch (e.getCurrentItem().getType()) {
                default:
                    for (String key : Selector.getInstance().getSectionKeys()) {
                        int sl = Selector.getInstance().getConfig().getInt("Servers."+key+".slot");
                        String name = Selector.getInstance().getConfig().getString("Servers."+key+".name");
                        if (e.getSlot()==sl) {
                            Selector.getInstance().getSelected().put(p.getUniqueId(), name);
                            break;
                        }
                    }
                    p.performCommand("ss");
                    p.closeInventory();
                    break;
            }
        }

    }
}
{'fraction_non_alphanumeric': 0.1317418213969938, 'fraction_numerical': 0.006483937518420277, 'mean_word_length': 1.8860544217687074, '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': '785041', 'n_tokens_mistral': 947, 'n_tokens_neox': 891, 'n_words': 145}