<commit_before>import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
/**
 * OMELoginPanel is the class that handles
 * the window used to obtain the information
 * needed to log into the OME database.
 * @author <NAME> <EMAIL>
 */
public class OMELoginPanel implements ActionListener{
  //Fields
  private JButton ok, cancels;
  private JDialog in;
  private JTextField servField, useField;
  private JPasswordField passField;
  public boolean cancelPlugin;
  
  /**Constructor, sets up the dialog box*/
  public OMELoginPanel(Frame frame){
    cancelPlugin=false;
    //Creates the Dialog Box for getting OME login information
    in=new JDialog(frame, "OME Login", true);
    JPanel input1=new JPanel(), input=new JPanel(), input2=new JPanel(),
    input3=new JPanel();
    input1.setLayout(new BoxLayout(input1, BoxLayout.Y_AXIS));
    input.setLayout(new BoxLayout(input, BoxLayout.X_AXIS));
    input2.setLayout(new BoxLayout(input2, BoxLayout.Y_AXIS));
    input3.setLayout(new BoxLayout(input3, BoxLayout.Y_AXIS));
    input1.add(input);
    input.add(input2);
    input.add(input3);
    EmptyBorder bord=new EmptyBorder(5,5,5,5);
    passField = new JPasswordField("<PASSWORD>",8);
    passField.setPreferredSize(passField.getMinimumSize());
    servField= new JTextField("skyking",8);
    servField.setPreferredSize(servField.getMinimumSize());
    useField= new JTextField("philip",8);
    useField.setPreferredSize(useField.getMinimumSize());
    JLabel ser=new JLabel("Server: ", JLabel.TRAILING);
    ser.setPreferredSize(ser.getMinimumSize());
    input2.add(ser);
    input3.add(servField);
    JLabel use=new JLabel("Username: ", JLabel.TRAILING);
    use.setPreferredSize(use.getMinimumSize());
    input2.add(use);
    input3.add(useField);    
    JLabel pas=new JLabel("Password: ", JLabel.TRAILING);
    pas.setPreferredSize(pas.getMinimumSize());
    input2.add(pas);
    input3.add(passField);    
    in.setContentPane(input1);
    JButton ok= new JButton("OK"), cancels=new JButton("Cancel");
    ok.setMnemonic(KeyEvent.VK_ENTER);
    ok.setActionCommand("OK");
    cancels.setActionCommand("cancels");
    JPanel paneBut=new JPanel();
    paneBut.setLayout(new BoxLayout(paneBut,BoxLayout.X_AXIS));
    paneBut.add(ok);
    paneBut.add(cancels);
    input1.add(paneBut);
    cancels.addActionListener(this);
    ok.addActionListener(this);
    input1.setBorder(bord);    
    in.pack();
    centerWindow(frame, in);
  }//end of public constructor
  
  //Methods
  /** Centers the given window within the specified parent window. */
  private void centerWindow(Window parent, Window window) {
    Point loc = parent.getLocation();
    Dimension p = parent.getSize();<commit_msg>nothing<commit_after>import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
/**
 * OMELoginPanel is the class that handles
 * the window used to obtain the information
 * needed to log into the OME database.
 * @author <NAME> <EMAIL>
 */
public class OMELoginPanel implements ActionListener{
  //Fields
  private JButton ok, cancels;
  private JDialog in;
  private JTextField servField, useField;
  private JPasswordField passField;
  public boolean cancelPlugin;
  
  /**Constructor, sets up the dialog box*/
  public OMELoginPanel(Frame frame){
    cancelPlugin=false;
    //Creates the Dialog Box for getting OME login information
    in=new JDialog(frame, "OME Login", true);
    JPanel input1=new JPanel(), input=new JPanel(), input2=new JPanel(),
    input3=new JPanel();
    input1.setLayout(new BoxLayout(input1, BoxLayout.Y_AXIS));
    input.setLayout(new BoxLayout(input, BoxLayout.X_AXIS));
    input2.setLayout(new BoxLayout(input2, BoxLayout.Y_AXIS));
    input3.setLayout(new BoxLayout(input3, BoxLayout.Y_AXIS));
    input1.add(input);
    input.add(input2);
    input.add(input3);
    EmptyBorder bord=new EmptyBorder(5,5,5,5);
    passField = new JPasswordField("<PASSWORD>",8);
    passField.setPreferredSize(passField.getMinimumSize());
    servField= new JTextField("skyking",8);
    servField.setPreferredSize(servField.getMinimumSize());
    useField= new JTextField("philip",8);
    useField.setPreferredSize(useField.getMinimumSize());
    JLabel ser=new JLabel("Server: ", JLabel.TRAILING);
    ser.setPreferredSize(ser.getMinimumSize());
    input2.add(ser);
    input3.add(servField);
    JLabel use=new JLabel("Username: ", JLabel.TRAILING);
    use.setPreferredSize(use.getMinimumSize());
    input2.add(use);
    input3.add(useField);    
    JLabel pas=new JLabel("Password: ", JLabel.TRAILING);
    pas.setPreferredSize(pas.getMinimumSize());
    input2.add(pas);
    input3.add(passField);    
    in.setContentPane(input1);
    JButton ok= new JButton("OK"), cancels=new JButton("Cancel");
    ok.setMnemonic(KeyEvent.VK_ACCEPT);
    ok.setActionCommand("OK");
    cancels.setActionCommand("cancels");
    JPanel paneBut=new JPanel();
    paneBut.setLayout(new BoxLayout(paneBut,BoxLayout.X_AXIS));
    paneBut.add(ok);
    paneBut.add(cancels);
    input1.add(paneBut);
    cancels.addActionListener(this);
    ok.addActionListener(this);
    input1.setBorder(bord);    
    in.pack();
    centerWindow(frame, in);
  }//end of public constructor
  
  //Methods
  /** Centers the given window within the specified parent window. */
  private void centerWindow(Window parent, Window window) {
    Point loc = parent.getLocation();
    Dimension p = parent.getSize();
{'fraction_non_alphanumeric': 0.1283500455788514, 'fraction_numerical': 0.010209662716499545, 'mean_word_length': 4.321047526673133, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5604804', 'n_tokens_mistral': 1795, 'n_tokens_neox': 1773, 'n_words': 375}