<commit_before>/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package wicket.extensions.validation.validator;

import wicket.validation.validator.EmailAddressPatternValidator;
import wicket.validation.validator.PatternValidator;


/**
 * Validator for validating email addresses according to the RFC 822. This
 * validator uses the regular expression taken from the Perl implementation of
 * RFC 822.
 * 
 * <p>
 * <b>PLEATE NOTE!</b> Only use this validator if you really need it. The regex
 * used is very big and generates a allocates 1-2Kb of memory per session.
 * 
 * <p>
 * Most users will be satisfied with the {@link EmailAddressPatternValidator}
 * 
 * @see <a href="http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html">Perl
 *      Regex implementation of RFC 822</a>
 * @see <a href="http://www.ietf.org/rfc/rfc0822.txt?number=822">RFC 822</a>
 * @author <NAME>
 */
public class RfcCompliantEmailAddressPatternValidator extends PatternValidator
{
	private static final long serialVersionUID = 1L;<commit_msg>api clarifications<commit_after>/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package wicket.extensions.validation.validator;

import wicket.validation.validator.EmailAddressValidator;
import wicket.validation.validator.PatternValidator;


/**
 * Validator for validating email addresses according to the RFC 822. This
 * validator uses the regular expression taken from the Perl implementation of
 * RFC 822.
 * 
 * <p>
 * <b>PLEATE NOTE!</b> Only use this validator if you really need it. The regex
 * used is very big and generates a allocates 1-2Kb of memory per session.
 * 
 * <p>
 * Most users will be satisfied with the {@link EmailAddressValidator}
 * 
 * @see <a href="http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html">Perl
 *      Regex implementation of RFC 822</a>
 * @see <a href="http://www.ietf.org/rfc/rfc0822.txt?number=822">RFC 822</a>
 * @author <NAME>
 */
public class RfcCompliantEmailAddressPatternValidator extends PatternValidator
{
	private static final long serialVersionUID = 1L;
{'fraction_non_alphanumeric': 0.08171315863623556, 'fraction_numerical': 0.016342631727247113, 'mean_word_length': 4.205278592375366, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '7666590', 'n_tokens_mistral': 991, 'n_tokens_neox': 941, 'n_words': 410}