<commit_before>package com.unknownloner.btrain.states;

import com.unknownloner.btrain.Util;
import com.unknownloner.btrain.gl.Texture;
import com.unknownloner.btrain.ui.MenuText;
import org.lwjgl.opengl.Display;

import java.io.IOException;

import static org.lwjgl.opengl.GL20.glUniform2f;
import static org.lwjgl.opengl.GL20.glUniformMatrix3;

public class LevelSelect extends GameState {

    Texture texture;

    int select = 1;

    String titleText = "Bullet Train";
    int titleX = (Display.getWidth() - Util.stringWidth(titleText, 10)) / 2;
    int titleY = Display.getHeight() * 3 / 4;
    MenuText title = new MenuText(titleText, 10, titleX, titleY, 1.0f, 1.0f, 0.0f, 1.0f);

    String levelText = "Level Select";
    int levelX = (Display.getWidth() - Util.stringWidth(levelText, 5)) / 2;
    int levelY = (Display.getHeight() * 11 / 20);
    MenuText level = new MenuText(levelText, 5, levelX, levelY, 1.0f, 1.0f, 0.0f, 1.0f);

    String exitText = "Exit Game";
    int exitX = (Display.getWidth() - Util.stringWidth(exitText, 5)) / 2;
    int exitY = (Display.getHeight() * 7 / 20);
    MenuText exit = new MenuText(exitText, 5, exitX, exitY, 1.0f, 1.0f, 0.0f, 1.0f);

    public LevelSelect() throws IOException {
        texture = Texture.load("/textures/space.jpg");
    }

    public void init(){

    }

    public void tick(){

    }

    public void draw(){
        batch.begin();
        glUniform2f(shader.uniformLoc("u_screen_size"), Display.getWidth(), Display.getHeight());

        modelBuf.clear();
        model.store(modelBuf);
        modelBuf.flip();
        glUniformMatrix3(shader.uniformLoc("u_model"), false, modelBuf);
        batch.setColor(1.0f, 1.0f, 1.0f, 1.0f);
        batch.drawTexture(texture, 0, 0, Display.getWidth(), Display.getHeight());

        batch.end();
    }
}<commit_msg>Level Select<commit_after>package com.unknownloner.btrain.states;

import com.unknownloner.btrain.Util;
import com.unknownloner.btrain.gl.Texture;
import com.unknownloner.btrain.ui.MenuText;
import org.lwjgl.opengl.Display;

import java.io.IOException;

import static org.lwjgl.opengl.GL20.glUniform2f;
import static org.lwjgl.opengl.GL20.glUniformMatrix3;

public class LevelSelect extends GameState {

    Texture texture;

    int select = 1;

    String easyText = "Easy";
    int easyX = (Display.getWidth() - Util.stringWidth(easyText, 7)) / 2;
    int easyY = Display.getHeight() * 5 / 6;
    MenuText easy = new MenuText(easyText, 7, easyX, easyY, 1.0f, 1.0f, 0.0f, 1.0f);

    String levelText = "Level Select";
    int levelX = (Display.getWidth() - Util.stringWidth(levelText, 5)) / 2;
    int levelY = (Display.getHeight() * 11 / 20);
    MenuText level = new MenuText(levelText, 5, levelX, levelY, 1.0f, 1.0f, 0.0f, 1.0f);

    String exitText = "Exit Game";
    int exitX = (Display.getWidth() - Util.stringWidth(exitText, 5)) / 2;
    int exitY = (Display.getHeight() * 7 / 20);
    MenuText exit = new MenuText(exitText, 5, exitX, exitY, 1.0f, 1.0f, 0.0f, 1.0f);

    public LevelSelect() throws IOException {
        texture = Texture.load("/textures/space.jpg");
    }

    public void init(){

    }

    public void tick(){

    }

    public void draw(){
        batch.begin();
        glUniform2f(shader.uniformLoc("u_screen_size"), Display.getWidth(), Display.getHeight());

        modelBuf.clear();
        model.store(modelBuf);
        modelBuf.flip();
        glUniformMatrix3(shader.uniformLoc("u_model"), false, modelBuf);
        batch.setColor(1.0f, 1.0f, 1.0f, 1.0f);
        batch.drawTexture(texture, 0, 0, Display.getWidth(), Display.getHeight());

        easy.draw(batch);

        batch.end();
    }
}
{'fraction_non_alphanumeric': 0.14324618736383443, 'fraction_numerical': 0.03376906318082789, 'mean_word_length': 3.1549773755656108, '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': '3107972', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1268, 'n_words': 283}