<commit_before>/**
 * Main program that runs the input, output, and sudoku solving
 * @author <NAME>
 * @version 1.0
 * Created by patch on 2015-12-26.
 */
import java.util.ArrayList;

public class SudokuProgram {
    public static void main(String[] args){
        final String F = "ERROR";
        SudokuParser parser = new SudokuParser();

        if(parser.parse()){
            ArrayList<int[][]> puzzleList = parser.get();
            if(puzzleList == null && parser.fail() == F)
                System.out.println("Error with input file.");
            else{
                //Output out = new Output(puzzleList);
                //test case before output
                for(int[][] sol: puzzleList){
                    for(int i = 0; i < 9; ++i){
                        for(int j = 0; j < 9; ++j){
                            System.out.print(sol[i][j]);
                        }
                        System.out.println();
                    }
                }
                System.out.println("Solutions outputted in to \"solutions.txt\"");
            }
        }
        else
            System.out.println("Missing input file.");
    }// end main
}// end SudokuProgram<commit_msg>updated main program test case<commit_after>/**
 * Main program that runs the input, output, and sudoku solving
 * @author <NAME>
 * @version 1.0
 * Created by patch on 2015-12-26.
 */
import java.util.ArrayList;

public class SudokuProgram {
    public static void main(String[] args){
        final String F = "ERROR";
        SudokuParser parser = new SudokuParser();

        if(parser.parse()){
            ArrayList<int[][]> puzzleList = parser.get();
            if(puzzleList == null && parser.fail() == F)
                System.out.println("Error with input file.");
            else{
                //Output out = new Output(puzzleList);
                //test case before output
                for(int[][] sol: puzzleList){
                    if(sol != null) {
                        for (int i = 0; i < 9; ++i) {
                            for (int j = 0; j < 9; ++j) {
                                System.out.print(sol[i][j]);
                            }
                            System.out.println();
                        }
                    }
                    else
                        System.out.println("Cannot Be Solved.");
                }
                System.out.println("Solutions outputted in to \"solutions.txt\"");
            }
        }
        else
            System.out.println("Missing input file.");
    }// end main
}// end SudokuProgram
{'fraction_non_alphanumeric': 0.1245674740484429, 'fraction_numerical': 0.010765090349865437, 'mean_word_length': 1.317008014247551, 'pattern_counts': {'":': 0, '<': 11, '<?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': '7184051', 'n_tokens_mistral': 708, 'n_tokens_neox': 657, 'n_words': 189}