<commit_before>package buildings;
import game.Building;

import java.text.DecimalFormat;

import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;
import javax.swing.JTextArea;

import com.jogamp.opengl.util.texture.Texture;

public class FMPBuilding extends Building{
	private Texture brickTexture, insideWall, floorTexture,ceilingTexture, doorTexture, grassTexture, screenTexture;
	private Texture one,two,three,tableTexture;
	private int floorNumber =0;
	private JTextArea matArea= new JTextArea(4,20);
	private DecimalFormat fmt = new DecimalFormat("#0.00");

	public FMPBuilding(GL2 gl, GLU glu) {
		insideWall = setupTexture(gl, "FMPInsideWall.png");
		brickTexture     = setupTexture(gl, "FMPbricks.png"); // if this causes trouble, try bricks.gif
		floorTexture     = setupTexture(gl, "FMPfloor.jpg"); // if this causes trouble, try bricks.gif
		ceilingTexture     = setupTexture(gl, "FMPceiling.jpg"); // if this causes trouble, try bricks.gif
		doorTexture     = setupTexture(gl, "FMPdoorTexture.jpg"); // if this causes trouble, try bricks.gif
		grassTexture     = setupTexture(gl, "FMPgrass.jpg"); // if this causes trouble, try bricks.gif
		screenTexture     = setupTexture(gl, "FMPscreen.jpg"); // if this causes trouble, try bricks.gif
		one				= setupTexture(gl, "FMP1.jpg"); // if this causes trouble, try bricks.gif
		two 			= setupTexture(gl, "FMP2.jpg"); // if this causes trouble, try bricks.gif
		three			= setupTexture(gl, "FMP3.jpg"); // if this causes trouble, try bricks.gif
		tableTexture = setupTexture(gl, "FMPtable.jpg"); // if this causes trouble, try bricks.gif
	}

