<commit_before>import java.util.*;

public class Layer
{
    public Layer (int layer, int height, int width, boolean debug)
    {
        _cubes = new char[height][width];
        _layer = layer;
        _debug = debug;

        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                _cubes[i][j] = CubeId.INACTIVE;
            }
        }
    }

    public final void activate (int x, int y)
    {
        _cubes[x][y] = CubeId.ACTIVE;
    }

    public final void deactivate (int x, int y)
    {
        _cubes[x][y] = CubeId.INACTIVE;
    }

    public final boolean empty ()
    {
        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                if (_cubes[i][j] == CubeId.ACTIVE)
                    return false;
            }
        }

        return true;
    }

    public final int getLevel ()
    {
        return _layer;
    }

    @Override
    public String toString ()
    {
        String str = "";<commit_msg>Update Layer.java<commit_after>import java.util.*;

public class Layer
{
    public Layer (int layer, int height, int width, boolean debug)
    {
        _cubes = new char[height][width];
        _layer = layer;
        _debug = debug;

        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                _cubes[i][j] = CubeId.INACTIVE;
            }
        }
    }

    public final void activate (int y, int x)
    {
        _cubes[y][x] = CubeId.ACTIVE;
    }

    public final void deactivate (int y, int x)
    {
        _cubes[y][x] = CubeId.INACTIVE;
    }

    public final boolean empty ()
    {
        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                if (_cubes[i][j] == CubeId.ACTIVE)
                    return false;
            }
        }

        return true;
    }

    public final int getLevel ()
    {
        return _layer;
    }

    @Override
    public String toString ()
    {
        String str = "";
{'fraction_non_alphanumeric': 0.12189512419503219, 'fraction_numerical': 0.005519779208831647, 'mean_word_length': 1.3564463705308776, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5196441', 'n_tokens_mistral': 747, 'n_tokens_neox': 705, 'n_words': 191}