<commit_before>package me.ninjoh.nincore.api;


import me.ninjoh.nincore.api.logging.NinLogger;
import me.ninjoh.nincore.api.logging.LogColor;
import org.bukkit.plugin.java.JavaPlugin;

public class NinCorePlugin extends JavaPlugin
{
    private NinLogger logger = new NinLogger(this);
    private boolean silentDisable = false;

    @Override
    public final void onEnable()
    {
        this.getNinLogger().info("");
        this.getNinLogger().info("===== ENABLING " + LogColor.HIGHLIGHT + this.getName() + " v" + this.getDescription().getVersion() + LogColor.RESET + " =====");
        this.getNinLogger().info("");


        this.onEnableInner();


        if(this.isEnabled())
        {
            this.getNinLogger().info("");
            this.getNinLogger().info("===== " + LogColor.GOOD + "SUCCESSFULLY " + LogColor.RESET + "ENABLED " + LogColor.HIGHLIGHT + this.getName() + " v" +
                    this.getDescription().getVersion() + LogColor.RESET + " =====");
            this.getNinLogger().info("");
        }
    }


    @Override
    public final void onDisable()
    {
        if(!silentDisable)
        {
            this.getNinLogger().info("");
            this.getNinLogger().info("===== DISABLING " + LogColor.HIGHLIGHT + this.getName() + " v" + this.getDescription().getVersion() + LogColor.RESET + " =====");
            this.getNinLogger().info("");

            this.onDisableInner();

            this.getNinLogger().info("");
            this.getNinLogger().info("===== DISABLED " + LogColor.HIGHLIGHT + this.getName() + " v" + this.getDescription().getVersion() + LogColor.RESET + " =====");
            this.getNinLogger().info("");
        }
    }


    public void onEnableInner()
    {

    }


    public void onDisableInner()
    {

    }


    public final void endEnable()
    {
        this.getNinLogger().info("");
        this.getNinLogger().severe("===== COULD NOT ENABLE " + LogColor.HIGHLIGHT + this.getName() + " v" +
                this.getDescription().getVersion() + LogColor.RESET + " =====");<commit_msg>Fixed console messages when a plugin uses NinCorePlugin#endEnable<commit_after>package me.ninjoh.nincore.api;


import me.ninjoh.nincore.api.logging.NinLogger;
import me.ninjoh.nincore.api.logging.LogColor;
import org.bukkit.plugin.java.JavaPlugin;

public abstract class NinCorePlugin extends JavaPlugin
{
    private NinLogger logger = new NinLogger(this);
    private boolean silentDisable = false;

    @Override
    public final void onEnable()
    {
        this.getNinLogger().info("");
        this.getNinLogger().info("===== ENABLING " + LogColor.HIGHLIGHT + this.getName() + " v" + this.getDescription().getVersion() + LogColor.RESET + " =====");
        this.getNinLogger().info("");


        this.onEnableInner();


        if(this.isEnabled())
        {
            this.getNinLogger().info("");
            this.getNinLogger().info("===== " + LogColor.GOOD + "SUCCESSFULLY " + LogColor.RESET + "ENABLED " + LogColor.HIGHLIGHT + this.getName() + " v" +
                    this.getDescription().getVersion() + LogColor.RESET + " =====");
            this.getNinLogger().info("");
        }
    }


    @Override
    public final void onDisable()
    {
        if(!silentDisable)
        {
            this.getNinLogger().info("");
            this.getNinLogger().info("===== DISABLING " + LogColor.HIGHLIGHT + this.getName() + " v" + this.getDescription().getVersion() + LogColor.RESET + " =====");
            this.getNinLogger().info("");

            this.onDisableInner();

            this.getNinLogger().info("");
            this.getNinLogger().info("===== DISABLED " + LogColor.HIGHLIGHT + this.getName() + " v" + this.getDescription().getVersion() + LogColor.RESET + " =====");
            this.getNinLogger().info("");
        }
    }


    public abstract void onEnableInner();

    public abstract void onDisableInner();


    public final void endEnable()
    {
        this.getNinLogger().info("");
        this.getNinLogger().severe("===== COULD NOT ENABLE " + LogColor.HIGHLIGHT + this.getName() + " v" +
                this.getDescription().getVersion() + LogColor.RESET + " =====");
{'fraction_non_alphanumeric': 0.1736111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 2.6070811744386875, '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': '2364874', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1272, 'n_words': 200}