<commit_before>package com.kduda.battleships.models.units;

public class Plane extends Unit {
    private Direction direction;

    public Plane() {
        super(5);
        this.direction = Direction.North;
    }

    public Direction getDirection() {
        return direction;
    }

    public void setDirection(Direction direction) {
        this.direction = direction;
    }

    @Override
    public void rotateUnit() {

    }
}<commit_msg>Add plane rotate method<commit_after>package com.kduda.battleships.models.units;

import static com.kduda.battleships.models.units.Direction.*;

public class Plane extends Unit {
    private Direction direction;

    public Plane() {
        super(5);
        this.direction = North;
    }

    public Direction getDirection() {
        return direction;
    }

    public void setDirection(Direction direction) {
        this.direction = direction;
    }

    @Override
    public void rotateUnit() {
        switch (this.direction) {
            case North:
                this.direction = East;
                break;
            case East:
                this.direction = South;
                break;
            case South:
                this.direction = West;
                break;
            case West:
                this.direction = North;
                break;
        }
    }
}
{'fraction_non_alphanumeric': 0.0818452380952381, 'fraction_numerical': 0.001488095238095238, 'mean_word_length': 1.7505112474437627, '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': '1685277', 'n_tokens_mistral': 372, 'n_tokens_neox': 346, 'n_words': 88}