<commit_before>package org.easyxms;


class ChoiceNumber {


    private String cmd = null;
    private GetInput getInput = null;
    private ServerInfoDAO serverInfoDAO = null;
    private ActionForChoiceNumber action = null;


    ChoiceNumber() {
        getInput = new GetInput();
        serverInfoDAO = new ServerInfoDAO();
        action = new ActionForChoiceNumber();
    }


    /**
     * 循环得到输入的命令
     */
    public void loopGetValue(){
        HelpPrompt.printWelcomeInfo();
        while (setInputValue()){
            if ("?".equals(cmd) || "？".equals(cmd)){
                HelpPrompt.printPrompt();
            } else if ("1".equals(cmd)){
                action.connectServerForSSHSFTP(serverInfoDAO,"ssh");
            } else if ("2".equals(cmd)){
                action.connectServerForSSHSFTP(serverInfoDAO,"sftp");
            } else if ("3".equals(cmd)){
                action.addServerFromCommandLine(serverInfoDAO);
            } else if ("4".equals(cmd)){
                action.addServerFromExcelFile(serverInfoDAO);
            } else if ("5".equals(cmd)){
                action.listIPGroupFromDatabase(serverInfoDAO);
            } else if ("6".equals(cmd)){
                action.listGroupFromDatabase(serverInfoDAO);
            } else if ("7".equals(cmd)){
                action.deleteServerInfoFromDatabase(serverInfoDAO);
            }
        }
    }


    /**
     * 显示提示符等到用户输入
     * @return true
     */
    public boolean setInputValue(){
        HelpPrompt.printProgramName();
        cmd = getInput.getInputFromStandardInput();
        if ("q".equals(cmd) || "Q".equals(cmd)){
            Quit.quit();
        }
        return true;
    }
}
<commit_msg>修改一些文件<commit_after>package org.easyxms;


class ChoiceNumber {


    private String cmd = null;
    private GetInput getInput = null;
    private ServerInfoDAO serverInfoDAO = null;
    private ActionForChoiceNumber action = null;


    ChoiceNumber() {
        getInput = new GetInput();
        serverInfoDAO = new ServerInfoDAO();
        action = new ActionForChoiceNumber();
    }


    /**
     * 循环得到输入的命令
     */
    public void loopGetValue(){
        HelpPrompt.printWelcomeInfo();
        while (setInputValue()){
            if ("?".equals(cmd) || "？".equals(cmd)){
                HelpPrompt.printPrompt();
            } else if ("1".equals(cmd)){
                action.connectServerForSSHSFTP(serverInfoDAO,"ssh");
            } else if ("2".equals(cmd)){
                action.connectServerForSSHSFTP(serverInfoDAO,"sftp");
            } else if ("3".equals(cmd)){
                action.addServerFromCommandLine(serverInfoDAO);
            } else if ("4".equals(cmd)){
                action.addServerFromExcelFile(serverInfoDAO);
            } else if ("5".equals(cmd)){
                action.listIPGroupFromDatabase(serverInfoDAO);
            } else if ("6".equals(cmd)){
                action.listGroupFromDatabase(serverInfoDAO);
            } else if ("7".equals(cmd)){
                action.deleteServerInfoFromDatabase(serverInfoDAO);
            }
        }
    }


    /**
     * 显示提示符等到用户输入
     * @return true
     */
    public boolean setInputValue(){
        HelpPrompt.printProgramName();
        cmd = getInput.getInputFromStandardInput().trim();
        if ("q".equals(cmd) || "Q".equals(cmd)){
            Quit.quit();
        }
        return true;
    }
}

{'fraction_non_alphanumeric': 0.12566215420835786, 'fraction_numerical': 0.004120070629782225, 'mean_word_length': 2.0079646017699115, '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': '908610', 'n_tokens_mistral': 1018, 'n_tokens_neox': 987, 'n_words': 168}