<commit_before>package gui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.text.DateFormat;
import java.util.Date;
import java.util.Vector;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

import main.Game;
import main.GridAI;
import main.GridStart;
import online.StratClient;
import pawn.APawn;
import pawn.Bomb;
import pawn.Captain;
import pawn.Colonel;
import pawn.Flag;
import pawn.General;
import pawn.Lieutenant;
import pawn.Major;
import pawn.Marshal;
import pawn.Miner;
import pawn.NoPawn;
import pawn.Scout;
import pawn.Sergeant;
import pawn.Spy;

/**
 * This class creates the window for the initialization of the grid by the
 * player.
 * 
 * @author <NAME>, <NAME>
 */
public class InitWindow extends WindowInitPawn {

	private static final long serialVersionUID = 1L;
	public Game gridPane2 = new Game(6, 2, 0);
	public Game gridPane1 = new Game(10, 4, 0);
	public PaneInitPawn pane1, pane2;
	public Vector<APawn> pawns;
	public APawn spyInit, scoutInit, minerInit, sergeantInit, lieutenantInit,
			captainInit, majorInit, colonelInit, generalInit, marshalInit,
			bombInit, flagInit, noPawn;
	public int posX, posY, x = 0, y = 0, northHeight, southHeight, xSize,
			ySize;
	public APawn currentPawn, pawnShow;
	public JOptionPane jop1, jop2;
	public String link, nom;

	public StratClient startClient;
	public boolean online = false, send = false;
	public int Oplayer = 0;

	public JComboBox<GridStart> combo;
	public GridStart focus;
	public Vector<GridStart> list;

	/**
	 * Main constructor of the class.
	 */
	public InitWindow() {
		if (modif) {
			this.gridPane1 = this.gridPane1 = WindowInitPawn.gridPane1;
		}
		init();
	}

	/**
	 * Constructor of the grid when the game is online.
	 * 
	 * @param startClient
	 *            The startClient object, used for the connection to the server.
	 * 
	 * @param Oplayer<commit_msg>copy-paste is bad<commit_after>package gui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.text.DateFormat;
import java.util.Date;
import java.util.Vector;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

import main.Game;
import main.GridAI;
import main.GridStart;
import online.StratClient;
import pawn.APawn;
import pawn.Bomb;
import pawn.Captain;
import pawn.Colonel;
import pawn.Flag;
import pawn.General;
import pawn.Lieutenant;
import pawn.Major;
import pawn.Marshal;
import pawn.Miner;
import pawn.NoPawn;
import pawn.Scout;
import pawn.Sergeant;
import pawn.Spy;

/**
 * This class creates the window for the initialization of the grid by the
 * player.
 * 
 * @author <NAME>, <NAME>
 */
public class InitWindow extends WindowInitPawn {

	private static final long serialVersionUID = 1L;
	public Game gridPane2 = new Game(6, 2, 0);
	public Game gridPane1 = new Game(10, 4, 0);
	public PaneInitPawn pane1, pane2;
	public Vector<APawn> pawns;
	public APawn spyInit, scoutInit, minerInit, sergeantInit, lieutenantInit,
			captainInit, majorInit, colonelInit, generalInit, marshalInit,
			bombInit, flagInit, noPawn;
	public int posX, posY, x = 0, y = 0, northHeight, southHeight, xSize,
			ySize;
	public APawn currentPawn, pawnShow;
	public JOptionPane jop1, jop2;
	public String link, nom;

	public StratClient startClient;
	public boolean online = false, send = false;
	public int Oplayer = 0;

	public JComboBox<GridStart> combo;
	public GridStart focus;
	public Vector<GridStart> list;

	/**
	 * Main constructor of the class.
	 */
	public InitWindow() {
		if (modif) {
			this.gridPane1 = WindowInitPawn.gridPane1;
		}
		init();
	}

	/**
	 * Constructor of the grid when the game is online.
	 * 
	 * @param startClient
	 *            The startClient object, used for the connection to the server.
	 * 
	 * @param Oplayer
{'fraction_non_alphanumeric': 0.0964401294498382, 'fraction_numerical': 0.008414239482200648, 'mean_word_length': 4.592279855247286, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '961960', 'n_tokens_mistral': 1602, 'n_tokens_neox': 1472, 'n_words': 452}