<commit_before>import ui.*;
import ui.elem.*;
import util.*;
public class StagePrologue extends Stage {
    private Dialog mainDialog;
    private Choice a;
    private Choice b;    
    private Choice c;
    
    @Override
    public void choiceClicked(Element elementVar) {
        Choice choiceObject = (Choice)elementVar;
        if(choiceObject.getLabel().equals("START")){
            prestage();
            a.setLabel("Next", true);
            return;
        }
        
        if(choiceObject.getLabel().equals("Next")) {
        	if(DataHandler.player == null) {
	            chooseClass();
	            this.addElements(b);
        	} else {
        		this.nextStage();
        	}
            return;
        }
        
        if(choiceObject.getLabel().equals("Tank")){
        	DataHandler.player = new Tank();
            chooseItem();
            return;
        } else if(choiceObject.getLabel().equals("Normal")){
        	DataHandler.player = new EntityPlayer();
        	chooseItem();
        	return;
        } else if(choiceObject.getLabel().equals("Assassin")){
        	DataHandler.player = new Assassin();
        	chooseItem();
        	return;
        }
        
        if(choiceObject.getLabel().equals("Wand")){
            DataHandler.player.addItem(Item.basicSword);
            poststage();
            return;
        } else if(choiceObject.getLabel().equals("Holy SFHS iPad")){
            DataHandler.player.addItem(Item.basicWand);
            poststage();
            return;
        } else if(choiceObject.getLabel().equals("Pistol")){
            DataHandler.player.addItem(Item.pistol);
            poststage();
            return;
        }
    }
    
    @Override
    public void taskPerformed() {
    }

    @Override
    public void init() {
        a = new Choice("START");
        b = new Choice();
        c = new Choice();
        mainDialog = new Dialog();
        this.addElements(mainDialog, a);
        mainDialog.setText("Hello! Welcome to the Game!", "Press START to Continue");
    }
    
    public void prestage(){
        mainDialog.setText("It's the year 151515, after the Last World War, with", "President Obama L finally dead,", "anarchy reigns as Ebola Z runs throughout the world. As Brad", "Pitt and <NAME> rebuild ", "their giant mansion on the newly formed Hawaiian island of N'vu L'nodo,", "<NAME> Jr.finally accepts his responsibility as Iron Man", "and forms SHIELD along with <NAME>. ", "You are stuck in Seattle, the pot capital of the world, as you try", " to save the human race from ", "the deadly disease. <NAME> and <NAME> are rumored to have protection and their own ", "private army, but SHIELD offers the Avengers and the Guardians of the Galaxy. With SHIELD there", "is a hope of being transported to another dimension. How will you proceed?", "Click Next to Continue");
    }
    
    public void chooseClass(){
        a.setLabel("Tank", true);
        b.setLabel("Normal", true);
        c.setLabel("Assassin", true);
        this.addElements(c);
        mainDialog.setText("What CLASS will you choose?", "Tank - High Health", "Normal - Average", "Assassin - High Speed/Attack");
    }
    
    public void chooseItem() {
    	this.removeElements(a, b, c);
    	this.addElements(a, b, c); //make sure they are in order :)
    	a.setLabel("Wand", true);
    	b.setLabel("Holy SFHS iPad", true);
    	c.setLabel("Pistol", true);
    	mainDialog.setText("You wake up and get ready to leave your apartment.", "What weapon will you take?", "Option 1: Wand", "Option 2: Holy SFHS iPad", "Option 3: Pistol");
    }
    
    public void poststage() {
    	this.removeElements(b, c);
        a.setLabel("Next", true);
        mainDialog.setText("You leave your apartment, after locking all your doors and windows.", "The other tenants of your building have long since left.", "One 50 year old man claimed to be smuggling out a 14 year old girl whose blood has the cure to Ebola Z.", "You don't care about any of this.", "With food, fresh water, and ammo running low, you have to get out.", "Where will you go?" );
    }
}
<commit_msg>more images<commit_after>import ui.*;
import ui.elem.*;
import util.*;
public class StagePrologue extends Stage {
    private Dialog mainDialog;
    private Choice a;
    private Choice b;    
    private Choice c;
    
