<commit_before>package maga;

import maga.environment.Room;
import maga.environment.Environment;
import maga.character.Cook;
import maga.character.Trump;
import maga.character.Player;
import maga.command.Parser;
import maga.command.Command;
import maga.command.CommandWord;
import maga.util.Helper;
import maga.highscore.HighScore;
import acq.IGame;
import acq.IData;
import acq.ILoadable;
import acq.ISerializable;
import org.w3c.dom.Document;
import org.w3c.dom.Element;


public class Game implements ISerializable, ILoadable {

    /**
     * Accesser for the data layer
     */
    private IData data;

    /**
     * parser attribute, an instance from the Parser class.
     */
    private Parser parser;

    /**
     * The environment which contains all rooms
     */
    private Environment environment;

    /**
     * Player
     */
    private Player player;

    /**
     * Trump
     */
    private Trump trump;

    /**
     * Cook
     */
    private Cook cook;

    /**
     * Steps
     */
    private int steps;

    /**
     * Start Time
     */
    private long startTime;

    /**
     * Bonus time
     */
    private long bonusTime;

    /**
    * Save Time
    */
    private long saveTime;

    /**
     * Integer that sets the point the player starts with.
     */
    private int points;

    /**
     * Creates an instance of highscore.
     */
    private HighScore highScore = new HighScore();

    /**
     * Create new instance of game
     */
    public Game() {
        play();
    }

    /**
     * Inject data layer
     * @param data
     */
    public void injectData (IData data) {
        this.data = data;
        data.load("highScore.xml", highScore);
    }

    /**
     * This method process the different commands and decide what they do
     *
     * @param command
     * @return boolean (wantToQuit, false or true)
     */
    boolean processCommand(Command command) {
        boolean wantToQuit = false;

        CommandWord commandWord = command.getCommandWord();

        switch (commandWord) {
            case GO:
                step();
                player.goRoom(command);
                break;

            case PICKUP:
                player.pickupItems(command);
                break;

            case DROP:
                player.dropItems(command);
                break;
<commit_msg>added-access-modifier (#145)<commit_after>package maga;

import maga.environment.Room;
import maga.environment.Environment;
import maga.character.Cook;
import maga.character.Trump;
import maga.character.Player;
import maga.command.Parser;
import maga.command.Command;
import maga.command.CommandWord;
import maga.util.Helper;
import maga.highscore.HighScore;
import acq.IGame;
import acq.IData;
import acq.ILoadable;
import acq.ISerializable;
import org.w3c.dom.Document;
import org.w3c.dom.Element;


public class Game implements ISerializable, ILoadable {

    /**
     * Accesser for the data layer
     */
    private IData data;

    /**
     * parser attribute, an instance from the Parser class.
     */
    private Parser parser;

    /**
     * The environment which contains all rooms
     */
    private Environment environment;

    /**
     * Player
     */
    private Player player;

    /**
     * Trump
     */
    private Trump trump;

    /**
     * Cook
     */
    private Cook cook;

    /**
     * Steps
     */
    private int steps;

    /**
     * Start Time
     */
    private long startTime;

    /**
     * Bonus time
     */
    private long bonusTime;

    /**
    * Save Time
    */
    private long saveTime;

    /**
     * Integer that sets the point the player starts with.
     */
    private int points;

    /**
     * Creates an instance of highscore.
     */
    private HighScore highScore = new HighScore();

    /**
     * Create new instance of game
     */
    public Game() {
        play();
    }

    /**
     * Inject data layer
     * @param data
     */
    public void injectData (IData data) {
        this.data = data;
        data.load("highScore.xml", highScore);
    }

    /**
     * This method process the different commands and decide what they do
     *
     * @param command
     * @return boolean (wantToQuit, false or true)
     */
    public boolean processCommand(Command command) {
        boolean wantToQuit = false;

        CommandWord commandWord = command.getCommandWord();

        switch (commandWord) {
            case GO:
                step();
                player.goRoom(command);
                break;

            case PICKUP:
                player.pickupItems(command);
                break;

            case DROP:
                player.dropItems(command);
                break;

{'fraction_non_alphanumeric': 0.09716342082980525, 'fraction_numerical': 0.0014817950889077054, 'mean_word_length': 1.837837837837838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7106014', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1312, 'n_words': 374}