<commit_before>package utils;

import static com.google.common.collect.Lists.newArrayList;

import java.util.Collection;

public class CabinState {

	private int currentFloor = 0;

	private final Collection<Integer> goRequests;

	private boolean opened = false;

	private Direction currentDirection;

	private boolean mustGoAtMiddleFloor;

	public CabinState() {
		goRequests = newArrayList();
	}

	public void incrementFloor() {
		currentFloor++;
	}

	public void decrementFloor() {
		currentFloor--;
	}

	public int getCurrentFloor() {
		return currentFloor;
	}

	public void setCurrentFloor(int currentFloor) {
		this.currentFloor = currentFloor;
	}
<commit_msg>Correction : direction par defaut a UP (au lieu de null)<commit_after>package utils;

import static com.google.common.collect.Lists.newArrayList;
import static utils.Direction.UP;

import java.util.Collection;

public class CabinState {

	private int currentFloor = 0;

	private final Collection<Integer> goRequests;

	private boolean opened = false;

	private Direction currentDirection = UP;

	private boolean mustGoAtMiddleFloor;

	public CabinState() {
		goRequests = newArrayList();
	}

	public void incrementFloor() {
		currentFloor++;
	}

	public void decrementFloor() {
		currentFloor--;
	}

	public int getCurrentFloor() {
		return currentFloor;
	}

	public void setCurrentFloor(int currentFloor) {
		this.currentFloor = currentFloor;
	}

{'fraction_non_alphanumeric': 0.08569405099150142, 'fraction_numerical': 0.00141643059490085, 'mean_word_length': 4.7439024390243905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5905687', 'n_tokens_mistral': 462, 'n_tokens_neox': 431, 'n_words': 115}