<commit_before>package com.jmex.bui;

/**
 * The possible user responses for the standard dialog.
 *
 * @author <NAME>
 */
public enum UserResponse {
    NONE("None"),
    YES("Yes"),
    NO("No"),
    OK("OK"),
    CANCEL("Cancel");

    private String label;

    private UserResponse(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return label;
    }
}<commit_msg>changed behavior of UserResponse and added toDisplay() also added simple unitTest<commit_after>package com.jmex.bui;

/**
 * The possible user responses for the standard dialog.
 *
 * @author <NAME>
 */
public enum UserResponse {
    NONE,
    YES,
    NO,
    OK,
    CANCEL;

    public String toDisplay() {
        final String str = toString();        
        return str.substring(0, 1).toUpperCase() + str.substring(1).toLowerCase();
    }
}
{'fraction_non_alphanumeric': 0.1251435132032147, 'fraction_numerical': 0.003444316877152698, 'mean_word_length': 2.6638655462184873, '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': '5203181', 'n_tokens_mistral': 270, 'n_tokens_neox': 261, 'n_words': 75}