<commit_before>/*
 * Default values assuming 5x5.
 * 
 * If/when the state machine is updated to allow
 * arbitrary grid sizes, these values would be
 * computed each time.
 */

public class GridData
{
    public static final int DEFAULT_WIDTH = 5;
    public static final int DEFAULT_HEIGHT = 5;
    public static final int DEFAULT_LEVELS = 5;

    public static final ThreeDPoint topOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(2, 1, current.getZ() - 1);
    }

    public static final ThreeDPoint bottomOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(2, 3, current.getZ() - 1);
    }

    public static final ThreeDPoint leftOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(2, 3, current.getZ() - 1);
    }

    public static final ThreeDPoint rightOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(3, 2, current.getZ() - 1);
    }

    private GridData ()
    {
    }
}<commit_msg>Update GridData.java<commit_after>/*
 * Default values assuming 5x5.
 * 
 * If/when the state machine is updated to allow
 * arbitrary grid sizes, these values would be
 * computed each time.
 */

public class GridData
{
    public static final int DEFAULT_WIDTH = 5;
    public static final int DEFAULT_HEIGHT = 5;
    public static final int DEFAULT_LEVELS = 5;

    public static final int CENTRE_X = 2;
    public static final int CENTRE_Y = 2;

    public static final int TOP_INNER_EDGE_Y = 1;
    public static final int BOTTOM_INNER_EDGE_Y = 3;

    public static final ThreeDPoint topOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(2, 1, current.getZ() - 1);
    }

    public static final ThreeDPoint bottomOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(2, 3, current.getZ() - 1);
    }

    public static final ThreeDPoint leftOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(2, 3, current.getZ() - 1);
    }

    public static final ThreeDPoint rightOuterEdge (ThreeDPoint current)
    {
        return new ThreeeDPoint(3, 2, current.getZ() - 1);
    }

    public static final void bottomInnerEdge (ThreeDPoint current, HashSet<ThredDPoint> tiles)
    {
        tiles.add(new ThreeeDPoint(0, 4, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(1, 4, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(2, 4, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(3, 4, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(4, 4, current.getZ() + 1));
    }

    public static final void topInnerEdge (ThreeDPoint current, HashSet<ThreeDPoint> tiles)
    {
        tiles.add(new ThreeeDPoint(0, 0, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(1, 0, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(2, 0, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(3, 0, current.getZ() + 1));
        tiles.add(new ThreeeDPoint(4, 0, current.getZ() + 1));
    }

    private GridData ()
    {
    }
}
{'fraction_non_alphanumeric': 0.10150753768844221, 'fraction_numerical': 0.022780569514237858, 'mean_word_length': 2.9134993446920054, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4321721', 'n_tokens_mistral': 1017, 'n_tokens_neox': 960, 'n_words': 289}