<commit_before>public class Tile
{
    public static final int TOP = 0;
    public static final int LEFT = 1;
    public static final int BOTTOM = 2;
    public static final int RIGHT = 3;

    public Tile (long number, String[] data)
    {
        _id = number;
        _data = new char[data.length][data[0].length()];
        _originalState = new char[data.length][data[0].length()];

        for (int i = 0; i < data.length; i++)
        {
            for (int j = 0; j < data[0].length(); j++)
            {
                _data[i][j] = data[i].charAt(j);
                _originalState[i][j] = data[i].charAt(j);
            }
        }

        _freeze = false;  // should the tile move?
        _isConnected = new boolean[4];  // edges connected?
        _connections = new long[4];  // if so, which ones?

        for (int i = 0; i < 4; i++)
        {
            _isConnected[i] = false;  // which edges are connected?
            _connections[i] = 0;
        }

        _numberOfConnections = 0;
    }

    public final void removeBorders ()
    {
        
    }

    /*
     * Check for this pattern ...
     * 
     *                   # 
     * #    ##    ##    ###
     *  #  #  #  #  #  #   
     */

    public final boolean hasSeaMonster (int x, int y)
    {
        if ((_data[y + 1][x + 1] == TileData.HASH) && (_data[y + 1][x + 4] == TileData.HASH)
            && (_data[y][x + 5] == TileData.HASH) && (_data[y][x + 6] == TileData.HASH)
		    && (_data[y + 1][x + 7] == TileData.HASH) && (_data[y + 1][x + 10] == TileData.HASH)
            && (_data[y][x + 11] == TileData.HASH) && (_data[y][x + 12] == TileData.HASH)
            && (_data[y + 1][x + 13] == TileData.HASH) && (_data[y + 1][x + 16] == TileData.HASH)
		    && (_data[y][x + 17] == TileData.HASH) && (_data[y][x + 18] == TileData.HASH)
            && (_data[y][x + 19] == TileData.HASH) && (_data[y - 1][x + 18] == TileData.HASH)
        {
	        return true;
	    }

	    return false;
    }

    public final long getID ()
    {
        return _id;
    }

    public final boolean isFrozen ()
    {
        return _freeze;
    }

    public final void freeze ()
    {
        _freeze = true;
    }

    public final boolean[] getConnectionStatuses ()
    {
        return _isConnected;
    }

    public final long[] getConnections ()
    {
        return _connections;<commit_msg>Update Tile.java<commit_after>public class Tile
{
    public static final int TOP = 0;
    public static final int LEFT = 1;
    public static final int BOTTOM = 2;
    public static final int RIGHT = 3;

    public Tile (long number, String[] data)
    {
        _id = number;
        _data = new char[data.length][data[0].length()];
        _originalState = new char[data.length][data[0].length()];

        for (int i = 0; i < data.length; i++)
        {
            for (int j = 0; j < data[0].length(); j++)
            {
                _data[i][j] = data[i].charAt(j);
                _originalState[i][j] = data[i].charAt(j);
            }
        }

        _freeze = false;  // should the tile move?
        _isConnected = new boolean[4];  // edges connected?
        _connections = new long[4];  // if so, which ones?

        for (int i = 0; i < 4; i++)
        {
            _isConnected[i] = false;  // which edges are connected?
            _connections[i] = 0;
        }

        _numberOfConnections = 0;
    }

    public final void removeBorders ()
    {

    }

    /*
     * Check for this pattern ...
     * 
     *                   # 
     * #    ##    ##    ###
     *  #  #  #  #  #  #   
     */

    public final boolean hasSeaMonster (int x, int y)
    {
        if ((_data[y + 1][x + 1] == TileData.HASH) && (_data[y + 1][x + 4] == TileData.HASH)
            && (_data[y][x + 5] == TileData.HASH) && (_data[y][x + 6] == TileData.HASH)
		    && (_data[y + 1][x + 7] == TileData.HASH) && (_data[y + 1][x + 10] == TileData.HASH)
            && (_data[y][x + 11] == TileData.HASH) && (_data[y][x + 12] == TileData.HASH)
            && (_data[y + 1][x + 13] == TileData.HASH) && (_data[y + 1][x + 16] == TileData.HASH)
		    && (_data[y][x + 17] == TileData.HASH) && (_data[y][x + 18] == TileData.HASH)
            && (_data[y][x + 19] == TileData.HASH) && (_data[y - 1][x + 18] == TileData.HASH))
        {
	        return true;
	    }

	    return false;
    }

    public final long getID ()
    {
        return _id;
    }

    public final boolean isFrozen ()
    {
        return _freeze;
    }

    public final void freeze ()
    {
        _freeze = true;
    }

    public final boolean[] getConnectionStatuses ()
    {
        return _isConnected;
    }

    public final long[] getConnections ()
    {
        return _connections;
{'fraction_non_alphanumeric': 0.16047297297297297, 'fraction_numerical': 0.01900337837837838, 'mean_word_length': 1.6687323943661971, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4924437', 'n_tokens_mistral': 1770, 'n_tokens_neox': 1621, 'n_words': 388}