<commit_before>package graphics;

import org.jsfml.system.Vector2i;

/*
 * Represents a tile
 */
public class Tile {
	// Enum of each tileType
	public static enum TileType {
		TERRAIN_GRASS,
		BUILDING_HOUSE,
		BUILDING_SUPERMARKET,
		BUILDING_ROAD,
		BUILDING_GENERATOR
	}
	
	// Attributes.
	protected TileType tileType;
	protected int id;
	protected Vector2i position;
	
	// Set the tileType
	public void setTileType(TileType tileType) {
		this.tileType = tileType;
	}
	
	// Return the tileType
	public TileType getTileType() {
		return this.tileType;
	}
	
	// Set the tile ID
	public void setId(int id) {
		this.id = id;
	}
	
	// Return the tile ID
	public int getId() {
		return this.id;
	}
	
	// Set the position of the tile with Vector2i
	public void setPosition(Vector2i a) {
		this.position = a;
	}
	
	// Set the position of the tile with int
	public void setPosition(int x, int y) {
		setPosition(new Vector2i(x,y));
	}
	
	// Return the position of the tile
	public Vector2i getPosition() {
		return this.position;
	}
}
<commit_msg>Ajout d'un constructeur à la classe Tile.<commit_after>package graphics;

import org.jsfml.system.Vector2i;

/*
 * Represents a tile
 */
public class Tile {
	// Enum of each tileType
	public static enum TileType {
		TERRAIN_GRASS,
		BUILDING_HOUSE,
		BUILDING_SUPERMARKET,
		BUILDING_ROAD,
		BUILDING_GENERATOR
	}

	// Track the last id.
	protected static int lastId = 0;
	
	// Attributes.
	protected TileType tileType;
	protected int id;
	protected Vector2i position;
	
	// Constructor.
	public Tile(TileType tileType, Vector2i position) {
		this.tileType = tileType;
		this.id = Tile.lastId;
		this.position = position;
		
		// Increment the last id.
		Tile.lastId++;
	}
	
	// Set the tileType
	public void setTileType(TileType tileType) {
		this.tileType = tileType;
	}
	
	// Return the tileType
	public TileType getTileType() {
		return this.tileType;
	}
	
	// Set the tile ID
	public void setId(int id) {
		this.id = id;
	}
	
	// Return the tile ID
	public int getId() {
		return this.id;
	}
	
	// Set the position of the tile with Vector2i
	public void setPosition(Vector2i a) {
		this.position = a;
	}
	
	// Set the position of the tile with int
	public void setPosition(int x, int y) {
		setPosition(new Vector2i(x,y));
	}
	
	// Return the position of the tile
	public Vector2i getPosition() {
		return this.position;
	}
}

{'fraction_non_alphanumeric': 0.09190556492411467, 'fraction_numerical': 0.005902192242833052, 'mean_word_length': 3.1778169014084505, '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': '4506979', 'n_tokens_mistral': 895, 'n_tokens_neox': 827, 'n_words': 252}