<commit_before>package common;

import java.io.Serializable;

/**
 * Represents single tile within map.
 *
 */
public class Tile implements Serializable {
	static final long serialVersionUID = 328328312;
	FloorType f;
	MapObjectType mo;
	Coordinate c;
	
	public Tile(){
		f = null;
		mo = null;
		c = new Coordinate(0,0);
	}

	public Tile(long x, long y){
		f = null;
		mo = null;
		c = new Coordinate(x,y);
	}
	
	public Tile(Coordinate co){
		f = null;
		mo = null;
		c = co;
	}
	
	public Tile(long x, long y, FloorType ft, MapObjectType mot){
		f = ft;
		mo = mot;
		c = new Coordinate(x,y);
	}
	
	public void setFloorType(FloorType ft)
	{
		f=ft;
	}
	
	public void setMapObjectType(MapObjectType mot)
	{
		mo=mot;
	}
	
	public MapObjectType getMapObjectType()
	{
		return mo;
	}
	
	public FloorType getFloorType()
	{
		return f;
	}
	
	public Coordinate getCoordinate()
	{
		return c;
	}
	
	public boolean equals(Object o)
	{
		if(!(o instanceof Tile)) return false;
		if(((Tile)o).c.X()!=c.X()) return false;
		if(((Tile)o).c.Y()!=c.Y()) return false;
		return true;
	}
	
	public boolean canMoveOn(){
		return (f != null && f.canMoveOn()) && (mo == null || mo.canMoveOn());
	}
	
	public boolean canPickUp(){
		return (mo != null && mo.canPickUp());
	}
	
	public boolean canHarvest(){ 
		return (mo != null && mo.canHarvest());
	}
	
	public boolean canAttack(){
		return (mo != null && mo.canAttack());
	}
}<commit_msg>Added Tile copy ctor<commit_after>package common;

import java.io.Serializable;

/**
 * Represents single tile within map.
 *
 */
public class Tile implements Serializable {
	static final long serialVersionUID = 328328312;
	FloorType f;
	MapObjectType mo;
	Coordinate c;
	
	public Tile(){
		f = null;
		mo = null;
		c = new Coordinate(0,0);
	}

	public Tile(long x, long y){
		f = null;
		mo = null;
		c = new Coordinate(x,y);
	}
	
	public Tile(Coordinate co){
		f = null;
		mo = null;
		c = co;
	}
	
	public Tile(long x, long y, FloorType ft, MapObjectType mot){
		f = ft;
		mo = mot;
		c = new Coordinate(x,y);
	}
	
	public Tile(Coordinate co, FloorType ft, MapObjectType mot){
		f = ft;
		mo = mot;
		c = new Coordinate(co);
	}
	
	public Tile(Tile other){
		f=other.f;
		mo=other.mo;
		c = new Coordinate(other.c);
	}
	
	public void setFloorType(FloorType ft)
	{
		f=ft;
	}
	
	public void setMapObjectType(MapObjectType mot)
	{
		mo=mot;
	}
	
	public MapObjectType getMapObjectType()
	{
		return mo;
	}
	
	public FloorType getFloorType()
	{
		return f;
	}
	
	public Coordinate getCoordinate()
	{
		return c;
	}
	
	public boolean equals(Object o)
	{
		if(!(o instanceof Tile)) return false;
		if(((Tile)o).c.X()!=c.X()) return false;
		if(((Tile)o).c.Y()!=c.Y()) return false;
		return true;
	}
	
//	public boolean canMoveOn(){
//		return (f != null && f.canMoveOn()) && (mo == null || mo.canMoveOn());
//	}
//	
//	public boolean canPickUp(){
//		return (mo != null && mo.canPickUp());
//	}
//	
//	public boolean canHarvest(){ 
//		return (mo != null && mo.canHarvest());
//	}
//	
//	public boolean canAttack(){
//		return (mo != null && mo.canAttack());
//	}
}
{'fraction_non_alphanumeric': 0.1566147859922179, 'fraction_numerical': 0.007133592736705577, 'mean_word_length': 3.140939597315436, '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': '3997143', 'n_tokens_mistral': 1303, 'n_tokens_neox': 1181, 'n_words': 313}