<commit_before>package FrontEnd;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.BorderLayout;
import javax.swing.BoxLayout;
import javax.swing.JMenuBar;

public class Inicio extends JPanel{
	private JTextField codEmpleado;
	Inicio (JFrame marco) {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.NORTH);
		panel.setLayout(new BorderLayout(0, 0));
		
		JMenuBar menuBar = new JMenuBar();
		panel.add(menuBar, BorderLayout.NORTH);
		
		JPanel panel_1 = new JPanel();
		panel.add(panel_1);
		
		JLabel lblCodigoDeEmpleado = new JLabel("Codigo de empleado");
		panel_1.add(lblCodigoDeEmpleado);
		
		codEmpleado = new JTextField();
		panel_1.add(codEmpleado);
		codEmpleado.setColumns(6);
		
		JButton btnVentaNueva = new JButton("Venta Nueva");
		add(btnVentaNueva, BorderLayout.CENTER);
		btnVentaNueva.setToolTipText("Inicia el proceso de venta");
		btnVentaNueva.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				marco.setContentPane(new VentaNueva(marco, codEmpleado.getText()));
				marco.validate();
			}
		});
		btnVentaNueva.setMnemonic('v');
		
		JButton btnPanelControl = new JButton("Panel de control");
		add(btnPanelControl, BorderLayout.SOUTH);
		btnPanelControl.setToolTipText("Administra y monitoriza las transacciones del sistema");
		btnPanelControl.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				marco.setContentPane(new PanelControl(marco, codEmpleado.getText()));
                marco.validate();	
			}
		});
		btnPanelControl.setMnemonic('c');
		
	}<commit_msg>instancia de empleado añadido<commit_after>package FrontEnd;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.JTextField;

import BackEnd.Empleado;

import java.awt.BorderLayout;
import javax.swing.BoxLayout;
import javax.swing.JMenuBar;

public class Inicio extends JPanel{
	private JTextField codEmpleado;
	Inicio (JFrame marco) {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.NORTH);
		panel.setLayout(new BorderLayout(0, 0));
		
		JMenuBar menuBar = new JMenuBar();
		panel.add(menuBar, BorderLayout.NORTH);
		
		JPanel panel_1 = new JPanel();
		panel.add(panel_1);
		
		JLabel lblCodigoDeEmpleado = new JLabel("Codigo de empleado");
		panel_1.add(lblCodigoDeEmpleado);
		
		codEmpleado = new JTextField();
		panel_1.add(codEmpleado);
		codEmpleado.setColumns(6);
		
		JButton btnVentaNueva = new JButton("Venta Nueva");
		add(btnVentaNueva, BorderLayout.CENTER);
		btnVentaNueva.setToolTipText("Inicia el proceso de venta");
		btnVentaNueva.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				Empleado nuevoEmpleado = new Empleado(codEmpleado.getText());
				marco.setContentPane(new VentaNueva(marco, nuevoEmpleado));
				marco.validate();
			}
		});
		btnVentaNueva.setMnemonic('v');
		
		JButton btnPanelControl = new JButton("Panel de control");
		add(btnPanelControl, BorderLayout.SOUTH);
		btnPanelControl.setToolTipText("Administra y monitoriza las transacciones del sistema");
		btnPanelControl.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				marco.setContentPane(new PanelControl(marco, new Empleado(codEmpleado.getText())));
                marco.validate();	
			}
		});
		btnPanelControl.setMnemonic('c');
		
	}
{'fraction_non_alphanumeric': 0.11060402684563758, 'fraction_numerical': 0.005369127516778523, 'mean_word_length': 5.078303425774878, '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': '2066403', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1253, 'n_words': 244}