<commit_before>package com.jcwhatever.bukkit.rental;

import com.jcwhatever.bukkit.generic.GenericsPlugin;
import com.jcwhatever.bukkit.generic.signs.SignManager;
import com.jcwhatever.bukkit.rental.commands.CommandHandler;
import com.jcwhatever.bukkit.rental.events.GlobalListener;
import com.jcwhatever.bukkit.rental.region.RentRegionManager;
import com.jcwhatever.bukkit.rental.signs.RentalSignHandler;
import org.bukkit.ChatColor;
import org.bukkit.plugin.PluginManager;

public class RentalRooms extends GenericsPlugin {

	private static RentalRooms _instance;
	private RentRegionManager _region;
	private GlobalListener _listener;
	private BillCollector _billCollector;
    private SignManager _signManager;
    private RentalSignHandler _signHandler;
	
	public static final String DATE_FORMAT = "MMM d, yyyy 'at' hh:mm aaa zzzz";
	
	public RentalRooms() {
		_instance = this;
	}
	
	public static RentalRooms getInstance() {
		return _instance;
	}
	
	public RentRegionManager getRegionManager() {
		return _region;
	}
	
	public BillCollector getBillCollector() {
		return _billCollector;
	}

    public SignManager getSignManager() {
        return _signManager;
    }

    public RentalSignHandler getSignHandler() {
        return _signHandler;
    }
	
	@Override
	public String getChatPrefix() {
		return ChatColor.GOLD + "[Rental] " + ChatColor.RESET;
	}

	@Override
	public String getConsolePrefix() {
		return "[Rental] ";
	}

    @Override
    protected void onEnablePlugin() {
        _region = new RentRegionManager(getSettings().getNode("regions"));
        _listener = new GlobalListener(_region);
        _signManager = new SignManager(this, getSettings().getNode("signs.rental"));
        _billCollector = new BillCollector(this.getSettings().getNode("econ"));


        _signHandler = new RentalSignHandler();
        _signManager.registerSignType(_signHandler);

        registerListeners();
    }

    @Override
    protected void onDisablePlugin() {

    }

	private void registerListeners() {
        CommandHandler handler = new CommandHandler(this);
        getCommand("rent").setExecutor(handler);
        PluginManager pm = getServer().getPluginManager();
        pm.registerEvents(_listener, this);
    }
	
	

}
<commit_msg>Add comments to GenericsPlugin, refactor GenericsPlugin.getSettings to getDataNode<commit_after>package com.jcwhatever.bukkit.rental;

import com.jcwhatever.bukkit.generic.GenericsPlugin;
import com.jcwhatever.bukkit.generic.signs.SignManager;
import com.jcwhatever.bukkit.rental.commands.CommandHandler;
import com.jcwhatever.bukkit.rental.events.GlobalListener;
import com.jcwhatever.bukkit.rental.region.RentRegionManager;
import com.jcwhatever.bukkit.rental.signs.RentalSignHandler;
import org.bukkit.ChatColor;
import org.bukkit.plugin.PluginManager;

public class RentalRooms extends GenericsPlugin {

	private static RentalRooms _instance;
	private RentRegionManager _region;
	private GlobalListener _listener;
	private BillCollector _billCollector;
    private SignManager _signManager;
    private RentalSignHandler _signHandler;
	
	public static final String DATE_FORMAT = "MMM d, yyyy 'at' hh:mm aaa zzzz";
	
	public RentalRooms() {
		_instance = this;
	}
	
	public static RentalRooms getInstance() {
		return _instance;
	}
	
	public RentRegionManager getRegionManager() {
		return _region;
	}
	
	public BillCollector getBillCollector() {
		return _billCollector;
	}

    public SignManager getSignManager() {
        return _signManager;
    }

    public RentalSignHandler getSignHandler() {
        return _signHandler;
    }
	
	@Override
	public String getChatPrefix() {
		return ChatColor.GOLD + "[Rental] " + ChatColor.RESET;
	}

	@Override
	public String getConsolePrefix() {
		return "[Rental] ";
	}

    @Override
    protected void onEnablePlugin() {
        _region = new RentRegionManager(getDataNode().getNode("regions"));
        _listener = new GlobalListener(_region);
        _signManager = new SignManager(this, getDataNode().getNode("signs.rental"));
        _billCollector = new BillCollector(this.getDataNode().getNode("econ"));


        _signHandler = new RentalSignHandler();
        _signManager.registerSignType(_signHandler);

        registerListeners();
    }

    @Override
    protected void onDisablePlugin() {

    }

	private void registerListeners() {
        CommandHandler handler = new CommandHandler(this);
        getCommand("rent").setExecutor(handler);
        PluginManager pm = getServer().getPluginManager();
        pm.registerEvents(_listener, this);
    }
	
	

}

{'fraction_non_alphanumeric': 0.09180327868852459, 'fraction_numerical': 0.0, 'mean_word_length': 4.147356580427447, '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': '7242948', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1313, 'n_words': 281}