<commit_before>import java.io.*;

public class TestPlotter
{
    public static final String SEPARATOR = ",";

    public static final char UP = 'U';
    public static final char DOWN = 'D';
    public static final char LEFT = 'L';
    public static final char RIGHT = 'R';

    /*
     * Assume the starting point is in the middle of the
     * 2d array. But how big should the array be to ensure
     * we don't run out of space or over the edges?
     * 
     * We take a guess at the moment by taking a default size.
     * However, other values for length and width can
     * be given at input time.
     * 
     * If CircuitSize is used, then the exact values can
     * be obtained beforehand.
     */

    public static final int DEFAULT_LENGTH = 23305;
    public static final int DEFAULT_WIDTH = 14050;

    public static void main (String[] args)
    {
        boolean debug = false;
        String fileToUse = DATA_FILE;

        for (int i = 0; i < args.length; i++)
        {
            if ("-help".equals(args[i]))
            {
                System.out.println("[-help] [-debug] [-width <width>] [-length <length>] [-example1] [-example2]");
                System.exit(0);
            }

            if ("-debug".equals(args[i]))
                debug = true;

            if ("-width".equals(args[i]))
                _width = Integer.parseInt(args[i+1]);

            if ("-length".equals(args[i]))
                _length = Integer.parseInt(args[i+1]);

            if ("-example1".equals(args[i]))
                fileToUse = EXAMPLE1;

            if ("-example2".equals(args[i]))
                fileToUse = EXAMPLE2;
        }

        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        String[] line1 = null;
        String[] line2 = null;

        try
        {
            reader = new BufferedReader(new FileReader(fileToUse));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                if (line1 == null)
                    line1 = line.split(SEPARATOR);
                else
                {
                    if (line2 == null)
                        line2 = line.split(SEPARATOR);
                    else
                    {
                        System.out.println("Unexpected extra lines in input file!");

                        System.exit(0);
                    }
                }
            }

            if (debug)
                dumpData(line1, line2);
            else
            {
                if (checkMatrixSize(line1) && checkMatrixSize(line2))
                {
                    System.out.println("Matrix of length:"+_length+" and wodth:"+_width+" is sufficient.");
                }
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally<commit_msg>Fixed typo in print statement.<commit_after>import java.io.*;

public class TestPlotter
{
    public static final String SEPARATOR = ",";

    public static final char UP = 'U';
    public static final char DOWN = 'D';
    public static final char LEFT = 'L';
    public static final char RIGHT = 'R';

    /*
     * Assume the starting point is in the middle of the
     * 2d array. But how big should the array be to ensure
     * we don't run out of space or over the edges?
     * 
     * We take a guess at the moment by taking a default size.
     * However, other values for length and width can
     * be given at input time.
     * 
     * If CircuitSize is used, then the exact values can
     * be obtained beforehand.
     */

    public static final int DEFAULT_LENGTH = 23305;
    public static final int DEFAULT_WIDTH = 14050;

    public static void main (String[] args)
    {
        boolean debug = false;
        String fileToUse = DATA_FILE;

        for (int i = 0; i < args.length; i++)
        {
            if ("-help".equals(args[i]))
            {
                System.out.println("[-help] [-debug] [-width <width>] [-length <length>] [-example1] [-example2]");
                System.exit(0);
            }

            if ("-debug".equals(args[i]))
                debug = true;

            if ("-width".equals(args[i]))
                _width = Integer.parseInt(args[i+1]);

            if ("-length".equals(args[i]))
                _length = Integer.parseInt(args[i+1]);

            if ("-example1".equals(args[i]))
                fileToUse = EXAMPLE1;

            if ("-example2".equals(args[i]))
                fileToUse = EXAMPLE2;
        }

        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        String[] line1 = null;
        String[] line2 = null;

        try
        {
            reader = new BufferedReader(new FileReader(fileToUse));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                if (line1 == null)
                    line1 = line.split(SEPARATOR);
                else
                {
                    if (line2 == null)
                        line2 = line.split(SEPARATOR);
                    else
                    {
                        System.out.println("Unexpected extra lines in input file!");

                        System.exit(0);
                    }
                }
            }

            if (debug)
                dumpData(line1, line2);
            else
            {
                if (checkMatrixSize(line1) && checkMatrixSize(line2))
                {
                    System.out.println("Matrix of length:"+_length+" and width:"+_width+" is sufficient.");
                }
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
{'fraction_non_alphanumeric': 0.10581375407305779, 'fraction_numerical': 0.010975818898988167, 'mean_word_length': 1.330935251798561, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4214288', 'n_tokens_mistral': 1612, 'n_tokens_neox': 1491, 'n_words': 467}