<commit_before>package chessGame;

public abstract class ChessPiece {

	private String position;
	private ChessPlayer player;

	public ChessPlayer getPlayer() {
		return this.player;
	}

	public String getPosition() {
		return this.position;
	}

	/**
	 * 
	 * @param move
	 */
	public abstract boolean moveIsAvailable(String move);

	/**
	 * 
	 * @param move
	 */
	public void updatePosition(String move) {
		// TODO - implement ChessPiece.updatePosition
		throw new UnsupportedOperationException();
	}

}<commit_msg>Update ChessPiece.java<commit_after>package chessGame;

public abstract class ChessPiece {

	private String position;
	private ChessPlayer player;

	public ChessPlayer getPlayer() {
		return this.player;
	}

	public String getPosition() {
		return this.position;
	}
	
	/*If get available move is needed
	public abstract String[] getAvailableMoves();
	I am not quite sure how it works...moveIsAvailable call getAvailableMovies() for checking the movie is available?
	So both is abstruct? As the function for getting different chess available moves are different......
	Or, Only IsAvailable(String move) is needed?
	*/
	/**
	 * 
	 * @param move
	 */
	public abstract boolean moveIsAvailable(String move);

	/**
	 * 
	 * @param move
	 */
	public void updatePosition(String move) {
		// TODO - implement ChessPiece.updatePosition
		throw new UnsupportedOperationException();
		boolean start = moveIsAvailable(move);
		try{
			if (start){
				this.position = move;
			}
			else{
				move = null;
				this.position = move;
			}
		}//Which class handle the unavailable move? chess controller? boolean updatePosition?
	}

}
{'fraction_non_alphanumeric': 0.09313725490196079, 'fraction_numerical': 0.0, 'mean_word_length': 3.692528735632184, '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': '3817593', 'n_tokens_mistral': 522, 'n_tokens_neox': 458, 'n_words': 153}