<commit_before>package uk.co.cloudhunter.rpgthing.gui;

import uk.co.cloudhunter.rpgthing.mipmap.MapImageBuffer;
import net.minecraft.client.Minecraft;
import net.minecraft.world.World;
import net.minecraftforge.client.event.RenderGameOverlayEvent;

public class GUILayerMipmap implements ILayerGUI {

	public GUILayerMipmap() {

	}

	@Override
	public void render(RenderGameOverlayEvent event) {
		// TODO Auto-generated method stub

	}

}<commit_msg>Adding weird inflection math<commit_after>package uk.co.cloudhunter.rpgthing.gui;

import java.util.List;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

import uk.co.cloudhunter.rpgthing.RPGThing;
import uk.co.cloudhunter.rpgthing.core.Party;
import uk.co.cloudhunter.rpgthing.core.Player;
import uk.co.cloudhunter.rpgthing.mipmap.MapImageBuffer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;

public class GUILayerMipmap extends Gui implements ILayerGUI {

	private Minecraft mc;

	private int displayWidthCache;
	private int displayHeightCache;
	private int displayScaleCache;

	private ScaledResolution res;

	public GUILayerMipmap() {
		super();
		mc = Minecraft.getMinecraft();
	}

	private long frameGlowCount = 0;

	@Override
	public void render(RenderGameOverlayEvent event) {
		if (event.isCancelable() || event.type != ElementType.EXPERIENCE)
			return;

		if (mc.displayWidth != displayWidthCache || mc.displayHeight != displayHeightCache
				|| mc.gameSettings.guiScale != displayScaleCache) {
			res = new ScaledResolution(mc.gameSettings, mc.displayWidth, mc.displayHeight);
			displayWidthCache = mc.displayWidth;
			displayHeightCache = mc.displayHeight;
			displayScaleCache = mc.gameSettings.guiScale;
		}

		Player p = Player.getPlayer(mc.thePlayer.username, true);
		if (p.getParty() != null) {
			Party party = p.getParty();
			Player[] partyPlayers = party.getPlayers();
			List<EntityPlayer> worldPlayers = mc.theWorld.playerEntities;
			for (int i = 0; i < partyPlayers.length; i++) {
				String playerName = partyPlayers[i].getName();
				if (playerName.equals(mc.thePlayer.username))
					continue;
				renderPlayer(partyPlayers[i].getClientPlayer());
			}
		}
	}

	public void renderPlayer(EntityPlayer entity) {
		AbstractClientPlayer abstractClient = getAbstractFromEntity(entity);
		if (abstractClient == null)
			return;
		ResourceLocation loc = abstractClient.getLocationSkin();
		if (loc == null)
			return;

		GL11.glColor3f(1.0f, 1.0f, 1.0f);
		GL11.glEnable(GL11.GL_BLEND);
		GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

		double cx = res.getScaledWidth_double();
		double cy = res.getScaledHeight_double();

		Vec3 thatV = entity.getPosition(1.0f);
		Vec3 thisV = mc.thePlayer.getPosition(1.0f);
		Vec3 product = thisV.subtract(thatV);
		double inflect = Math.atan2(product.zCoord, product.xCoord);

		GL11.glDisable(GL11.GL_BLEND);
	}

	private AbstractClientPlayer getAbstractFromEntity(EntityPlayer entity) {
		if (entity instanceof AbstractClientPlayer)
			return (AbstractClientPlayer) entity;
		return null;
	}

}
{'fraction_non_alphanumeric': 0.10576923076923077, 'fraction_numerical': 0.010439560439560439, 'mean_word_length': 5.266781411359725, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6813252', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1201, 'n_words': 217}