<commit_before>package dmillerw.menu.gui;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;

import java.util.ArrayList;
import java.util.List;

/**
 * @author dmillerw
 */
public class GuiStack {

	public static List<GuiScreen> guiList = new ArrayList<GuiScreen>();

	public static void push(GuiScreen screen) {
		guiList.add(0, screen);
		Minecraft.getMinecraft().displayGuiScreen(screen);
	}

	public static void pop() {
		if (guiList.size() > 0) {
			guiList.remove(0);
		}

		if (guiList.size() > 0) {
			Minecraft.getMinecraft().displayGuiScreen(guiList.get(0));
		} else {
			Minecraft.getMinecraft().displayGuiScreen(null);
		}
	}
}<commit_msg>Condensed GuiStack pop method<commit_after>package dmillerw.menu.gui;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;

import java.util.ArrayList;
import java.util.List;

/**
 * @author dmillerw
 */
public class GuiStack {

	public static List<GuiScreen> guiList = new ArrayList<GuiScreen>();

	public static void push(GuiScreen screen) {
		guiList.add(0, screen);
		Minecraft.getMinecraft().displayGuiScreen(screen);
	}

	public static void pop() {
		if (guiList.size() > 0) {
			guiList.remove(0);
			Minecraft.getMinecraft().displayGuiScreen(guiList.get(0));
		} else {
			Minecraft.getMinecraft().displayGuiScreen(null);
		}
	}
}
{'fraction_non_alphanumeric': 0.13747228381374724, 'fraction_numerical': 0.0066518847006651885, 'mean_word_length': 4.689075630252101, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '3008847', 'n_tokens_mistral': 507, 'n_tokens_neox': 471, 'n_words': 86}