<commit_before>package eu.theunitry.fabula.graphics;

import eu.theunitry.fabula.objects.UNObject;

import javax.swing.*;

public class UNWindow extends UNObject {

    private final String TITLE;
    private final int WIDTH;
    private final int HEIGHT;
    private final JFrame frame;

    public UNWindow(String title, int width, int height) {
        this.TITLE = title;
        this.WIDTH = width;
        this.HEIGHT = height;
        this.frame = new JFrame();

        this.init();
        this.frame.setVisible(true);
    }

    public void init() {
        this.frame.setTitle(this.TITLE);
        this.frame.setSize(this.WIDTH, this.HEIGHT);
        this.frame.setDefaultCloseOperation(this.frame.EXIT_ON_CLOSE);
        this.frame.setResizable(false);
        this.frame.setLocationRelativeTo(null);
    }

    public void addPanel(JPanel panel) {
        this.frame.add(panel);
    }

    public void removePanel(JPanel panel) {<commit_msg>Title bar is now hidden & added documentation to UNWindow<commit_after>package eu.theunitry.fabula.graphics;

import eu.theunitry.fabula.objects.UNObject;

import javax.swing.*;

public class UNWindow extends UNObject {

    private final String TITLE;
    private final int WIDTH;
    private final int HEIGHT;
    private final JFrame frame;

    /**
     * UN Window
     * @param title     Title that will be displayed in dock
     * @param width     Width
     * @param height    Height
     */
    public UNWindow(String title, int width, int height) {
        this.TITLE = title;
        this.WIDTH = width;
        this.HEIGHT = height;
        this.frame = new JFrame();

        this.init();
        this.frame.setVisible(true);
    }

    public void init() {
        this.frame.setTitle(this.TITLE);
        this.frame.setSize(this.WIDTH, this.HEIGHT);
        this.frame.setDefaultCloseOperation(this.frame.EXIT_ON_CLOSE);
        this.frame.setResizable(false);
        this.frame.setUndecorated(true);
        this.frame.setLocationRelativeTo(null);
    }

    public void addPanel(JPanel panel) {
        this.frame.add(panel);
    }

    public void removePanel(JPanel panel) {
{'fraction_non_alphanumeric': 0.09869646182495345, 'fraction_numerical': 0.0, 'mean_word_length': 2.5936454849498327, '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': '4665021', 'n_tokens_mistral': 656, 'n_tokens_neox': 634, 'n_words': 152}