<commit_before>package cis234a.nsort.view;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;

import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import javax.swing.SwingConstants;
import javax.swing.border.BevelBorder;

import cis234a.nsort.model.*;

import javax.swing.JComboBox;
/**
 * The LoginPanel Class contains the components for the LoginFrame.
 *  
 * @author (Chris.Stultz, John.Loranger, Ryan.Reams, Josh.Eads) 
 * @version (4/25/2015)
 */
@SuppressWarnings("serial")
public class AdminTestSetupPanel extends JPanel
{

	private static final Dimension DIM = new Dimension(680, 453);
	
	private JLabel existingItemsLabel;
	protected JList<String> existingItemsList;
	protected DefaultListModel<String> existingItemsListModel;
	private JScrollPane existingItemsScrollPane;
	
	private JPopupMenu existingItemsListRightClickPopupMenu;
	private JMenuItem deleteMenuItem;

	private JLabel addItemLabel;
	private JTextField addItemTextField;
	private JButton submitButton;
	
	private JLabel testItemsLabel;
	protected JList<String> testItemsList;
	protected DefaultListModel<String> testItemsListModel;
	private JScrollPane testItemsScrollPane;
	
	private JButton finishButton;
	private JLabel lblOr;
	private JButton cancelButton;
	private JButton reportButton;
	private JCheckBox progressMeterCheckBox;
	
	private ImagePanel imagePanel;
	private JButton browseButton;

	private JComboBox<String> existingImagesComboBox;
	
	private JLabel lblNewLabel;
	
	private ArrayList<String> imagesList;
	
	/**
	 * Constructor for the AdminTestSetupPanel.
	 */
	public AdminTestSetupPanel()
	{
		imagePanel = new ImagePanel();
		imagePanel.setSize(250, 250);
		imagePanel.setLocation(413, 32);
		
		existingImagesComboBox = new JComboBox<String>();
		existingImagesComboBox.setEnabled(false);
		existingImagesComboBox.setVisible(false);                               
		
		lblNewLabel = new JLabel("Database Pictures:");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setFont(new Font("Arial", Font.BOLD, 14));
		lblNewLabel.setVisible(false);<commit_msg>added functionality for existing images usage to create ItemImages relationship<commit_after>package cis234a.nsort.view;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;

import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import javax.swing.SwingConstants;
import javax.swing.border.BevelBorder;

import cis234a.nsort.model.*;

import javax.swing.JComboBox;
/**
 * The LoginPanel Class contains the components for the LoginFrame.
 *  
 * @author (Chris.Stultz, John.Loranger, Ryan.Reams, Josh.Eads) 
 * @version (4/25/2015)
 */
@SuppressWarnings("serial")
public class AdminTestSetupPanel extends JPanel
{

	private static final Dimension DIM = new Dimension(680, 453);
	
	private JLabel existingItemsLabel;
	protected JList<String> existingItemsList;
	protected DefaultListModel<String> existingItemsListModel;
	private JScrollPane existingItemsScrollPane;
	
	private JPopupMenu existingItemsListRightClickPopupMenu;
	private JMenuItem deleteMenuItem;

	private JLabel addItemLabel;
	private JTextField addItemTextField;
	private JButton submitButton;
	
	private JLabel testItemsLabel;
	protected JList<String> testItemsList;
	protected DefaultListModel<String> testItemsListModel;
	private JScrollPane testItemsScrollPane;
	
	private JButton finishButton;
	private JLabel lblOr;
	private JButton cancelButton;
	private JButton reportButton;
	private JCheckBox progressMeterCheckBox;
	
	private ImagePanel imagePanel;
	private JButton browseButton;

	private JComboBox<String> existingImagesComboBox;
	
	private JLabel lblNewLabel;
	
	private ArrayList<String> imagesList;
	
	/**
	 * Constructor for the AdminTestSetupPanel.
	 */
	public AdminTestSetupPanel()
	{
		imagePanel = new ImagePanel();
		imagePanel.setSize(250, 250);
		imagePanel.setLocation(413, 32);
		
		existingImagesComboBox = new JComboBox<String>();
		existingImagesComboBox.setEnabled(false);
		//existingImagesComboBox.setVisible(false);                               
		
		lblNewLabel = new JLabel("Database Pictures:");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setFont(new Font("Arial", Font.BOLD, 14));
		//lblNewLabel.setVisible(false);
{'fraction_non_alphanumeric': 0.0851221317542561, 'fraction_numerical': 0.011843079200592153, 'mean_word_length': 5.705955334987593, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5394914', 'n_tokens_mistral': 1689, 'n_tokens_neox': 1572, 'n_words': 370}