<commit_before>/**
 * Waffle (https://github.com/Waffle/waffle)
 *
 * Copyright (c) 2010-2016 Application Security, Inc.
 *
 * All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse
 * Public License v1.0 which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-v10.html.
 *
 * Contributors: Application Security, Inc.
 */
package waffle.apache;

import java.security.Principal;

import org.apache.catalina.realm.RealmBase;

/**
 * A rudimentary Windows realm.
 * 
 * @author dblock[at]dblock[dot]org
 */
public class WindowsRealm extends RealmBase {

    /** The Constant NAME. */
    protected static final String NAME = "waffle.apache.WindowsRealm/1.0";

    /**
     * @return a short name for this Realm implementation, for use in
     * log messages.
     *
     * Waffle team -> 'waffle.apache.WindowsRealm/1.0' will no longer
     * be logged. We don't internally use this so we must go with
     * standard java way that tomcat has accepted. This means, going
     * to tomcat 9.0.0.M15+ will result simply in 'WaffleRealm' or
     * better stated the actual simple class name. Simple class name
     * strips off the package name with is what we were applying 
     * along with version 1.0 which is inaccurate anyways considering
     * we are on version 1.8.1+ at this point.
     *
     * @deprecated This will be removed in Tomcat 9 onwards. Use
     *             {@link Class#getSimpleName()} instead.
     */
    @Deprecated
    protected String getName() {
        return WindowsRealm.NAME;
    }

    /*
     * (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getPassword(java.lang.String)
     */
    @Override
    protected String getPassword(final String value) {
        return null;
    }

    /*
     * (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getPrincipal(java.lang.String)
     */
    @Override
    protected Principal getPrincipal(final String value) {
        return null;
    }
}<commit_msg>[format] Fix javadoc and format<commit_after>/**
 * Waffle (https://github.com/Waffle/waffle)
 *
 * Copyright (c) 2010-2016 Application Security, Inc.
 *
 * All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse
 * Public License v1.0 which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-v10.html.
 *
 * Contributors: Application Security, Inc.
 */
package waffle.apache;

import java.security.Principal;

import org.apache.catalina.realm.RealmBase;

/**
 * A rudimentary Windows realm.
 * 
 * @author dblock[at]dblock[dot]org
 */
public class WindowsRealm extends RealmBase {

    /** The Constant NAME. */
    protected static final String NAME = "waffle.apache.WindowsRealm/1.0";

    /**
     * @return a short name for this Realm implementation, for use in log messages.
     *
     *         'waffle.apache.WindowsRealm/1.0' will no longer be logged. We don't internally use this so we must go
     *         with standard java way that tomcat has accepted. This means, going to tomcat 9.0.0.M15+ will result
     *         simply in 'WaffleRealm' or better stated the actual simple class name. Simple class name strips off the
     *         package name with is what we were applying along with version 1.0 which is inaccurate anyways considering
     *         we are on version 1.8.1+ at this point.
     *
     * @deprecated This will be removed in Tomcat 9 onwards. Use {@link Class#getSimpleName()} instead.
     */
    @Deprecated
    protected String getName() {
        return WindowsRealm.NAME;
    }

    /*
     * (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getPassword(java.lang.String)
     */
    @Override
    protected String getPassword(final String value) {
        return null;
    }

    /*
     * (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getPrincipal(java.lang.String)
     */
    @Override
    protected Principal getPrincipal(final String value) {
        return null;
    }
}
{'fraction_non_alphanumeric': 0.09538911929738961, 'fraction_numerical': 0.013173944864601122, 'mean_word_length': 2.7683823529411766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '2144890', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1187, 'n_words': 398}