<commit_before>import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class MyWindow {
   private JFrame mainFrame;
	private JPanel outputPanel;
	private JButton chooseOutput;
	private JLabel chooseOutputLabel;
	private JFileChooser fcOutput;
	
 
   public MyWindow(){
      mainFrame = new JFrame("Java Swing Examples");
      mainFrame.setSize(800,800);
      mainFrame.setLayout(new FlowLayout());
      mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     
      mainFrame.setVisible(true);
		
		setupFileInput();
		setupFileOutput();
		
   }
	
	private void setupFileInput() {
	
	}
	
	private void setupFileOutput() {
		outputPanel = new JPanel();
		outputPanel.setLayout(new FlowLayout());
		
		chooseOutputLabel = new JLabel("Specifiy An Output Directory");
		outputPanel.add(chooseOutputLabel);
		
		chooseOutput = new JButton("Choose");
		chooseOutput.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				fcOutput = new JFileChooser();
				JFrame fileChooser = new JFrame();
				fileChooser.add(fcOutput);
				fileChooser.setSize(500,500);
				fileChooser.setVisible(true);
			}
		});
		outputPanel.add(chooseOutput);
		
		outputPanel.setVisible(true);
		mainFrame.add(outputPanel);
		
	}
	
	 public static void main(String[] args){
  		MyWindow demo = new MyWindow( );    
   }

}<commit_msg>Newest GUI and user input class<commit_after>import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.File;

public class MyWindow
      implements ActionListener {
   
   private JFrame mainFrame;
	private JPanel outputPanel;
	private JButton chooseOutputButton;
	private JLabel chooseOutputButtonLabel;
	private JFileChooser outputDirChooser;
   private UserInput userInput;
	
 
   public MyWindow(){
      mainFrame = new JFrame("Java Swing Examples");
      mainFrame.setSize(800,800);
      mainFrame.setLayout(new FlowLayout());
      mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
		
      userInput = new UserInput();
		outputDirChooser = new JFileChooser();
      outputDirChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      
		setupFileInput();
		setupFileOutput();
          
      mainFrame.setVisible(true);
   }
	
	private void setupFileInput() {
	
	}
   
   public void actionPerformed(ActionEvent e) {
   
      //Handle open button action.
      if (e.getSource() == chooseOutputButton) {
         int returnVal = outputDirChooser.showOpenDialog(mainFrame);
         
         if (returnVal == JFileChooser.APPROVE_OPTION) {
            File directory = outputDirChooser.getSelectedFile();
            userInput.setOutputDirectory(directory);
         }
      }
   }

	private void setupFileOutput() {
		outputPanel = new JPanel();
		outputPanel.setLayout(new FlowLayout());
		
		chooseOutputButtonLabel = new JLabel("Specifiy An Output Directory");
		outputPanel.add(chooseOutputButtonLabel);
		
		chooseOutputButton = new JButton("Choose");
		chooseOutputButton.addActionListener(this);
		outputPanel.add(chooseOutputButton);
		
		mainFrame.add(outputPanel);
		outputPanel.setVisible(true);
		
	}
	
	 public static void main(String[] args){
  		MyWindow demo = new MyWindow( );    
   }

}
{'fraction_non_alphanumeric': 0.09941158253329205, 'fraction_numerical': 0.005574481263549086, 'mean_word_length': 3.6743849493487697, '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': '172829', 'n_tokens_mistral': 1069, 'n_tokens_neox': 936, 'n_words': 199}