<commit_before>package com.cdm.view;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.cdm.Game;
import com.cdm.TowerGame;
import com.cdm.view.elements.Level;

public class LevelDisplays {
	private Level level;
	private Color moneyColor = new Color(0.7f, 0.7f, 1.0f, 1.0f);
	private MenuScreen menuScreen;
	private Color color = new Color(moneyColor);
	private boolean up = false;

	public LevelDisplays() {

	}

	public Level getLevel() {
		return level;
	}

	public void setLevel(Level level) {
		this.level = level;
	}

	void draw(IRenderer renderer) {
		Gdx.graphics.setIcon(null);
		renderer.drawText(0, Gdx.graphics.getHeight(),
				"$" + Integer.toString(level.getMoney()), moneyColor);
		renderer.drawText(Gdx.graphics.getWidth() - 120,
				Gdx.graphics.getHeight(),
				"Level " + Integer.toString(level.getPlayer().getLevelNo()),
				moneyColor);
		renderer.drawText(Gdx.graphics.getWidth() - 140,
				Gdx.graphics.getHeight() - 30,
				"Energy " + Integer.toString(level.getHealth()), moneyColor);
		if (!level.gameover()) {
			Renderer.font.setScale(2f);
			if (up) {
				if (color.a <= 1.0f) {
					color.a += 0.01f;
				} if (color.a >= 1) {
					up = false;
				}
			}
			if (!up) {
				if (color.a >= 0.0f) {
					color.a -= 0.01f;
				}
				if (color.a <= 0) {
					up = true;
				}
			}
			renderer.drawText(280, 300, "Game Over", color);
			Renderer.font.setScale(1f);
		}
	}
}<commit_msg>soundmenu<commit_after>package com.cdm.view;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.cdm.Game;
import com.cdm.TowerGame;
import com.cdm.view.elements.Level;

public class LevelDisplays {
	private Level level;
	private Color moneyColor = new Color(0.7f, 0.7f, 1.0f, 1.0f);
	private MenuScreen menuScreen;
	private Color color = new Color(1, 1, 1, 1);
	private boolean up = false;

	public LevelDisplays() {

	}

	public Level getLevel() {
		return level;
	}

	public void setLevel(Level level) {
		this.level = level;
	}

	void draw(IRenderer renderer) {
		Gdx.graphics.setIcon(null);
		renderer.drawText(0, Gdx.graphics.getHeight(),
				"$" + Integer.toString(level.getMoney()), moneyColor);
		renderer.drawText(Gdx.graphics.getWidth() - 120,
				Gdx.graphics.getHeight(),
				"Level " + Integer.toString(level.getPlayer().getLevelNo()),
				moneyColor);
		renderer.drawText(Gdx.graphics.getWidth() - 140,
				Gdx.graphics.getHeight() - 30,
				"Energy " + Integer.toString(level.getHealth()), moneyColor);
		if (!level.gameover()) {
			Renderer.font.setScale(2f);
			if (up) {
				if (color.a >= 0.01f) {
					color.a -= 0.01f;
				} else {
					up = false;
				}
			} else {
				if (color.a <= 1) {
					color.a += 0.01f;

				} else {
					up = true;
				}
			}
			if (color.a < 0)
				color.a = 0;
			renderer.drawText(280, 300, "Game Over", color);
			Renderer.font.setScale(1f);
		}
	}
}
{'fraction_non_alphanumeric': 0.15663069961712495, 'fraction_numerical': 0.027149321266968326, 'mean_word_length': 3.177325581395349, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '1669609', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1067, 'n_words': 213}