<commit_before>package co.uk.niadel.napi.forgewrapper;

import cpw.mods.fml.client.IModGuiFactory;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;

import java.util.Set;

/**
 * The GUI Factory for N-API.
 */
public class NAPIConfigGUIFactory implements IModGuiFactory
{
	@Override
	public void initialize(Minecraft minecraftInstance) {

	}

	@Override
	public Class<? extends GuiScreen> mainConfigGuiClass() {
		return NAPIConfigGUI.class;
	}

	@Override
	public Set<RuntimeOptionCategoryElement> runtimeGuiCategories() {
		return null;
	}

	@Override
	public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement element) {
		return null;
	}
}<commit_msg>N-API config GUI factory can now be disabled via the VM arg -Dnapi.disableForgeCFG, or something like that.<commit_after>package co.uk.niadel.napi.forgewrapper;

import cpw.mods.fml.client.IModGuiFactory;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;

import java.util.Set;

/**
 * The GUI Factory for N-API.
 */
public class NAPIConfigGUIFactory implements IModGuiFactory
{
	@Override
	public void initialize(Minecraft minecraftInstance) {

	}

	@Override
	public Class<? extends GuiScreen> mainConfigGuiClass()
	{
		if (Boolean.valueOf(System.getProperty("napi.disableForgeCFG", "false")))
		{
			return NAPIConfigGUI.class;
		}
		else
		{
			return null;
		}
	}

	@Override
	public Set<RuntimeOptionCategoryElement> runtimeGuiCategories()
	{
		return null;
	}

	@Override
	public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement element)
	{
		return null;
	}
}
{'fraction_non_alphanumeric': 0.09376927822331894, 'fraction_numerical': 0.0, 'mean_word_length': 5.074906367041199, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4938201', 'n_tokens_mistral': 546, 'n_tokens_neox': 519, 'n_words': 114}