<commit_before>#[derive(PartialEq)]
pub enum CellStatus {
	Empty,
	Red,
	Blue
}

pub struct Cell {
	pub status: CellStatus
}

impl CellStatus {
	fn to_letter(&self) -> &'static str {
		return match *self {
				CellStatus::Red => "R",
				CellStatus::Blue => "B",
				CellStatus::Empty => "-",
			};
	}
	pub fn to_string(&self) -> &'static str {
		return match *self {
				CellStatus::Red => "Red (Vertically)",
				CellStatus::Blue => "Blue (Horizontally)",
				CellStatus::Empty => "Nothing",
			};
	}
	pub fn get_color_for_player(num: u8) -> CellStatus {
		return match num {
			1 => CellStatus::Red,
			2 => CellStatus::Blue,
			_ => {panic!("This game can't be player with other player than 1 or 2")}
		};
	}
}

impl Cell {
	pub fn new() -> Cell {
		return Cell {
			status: CellStatus::Empty
		};
	}
	pub fn to_string(&self) -> &'static str {
		return self.status.to_letter();
	}
	pub fn is_empty(&self) -> bool {
		match self.status {
			CellStatus::Empty => true,
			_ => false
		}
	}
//	pub fn status_eq(&self, cell_status: CellStatus) -> bool {
//		match self.status {
//			cell_status => true,
//			_ => false
//		}
//	}
}<commit_msg>Red/Blue changed to Black/White for better readability<commit_after>#[derive(PartialEq)]
pub enum CellStatus {
	Empty,
	Black,
	White
}

pub struct Cell {
	pub status: CellStatus
}

impl CellStatus {
	fn to_letter(&self) -> &'static str {
		return match *self {
				CellStatus::Black => "B",
				CellStatus::White => "W",
				CellStatus::Empty => "-",
			};
	}
	pub fn to_string(&self) -> &'static str {
		return match *self {
				CellStatus::Black => "Black (Vertically)",
				CellStatus::White => "White (Horizontally)",
				CellStatus::Empty => "Nothing",
			};
	}
	pub fn get_color_for_player(num: u8) -> CellStatus {
		return match num {
			1 => CellStatus::Black,
			2 => CellStatus::White,
			_ => {panic!("This game can't be player with other player than 1 or 2")}
		};
	}
}

impl Cell {
	pub fn new() -> Cell {
		return Cell {
			status: CellStatus::Empty
		};
	}
	pub fn to_string(&self) -> &'static str {
		return self.status.to_letter();
	}
	pub fn is_empty(&self) -> bool {
		match self.status {
			CellStatus::Empty => true,
			_ => false
		}
	}
}
{'fraction_non_alphanumeric': 0.163718820861678, 'fraction_numerical': 0.0045351473922902496, 'mean_word_length': 3.178030303030303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 40, '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': '7074987', 'n_tokens_mistral': 876, 'n_tokens_neox': 786, 'n_words': 203}