<commit_before>package net.nunnerycode.bukkit.mythicdrops.tiers;

import net.nunnerycode.bukkit.mythicdrops.api.enchantments.MythicEnchantment;
import net.nunnerycode.bukkit.mythicdrops.api.tiers.Tier;
import org.bukkit.ChatColor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public final class MythicTier implements Tier {

    private final String name;
    private String displayName;
    private ChatColor displayColor;
    private ChatColor identificationColor;
    private List<String> baseLore;
    private List<String> bonusLore;
    private int minimumBonusLore;
    private int maximumBonusLore;
    private Set<MythicEnchantment> baseEnchantments;
    private Set<MythicEnchantment> bonusEnchantments;
    private boolean safeBaseEnchantments;
    private boolean safeBonusEnchantments;
    private boolean allowHighBaseEnchantments;
    private boolean allowHighBonusEnchantments;
    private int minimumBonusEnchantments;
    private int maximumBonusEnchantments;
    private double minimumDurabilityPercentage;
    private double maximumDurabilityPercentage;
    private List<String> allowedItemGroups;
    private List<String> disallowedItemGroups;
    private List<String> allowedItemIds;
    private List<String> disallowedItemIds;
    private int minimumSockets;
    private int maximumSockets;
    private double chanceToHaveSockets;
    private boolean broadcastOnFind;
    private double spawnChance;
    private double dropChance;
    private double identifyChance;
    private int optimalDistance;
    private int maximumDistance;

    protected MythicTier(String name) {
        this.name = name;
        baseLore = new ArrayList<>();
        bonusLore = new ArrayList<>();
        baseEnchantments = new HashSet<>();
        bonusEnchantments = new HashSet<>();<commit_msg>setting default values for optimal and maximumDistance<commit_after>package net.nunnerycode.bukkit.mythicdrops.tiers;

import net.nunnerycode.bukkit.mythicdrops.api.enchantments.MythicEnchantment;
import net.nunnerycode.bukkit.mythicdrops.api.tiers.Tier;
import org.bukkit.ChatColor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public final class MythicTier implements Tier {

    private final String name;
    private String displayName;
    private ChatColor displayColor;
    private ChatColor identificationColor;
    private List<String> baseLore;
    private List<String> bonusLore;
    private int minimumBonusLore;
    private int maximumBonusLore;
    private Set<MythicEnchantment> baseEnchantments;
    private Set<MythicEnchantment> bonusEnchantments;
    private boolean safeBaseEnchantments;
    private boolean safeBonusEnchantments;
    private boolean allowHighBaseEnchantments;
    private boolean allowHighBonusEnchantments;
    private int minimumBonusEnchantments;
    private int maximumBonusEnchantments;
    private double minimumDurabilityPercentage;
    private double maximumDurabilityPercentage;
    private List<String> allowedItemGroups;
    private List<String> disallowedItemGroups;
    private List<String> allowedItemIds;
    private List<String> disallowedItemIds;
    private int minimumSockets;
    private int maximumSockets;
    private double chanceToHaveSockets;
    private boolean broadcastOnFind;
    private double spawnChance;
    private double dropChance;
    private double identifyChance;
    private int optimalDistance = -1;
    private int maximumDistance = -1;

    protected MythicTier(String name) {
        this.name = name;
        baseLore = new ArrayList<>();
        bonusLore = new ArrayList<>();
        baseEnchantments = new HashSet<>();
        bonusEnchantments = new HashSet<>();
{'fraction_non_alphanumeric': 0.06381322957198443, 'fraction_numerical': 0.0005188067444876783, 'mean_word_length': 4.454031117397454, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '1220210', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1081, 'n_words': 281}