<commit_before>package com.ozuduru.mazegenerator;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Main {

	public static void main(String[] args) {
		int[] inputs = showInputDiolog();
		if(inputs[0] > 0 && inputs[1] > 0)
			new MazeFrame(new Maze(inputs[0], inputs[1]));
		else
			JOptionPane.showMessageDialog(null, "Invalid Value!", "ERROR", JOptionPane.ERROR_MESSAGE);
	}
	public static int[] showInputDiolog() {
		JTextField w = new JTextField();
		JTextField h = new JTextField();
		JPanel mes = new JPanel(new GridLayout(1, 3));
		mes.add(w);
		mes.add(new JLabel("X", JLabel.CENTER));
		mes.add(h);
		if(JOptionPane.showConfirmDialog(null, mes, "WIDTH HEIGHT", JOptionPane.OK_CANCEL_OPTION) == JOptionPane.CANCEL_OPTION)
			return new int[] {0, 0};
		try {
			return new int[] {Integer.parseInt(w.getText()), Integer.parseInt(h.getText())};
		} catch (Exception e) {
			return new int[] {0, 0};
		}
		
	}
}
<commit_msg>Input dialog window is redesigned.<commit_after>package com.ozuduru.mazegenerator;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Main {

	public static void main(String[] args) {
		int[] inputs = showInputDiolog();
		
		if(inputs[0] > 0 && inputs[1] > 0)
			new MazeFrame(new Maze(inputs[0], inputs[1]));
		else if(inputs[0] == Integer.MIN_VALUE && inputs[1] == Integer.MIN_VALUE)
			return;
		else
			JOptionPane.showMessageDialog(null, "Invalid Value!", "ERROR", JOptionPane.ERROR_MESSAGE);
	}
	
	public static int[] showInputDiolog() {
		String title = "Maze Dimension";
		JTextField w = new JTextField();
		JTextField h = new JTextField();
		JPanel mes = new JPanel(new GridLayout(1, 4));
		
		mes.add(new JLabel("Width:", JLabel.CENTER));
		mes.add(w);
		mes.add(new JLabel("Height:", JLabel.CENTER));
		mes.add(h);
		
		int result = JOptionPane.showConfirmDialog(null, mes, title, JOptionPane.OK_CANCEL_OPTION);
		
		if(result == JOptionPane.CANCEL_OPTION || result == JOptionPane.CLOSED_OPTION)
			return new int[] {Integer.MIN_VALUE, Integer.MIN_VALUE};
		
		try {
			return new int[] {Integer.parseInt(w.getText()), Integer.parseInt(h.getText())};
		} catch (Exception e) {
			return new int[] {0, 0};
		}
		
	}
}

{'fraction_non_alphanumeric': 0.14850652082456878, 'fraction_numerical': 0.010096760622633571, 'mean_word_length': 4.595294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4925200', 'n_tokens_mistral': 903, 'n_tokens_neox': 831, 'n_words': 191}