<commit_before>package net.intelie.lognit.cli;

import net.intelie.lognit.cli.runners.AuthenticatorRunner;
import net.intelie.lognit.cli.runners.UsageRunner;
import net.intelie.lognit.cli.state.StateKeeper;

public class EntryPoint {

    private final UserConsole console;
    private final StateKeeper state;
    private final AuthenticatorRunner request;

    public EntryPoint(UserConsole console, StateKeeper state, AuthenticatorRunner runner) {
        this.console = console;
        this.state = state;
        this.request = runner;
    }

    public int run(String... args) {
        state.begin();

        UserOptions options = null;
        try {
            options = new UserOptions(args);
            return request.run(options);
        } catch (Exception ex) {
            //put some verbose logging here
            console.fixCursor();
            console.println("%s: %s", ex.getClass().getSimpleName(), ex.getMessage());
            if (options != null && options.isVerbose())
                ex.printStackTrace();
            console.println("run the command with --help for usage help");
            return 3;
        } finally {
            state.end();
        }
    }

}<commit_msg>removing silly comment<commit_after>package net.intelie.lognit.cli;

import net.intelie.lognit.cli.runners.AuthenticatorRunner;
import net.intelie.lognit.cli.runners.UsageRunner;
import net.intelie.lognit.cli.state.StateKeeper;

public class EntryPoint {

    private final UserConsole console;
    private final StateKeeper state;
    private final AuthenticatorRunner request;

    public EntryPoint(UserConsole console, StateKeeper state, AuthenticatorRunner runner) {
        this.console = console;
        this.state = state;
        this.request = runner;
    }

    public int run(String... args) {
        state.begin();

        UserOptions options = null;
        try {
            options = new UserOptions(args);
            return request.run(options);
        } catch (Exception ex) {
            console.fixCursor();
            console.println("%s: %s", ex.getClass().getSimpleName(), ex.getMessage());
            if (options != null && options.isVerbose())
                ex.printStackTrace();
            console.println("run the command with --help for usage help");
            return 3;
        } finally {
            state.end();
        }
    }

}
{'fraction_non_alphanumeric': 0.1049097775912715, 'fraction_numerical': 0.000839278220730172, 'mean_word_length': 2.311111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5708143', 'n_tokens_mistral': 647, 'n_tokens_neox': 638, 'n_words': 157}