<commit_before>package game.utilities;

public class LevelGenerator{

	private int[][] tilemap1;
	private int[][] tilemap2;
	private String[] tileImagesNames;
	 	
	public LevelGenerator(){
		tilemap1 = createLevel1();
		tilemap2 = createLevel2();
		tileImagesNames = createImagesNames();
	}
	
	private String[] createImagesNames(){
	
	String[] tileImagesNames = { "cornertopleft", "cornertopright", "cornerbottomleft", 
			"cornerbottomright", "vertical", "horizontal", "internleft", 
			"internright", "interntop", "internbottom", "wall_tile", 
			"background_tile", "no_gameobject", "gate", "invisible_wall",
			"power_up_tile"};
    return tileImagesNames;
	}
	
	
	private int[][] createLevel1() 
	{	
		int [][] tilemap = new int[][] {
				{10,10,10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,10, 10 },
				{10, 0, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 1, 10 },
				{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 },
				{10, 4,11,  0,  5,  5,  1, 11,  0,  5,  5,  5,  1, 11,  4, 11,  0,  5,  5,  5,  1, 11,  0,  5,  5,  1, 12, 4, 10 },
				{10, 4,15,  4, 12, 12,  4, 11,  4, 12, 12, 12,  4, 11,  4, 11,  4, 12, 12, 12,  4, 11,  4, 12, 12,  4, 12, 4, 10 }, 
				{10, 4,11,  2,  5,  5,  3, 14,  2,  5,  5,  5,  3, 14,  9, 14,  2,  5,  5,  5,  3, 14,  2,  5,  5,  3, 12, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 4, 10 },
				{10, 4,14,  6,  5,  5,  7, 14,  8, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  8, 14,  6,  5,  5,  7, 14, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 4, 10 },
				{10, 2, 5,  5,  5,  5,  1, 11,  4,  5,  5,  5,  7, 11,  4, 11,  6,  5,  5,  5,  4, 11,  0,  5,  5,  5,  5, 3, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11, 11, 11, 11, 11, 14, 11, 11, 11, 11, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11,  0,  5,  5, 13, 13, 13,  5,  5,  1, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10, 5, 5,  5,  5,  5,  3, 14,  9, 14,  4, 12, 12, 13, 13, 13, 12, 12,  4, 14,  9, 14,  2,  5,  5,  5,  5, 5, 10 },
				{10,11,11, 11, 11, 12, 11, 11, 14, 11,  4, 12, 12, 12, 12, 12, 12, 12,  4, 11, 14, 11, 11, 11, 11, 11, 11,11, 10 },
				{10, 5, 5,  5,  5,  5,  1, 14,  8, 14,  4, 12, 12, 12, 12, 12, 12, 12,  4, 14,  8, 14,  0,  5,  5,  5,  5, 5, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11,  2,  5,  5,  5,  5,  5,  5,  5,  3, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10, 0, 5,  5,  5,  5,  3, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  9, 11,  2,  5,  5,  5,  5, 1, 10 },
				{10, 4,11, 11, 11, 14, 11, 11, 14, 11, 14, 11, 11, 11,  4, 11, 11, 11, 14, 11, 14, 11, 14, 11, 11, 11, 11, 4, 10 },
				{10, 4,11,  6,  5,  5,  1, 11,  6,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  7, 11,  0,  5,  5,  7, 11, 4, 10 },
				{10, 4,15, 11, 11, 11,  4, 11, 11, 11, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 15, 4, 10 },
				{10, 4, 5,  5,  7, 11,  9, 14,  8, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  8, 11,  9, 11,  6,  5,  5, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 14, 11, 14, 11, 11, 4, 10 },
				{10, 4,11,  6,  5,  5,  5,  5,  5,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  5,  7, 11, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 11, 14, 11, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 },
				{10, 2, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 3, 10 },
				{10,10,10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,10, 10 },
		};
	    return tilemap;
	}
	

