<commit_before>package gui;


import java.awt.Color;
import java.awt.Dimension;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;

import board.Board;
import board.Case;

/**
 * Boutons permettant de poser des murs sur le plateau graphique
 * @author Eduardo
 */
public class GuiWall extends JButton{

	private static Case[][] realTab = Board.getTableau();
	private int x;
	private int y;
	private boolean isVertical;
	public static ImageIcon HorizonalWall;
	public static ImageIcon VerticalWall;
	
	public GuiWall(int x ,int y, boolean isVertical){
		this.x = x;
		this.y = y;
		this.isVertical = isVertical;
		try{
			HorizonalWall = new ImageIcon(ImageIO.read(new File("./ressources/hWall.png")));
			VerticalWall = new ImageIcon(ImageIO.read(new File("./ressources/vWall.png")));
		}
		catch(IOException e){
			e.printStackTrace();
		}
		if (isVertical){
			this.setPreferredSize(new Dimension(15,90));
		}
		else{
			this.setPreferredSize(new Dimension(90,15));
		}
		this.setEnabled(true);
		this.setBackground(new Color(0,0,0,0));
		this.setFocusPainted(false);
		this.setMargin(null);
		this.setBorder(BorderFactory.createEmptyBorder());
		this.addActionListener(new WallListener(this.x,this.y,isVertical));
		this.setVisible(true);
	}
}<commit_msg>File error fixed<commit_after>package gui;


import java.awt.Color;
import java.awt.Dimension;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;

import board.Board;
import board.Case;

/**
 * Boutons permettant de poser des murs sur le plateau graphique
 * @author Eduardo
 */
public class GuiWall extends JButton{

	private static Case[][] realTab = Board.getTableau();
	private int x;
	private int y;
	private boolean isVertical;
	
	public GuiWall(int x ,int y, boolean isVertical){
		this.x = x;
		this.y = y;
		this.isVertical = isVertical;
		if (isVertical){
			this.setPreferredSize(new Dimension(15,90));
		}
		else{
			this.setPreferredSize(new Dimension(90,15));
		}
		this.setEnabled(true);
		this.setBackground(new Color(0,0,0,0));
		this.setFocusPainted(false);
		this.setMargin(null);
		this.setBorder(BorderFactory.createEmptyBorder());
		this.addActionListener(new WallListener(this.x,this.y,isVertical));
		this.setVisible(true);
	}
}
{'fraction_non_alphanumeric': 0.12398042414355628, 'fraction_numerical': 0.009787928221859706, 'mean_word_length': 4.882494004796163, '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': '74203', 'n_tokens_mistral': 891, 'n_tokens_neox': 830, 'n_words': 186}