	private float frames = 0;
	public void draw(GL2 gl, GLU glu) {
		++frames;
		addTV(gl);	
		addTable(gl);	
		addLeg(gl,0,0,0, matArea);
		addLeg(gl,0,0,-4,matArea);
		addLeg(gl,4,0,-4,matArea);
		addLeg(gl,4,0,0,matArea);		
		floorNumber=0;
		newFloor(gl);floorNumber++;
		newFloor(gl);floorNumber++;
		newFloor(gl);
		addField(gl);
	}
	private void addTable(GL2 gl){
		gl.glEnable(GL2.GL_CULL_FACE);
		gl.glEnable(GL2.GL_TEXTURE_2D);	
		gl.glPushMatrix();		
		gl.glTranslatef(60, 0, 30);
		gl.glScalef(2, 2, 1);
		tableTexture.bind(gl);		
		//top	
		gl.glTexCoord2f(0f,2f); gl.glVertex3f(100,  0, 0);
		gl.glTexCoord2f(3f,2f); gl.glVertex3f(100,  0, 100);
		gl.glTexCoord2f(3f,0f); gl.glVertex3f(0,  0, 100);
		gl.glTexCoord2f(0f,0f); gl.glVertex3f(0,  0,0);

		gl.glBegin(GL2.GL_QUADS);
		gl.glVertex3f(-2, 2, 10);gl.glTexCoord2f(0f,2f); 	
		gl.glVertex3f( 2, 2, 10);gl.glTexCoord2f(3f,2f);
		gl.glVertex3f( 2, 2, 5);gl.glTexCoord2f(3f,0f);
		gl.glVertex3f(-2, 2, 5);gl.glTexCoord2f(0f,0f); 
		gl.glEnd();

		gl.glBegin(GL2.GL_QUADS);
		gl.glVertex3f(-2, 2, 10);gl.glTexCoord2f(0f,0f); 	
		gl.glVertex3f(-2, 2, 5);gl.glTexCoord2f(3f,0f);		
		gl.glVertex3f( 2, 2, 5);gl.glTexCoord2f(3f,2f);
		gl.glVertex3f( 2, 2, 10);gl.glTexCoord2f(0f,2f);
		gl.glEnd();
		
		gl.glPopMatrix();<commit_msg>Moved the creation of Francisco's TV to the drawMoving method so that the screen would properly animate.<commit_after>package buildings;
import game.Building;

import java.text.DecimalFormat;

import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;
import javax.swing.JTextArea;

import com.jogamp.opengl.util.texture.Texture;

public class FMPBuilding extends Building{
	private Texture brickTexture, insideWall, floorTexture,ceilingTexture, doorTexture, grassTexture, screenTexture;
	private Texture one,two,three,tableTexture;
	private int floorNumber =0;
	private JTextArea matArea= new JTextArea(4,20);
	private DecimalFormat fmt = new DecimalFormat("#0.00");

	public FMPBuilding(GL2 gl, GLU glu) {
		insideWall = setupTexture(gl, "FMPInsideWall.png");
		brickTexture     = setupTexture(gl, "FMPbricks.png"); // if this causes trouble, try bricks.gif
		floorTexture     = setupTexture(gl, "FMPfloor.jpg"); // if this causes trouble, try bricks.gif
		ceilingTexture     = setupTexture(gl, "FMPceiling.jpg"); // if this causes trouble, try bricks.gif
		doorTexture     = setupTexture(gl, "FMPdoorTexture.jpg"); // if this causes trouble, try bricks.gif
		grassTexture     = setupTexture(gl, "FMPgrass.jpg"); // if this causes trouble, try bricks.gif
		screenTexture     = setupTexture(gl, "FMPscreen.jpg"); // if this causes trouble, try bricks.gif
		one				= setupTexture(gl, "FMP1.jpg"); // if this causes trouble, try bricks.gif
		two 			= setupTexture(gl, "FMP2.jpg"); // if this causes trouble, try bricks.gif
		three			= setupTexture(gl, "FMP3.jpg"); // if this causes trouble, try bricks.gif
		tableTexture = setupTexture(gl, "FMPtable.jpg"); // if this causes trouble, try bricks.gif
	}

	private float frames = 0;
	public void draw(GL2 gl, GLU glu) {
		++frames;
		addTable(gl);
		addLeg(gl,0,0,0, matArea);
		addLeg(gl,0,0,-4,matArea);
		addLeg(gl,4,0,-4,matArea);
		addLeg(gl,4,0,0,matArea);		
		floorNumber=0;
		newFloor(gl);floorNumber++;
		newFloor(gl);floorNumber++;
		newFloor(gl);
		addField(gl);
	}
	
	@Override
	public void drawMoving(GL2 gl, GLU glu, float eyeX, float eyeY, float eyeZ) {
		addTV(gl);
	}
	
	private void addTable(GL2 gl){
		gl.glEnable(GL2.GL_CULL_FACE);
		gl.glEnable(GL2.GL_TEXTURE_2D);	
		gl.glPushMatrix();		
		gl.glTranslatef(60, 0, 30);
		gl.glScalef(2, 2, 1);
		tableTexture.bind(gl);		
		//top	
		gl.glTexCoord2f(0f,2f); gl.glVertex3f(100,  0, 0);
		gl.glTexCoord2f(3f,2f); gl.glVertex3f(100,  0, 100);
		gl.glTexCoord2f(3f,0f); gl.glVertex3f(0,  0, 100);
		gl.glTexCoord2f(0f,0f); gl.glVertex3f(0,  0,0);

		gl.glBegin(GL2.GL_QUADS);
		gl.glVertex3f(-2, 2, 10);gl.glTexCoord2f(0f,2f); 	
		gl.glVertex3f( 2, 2, 10);gl.glTexCoord2f(3f,2f);
		gl.glVertex3f( 2, 2, 5);gl.glTexCoord2f(3f,0f);
		gl.glVertex3f(-2, 2, 5);gl.glTexCoord2f(0f,0f); 
		gl.glEnd();

		gl.glBegin(GL2.GL_QUADS);
		gl.glVertex3f(-2, 2, 10);gl.glTexCoord2f(0f,0f); 	
		gl.glVertex3f(-2, 2, 5);gl.glTexCoord2f(3f,0f);		
		gl.glVertex3f( 2, 2, 5);gl.glTexCoord2f(3f,2f);
		gl.glVertex3f( 2, 2, 10);gl.glTexCoord2f(0f,2f);
		gl.glEnd();
		
		gl.glPopMatrix();
{'fraction_non_alphanumeric': 0.15095285857572718, 'fraction_numerical': 0.045971247074557006, 'mean_word_length': 4.458941605839416, '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': '2622149', 'n_tokens_mistral': 2654, 'n_tokens_neox': 2382, 'n_words': 484}