<commit_before>package openmods.igw.impl.client;

import com.google.common.collect.Lists;

import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiYesNo;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import openmods.igw.api.OpenModsIGWApi;
import openmods.igw.api.service.IConstantRetrieverService;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.List;

@SideOnly(Side.CLIENT)
public class WarningGui extends GuiYesNo {

	private static boolean shouldShow;
	private static final String TITLE = OpenModsIGWApi.get().translate("missing.title");
	private static final String MESSAGE = OpenModsIGWApi.get().translate("missing.text");
	private static final String CONTINUE_BUTTON_LABEL = OpenModsIGWApi.get().translate("button.continue");
	private static final String INSTALL_BUTTON_LABEL = OpenModsIGWApi.get().translate("button.install");
	private static final String INSTALL_BUTTON_WARNING = OpenModsIGWApi.get().translate("button.install.warning");
	private static final String IGW_URL = "http://www.curse.com/mc-mods/minecraft/223815-in-game-wiki-mod";
	private static final int CONTINUE = 0;
	private static final int INSTALL = 1;
	private static final int EXIT_CODE_INTERNAL = "IGW-Hot-Load".hashCode();

	@SuppressWarnings({"WeakerAccess","unused"})
	public WarningGui() {
		super(null,
				TITLE,
				MESSAGE,
				CONTINUE_BUTTON_LABEL,
				INSTALL_BUTTON_LABEL,
				0);
		openmods.Log.info("IGW Mod not found. Gui constructed and shown");
		shouldShow = false;
	}

	@SuppressWarnings("OptionalGetWithoutIsPresent")
	public static void markShow() {
		if (OpenModsIGWApi.get().obtainService(IConstantRetrieverService.class).get()
				.cast().getBooleanConfigConstant("enableMissingModWarningMessage").get()) return;
		shouldShow = true;
	}

	@SuppressWarnings("WeakerAccess")
	public static boolean shallShow() {<commit_msg>Fix broken logic in Warning GUI<commit_after>package openmods.igw.impl.client;

import com.google.common.collect.Lists;

import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiYesNo;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import openmods.igw.api.OpenModsIGWApi;
import openmods.igw.api.service.IConstantRetrieverService;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.List;

@SideOnly(Side.CLIENT)
public class WarningGui extends GuiYesNo {

	private static boolean shouldShow;
	private static final String TITLE = OpenModsIGWApi.get().translate("missing.title");
	private static final String MESSAGE = OpenModsIGWApi.get().translate("missing.text");
	private static final String CONTINUE_BUTTON_LABEL = OpenModsIGWApi.get().translate("button.continue");
	private static final String INSTALL_BUTTON_LABEL = OpenModsIGWApi.get().translate("button.install");
	private static final String INSTALL_BUTTON_WARNING = OpenModsIGWApi.get().translate("button.install.warning");
	private static final String IGW_URL = "http://www.curse.com/mc-mods/minecraft/223815-in-game-wiki-mod";
	private static final int CONTINUE = 0;
	private static final int INSTALL = 1;
	private static final int EXIT_CODE_INTERNAL = "IGW-Hot-Load".hashCode();

	@SuppressWarnings({"WeakerAccess","unused"})
	public WarningGui() {
		super(null,
				TITLE,
				MESSAGE,
				CONTINUE_BUTTON_LABEL,
				INSTALL_BUTTON_LABEL,
				0);
		openmods.Log.info("IGW Mod not found. Gui constructed and shown");
		shouldShow = false;
	}

	@SuppressWarnings("OptionalGetWithoutIsPresent")
	public static void markShow() {
		if (!OpenModsIGWApi.get().obtainService(IConstantRetrieverService.class).get()
				.cast().getBooleanConfigConstant("enableMissingModWarningMessage").get()) return;
		shouldShow = true;
	}

	@SuppressWarnings("WeakerAccess")
	public static boolean shallShow() {
{'fraction_non_alphanumeric': 0.11218519460697024, 'fraction_numerical': 0.004578987534978377, 'mean_word_length': 5.922535211267606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4260170', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1283, 'n_words': 251}