<commit_before>package hudson.model;

/**
 * {@link Descriptor} for {@link UserProperty}.
 * 
 * @author <NAME>
 */
public abstract class UserPropertyDescriptor extends Descriptor<UserProperty> {
    protected UserPropertyDescriptor(Class<? extends UserProperty> clazz) {
        super(clazz);
    }

    /**
     * Creates a default instance of {@link UserProperty} to be associated
     * with {@link User} that doesn't have any back up data store.
     *
     * @return null
     *      if the implementation choose not to add any property object for such user.
     */
    public abstract UserProperty newInstance(User user);
}<commit_msg>Fix for ISSUE#1284 (password field not displayed on user page when using Hudson's own user database).<commit_after>package hudson.model;

/**
 * {@link Descriptor} for {@link UserProperty}.
 * 
 * @author <NAME>
 */
public abstract class UserPropertyDescriptor extends Descriptor<UserProperty> {
    protected UserPropertyDescriptor(Class<? extends UserProperty> clazz) {
        super(clazz);
    }

    /**
     * Creates a default instance of {@link UserProperty} to be associated
     * with {@link User} that doesn't have any back up data store.
     *
     * @return null
     *      if the implementation choose not to add any property object for such user.
     */
    public abstract UserProperty newInstance(User user);

    /**
     * Whether or not the described property is enabled in the current context.
     * Defaults to true.  Over-ride in sub-classes as required.
     */
    public boolean isEnabled() {
        return true;
    }
}
{'fraction_non_alphanumeric': 0.0890282131661442, 'fraction_numerical': 0.0025078369905956114, 'mean_word_length': 3.050761421319797, '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': '4553062', 'n_tokens_mistral': 421, 'n_tokens_neox': 406, 'n_words': 164}