<commit_before>package com.github.games647.scoreboardstats.variables;

import com.github.games647.scoreboardstats.BackwardsCompatibleUtil;
import com.github.games647.scoreboardstats.variables.defaults.*;
import com.github.games647.scoreboardstats.config.Lang;
import com.github.games647.scoreboardstats.SbManager;
import com.github.games647.scoreboardstats.ScoreboardStats;
import com.github.games647.scoreboardstats.config.Settings;
import com.github.games647.scoreboardstats.config.VariableItem;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;

import java.lang.reflect.InvocationTargetException;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;

/**
 * Handling the replace management
 */
public class ReplaceManager implements Listener {

    private static final Map<Class<? extends VariableReplaceAdapter<?>>, String> DEFAULTS;

    static {
        Map<Class<? extends VariableReplaceAdapter<?>>, String> tempMap = Maps.newHashMap();
        //empty value means this plugin
        tempMap.put(BukkitVariables.class, "");
        tempMap.put(BukkitGlobalVariables.class, "");
        tempMap.put(GeneralVariables.class, "");
        tempMap.put(PlayerPingVariable.class, "");
        tempMap.put(BungeeCordVariables.class, "");
        tempMap.put(VanishVariables.class, "");

        tempMap.put(VaultVariables.class, "Vault");

        tempMap.put(HeroesVariables.class, "Heroes");
        tempMap.put(McmmoVariables.class, "mcMMO");
        tempMap.put(SkyblockVariables.class, "uSkyBlock");
        tempMap.put(PlayerPointsVariables.class, "PlayerPoints");
        tempMap.put(McPrisonVariables.class, "Prison");
        tempMap.put(BukkitGamesVariables.class, "BukkitGames");
        tempMap.put(CraftconomyVariables.class, "Craftconomy3");
        tempMap.put(ASkyBlockVariables.class, "ASkyBlock");

        tempMap.put(SimpleClansVariables.class, "SimpleClans");
        //factions will be automatically disabled if mcore isn't enabled
        tempMap.put(FactionsVariables.class, "Factions");

        tempMap.put(PlaceHolderVariables.class, "PlaceholderAPI");

        //Prevent further modifications
        DEFAULTS = ImmutableMap.copyOf(tempMap);
    }

    private final Set<String> skipList = Sets.newHashSet();
    private final Set<VariableReplaceAdapter<?>> legacyReplacers = Sets.newHashSet();
    private final Map<String, VariableReplaceAdapter<?>> globals = Maps.newHashMap();
    private final Map<String, VariableReplaceAdapter<?>> specificReplacer = Maps.newHashMap();

    private final ScoreboardStats plugin;
    private final SbManager sbManager;<commit_msg>Fix building<commit_after>package com.github.games647.scoreboardstats.variables;

import com.github.games647.scoreboardstats.BackwardsCompatibleUtil;
import com.github.games647.scoreboardstats.variables.defaults.*;
import com.github.games647.scoreboardstats.config.Lang;
import com.github.games647.scoreboardstats.SbManager;
import com.github.games647.scoreboardstats.ScoreboardStats;
import com.github.games647.scoreboardstats.config.Settings;
import com.github.games647.scoreboardstats.config.VariableItem;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;

import java.lang.reflect.InvocationTargetException;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;

/**
 * Handling the replace management
 */
public class ReplaceManager implements Listener {

    private static final Map<Class<? extends VariableReplaceAdapter<?>>, String> DEFAULTS;

    static {
        Map<Class<? extends VariableReplaceAdapter<?>>, String> tempMap = Maps.newHashMap();
        //empty value means this plugin
        tempMap.put(BukkitVariables.class, "");
        tempMap.put(BukkitGlobalVariables.class, "");
        tempMap.put(GeneralVariables.class, "");
        tempMap.put(PlayerPingVariable.class, "");
        tempMap.put(BungeeCordVariables.class, "");

        tempMap.put(VaultVariables.class, "Vault");

        tempMap.put(HeroesVariables.class, "Heroes");
        tempMap.put(McmmoVariables.class, "mcMMO");
        tempMap.put(SkyblockVariables.class, "uSkyBlock");
        tempMap.put(PlayerPointsVariables.class, "PlayerPoints");
        tempMap.put(McPrisonVariables.class, "Prison");
        tempMap.put(BukkitGamesVariables.class, "BukkitGames");
        tempMap.put(CraftconomyVariables.class, "Craftconomy3");
        tempMap.put(ASkyBlockVariables.class, "ASkyBlock");

        tempMap.put(SimpleClansVariables.class, "SimpleClans");
        //factions will be automatically disabled if mcore isn't enabled
        tempMap.put(FactionsVariables.class, "Factions");

        tempMap.put(PlaceHolderVariables.class, "PlaceholderAPI");

        //Prevent further modifications
        DEFAULTS = ImmutableMap.copyOf(tempMap);
    }

    private final Set<String> skipList = Sets.newHashSet();
    private final Set<VariableReplaceAdapter<?>> legacyReplacers = Sets.newHashSet();
    private final Map<String, VariableReplaceAdapter<?>> globals = Maps.newHashMap();
    private final Map<String, VariableReplaceAdapter<?>> specificReplacer = Maps.newHashMap();

    private final ScoreboardStats plugin;
    private final SbManager sbManager;
{'fraction_non_alphanumeric': 0.11389128559102675, 'fraction_numerical': 0.008628127696289905, 'mean_word_length': 4.551724137931035, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3406162', 'n_tokens_mistral': 1759, 'n_tokens_neox': 1675, 'n_words': 293}