<commit_before>package eic.beike.projectx.model;

import java.util.Random;

import eic.beike.projectx.android.event.IGameEventTrigger;
import eic.beike.projectx.network.busdata.BusCollector;
import eic.beike.projectx.network.busdata.SimpleBusCollector;
import eic.beike.projectx.util.GameColor;

/**
 * @author Simon
 * @author Alex
 */

/**
 * This is the model for the game, which handles the representation of the game
 */
public class GameModel implements IGameModel{


    private Count count;
    private BusCollector busCollector;
    /**
     * Used to represent the board
     */
    private Button[][] buttons;

    /**
     * Used to represent which button is pressed
     */
    private int pressedC = -1;
    private int pressedR = -1;

    private double percentOfScore = 0;
    private int score = 0;

    private IGameEventTrigger triggers;
    private RoundTracker tracker;


    public GameModel(IGameEventTrigger triggers){
        super();
        busCollector = SimpleBusCollector.getInstance();
        busCollector.chooseBus(BusCollector.TEST_BUSS_VIN_NUMBER);
        this.triggers = triggers;
        buttons = generateNewButtons();

        //Count up instances and then create a count object.
        Count.addRunning();
        count = new Count(this);
<commit_msg>Bugfix, BusWaitingActivity should set bus.<commit_after>package eic.beike.projectx.model;

import java.util.Random;

import eic.beike.projectx.android.event.IGameEventTrigger;
import eic.beike.projectx.network.busdata.BusCollector;
import eic.beike.projectx.network.busdata.SimpleBusCollector;
import eic.beike.projectx.util.GameColor;

/**
 * @author Simon
 * @author Alex
 */

/**
 * This is the model for the game, which handles the representation of the game
 */
public class GameModel implements IGameModel{


    private Count count;
    private BusCollector busCollector;
    /**
     * Used to represent the board
     */
    private Button[][] buttons;

    /**
     * Used to represent which button is pressed
     */
    private int pressedC = -1;
    private int pressedR = -1;

    private double percentOfScore = 0;
    private int score = 0;

    private IGameEventTrigger triggers;
    private RoundTracker tracker;


    public GameModel(IGameEventTrigger triggers){
        super();
        busCollector = SimpleBusCollector.getInstance();
        this.triggers = triggers;
        buttons = generateNewButtons();

        //Count up instances and then create a count object.
        Count.addRunning();
        count = new Count(this);

{'fraction_non_alphanumeric': 0.0890894819466248, 'fraction_numerical': 0.0031397174254317113, 'mean_word_length': 3.091492776886035, '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': '530445', 'n_tokens_mistral': 739, 'n_tokens_neox': 710, 'n_words': 207}