<commit_before>package com.github.kvnxiao;

import com.github.kvnxiao.kommandant.Kommandant;
import com.github.kvnxiao.kommandant.command.CommandContext;
import com.github.kvnxiao.kommandant.command.CommandDefaults;
import com.github.kvnxiao.kommandant.command.CommandResult;
import com.github.kvnxiao.kommandant.command.ICommand;
import org.jetbrains.annotations.NotNull;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;

/**
 * Created on:   2017-03-04
 * Author:       <NAME> (github.com/alphahelix00)
 */
@State(Scope.Thread)
public class ProcessingBenchmark {

    private Kommandant kommandant;

    @Setup
    public void setup() {
        kommandant = new Kommandant();
        kommandant.addCommand(new ICommand<String>("/", "testCommand", CommandDefaults.NO_DESCRIPTION, CommandDefaults.NO_USAGE, CommandDefaults.EXEC_WITH_SUBCOMMANDS, "asdf", "test") {
            @Override
            public String execute(@NotNull CommandContext context, @NotNull Object... opt) {
                return "a";
            }
        });
    }

    @Benchmark
    public void testMethod() {
        CommandResult<String> result = kommandant.process("/test");
        String str = result.getResult();
    }

}<commit_msg>updated processing benchmark for new constructor<commit_after>package com.github.kvnxiao;

import com.github.kvnxiao.kommandant.Kommandant;
import com.github.kvnxiao.kommandant.command.CommandContext;
import com.github.kvnxiao.kommandant.command.CommandDefaults;
import com.github.kvnxiao.kommandant.command.CommandResult;
import com.github.kvnxiao.kommandant.command.ICommand;
import org.jetbrains.annotations.NotNull;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;

/**
 * Created on:   2017-03-04
 * Author:       <NAME> (github.com/alphahelix00)
 */
@State(Scope.Thread)
public class ProcessingBenchmark {

    private Kommandant kommandant;

    @Setup
    public void setup() {
        kommandant = new Kommandant();
        kommandant.addCommand(new ICommand<String>("/", "testCommand", CommandDefaults.NO_DESCRIPTION, CommandDefaults.NO_USAGE, CommandDefaults.EXEC_WITH_SUBCOMMANDS, CommandDefaults.IS_DISABLED, "asdf", "test") {
            @Override
            public String execute(@NotNull CommandContext context, @NotNull Object... opt) {
                return "a";
            }
        });
    }

    @Benchmark
    public void testMethod() {
        CommandResult<String> result = kommandant.process("/test");
        String str = result.getResult();
    }

}
{'fraction_non_alphanumeric': 0.11313868613138686, 'fraction_numerical': 0.0072992700729927005, 'mean_word_length': 3.709621993127148, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7251446', 'n_tokens_mistral': 872, 'n_tokens_neox': 849, 'n_words': 148}