<commit_before>package extra;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.CompoundBorder;
import javax.swing.border.LineBorder;
import javax.swing.border.MatteBorder;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingConstants;

public class Tutorial extends JPanel implements ActionListener  {

	public JButton ok,ok2;
	public AnimatedButton animation;
	JLabel clickon;
	public JLabel lblSms ;
	 JPanel panel;
	public Tutorial() 
	{
		setBorder(new CompoundBorder(new LineBorder(new Color(0, 0, 0), 2), new LineBorder(new Color(0, 191, 255))));
		setOpaque(false);
		setBounds(0,0,1024,768);
		setLayout(null);
		
		 ok=new JButton("Continue");
		 ok.setSelectedIcon(null);
		 ok.setFont(new Font("Comic Sans MS", Font.BOLD | Font.ITALIC, 14));
		 ok.setForeground(new Color(0, 0, 0));
		 ok.setBackground(Color.WHITE);
		 ok.setBounds(150,120,100,40);
		 ok.addActionListener(this);
		 ok2=new JButton("Continue");
		 ok2.setSelectedIcon(null);
		 ok2.setFont(new Font("Comic Sans MS", Font.BOLD | Font.ITALIC, 14));
		 ok2.setForeground(new Color(0, 0, 0));
		 ok2.setBackground(Color.WHITE);
		 ok2.setBounds(150,120,100,40);
		 ok2.addActionListener(this);
		
		 animation=new AnimatedButton(0,0);
		 add(animation);
		 
		panel= new JPanel();
		 panel.setBorder(new CompoundBorder(new LineBorder(new Color(0, 0, 0), 4), new MatteBorder(3, 2, 1, 2, (Color) new Color(255, 255, 255))));
		 panel.setBackground(new Color(0, 128, 128));
		 panel.setBounds(330, 201, 397, 193);
		 panel.add(ok);
		 panel.setLayout(null);
		 add(panel);
		 
		 lblSms = new JLabel("\"ACA VA EL SMS AL USUARIO\"");
		 lblSms.setFont(new Font("Comic Sans MS", Font.BOLD | Font.ITALIC, 16));
		 lblSms.setHorizontalAlignment(SwingConstants.CENTER);
		 lblSms.setForeground(new Color(0, 0, 0));
		 lblSms.setBackground(new Color(0, 128, 0));
		 lblSms.setBounds(42, 35, 320, 40);
		 panel.add(lblSms);
		this.setVisible(false);
		
	}
	public void draw()
	{
		animation.setLocation(910,420);
		lblSms.setText("click on DECK button to get a card");
		animation.anim();
		this.setVisible(true);
	
	
	}
	
	public void barrier()
	{
		animation.setLocation(170,345);
		
		lblSms.setText("click on a barrier to get the card");
		animation.anim();
		this.setVisible(true);
	}
	
