<commit_before>package com.tinkerpop.gremlin.console;

import com.tinkerpop.gremlin.Gremlin;
import jline.History;
import org.codehaus.groovy.tools.shell.Groovysh;
import org.codehaus.groovy.tools.shell.IO;
import org.codehaus.groovy.tools.shell.InteractiveShellRunner;

import java.io.File;
import java.io.IOException;

/**
 * @author <NAME> (http://markorodriguez.com)
 */
public class Console {

    private static final String HISTORY_FILE = ".gremlin_history";

    public static void main(final String[] args) {
        IO io = new IO(System.in, System.out, System.err);
        io.out.println();
        io.out.println("         \\,,,/");
        io.out.println("         (o o)");
        io.out.println("-----oOOo-(_)-oOOo-----");

        final Groovysh groovy = new Groovysh();
        groovy.setResultHook(new NullResultHookClosure(groovy));
        for (String imps : Imports.getImports()) {
            groovy.execute("import " + imps);
        }
        groovy.setResultHook(new ResultHookClosure(groovy, io));
        groovy.setHistory(new History());

        final InteractiveShellRunner runner = new InteractiveShellRunner(groovy, new PromptClosure(groovy));
        runner.setErrorHandler(new ErrorHookClosure(runner, io));
        try {
            runner.setHistory(new History(new File(HISTORY_FILE)));
        } catch (IOException e) {
            io.err.println("Unable to create history file: " + HISTORY_FILE);
        }

        Gremlin.load();
        try {
            runner.run();
        } catch (Error e) {
            System.err.println(e.getMessage());
        }
    }
}<commit_msg>removed System.err.println for errors when exiting console. Pointless null message.<commit_after>package com.tinkerpop.gremlin.console;

import com.tinkerpop.gremlin.Gremlin;
import jline.History;
import org.codehaus.groovy.tools.shell.Groovysh;
import org.codehaus.groovy.tools.shell.IO;
import org.codehaus.groovy.tools.shell.InteractiveShellRunner;

import java.io.File;
import java.io.IOException;

/**
 * @author <NAME> (http://markorodriguez.com)
 */
public class Console {

    private static final String HISTORY_FILE = ".gremlin_history";

    public static void main(final String[] args) {
        IO io = new IO(System.in, System.out, System.err);
        io.out.println();
        io.out.println("         \\,,,/");
        io.out.println("         (o o)");
        io.out.println("-----oOOo-(_)-oOOo-----");

        final Groovysh groovy = new Groovysh();
        groovy.setResultHook(new NullResultHookClosure(groovy));
        for (String imps : Imports.getImports()) {
            groovy.execute("import " + imps);
        }
        groovy.setResultHook(new ResultHookClosure(groovy, io));
        groovy.setHistory(new History());

        final InteractiveShellRunner runner = new InteractiveShellRunner(groovy, new PromptClosure(groovy));
        runner.setErrorHandler(new ErrorHookClosure(runner, io));
        try {
            runner.setHistory(new History(new File(HISTORY_FILE)));
        } catch (IOException e) {
            io.err.println("Unable to create history file: " + HISTORY_FILE);
        }

        Gremlin.load();
        try {
            runner.run();
        } catch (Error e) {
            //System.err.println(e.getMessage());
        }
    }
}
{'fraction_non_alphanumeric': 0.13430127041742287, 'fraction_numerical': 0.0, 'mean_word_length': 2.6102620087336246, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7317717', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1002, 'n_words': 197}