<commit_before>package com.gamingmesh.jobs.McMMO;

import java.util.HashMap;
import java.util.UUID;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

import com.gamingmesh.jobs.Jobs;

public class McMMOManager {

    public boolean mcMMOPresent = false;

    private HashMap<UUID, HashMap<String, Long>> map = new HashMap<>();

    public double getMultiplier(Player player) {

	if (player == null)
	    return 0D;

	HashMap<String, Long> InfoMap = map.get(player.getUniqueId());
	if (InfoMap == null)
	    return 0D;

	Long t = InfoMap.get("TREE_FELLER");
	if (t != null) {
	    if (t < System.currentTimeMillis())
		return -(1 - Jobs.getGCManager().TreeFellerMultiplier);
	    InfoMap.remove("TREE_FELLER");
	}

	t = InfoMap.get("GIGA_DRILL_BREAKER");
	if (t != null) {
	    if (t < System.currentTimeMillis())
		return -(1 - Jobs.getGCManager().gigaDrillMultiplier);
	    InfoMap.remove("GIGA_DRILL_BREAKER");
	}

	t = InfoMap.get("SUPER_BREAKER");
	if (t != null) {
	    if (t < System.currentTimeMillis())
		return -(1 - Jobs.getGCManager().superBreakerMultiplier);
	    InfoMap.remove("SUPER_BREAKER");
	}

	return 0D;
    }

    public boolean CheckmcMMO() {
	Plugin McMMO = Bukkit.getPluginManager().getPlugin("mcMMO");
	if (McMMO != null) {
	    try {
		Class.forName("com.gmail.nossr50.api.AbilityAPI");
	    } catch (ClassNotFoundException e) {
		// Disabling skill API check;
		mcMMOPresent = false;
		Jobs.consoleMsg("&e[Jobs] &6mcMMO was found - &cBut your McMMO version is outdated, please update for full support.");
		// Still enabling event listener for repair
		return true;
	    }

	    mcMMOPresent = true;
	    Jobs.consoleMsg("&e[Jobs] &6mcMMO" + McMMO.getDescription().getVersion() + " was found - Enabling capabilities.");
	    return true;
	}
	return false;
    }

    public HashMap<UUID, HashMap<String, Long>> getMap() {
	return map;
    }

    public void setMap(HashMap<UUID, HashMap<String, Long>> map) {
	this.map = map;
    }
}
<commit_msg>Add AbilityType and SuperAbilityType back<commit_after>package com.gamingmesh.jobs.McMMO;

import java.util.HashMap;
import java.util.UUID;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

import com.gamingmesh.jobs.Jobs;
import com.gmail.nossr50.datatypes.skills;

public class McMMOManager {

    public boolean mcMMOPresent = false;
	
	public boolean mcMMOOverHaul = false;

    private HashMap<UUID, HashMap<String, Long>> map = new HashMap<>();

    public double getMultiplier(Player player) {

	if (player == null)
	    return 0D;

	HashMap<String, Long> InfoMap = map.get(player.getUniqueId());
	if (InfoMap == null)
	    return 0D;
	
	if (mcMMOOverHaul = true) {
		Long t = InfoMap.get(SuperAbilityType.TREE_FELLER);
		if (t != null) {
			if (t < System.currentTimeMillis())
			return -(1 - Jobs.getGCManager().TreeFellerMultiplier);
			InfoMap.remove(SuperAbilityType.TREE_FELLER);
		}

		t = InfoMap.get(SuperAbilityType.GIGA_DRILL_BREAKER);
		if (t != null) {
			if (t < System.currentTimeMillis())
			return -(1 - Jobs.getGCManager().gigaDrillMultiplier);
			InfoMap.remove(SuperAbilityType.GIGA_DRILL_BREAKER);
		}

		t = InfoMap.get(SuperAbilityType.SUPER_BREAKER);
		if (t != null) {
			if (t < System.currentTimeMillis())
			return -(1 - Jobs.getGCManager().superBreakerMultiplier);
			InfoMap.remove(SuperAbilityType.SUPER_BREAKER);
		}
	} else {
		Long t = InfoMap.get(AbilityType.TREE_FELLER);
		if (t != null) {
			if (t < System.currentTimeMillis())
			return -(1 - Jobs.getGCManager().TreeFellerMultiplier);
			InfoMap.remove(AbilityType.TREE_FELLER);
		}

		t = InfoMap.get(AbilityType.GIGA_DRILL_BREAKER);
		if (t != null) {
			if (t < System.currentTimeMillis())
			return -(1 - Jobs.getGCManager().gigaDrillMultiplier);
			InfoMap.remove(AbilityType.GIGA_DRILL_BREAKER);
		}

		t = InfoMap.get(AbilityType.SUPER_BREAKER);
		if (t != null) {
			if (t < System.currentTimeMillis())
			return -(1 - Jobs.getGCManager().superBreakerMultiplier);
			InfoMap.remove(AbilityType.SUPER_BREAKER);
		}
	}

	return 0D;
    }

    public boolean CheckmcMMO() {
	Plugin McMMO = Bukkit.getPluginManager().getPlugin("mcMMO");
	if (McMMO != null) {
	    try {
		Class.forName("com.gmail.nossr50.api.AbilityAPI");
	    } catch (ClassNotFoundException e) {
		// Disabling skill API check;
		mcMMOPresent = false;
		Jobs.consoleMsg("&e[Jobs] &6mcMMO was found - &cBut your McMMO version is outdated, please update for full support.");
		// Still enabling event listener for repair
		return true;
	    }

	    mcMMOPresent = true;
		mcMMOOverHaul = true;
	    Jobs.consoleMsg("&e[Jobs] &6mcMMO" + McMMO.getDescription().getVersion() + " was found - Enabling capabilities.");
	    return true;
	}
	return false;
    }

    public HashMap<UUID, HashMap<String, Long>> getMap() {
	return map;
    }

    public void setMap(HashMap<UUID, HashMap<String, Long>> map) {
	this.map = map;
    }
}

{'fraction_non_alphanumeric': 0.12954678078194903, 'fraction_numerical': 0.004862867146469559, 'mean_word_length': 3.218211648892535, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 19, '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': '3519414', 'n_tokens_mistral': 1979, 'n_tokens_neox': 1809, 'n_words': 365}