	public void Action()
	{
		animation.setLocation(170,375);
		lblSms.setText("now you can play a card , click on the card you are interested in then you will see a menu");
		animation.anim();
		//ok2.setEnabled(false);
		panel.remove(ok);
		panel.add(ok2);
		this.setVisible(true);
		
		
	}
	public void Action2()
	{
		animation.setLocation(170,375);
		lblSms.setText("done , now click on the play button");
		animation.anim();
		this.setVisible(true);
		
		
	}
	
	
	@Override
	public void actionPerformed(ActionEvent e) {

		if( e.getSource()==ok2)
		{
			System.out.println("ok2");
			animation.stop();
			
			panel.remove(ok2);
			panel.add(ok);
			animation.stop();
			this.setVisible(false);
			
			Action2();
			
		}
		
	}
	public void end()
	{
				animation.setLocation(650,150);
		
		lblSms.setText("click on end button to end this turn");
		animation.anim();<commit_msg>bugs y mas bugs <commit_after>package extra;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.CompoundBorder;
import javax.swing.border.LineBorder;
import javax.swing.border.MatteBorder;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingConstants;

public class Tutorial extends JPanel implements ActionListener  {

	public JButton ok,ok2;
	public AnimatedButton animation;
	JLabel clickon;
	public JLabel lblSms ;
	 JPanel panel;
	public Tutorial() 
	{
		setBorder(new CompoundBorder(new LineBorder(new Color(0, 0, 0), 2), new LineBorder(new Color(0, 191, 255))));
		setOpaque(false);
		setBounds(0,0,1024,768);
		setLayout(null);
		
		 ok=new JButton("Continue");
		 ok.setSelectedIcon(null);
		 ok.setFont(new Font("Comic Sans MS", Font.BOLD | Font.ITALIC, 14));
		 ok.setForeground(new Color(0, 0, 0));
		 ok.setBackground(Color.WHITE);
		 ok.setBounds(150,120,100,40);
		 ok.addActionListener(this);
		 ok2=new JButton("Continue");
		 ok2.setSelectedIcon(null);
		 ok2.setFont(new Font("Comic Sans MS", Font.BOLD | Font.ITALIC, 14));
		 ok2.setForeground(new Color(0, 0, 0));
		 ok2.setBackground(Color.WHITE);
		 ok2.setBounds(150,120,100,40);
		 ok2.addActionListener(this);
		
		 animation=new AnimatedButton(0,0);
		 add(animation);
		 
		panel= new JPanel();
		 panel.setBorder(new CompoundBorder(new LineBorder(new Color(0, 0, 0), 4), new MatteBorder(3, 2, 1, 2, (Color) new Color(255, 255, 255))));
		 panel.setBackground(new Color(0, 128, 128));
		 panel.setBounds(330, 201, 397, 193);
		 panel.add(ok);
		 panel.setLayout(null);
		 add(panel);
		 
		 lblSms = new JLabel("\"ACA VA EL SMS AL USUARIO\"");
		 lblSms.setFont(new Font("Comic Sans MS", Font.BOLD | Font.ITALIC, 16));
		 lblSms.setHorizontalAlignment(SwingConstants.CENTER);
		 lblSms.setForeground(new Color(0, 0, 0));
		 lblSms.setBackground(new Color(0, 128, 0));
		 lblSms.setBounds(42, 35, 320, 40);
		 panel.add(lblSms);
		this.setVisible(false);
		
	}
	public void draw()
	{
		animation.setLocation(910,420);
		panel.setLocation(330, 201);
		lblSms.setText("click on DECK button to get a card");
		animation.anim();
		this.setVisible(true);
	
	
	}
	
	public void barrier()
	{
		animation.setLocation(170,345);
		
		lblSms.setText("click on a barrier to get the card");
		animation.anim();
		this.setVisible(true);
	}
	
	public void Action()
	{
		animation.setLocation(170,375);
		lblSms.setText("now you can play a card , click on the card you are interested in then you will see a menu");
		animation.anim();
		//ok2.setEnabled(false);
		panel.remove(ok);
		panel.add(ok2);
		this.setVisible(true);
		
		
	}
	public void Action2()
	{
		animation.setLocation(170,375);
		lblSms.setText("done , now click on the play button");
		animation.anim();
		this.setVisible(true);
		
		
	}
	
	
	@Override
	public void actionPerformed(ActionEvent e) {

		if( e.getSource()==ok2)
		{
			System.out.println("ok2");
			animation.stop();
			
			panel.remove(ok2);
			panel.add(ok);
			animation.stop();
			this.setVisible(false);
			
			Action2();
			
		}
		
	}
	public void end()
	{
				animation.setLocation(650,150);
		panel.setLocation(230, 201);
		lblSms.setText("click on end button to end this turn");
		animation.anim();
{'fraction_non_alphanumeric': 0.14345991561181434, 'fraction_numerical': 0.04822182037371911, 'mean_word_length': 4.136996904024768, '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': '5158198', 'n_tokens_mistral': 2840, 'n_tokens_neox': 2299, 'n_words': 519}