<commit_before>import java.util.*;

import jburg.ProductionTable;
import jburg.Reducer;
import jburg.TransitionTableLoader;

/**
 * Run a test as specified by command-line options.
 */
public class TestRunner
{
    public static void main(String[] args)
    throws Exception
    {
        String dumpFile = null;
        String loadFile = null;
        String grammarFile = null;
        String testcaseFile = null;
        String dumpTemplates = "xml.stg";
        String dumpClassName = null;
        String reducerClassName = "Calculator";

        List<String>    failedTestcases = new ArrayList<String>();

        boolean verbose = true;

        GrammarBuilder<Nonterminal,NodeType> grammarBuilder = new GrammarBuilder<Nonterminal,NodeType>(Nonterminal.class, NodeType.class);

        for (int i = 0; i < args.length; i++) {

            if (args[i].equals("-load")) {
                loadFile = args[++i];
            } else if (args[i].equals("-dump")) {
                dumpFile = args[++i];
            } else if (args[i].equals("-grammar")) {
                grammarFile = args[++i];
            } else if (args[i].equals("-quiet")) {
                verbose = false;
            } else if (args[i].equals("-randomize")) {
                grammarBuilder.randomizeProductions = true;
            } else if (args[i].equals("-reducer")) {
                reducerClassName = args[++i];
            } else if (args[i].equals("-templates")) {
                dumpTemplates = args[++i];<commit_msg>-classname <dump class> option<commit_after>import java.util.*;

import jburg.ProductionTable;
import jburg.Reducer;
import jburg.TransitionTableLoader;

/**
 * Run a test as specified by command-line options.
 */
public class TestRunner
{
    public static void main(String[] args)
    throws Exception
    {
        String dumpFile = null;
        String loadFile = null;
        String grammarFile = null;
        String testcaseFile = null;
        String dumpTemplates = "xml.stg";
        String dumpClassName = null;
        String reducerClassName = "Calculator";

        List<String>    failedTestcases = new ArrayList<String>();

        boolean verbose = true;

        GrammarBuilder<Nonterminal,NodeType> grammarBuilder = new GrammarBuilder<Nonterminal,NodeType>(Nonterminal.class, NodeType.class);

        for (int i = 0; i < args.length; i++) {

            if (args[i].equals("-load")) {
                loadFile = args[++i];
            } else if (args[i].equals("-classname")) {
                dumpClassName = args[++i];
            } else if (args[i].equals("-dump")) {
                dumpFile = args[++i];
            } else if (args[i].equals("-grammar")) {
                grammarFile = args[++i];
            } else if (args[i].equals("-quiet")) {
                verbose = false;
            } else if (args[i].equals("-randomize")) {
                grammarBuilder.randomizeProductions = true;
            } else if (args[i].equals("-reducer")) {
                reducerClassName = args[++i];
            } else if (args[i].equals("-templates")) {
                dumpTemplates = args[++i];
{'fraction_non_alphanumeric': 0.13288504642971502, 'fraction_numerical': 0.0006404098623118795, 'mean_word_length': 2.1587462082912032, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5424083', 'n_tokens_mistral': 887, 'n_tokens_neox': 855, 'n_words': 207}