<commit_before>package graphics;

import java.io.IOException;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;

import org.jsfml.graphics.Texture;

public class TextureManager {
	
	public static enum TextureID {
		PEOPLE_TEXTURE,
		MONEY_TEXTURE,
		TILE_CURSOR_TEXTURE,
		GROSSERY_STORE_TEXTURE,
		BUILDINGS_TEXTURE,
		CHECKBOX_TEXTURE,
		PAUSE,
	}
	
	protected Map<TextureID, Texture> textures;
	
	public TextureManager() {
		this.textures = new HashMap<TextureID, Texture>();
		this.textures.put(TextureID.PEOPLE_TEXTURE, load("res/people.png"));
		this.textures.put(TextureID.MONEY_TEXTURE, load("res/billets.32.png"));
		this.textures.put(TextureID.TILE_CURSOR_TEXTURE, load("res/hoverframe.png"));
		this.textures.put(TextureID.GROSSERY_STORE_TEXTURE, load("res/grocery_store.64x32.png"));
		this.textures.put(TextureID.BUILDINGS_TEXTURE, load("res/buildings.png"));
		this.textures.put(TextureID.CHECKBOX_TEXTURE, load("res/checkbox.png"));
		this.textures.put(TextureID.PAUSE, load("res/pause.png"));
	}
	/**
	 * Load the Texture
	 * @param path : file path of the texture
	 * @return texture : return the texture
	 */
	public Texture load(String path) {
		//Create a Texture instance
		Texture jsfmlLogoTexture = new Texture();<commit_msg>Retrait d'une texture inutilisé dans le code<commit_after>package graphics;

import java.io.IOException;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;

import org.jsfml.graphics.Texture;

public class TextureManager {
	
	public static enum TextureID {
		PEOPLE_TEXTURE,
		MONEY_TEXTURE,
		TILE_CURSOR_TEXTURE,
		GROSSERY_STORE_TEXTURE,
		BUILDINGS_TEXTURE,
		CHECKBOX_TEXTURE,
		PAUSE,
	}
	
	protected Map<TextureID, Texture> textures;
	
	public TextureManager() {
		this.textures = new HashMap<TextureID, Texture>();
		this.textures.put(TextureID.PEOPLE_TEXTURE, load("res/people.png"));
		this.textures.put(TextureID.MONEY_TEXTURE, load("res/billets.32.png"));
		this.textures.put(TextureID.TILE_CURSOR_TEXTURE, load("res/hoverframe.png"));
		//this.textures.put(TextureID.GROSSERY_STORE_TEXTURE, load("res/grocery_store.64x32.png"));
		this.textures.put(TextureID.BUILDINGS_TEXTURE, load("res/buildings.png"));
		this.textures.put(TextureID.CHECKBOX_TEXTURE, load("res/checkbox.png"));
		this.textures.put(TextureID.PAUSE, load("res/pause.png"));
	}
	/**
	 * Load the Texture
	 * @param path : file path of the texture
	 * @return texture : return the texture
	 */
	public Texture load(String path) {
		//Create a Texture instance
		Texture jsfmlLogoTexture = new Texture();
{'fraction_non_alphanumeric': 0.12592018597442853, 'fraction_numerical': 0.004649360712901976, 'mean_word_length': 5.2216867469879515, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '247722', 'n_tokens_mistral': 971, 'n_tokens_neox': 881, 'n_words': 159}