<commit_before>package view;

import com.sun.javafx.geom.Shape;
import javafx.application.*;
import static javafx.application.Application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.*;

public class Frontpage extends Application {

    public static final String TITLE = "Planlægning";

    private Stage window;

    //scener:
    private Scene frontPageScene;

    //buttons:
    private MenuButton createPersonButton, createQualificationButton;

    public static void main(String[] args) {
        launch(args);
    }

    //Hovedmetoden der bliver kørt i gui'en.
    @Override
    public void start(Stage window) {
        initNodes(window);
    }

    private void initNodes(Stage window) {
        initButtons();
        this.window = window;

        window.setTitle(TITLE);

        //VBox layout som standard.
        VBox vMainLayout = new VBox(20);
        HBox hMainLayout = new HBox(10);

        //Tilføj knapper til hMainLayout:
        hMainLayout.getChildren().addAll(createPersonButton, createQualificationButton);

        vMainLayout.setAlignment(Pos.TOP_LEFT);
        vMainLayout.getChildren().addAll(hMainLayout);

        frontPageScene = new Scene(vMainLayout, 1024, 768);
        
        window.setScene(frontPageScene);
        window.show();
    }

    private void initButtons() {
        createPersonButton = new MenuButton("Opret ansat");
        createPersonButton.setOnAction(e -> {
            System.out.println("hej1");
        });

        createQualificationButton = new MenuButton("Opret kvalifikation");
        createQualificationButton.setOnAction(e -> {
            System.out.println("hej2");
        });
        
    }
}
<commit_msg>RoomHandler handler klassen<commit_after>package view;

import com.sun.javafx.geom.Shape;
import javafx.application.*;
import static javafx.application.Application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.*;

public class Frontpage extends Application {

    public static final String TITLE = "Planlægning";

    private Stage window;

    //scener:
    private Scene frontPageScene;

    //buttons:
    private MenuButton createPersonButton, createQualificationButton
            , createRoomButton;

    public static void main(String[] args) {
        launch(args);
    }

    //Hovedmetoden der bliver kørt i gui'en.
    @Override
    public void start(Stage window) {
        initNodes(window);
    }

    private void initNodes(Stage window) {
        initButtons();
        this.window = window;

        window.setTitle(TITLE);

        //VBox layout som standard.
        VBox vMainLayout = new VBox(20);
        HBox hMenuLayout = new HBox(10);

        //Tilføj knapper til hMainLayout:
        hMenuLayout.getChildren().addAll(createPersonButton, createQualificationButton, createRoomButton);

        vMainLayout.setAlignment(Pos.TOP_LEFT);
        vMainLayout.getChildren().addAll(hMenuLayout);

        frontPageScene = new Scene(vMainLayout, 1024, 768);
        
        window.setScene(frontPageScene);
        window.show();
    }

    private void initButtons() {
        createPersonButton = new MenuButton("Opret ansat");
        createPersonButton.setOnAction(e -> {
            System.out.println("hej1");
        });

        createQualificationButton = new MenuButton("Opret kvalifikation");
        createQualificationButton.setOnAction(e -> {
            System.out.println("hej2");
        });
        
        createRoomButton = new MenuButton("Opret rum");
        createRoomButton.setOnAction(e -> {
            System.out.println("Tager dig nu til et window hvor du kan "
                    + "lave et nyt rum");
        });
        
        
    }
}

{'fraction_non_alphanumeric': 0.09864797195793691, 'fraction_numerical': 0.006509764646970456, 'mean_word_length': 2.296204620462046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3590886', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1093, 'n_words': 242}