<commit_before>package main.java.view;

import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.TextArea;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;

import main.java.help.HelpController;

public class TopMenuController {
  
  private HelpController hc;

  @FXML
  public void handleMenuClose() {
    /** @TODO Add save logic for all Matrices here **/
    System.exit(0);
  }

  @FXML
  public void initialize() {}

  @FXML
  public void handleMenuAbout() {
    StringBuilder aboutInfo = new StringBuilder("WRITTEN BY: <NAME> (Sheepzez)");
    aboutInfo.append("\n\nWITH THANKS:");
    aboutInfo.append("\n<NAME> (ExogenesisBen)\n<NAME> (projectgoav)\n\n");
    aboutInfo.append("\nAny issues, please visit https://github.com/Sheepzez/Matrixonator-Java");

    String aboutText = aboutInfo.toString();

    TextArea aboutArea = new TextArea(aboutText);
    aboutArea.setEditable(false);
    aboutArea.setWrapText(true);

    aboutArea.setMaxWidth(Double.MAX_VALUE);
    aboutArea.setMaxHeight(Double.MAX_VALUE);
    GridPane.setVgrow(aboutArea, Priority.ALWAYS);
    GridPane.setHgrow(aboutArea, Priority.ALWAYS);

    GridPane aboutContent = new GridPane();
    aboutContent.setMaxWidth(Double.MAX_VALUE);
    aboutContent.add(aboutArea, 0, 0);

    Alert alert = new Alert(AlertType.INFORMATION);
    alert.setTitle("About: Matrixonator - Java");
    alert.setHeaderText("Matrixonator-Java: [VERSION NO]");
    alert.setContentText("Click 'Show Details' for more information");
    alert.getDialogPane().setExpandableContent(aboutContent);
    alert.showAndWait();
  }

  @FXML
  public void handleMenuDelete() {
    System.out.println("BERSTY");
  }

  @FXML
  public void handleMenuHelp() {
    if (hc == null) { hc = new HelpController(); }    
    if (!hc.isOpen()) { hc.run(); }
  }
}<commit_msg>Greatly simplified code for About page, plus embedded text into Alert instead of a textArea.<commit_after>package main.java.view;

import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.TextArea;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;

import main.java.help.HelpController;

public class TopMenuController {
  
  private HelpController hc;

  @FXML
  public void handleMenuClose() {
    /** @TODO Add save logic for all Matrices here **/
    System.exit(0);
  }

  @FXML
  public void initialize() {}

  @FXML
  public void handleMenuAbout() {
    StringBuilder aboutInfo = new StringBuilder("WRITTEN BY: <NAME> (Sheepzez)");
    aboutInfo.append("\n\nWITH THANKS:");
    aboutInfo.append("\n<NAME> (ExogenesisBen)\n<NAME> (projectgoav)\n\n");
    aboutInfo.append("\nAny issues, please visit https://github.com/Sheepzez/Matrixonator-Java");

    String aboutText = aboutInfo.toString();

    Alert alert = new Alert(AlertType.INFORMATION);
    alert.setTitle("About: Matrixonator - Java");
    alert.setHeaderText("Matrixonator-Java: Alpha");
    alert.setContentText(aboutText);
    alert.getDialogPane().setPrefSize(500, 400);
    alert.showAndWait();
  }

  @FXML
  public void handleMenuDelete() {
    System.out.println("BERSTY");
  }

  @FXML
  public void handleMenuHelp() {
    if (hc == null) { hc = new HelpController(); }    
    if (!hc.isOpen()) { hc.run(); }
  }
}
{'fraction_non_alphanumeric': 0.13223626212165737, 'fraction_numerical': 0.0029385836027034967, 'mean_word_length': 4.118796992481203, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2222529', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1081, 'n_words': 227}