<commit_before>package com.sb.cdp;

import java.io.FileNotFoundException;
import java.io.IOException;

import com.sb.cdp.ability.Ability;
import com.sb.cdp.gui.FXUtil;
import com.sb.cdp.gui.view.AbilityLibraryViewController;
import com.sb.cdp.gui.view.RootLayoutController;
import com.sb.cdp.idl.Initializer;
import com.sb.util.Pair;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class DesktopApplication extends Application {

    private Stage primaryStage;
    private BorderPane rootLayout;

    private User user;
    private RPG idl;

    // Called by the superclass
    public DesktopApplication() {
	idl = null;
	try {
	    idl = Initializer.initialize();
	} catch (FileNotFoundException e) {
	    System.err.println("One of the files needed for the initialization of the RPG has not been found.");
	    e.printStackTrace();
	} catch (IOException e) {
	    e.printStackTrace();
	}
	if (idl == null)
	    System.exit(1);
    }

    // Called by the superclass Application after the constructor
    @Override
    public void start(Stage primaryStage) throws Exception {
	this.primaryStage = primaryStage;
	primaryStage.setTitle("Gestionnaire de GN");

	initRootLayout();
	initAbilityLibraryView();
    }

    private void initAbilityLibraryView() {
	Library<String, Ability> generalAbilities = idl.getAbilityLibraries().get("Générale");
	rootLayout.setCenter(FXUtil.abilityLibraryView(generalAbilities).getX());

    }

    private void initRootLayout() {
	Pair<BorderPane, RootLayoutController> rootLayoutPair = FXUtil.rootLayout();
	this.rootLayout = rootLayoutPair.getX();
	// TODO do stuff to the controller
	Scene scene = new Scene(rootLayout);
	primaryStage.setScene(scene);
	primaryStage.show();
    }

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

}<commit_msg>Added get/set<commit_after>package com.sb.cdp;

import java.io.FileNotFoundException;
import java.io.IOException;

import com.sb.cdp.ability.Ability;
import com.sb.cdp.gui.FXUtil;
import com.sb.cdp.gui.view.RootLayoutController;
import com.sb.cdp.idl.Initializer;
import com.sb.util.Pair;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class DesktopApplication extends Application {

    private Stage primaryStage;
    private BorderPane rootLayout;

    private User user;
    private RPG idl;

    // Called by the superclass
    public DesktopApplication() {
	idl = null;
	try {
	    idl = Initializer.initialize();
	} catch (FileNotFoundException e) {
	    System.err.println("One of the files needed for the initialization of the RPG has not been found.");
	    e.printStackTrace();
	} catch (IOException e) {
	    e.printStackTrace();
	}
	if (idl == null)
	    System.exit(1);
    }

    // Called by the superclass Application after the constructor
    @Override
    public void start(Stage primaryStage) throws Exception {
	this.primaryStage = primaryStage;
	primaryStage.setTitle("Gestionnaire de GN");

	initRootLayout();
	initAbilityLibraryView();
    }

    private void initAbilityLibraryView() {
	Library<String, Ability> generalAbilities = idl.getAbilityLibraries().get("Générale");
	rootLayout.setCenter(FXUtil.abilityLibraryView(generalAbilities).getX());

    }

    private void initRootLayout() {
	Pair<BorderPane, RootLayoutController> rootLayoutPair = FXUtil.rootLayout();
	this.rootLayout = rootLayoutPair.getX();
	// TODO do stuff to the controller
	Scene scene = new Scene(rootLayout);
	primaryStage.setScene(scene);
	primaryStage.show();
    }

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

    /**
     * Returns the primaryStage.
     * @return the primaryStage
     */
    public Stage getPrimaryStage() {
        return primaryStage;
    }

    /**
     * Sets the value of primaryStage to that of the parameter.
     * @param primaryStage the primaryStage to set
     */
    public void setPrimaryStage(Stage primaryStage) {
        this.primaryStage = primaryStage;
    }

    /**
     * Returns the rootLayout.
     * @return the rootLayout
     */
    public BorderPane getRootLayout() {
        return rootLayout;
    }

    /**
     * Sets the value of rootLayout to that of the parameter.
     * @param rootLayout the rootLayout to set
     */
    public void setRootLayout(BorderPane rootLayout) {
        this.rootLayout = rootLayout;
    }

    /**
     * Returns the user.
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * Sets the value of user to that of the parameter.
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * Returns the idl.
     * @return the idl
     */
    public RPG getIdl() {
        return idl;
    }

    /**
     * Sets the value of idl to that of the parameter.
     * @param idl the idl to set
     */
    public void setIdl(RPG idl) {
        this.idl = idl;
    }

}
{'fraction_non_alphanumeric': 0.10112796577207313, 'fraction_numerical': 0.00038895371450797355, 'mean_word_length': 3.2190319934372438, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '1067885', 'n_tokens_mistral': 1579, 'n_tokens_neox': 1516, 'n_words': 411}