<commit_before>package com.nuttyneko.model;

import org.junit.Test;
import static org.junit.Assert.*;

public class SquareTest
{
	@Test
	public void testConstructor_convertString()
	{
		Square square = null;
		
		square = new Square("A1");
		assertTrue(square.rank == 0 && square.file == 0);
		
		square = new Square("d4");
		assertTrue(square.rank == 3 && square.file == 3);
		
		square = new Square("H8");
		assertTrue(square.rank == 7 && square.file == 7);
		
		/*
		 * Some variants of Chess (i.e. Gothic Chess) may have more
		 * than 8 ranks and files.
		 */
		square = new Square("i2");
		assertTrue(square.rank == 8 && square.file == 1);
	}
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_1()
	{
        new Square("");
    }
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_2()
	{
        new Square("3d");
    }
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_3()
	{
        new Square("1");
    }
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_4()
	{
        new Square("hH");
    }
	
	@Test
	public void testEquals()
	{
		Square squareOne = new Square(0, 0);
		Square squareTwo = new Square(1, 1);
		Square squareThree = new Square(squareTwo);
		
		assertTrue(squareOne.equals(squareOne));
		assertTrue(squareTwo.equals(squareThree));
		assertFalse(squareOne.equals(squareTwo));
		assertFalse(squareOne.equals(null));
	}
}
<commit_msg>replace unicode character with escape sequence<commit_after>package com.nuttyneko.model;

import org.junit.Test;
import static org.junit.Assert.*;

public class SquareTest
{
	@Test
	public void testConstructor_convertString()
	{
		Square square = null;
		
		square = new Square("A1");
		assertTrue(square.rank == 0 && square.file == 0);
		
		square = new Square("d4");
		assertTrue(square.rank == 3 && square.file == 3);
		
		square = new Square("H8");
		assertTrue(square.rank == 7 && square.file == 7);
		
		/*
		 * Some variants of Chess (i.e. Gothic Chess) may have more
		 * than 8 ranks and files.
		 */
		square = new Square("i2");
		assertTrue(square.rank == 8 && square.file == 1);
	}
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_1()
	{
        new Square("");
    }
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_2()
	{
        new Square("3d");
    }
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_3()
	{
		// "1"
        new Square("\u00E21");
    }
	
	@Test(expected = IllegalArgumentException.class)
	public void testConstructor_invalidArgument_4()
	{
        new Square("hH");
    }
	
	@Test
	public void testEquals()
	{
		Square squareOne = new Square(0, 0);
		Square squareTwo = new Square(1, 1);
		Square squareThree = new Square(squareTwo);
		
		assertTrue(squareOne.equals(squareOne));
		assertTrue(squareTwo.equals(squareThree));
		assertFalse(squareOne.equals(squareTwo));
		assertFalse(squareOne.equals(null));
	}
}

{'fraction_non_alphanumeric': 0.12986598596043394, 'fraction_numerical': 0.01595405232929164, 'mean_word_length': 3.830508474576271, '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': '6195924', 'n_tokens_mistral': 1075, 'n_tokens_neox': 960, 'n_words': 226}