<commit_before>import java.util.*;

public class VacuumRobot
{
    // instructions

    public static final String LEFT_COMMAND = "L";
    public static final String RIGHT_COMMAND = "R";
    public static final String NEW_LINE = "\n";

    public VacuumRobot (String[] scannedLines, boolean debug)
    {
        _thePath = new Vector<Cell>();
        _maxX = 0;
        _maxY = 0;
        _debug = debug;

        convertToPath(scannedLines);
    }

    private void convertToPath (String[] lines)
    {
        int lineLength = lines[0].length(); // all lines are the same length

        _maxY = lines.length;
        _maxX = lineLength;

        for (int y = 0; y < lines.length -1; y++)
        {
            for (int x = 0; x < lineLength; x++)
            {
                char currChar = lines[y].charAt(x);
                boolean isScaffold = (currChar == CellId.SCAFFOLDING_CHAR) || (CellId.isRobotCode(""+currChar));
                Cell theCell = new Cell(new Coordinate(x, y), isScaffold, _debug);

                if (_debug)
                    System.out.println(theCell);

                _thePath.add(theCell);
            }
        }
    }

    private void printCells ()
    {
        Enumeration<Cell> iter = _thePath.elements();

        while (iter.hasMoreElements())
        {

        }
    }

    private Vector<Cell> _thePath;<commit_msg>Update VacuumRobot.java<commit_after>import java.util.*;

public class VacuumRobot
{
    // instructions

    public static final String LEFT_COMMAND = "L";
    public static final String RIGHT_COMMAND = "R";
    public static final String NEW_LINE = "\n";

    public VacuumRobot (String[] scannedLines, boolean debug)
    {
        _thePath = new Vector<Cell>();
        _maxX = 0;
        _maxY = 0;
        _debug = debug;

        convertToPath(scannedLines);
    }

    public void printCells ()
    {
        Enumeration<Cell> iter = _thePath.elements();
        int index = 1;

        System.out.println("Dimensions < "+_maxX+", "+_maxY+" >");

        while (iter.hasMoreElements())
        {
            System.out.print(iter.nextElement().getContents());

            if (index++ == _maxX)
            {
                System.out.println();

                index = 1;
            }
        }
    }

    private void convertToPath (String[] lines)
    {
        int lineLength = lines[0].length(); // all lines are the same length

        _maxY = lines.length;
        _maxX = lineLength;

        for (int y = 0; y < lines.length -1; y++)
        {
            for (int x = 0; x < lineLength; x++)
            {
                Cell theCell = new Cell(new Coordinate(x, y), String.valueOf(lines[y].charAt(x)), _debug);

                if (_debug)
                    System.out.println(theCell);

                _thePath.add(theCell);
            }
        }
    }

    private Vector<Cell> _thePath;
{'fraction_non_alphanumeric': 0.11619840443981963, 'fraction_numerical': 0.004856052722858134, 'mean_word_length': 1.7466666666666666, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 10, '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': '2758170', 'n_tokens_mistral': 894, 'n_tokens_neox': 834, 'n_words': 213}