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

import com.unknownloner.btrain.gl.Texture;
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 MainMenu extends GameState{

    Texture texture;

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


    public void init(){

    }

    public void tick(){

    }

    public void draw(){
        batch.begin();
        glUniform2f(shader.uniformLoc("u_screen_size"), 1.0f, 1.0f);

        modelBuf.clear();
        model.store(modelBuf);
        modelBuf.flip();
        glUniformMatrix3(shader.uniformLoc("u_model"), false, modelBuf);

        batch.drawTexture(texture, 0, 0, Display.getWidth(), Display.getHeight());

        glUniform2f(shader.uniformLoc("u_screen_size"), Display.getWidth(), Display.getHeight());
        batch.drawString("Hello World!", 50.0, 50.0, 10);

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

import com.unknownloner.btrain.Util;
import com.unknownloner.btrain.gl.Texture;
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 MainMenu extends GameState{

    Texture texture;

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


    public void init(){

    }

    public void tick(){

    }

    public void draw(){
        batch.begin();
        glUniform2f(shader.uniformLoc("u_screen_size"), 1.0f, 1.0f);

        modelBuf.clear();
        model.store(modelBuf);
        modelBuf.flip();
        glUniformMatrix3(shader.uniformLoc("u_model"), false, modelBuf);

        batch.drawTexture(texture, 0, 0, Display.getWidth(), Display.getHeight());

        glUniform2f(shader.uniformLoc("u_screen_size"), Display.getWidth(), Display.getHeight());
        int titleX = (Display.getWidth() - Util.stringWidth("Bullet Train", 10)) / 2;
        batch.drawString("Bullet Train", titleX, 50.0, 10);

        batch.end();
    }
}
{'fraction_non_alphanumeric': 0.13578062804068997, 'fraction_numerical': 0.020344980097302078, 'mean_word_length': 3.188888888888889, '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': '254816', 'n_tokens_mistral': 768, 'n_tokens_neox': 719, 'n_words': 132}