<commit_before>package org.mskcc.portal.util;

public class SkinUtil {

    public static String getTitle() {
        Config config = Config.getInstance();
        return config.getProperty("skin.title");
    }

    public static String getBlurb() {
        Config config = Config.getInstance();
        return config.getProperty("skin.blurb");
    }

    /**
     * Determines if users must authenticate or not.
     * @return true or false.
     */
    public static boolean usersMustAuthenticate() {
        Config config = Config.getInstance();
        String authentication =  config.getProperty("authenticate");
        if (authentication != null && authentication.startsWith("T")) {
            return true;
        } else {
            return false;
        }
    }

    /**
     * Gets the Global Authentication User Name.
     * @return Authentication User Name.
     */
    public static String getAuthenticationUserName() {
        Config config = Config.getInstance();
        String globalUserName = config.getProperty("authenticate.user_name");
        if (globalUserName == null) {
            globalUserName = "guest";
        }
        return globalUserName;
    }

    /**
     * Gets the Global Authentication Password.
     * @return Authentication Password.
     */
    public static String getAuthenticationPassword() {
        Config config = Config.getInstance();
        String globalPassword = config.getProperty("authenticate.password");
        if (globalPassword == null) {
            globalPassword = "<PASSWORD>";
        }
        return globalPassword;
    }

}
<commit_msg>update to userMustAuthenticate()<commit_after>package org.mskcc.portal.util;

public class SkinUtil {

    public static String getTitle() {
        Config config = Config.getInstance();
        return config.getProperty("skin.title");
    }

    public static String getBlurb() {
        Config config = Config.getInstance();
        return config.getProperty("skin.blurb");
    }

    /**
     * Determines if users must authenticate or not.
     * @return true or false.
     */
    public static boolean usersMustAuthenticate() {
        Config config = Config.getInstance();
		return new Boolean(config.getProperty("authenticate"));
    }

    /**
     * Gets the Global Authentication User Name.
     * @return Authentication User Name.
     */
    public static String getAuthenticationUserName() {
        Config config = Config.getInstance();
        String globalUserName = config.getProperty("authenticate.user_name");
        if (globalUserName == null) {
            globalUserName = "guest";
        }
        return globalUserName;
    }

    /**
     * Gets the Global Authentication Password.
     * @return Authentication Password.
     */
    public static String getAuthenticationPassword() {
        Config config = Config.getInstance();
        String globalPassword = config.getProperty("authenticate.password");
        if (globalPassword == null) {
            globalPassword = "<PASSWORD>";
        }
        return globalPassword;
    }
}

{'fraction_non_alphanumeric': 0.1008130081300813, 'fraction_numerical': 0.0, 'mean_word_length': 2.41019955654102, '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': '6880141', 'n_tokens_mistral': 769, 'n_tokens_neox': 754, 'n_words': 203}