<commit_before>package net.trajano.sonar.plugins.reverseproxyauth;

import org.sonar.api.Plugin;
import org.sonar.api.Properties;
import org.sonar.api.Property;
import org.sonar.api.PropertyType;

/**
 * Plugin entry point.
 */
@Properties({
    @Property(key = ReverseProxyAuthSettings.HEADER_NAME,
        name = "Header Name",
        defaultValue = "X-Forwarded-User"),
    @Property(key = ReverseProxyAuthSettings.LOCALHOST,
        name = "Hostname to allow Sonar executions",
        defaultValue = "localhost"),
    @Property(key = ReverseProxyAuthSettings.ALLOW_NEW_USERS,
        name = "Allow new users to be be created",
        defaultValue = "true",
        type = PropertyType.BOOLEAN)
})
public class ReverseProxyAuthPlugin implements
    Plugin {

    /**
     * Plugin key.
     */
    public static final String KEY = "reverseproxyauth";

    @Override
    public void define(final Context context) {

        context.addExtension(ReverseProxyAuthSettings.class);
        context.addExtension(ReverseProxyAuthRealm.class);
        context.addExtension(ReverseProxyAuthUsersIdentityProvider.class);
        context.addExtension(ValidateRedirectionFilter.class);
    }

}<commit_msg>Added the extensions using the varargs method<commit_after>package net.trajano.sonar.plugins.reverseproxyauth;

import org.sonar.api.Plugin;
import org.sonar.api.Properties;
import org.sonar.api.Property;
import org.sonar.api.PropertyType;

/**
 * Plugin entry point.
 */
@Properties({
    @Property(key = ReverseProxyAuthSettings.HEADER_NAME,
        name = "Header Name",
        defaultValue = "X-Forwarded-User"),
    @Property(key = ReverseProxyAuthSettings.LOCALHOST,
        name = "Hostname to allow Sonar executions",
        defaultValue = "localhost"),
    @Property(key = ReverseProxyAuthSettings.ALLOW_NEW_USERS,
        name = "Allow new users to be be created",
        defaultValue = "true",
        type = PropertyType.BOOLEAN)
})
public class ReverseProxyAuthPlugin implements
    Plugin {

    /**
     * Plugin key.
     */
    public static final String KEY = "reverseproxyauth";

    /**
     * {@inheritDoc}
     */
    @Override
    public void define(final Context context) {

        context.addExtensions(ReverseProxyAuthSettings.class,
            ReverseProxyAuthRealm.class,
            ReverseProxyAuthUsersIdentityProvider.class,
            ValidateRedirectionFilter.class);
    }

}
{'fraction_non_alphanumeric': 0.09933774834437085, 'fraction_numerical': 0.0, 'mean_word_length': 3.2403508771929825, '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': '21250', 'n_tokens_mistral': 696, 'n_tokens_neox': 674, 'n_words': 143}