	private int[][] createLevel2() 
	{	
		int[][] tilemap = 
		{
		{10,10,10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,10, 10 },
		{10, 0, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 1, 10 },
		{10, 4,12, 13, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 12, 4, 10 },
		{10, 4,11,  6,  5,  5,  7, 11,  6,  5,  5,  5,  7, 11,  4, 11,  6,  5,  5,  5,  7, 11,  6,  5,  5,  7, 11, 4, 10 },
		{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 }, 
		{10, 4,11,  0,  5,  5,  1, 11,  6,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  7, 11,  0,  5,  5,  1, 11, 4, 10 },
		{10, 4,11,  4, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11,  4, 11, 4, 10 },
		{10, 4,11,  2,  5,  5,  3, 11,  8, 11,  6,  5,  5,  7, 11,  6,  5,  5,  7, 11,  8, 11,  2,  5,  5,  3, 11, 4, 10 },
		{10, 4,11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 4, 10 },
		{10, 2, 5,  5,  5,  5,  1, 11,  4, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  4, 11,  0,  5,  5,  5,  5, 3, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11,  4, 11, 11, 11, 11,11, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11,  0,  5,  5,  5,  5,  5,  5,  5,  1, 11,  4, 11,  4, 11, 11, 11, 11,11, 10 },
		{10, 5, 5,  5,  5,  5,  3, 11,  9, 11,  4, 13, 13, 13, 13, 13, 13, 13,  4, 11,  9, 11,  2,  5,  5,  5,  5, 5, 10 },
		{10,11,11, 11, 11, 11, 11, 11, 11, 11,  4, 13, 13, 13, 13, 13, 13, 13,  4, 11, 11, 11, 11, 11, 11, 11, 11,11, 10 },
		{10, 5, 5,  5,  5,  5,  1, 11,  8, 11,  4, 13, 13, 13, 13, 13, 13, 13,  4, 11,  8, 11,  0,  5,  5,  5,  5, 5, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11,  2,  5,  5,  5,  5,  5,  5,  5,  3, 11,  4, 11,  4, 13, 13, 13, 13,13, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11,  4, 13, 13, 13, 13,13, 10 },
		{10, 0, 5,  5,  5,  5,  3, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  9, 11,  2,  5,  5,  5,  5, 1, 10 },
		{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 },
		{10, 4,11,  0,  5,  5,  7, 11,  6,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  5,  1, 11, 4, 10 },
		{10, 4,11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 4, 10 },
		{10, 4,11,  9, 11,  0,  1, 11,  8, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  8, 11,  0,  1, 11,  9, 11, 4, 10 },<commit_msg>Bugfix: redEnemy bewoog niet na spelhervatting.<commit_after>package game.utilities;

public class LevelGenerator{

	private int[][] tilemap1;
	private int[][] tilemap2;
	private String[] tileImagesNames;
	 	
	public LevelGenerator(){
		tilemap1 = createLevel1();
		tilemap2 = createLevel2();
		tileImagesNames = createImagesNames();
	}
	
	private String[] createImagesNames(){
	
	String[] tileImagesNames = { "cornertopleft", "cornertopright", "cornerbottomleft", 
			"cornerbottomright", "vertical", "horizontal", "internleft", 
			"internright", "interntop", "internbottom", "wall_tile", 
			"background_tile", "no_gameobject", "gate", "invisible_wall",
			"power_up_tile"};
    return tileImagesNames;
	}
	
	
	private int[][] createLevel1() 
	{	
		int [][] tilemap = new int[][] {
				{10,10,10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,10, 10 },
				{10, 0, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 1, 10 },
				{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 },
				{10, 4,11,  0,  5,  5,  1, 11,  0,  5,  5,  5,  1, 11,  4, 11,  0,  5,  5,  5,  1, 11,  0,  5,  5,  1, 12, 4, 10 },
				{10, 4,15,  4, 12, 12,  4, 11,  4, 12, 12, 12,  4, 11,  4, 11,  4, 12, 12, 12,  4, 11,  4, 12, 12,  4, 12, 4, 10 }, 
				{10, 4,11,  2,  5,  5,  3, 14,  2,  5,  5,  5,  3, 14,  9, 14,  2,  5,  5,  5,  3, 14,  2,  5,  5,  3, 12, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 4, 10 },
				{10, 4,14,  6,  5,  5,  7, 14,  8, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  8, 14,  6,  5,  5,  7, 14, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 4, 10 },
				{10, 2, 5,  5,  5,  5,  1, 11,  4,  5,  5,  5,  7, 11,  4, 11,  6,  5,  5,  5,  4, 11,  0,  5,  5,  5,  5, 3, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11, 11, 11, 11, 11, 14, 11, 11, 11, 11, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11,  0,  5,  5, 13, 13, 13,  5,  5,  1, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10, 5, 5,  5,  5,  5,  3, 14,  9, 14,  4, 12, 12, 13, 13, 13, 12, 12,  4, 14,  9, 14,  2,  5,  5,  5,  5, 5, 10 },
				{10,11,11, 11, 11, 12, 11, 11, 14, 11,  4, 12, 12, 12, 12, 12, 12, 12,  4, 11, 14, 11, 11, 11, 11, 11, 11,11, 10 },
				{10, 5, 5,  5,  5,  5,  1, 14,  8, 14,  4, 12, 12, 12, 12, 12, 12, 12,  4, 14,  8, 14,  0,  5,  5,  5,  5, 5, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11,  2,  5,  5,  5,  5,  5,  5,  5,  3, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10,12,12, 12, 12, 12,  4, 11,  4, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11,  4, 11,  4, 12, 12, 12, 12,12, 10 },
				{10, 0, 5,  5,  5,  5,  3, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  9, 11,  2,  5,  5,  5,  5, 1, 10 },
				{10, 4,11, 11, 11, 14, 11, 11, 14, 11, 14, 11, 11, 11,  4, 11, 11, 11, 14, 11, 14, 11, 14, 11, 11, 11, 11, 4, 10 },
				{10, 4,11,  6,  5,  5,  1, 11,  6,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  7, 11,  0,  5,  5,  7, 11, 4, 10 },
				{10, 4,15, 11, 11, 11,  4, 11, 11, 11, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 15, 4, 10 },
				{10, 4, 5,  5,  7, 11,  9, 14,  8, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  8, 11,  9, 11,  6,  5,  5, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11,  4, 11, 14, 11, 14, 11, 11, 4, 10 },
				{10, 4,11,  6,  5,  5,  5,  5,  5,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  5,  7, 11, 4, 10 },
				{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 11, 14, 11, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 },
				{10, 2, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 3, 10 },
				{10,10,10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,10, 10 },
		};
	    return tilemap;
	}
	

	private int[][] createLevel2() 
	{	
		int[][] tilemap = 
		{
		{10,10,10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,10, 10 },
		{10, 0, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 1, 10 },
		{10, 4,12, 13, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 12, 4, 10 },
		{10, 4,11,  6,  5,  5,  7, 11,  6,  5,  5,  5,  7, 11,  4, 11,  6,  5,  5,  5,  7, 11,  6,  5,  5,  7, 11, 4, 10 },
		{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 }, 
		{10, 4,11,  0,  5,  5,  1, 11,  6,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  7, 11,  0,  5,  5,  1, 11, 4, 10 },
		{10, 4,11,  4, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11,  4, 11, 4, 10 },
		{10, 4,11,  2,  5,  5,  3, 11,  8, 11,  6,  5,  5,  7, 11,  6,  5,  5,  7, 11,  8, 11,  2,  5,  5,  3, 11, 4, 10 },
		{10, 4,11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 4, 10 },
		{10, 2, 5,  5,  5,  5,  1, 11,  4, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  4, 11,  0,  5,  5,  5,  5, 3, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11,  4, 11, 11, 11, 11,11, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11,  0,  5,  5,  5,  5,  5,  5,  5,  1, 11,  4, 11,  4, 11, 11, 11, 11,11, 10 },
		{10, 5, 5,  5,  5,  5,  3, 11,  9, 11,  4, 13, 13, 13, 13, 13, 13, 13,  4, 11,  9, 11,  2,  5,  5,  5,  5, 5, 10 },
		{10,11,11, 11, 11, 12, 11, 11, 11, 11,  4, 13, 13, 13, 13, 13, 13, 13,  4, 11, 11, 11, 11, 11, 11, 11, 11,11, 10 },
		{10, 5, 5,  5,  5,  5,  1, 11,  8, 11,  4, 13, 13, 13, 13, 13, 13, 13,  4, 11,  8, 11,  0,  5,  5,  5,  5, 5, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11,  2,  5,  5,  5,  5,  5,  5,  5,  3, 11,  4, 11,  4, 13, 13, 13, 13,13, 10 },
		{10,13,13, 13, 13, 13,  4, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11,  4, 13, 13, 13, 13,13, 10 },
		{10, 0, 5,  5,  5,  5,  3, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  9, 11,  2,  5,  5,  5,  5, 1, 10 },
		{10, 4,11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 10 },
		{10, 4,11,  0,  5,  5,  7, 11,  6,  5,  5,  5,  7, 11,  9, 11,  6,  5,  5,  5,  5,  5,  5,  5,  5,  1, 11, 4, 10 },
		{10, 4,11,  4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,  4, 11, 4, 10 },
		{10, 4,11,  9, 11,  0,  1, 11,  8, 11,  6,  5,  5,  5,  5,  5,  5,  5,  7, 11,  8, 11,  0,  1, 11,  9, 11, 4, 10 },
{'fraction_non_alphanumeric': 0.24615614270786684, 'fraction_numerical': 0.3366174055829228, 'mean_word_length': 2.0130425005621766, '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': 686, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4924214', 'n_tokens_mistral': 11092, 'n_tokens_neox': 7561, 'n_words': 2839}