<commit_before>package gui;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

import java.io.IOException;
import java.net.URL;

/**
 * Created by <NAME> on 6-10-2015.
 */
public class GameView extends AbstractView implements IView {
    private GameController gameController;

    /**
     * @param stageController Stagecontroller that is controlling the application
     */
    public GameView(StageController stageController){
        super(stageController);
        gameController = new GameController();
    }

    /**
     * {@inheritDoc}
     */
    public boolean load() {
        Stage stage = new Stage();
        stage.setTitle("GameView");
        URL location = this.getClass().getResource("/GameView.fxml");
        FXMLLoader loader = new FXMLLoader(location);
        loader.setController(new GameController());
        try {
            Pane myPane = loader.load();
            Scene scene = new Scene(myPane);
            stage.setScene(scene);
            passScene(scene);

        } catch (IOException e) {
            e.printStackTrace();
        }

        gameController = loader.getController();
        gameController.setView(this);

        return true;
    }

    /**
     * {@inheritDoc}
     */
    public boolean deload() {
        return false;
    }

    /**<commit_msg>Logger toegevoegd aan de gameview<commit_after>package gui;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javassist.bytecode.stackmap.TypeData;

import java.io.IOException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Created by <NAME> on 6-10-2015.
 */
public class GameView extends AbstractView implements IView {
    private GameController gameController;
    private static final Logger log = Logger.getLogger(TypeData.ClassName.class.getName());

    /**
     * @param stageController Stagecontroller that is controlling the application
     */
    public GameView(StageController stageController){
        super(stageController);
        gameController = new GameController();

    }

    /**
     * {@inheritDoc}
     */
    public boolean load() {
        log.log(Level.INFO, "Start loading gameview");
        Stage stage = new Stage();
        stage.setTitle("GameView");
        URL location = this.getClass().getResource("/GameView.fxml");
        log.log(Level.INFO, "loaded gameview from {0}",location.toString());
        FXMLLoader loader = new FXMLLoader(location);
        loader.setController(new GameController());
        try {
            Pane myPane = loader.load();
            Scene scene = new Scene(myPane);
            stage.setScene(scene);
            passScene(scene);
            log.log(Level.FINER, "loaded pane in scene and set the scene");

        } catch (IOException e) {
            e.printStackTrace();
            log.log(Level.SEVERE, e.toString(), e);
        }

        gameController = loader.getController();
        gameController.setView(this);
        log.log(Level.INFO,"Loaded gameview in view");
        return true;
    }

    /**
     * {@inheritDoc}
     */
    public boolean deload() {
        return false;
    }

    /**
{'fraction_non_alphanumeric': 0.11405916437938396, 'fraction_numerical': 0.004574565416285453, 'mean_word_length': 2.49680170575693, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1533201', 'n_tokens_mistral': 910, 'n_tokens_neox': 891, 'n_words': 215}