<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sokoban;

/**
 *
 * @author figgefred
 */
public class BoardPosition 
{
    public final int Row;
    public final int Column;
    private Integer MyHash = null;
    
    public BoardPosition(int row, int col)
    {
        Row = row;
        Column = col;
    }
    
    @Override
    public boolean equals(Object o)
    {
        if(o instanceof BoardPosition)
        {
            return this.hashCode() == o.hashCode();
        }
        return false;
    }
    
    @Override
    public int hashCode()
    {
        if(MyHash == null)
        {
            MyHash = 12345*Row*Row + Column;
        }
        return MyHash;
    }
}<commit_msg>Lagt till tostring i BoardPosition<commit_after>package sokoban;

/**
 *
 * @author figgefred
 */
public class BoardPosition 
{
    public final int Row;
    public final int Column;
    private Integer MyHash = null;
    
    public BoardPosition(int row, int col)
    {
        Row = row;
        Column = col;
    }
    
    @Override
    public boolean equals(Object o)
    {
        if(o instanceof BoardPosition)
        {
            return this.hashCode() == o.hashCode();
        }
        return false;
    }
    
    @Override
    public int hashCode()
    {
        if(MyHash == null)
        {
            MyHash = 12345*Row*Row + Column;
        }
        return MyHash;
    }
    
    @Override
    public String toString() {
    	return "Row: " + Row + ", col: " + Column;
    }
}
{'fraction_non_alphanumeric': 0.09636247606892151, 'fraction_numerical': 0.006381620931716656, 'mean_word_length': 1.6803418803418804, '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': '1054254', 'n_tokens_mistral': 481, 'n_tokens_neox': 471, 'n_words': 132}