<commit_before>package de.blackcraze.grb.commands.concrete;

import de.blackcraze.grb.commands.BaseCommand;
import de.blackcraze.grb.core.Speaker;
import de.blackcraze.grb.i18n.Resource;
import de.blackcraze.grb.model.PrintableTable;
import de.blackcraze.grb.model.entity.StockType;
import de.blackcraze.grb.model.entity.StockTypeGroup;
import de.blackcraze.grb.util.PrintUtils;
import de.blackcraze.grb.util.StockTypeComparator;
import de.blackcraze.grb.util.wagu.Block;
import net.dv8tion.jda.core.entities.Message;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
import java.util.Scanner;

import static de.blackcraze.grb.util.CommandUtils.getResponseLocale;
import static de.blackcraze.grb.util.CommandUtils.parseGroupName;
import static de.blackcraze.grb.util.InjectorUtils.getMateDao;
import static de.blackcraze.grb.util.InjectorUtils.getStockTypeDao;
import static de.blackcraze.grb.util.InjectorUtils.getStockTypeGroupDao;

public class Group implements BaseCommand {

    public void run(Scanner scanner, Message message) {
        // Create the user if it does not exist.
        // Block this command within DMs.
        getMateDao().getOrCreateMate(message, getResponseLocale(message));
        if (scanner.hasNext()) {
            String subCommand = scanner.next();
            switch (subCommand) {
                case "create":
                    BaseCommand.checkPublic(message);
                    groupCreate.run(scanner, message);
                    break;
                case "delete":
                    BaseCommand.checkPublic(message);
                    groupDelete.run(scanner, message);
                    break;
                case "add":
                    BaseCommand.checkPublic(message);
                    groupAdd.run(scanner, message);
                    break;
                case "remove":
                    BaseCommand.checkPublic(message);
                    groupRemove.run(scanner, message);
                    break;
                case "rename":
                    groupRename.run(scanner, message);
                    BaseCommand.checkPublic(message);
                    break;
                case "list":
                    groupList.run(scanner, message);
                    break;
                default:
                    Speaker.err(message, Resource.getError("GROUP_SUBCOMMAND_UNKNOWN",
                            getResponseLocale(message)));
                    break;
            }
        } else {
            groupList.run(scanner, message);
        }<commit_msg>Fix error in order of lines of code<commit_after>package de.blackcraze.grb.commands.concrete;

import de.blackcraze.grb.commands.BaseCommand;
import de.blackcraze.grb.core.Speaker;
import de.blackcraze.grb.i18n.Resource;
import de.blackcraze.grb.model.PrintableTable;
import de.blackcraze.grb.model.entity.StockType;
import de.blackcraze.grb.model.entity.StockTypeGroup;
import de.blackcraze.grb.util.PrintUtils;
import de.blackcraze.grb.util.StockTypeComparator;
import de.blackcraze.grb.util.wagu.Block;
import net.dv8tion.jda.core.entities.Message;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
import java.util.Scanner;

import static de.blackcraze.grb.util.CommandUtils.getResponseLocale;
import static de.blackcraze.grb.util.CommandUtils.parseGroupName;
import static de.blackcraze.grb.util.InjectorUtils.getMateDao;
import static de.blackcraze.grb.util.InjectorUtils.getStockTypeDao;
import static de.blackcraze.grb.util.InjectorUtils.getStockTypeGroupDao;

public class Group implements BaseCommand {

    public void run(Scanner scanner, Message message) {
        // Create the user if it does not exist.
        // Block this command within DMs.
        getMateDao().getOrCreateMate(message, getResponseLocale(message));
        if (scanner.hasNext()) {
            String subCommand = scanner.next();
            switch (subCommand) {
                case "create":
                    BaseCommand.checkPublic(message);
                    groupCreate.run(scanner, message);
                    break;
                case "delete":
                    BaseCommand.checkPublic(message);
                    groupDelete.run(scanner, message);
                    break;
                case "add":
                    BaseCommand.checkPublic(message);
                    groupAdd.run(scanner, message);
                    break;
                case "remove":
                    BaseCommand.checkPublic(message);
                    groupRemove.run(scanner, message);
                    break;
                case "rename":
                    BaseCommand.checkPublic(message);
                    groupRename.run(scanner, message);
                    break;
                case "list":
                    groupList.run(scanner, message);
                    break;
                default:
                    Speaker.err(message, Resource.getError("GROUP_SUBCOMMAND_UNKNOWN",
                            getResponseLocale(message)));
                    break;
            }
        } else {
            groupList.run(scanner, message);
        }
{'fraction_non_alphanumeric': 0.09251897361763643, 'fraction_numerical': 0.0014456089627755693, 'mean_word_length': 2.109550561797753, 'pattern_counts': {'":': 12, '<': 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': '6742026', 'n_tokens_mistral': 1580, 'n_tokens_neox': 1506, 'n_words': 273}