<commit_before>#include "sudokuJudger.h"
#include "sudokuGenerator.h"
#include "sudokuPrinter.h"
#include <stdlib.h>
#include <iostream>
using namespace std;

int main() {
    int input[9][9];
    int i, j;

    bool signal = false;
    SudokuGenerator sudokuGenerator;
    while (!signal) {
        signal = sudokuGenerator.Generator();
    }
    SudokuPrinter sudokuPrinter;
    sudokuPrinter.Printer(sudokuGenerator.solution);

    /*for (i = 0; i < 9; i++) {
        for (j = 0; j < 9; j++) {
            cin >> input[i][j];
        }
    }
    SudokuJudger sudokuJudger1;
    bool sudokuResult = sudokuJudger1.SudokuisSolved(input);
    if (sudokuResult) {
        cout << "Congratulations!" << endl;
    }*/
    return 0;
}<commit_msg>update main.cpp: add arguments<commit_after>#include "sudokuJudger.h"
#include "sudokuGenerator.h"
#include "sudokuPrinter.h"
#include <stdlib.h>
#include <iostream>
using namespace std;

int main(int argc, char *argv[]) {
    if (argc < 3) {
        cout << "Error occurs when parsing arguments." << endl;
        cout << "Usage: sudoku.exe -c [N]" << endl;
        return 1;
    }

    int solutionNumber = atoi(argv[2]);

    SudokuGenerator sudokuGenerator;
    SudokuPrinter sudokuPrinter;

    bool signal = false;

    for (int i = 0; i < solutionNumber; i++) {
        signal = sudokuGenerator.Generator();
        if (signal) {
            sudokuPrinter.Printer(sudokuGenerator.solution);
        } else {
            cout << "Error occurs when applying sudokuGenerator." << endl;
            return 1;
        }
    }

    return 0;
}
{'fraction_non_alphanumeric': 0.13123028391167194, 'fraction_numerical': 0.00946372239747634, 'mean_word_length': 2.645977011494253, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 9, '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': '622284', 'n_tokens_mistral': 554, 'n_tokens_neox': 534, 'n_words': 131}