<commit_before>package starpunk.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.BitmapFont.HAlignment;
import com.badlogic.gdx.graphics.g2d.BitmapFont.TextBounds;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Matrix4;
import starpunk.StarPunkGame;
import starpunk.services.MusicResource;

public final class EndGameScreen
  extends BaseScreen
{
  private final SpriteBatch spriteBatch;
  private final Matrix4 viewMatrix = new Matrix4();
  private final Matrix4 transformMatrix = new Matrix4();

  public EndGameScreen( final StarPunkGame game )
  {
    super( game );
    spriteBatch = new SpriteBatch();
  }

  @Override
  public void show()
  {
    super.show();
    getGame().getMusicManager().play( new MusicResource( "src/main/assets/music/menu.ogg" ) );
  }

  @Override
  public void hide()
  {
    super.hide();
    getGame().getMusicManager().play( null );
  }

  @Override
  public void dispose()
  {
    super.dispose();
    spriteBatch.dispose();
  }

  @Override
  public void draw( final float delta )
  {
    Gdx.gl.glClear( GL10.GL_COLOR_BUFFER_BIT );

    viewMatrix.setToOrtho2D( 0, 0, 480, 320 );
    spriteBatch.setProjectionMatrix( viewMatrix );
    spriteBatch.setTransformMatrix( transformMatrix );
    spriteBatch.begin();
    spriteBatch.disableBlending();
    spriteBatch.setColor( Color.WHITE );
    spriteBatch.draw( StarPunkGame.getGame().getAssetManager().getBackground(),
                      0,
                      0,
                      480,
                      320,
                      0,
                      0,
                      512,
                      512,
                      false,
                      false );
    spriteBatch.enableBlending();
    final String text = "It is the end my friend.\nTouch to continue!";
        final BitmapFont font = StarPunkGame.getGame().getAssetManager().getFont();
    final TextBounds bounds = font.getMultiLineBounds( text );
    spriteBatch.setBlendFunction( GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA );
    font.drawMultiLine( spriteBatch, text, 0, 160 + bounds.height / 2, 480, HAlignment.CENTER );
    spriteBatch.end();
  }

  @Override
  public void update( final float delta )
  {
    if( Gdx.input.isTouched() )
    {
      getGame().setScreen( new GameLoopScreen( getGame() ) );
    }
  }
}<commit_msg>WHitespace<commit_after>package starpunk.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.BitmapFont.HAlignment;
import com.badlogic.gdx.graphics.g2d.BitmapFont.TextBounds;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Matrix4;
import starpunk.StarPunkGame;
import starpunk.services.MusicResource;

public final class EndGameScreen
  extends BaseScreen
{
  private final SpriteBatch spriteBatch;
  private final Matrix4 viewMatrix = new Matrix4();
  private final Matrix4 transformMatrix = new Matrix4();

  public EndGameScreen( final StarPunkGame game )
  {
    super( game );
    spriteBatch = new SpriteBatch();
  }

  @Override
  public void show()
  {
    super.show();
    getGame().getMusicManager().play( new MusicResource( "src/main/assets/music/menu.ogg" ) );
  }

  @Override
  public void hide()
  {
    super.hide();
    getGame().getMusicManager().play( null );
  }

  @Override
  public void dispose()
  {
    super.dispose();
    spriteBatch.dispose();
  }

  @Override
  public void draw( final float delta )
  {
    Gdx.gl.glClear( GL10.GL_COLOR_BUFFER_BIT );

    viewMatrix.setToOrtho2D( 0, 0, 480, 320 );
    spriteBatch.setProjectionMatrix( viewMatrix );
    spriteBatch.setTransformMatrix( transformMatrix );
    spriteBatch.begin();
    spriteBatch.disableBlending();
    spriteBatch.setColor( Color.WHITE );
    spriteBatch.draw( StarPunkGame.getGame().getAssetManager().getBackground(),
                      0,
                      0,
                      480,
                      320,
                      0,
                      0,
                      512,
                      512,
                      false,
                      false );
    spriteBatch.enableBlending();
    final String text = "It is the end my friend.\nTouch to continue!";
    final BitmapFont font = StarPunkGame.getGame().getAssetManager().getFont();
    final TextBounds bounds = font.getMultiLineBounds( text );
    spriteBatch.setBlendFunction( GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA );
    font.drawMultiLine( spriteBatch, text, 0, 160 + bounds.height / 2, 480, HAlignment.CENTER );
    spriteBatch.end();
  }

  @Override
  public void update( final float delta )
  {
    if( Gdx.input.isTouched() )
    {
      getGame().setScreen( new GameLoopScreen( getGame() ) );
    }
  }
}
{'fraction_non_alphanumeric': 0.10863900581278814, 'fraction_numerical': 0.020044097013429546, 'mean_word_length': 2.6664217487141806, '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': '5824781', 'n_tokens_mistral': 1661, 'n_tokens_neox': 1537, 'n_words': 314}