    @Override
    public void choiceClicked(Element elementVar) {
        Choice choiceObject = (Choice)elementVar;
        if(choiceObject.getLabel().equals("START")){
            prestage();
            a.setLabel("Next", true);
            return;
        }
        
        if(choiceObject.getLabel().equals("Next")) {
        	if(DataHandler.player == null) {
	            chooseClass();
	            this.addElements(b);
        	} else {
        		this.nextStage();
        	}
            return;
        }
        
        if(choiceObject.getLabel().equals("Tank")){
        	DataHandler.player = new Tank();
            chooseItem();
            return;
        } else if(choiceObject.getLabel().equals("Normal")){
        	DataHandler.player = new EntityPlayer();
        	chooseItem();
        	return;
        } else if(choiceObject.getLabel().equals("Assassin")){
        	DataHandler.player = new Assassin();
        	chooseItem();
        	return;
        }
        
        if(choiceObject.getLabel().equals("Wand")){
            DataHandler.player.addItem(Item.basicSword);
            poststage();
            return;
        } else if(choiceObject.getLabel().equals("Holy SFHS iPad")){
            DataHandler.player.addItem(Item.basicWand);
            poststage();
            return;
        } else if(choiceObject.getLabel().equals("Pistol")){
            DataHandler.player.addItem(Item.pistol);
            poststage();
            return;
        }
    }
    
    @Override
    public void taskPerformed() {
    }

    @Override
    public void init() {
        a = new Choice("START");
        b = new Choice();
        c = new Choice();
        mainDialog = new Dialog();
        this.addElements(mainDialog, a);
        mainDialog.setText("Hello! Welcome to the Game!", "Press START to Continue");
    }
    
    public void prestage(){
        mainDialog.setText("It's the year 151515, after the Last World War, with", "President Obama L finally dead,", "anarchy reigns as Ebola Z runs throughout the world. As Brad", "Pitt and <NAME> rebuild ", "their giant mansion on the newly formed Hawaiian island of N'vu L'nodo,", "<NAME> Jr.finally accepts his responsibility as Iron Man", "and forms SHIELD along with <NAME>. ", "You are stuck in Seattle, the pot capital of the world, as you try", " to save the human race from ", "the deadly disease. <NAME> and <NAME> are rumored to have protection and their own ", "private army, but SHIELD offers the Avengers and the Guardians of the Galaxy. With SHIELD there", "is a hope of being transported to another dimension. How will you proceed?", "Click Next to Continue");
    }
    
    public void chooseClass(){
        a.setLabel("Tank", true);
        b.setLabel("Normal", true);
        c.setLabel("Assassin", true);
        this.addElements(c, new Sprite("tank.png", 0.5f), new Sprite("norm.png", 0.5f), new Sprite("assassin.png", 0.5f));
        mainDialog.setText("What CLASS will you choose?", "Tank - High Health", "Normal - Average", "Assassin - High Speed/Attack");
    }
    
    public void chooseItem() {
    	this.removeElements(a, b, c);
    	this.addElements(a, b, c); //make sure they are in order :)
    	a.setLabel("Wand", true);
    	b.setLabel("Holy SFHS iPad", true);
    	c.setLabel("Pistol", true);
    	mainDialog.setText("You wake up and get ready to leave your apartment.", "What weapon will you take?", "Option 1: Wand", "Option 2: Holy SFHS iPad", "Option 3: Pistol");
    }
    
    public void poststage() {
    	this.removeElements(b, c);
        a.setLabel("Next", true);
        mainDialog.setText("You leave your apartment, after locking all your doors and windows.", "The other tenants of your building have long since left.", "One 50 year old man claimed to be smuggling out a 14 year old girl whose blood has the cure to Ebola Z.", "You don't care about any of this.", "With food, fresh water, and ammo running low, you have to get out.", "Where will you go?" );
    }
}

{'fraction_non_alphanumeric': 0.12097162097162097, 'fraction_numerical': 0.003848003848003848, 'mean_word_length': 2.4296907216494845, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2595397', 'n_tokens_mistral': 2393, 'n_tokens_neox': 2305, 'n_words': 778}