<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 org.apache.commons.mail;

/**
 * Constants used by Email classes.
 *
 * A description of the mail session parameter you find at
 * <a href="http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html">
 * http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
 * </a>.
 *
 * @since 1.3
 */
public interface EmailConstants
{
    // Constants used by Email classes

    String SENDER_EMAIL = "sender.email";
    String SENDER_NAME = "sender.name";
    String RECEIVER_EMAIL = "receiver.email";
    String RECEIVER_NAME = "receiver.name";
    String EMAIL_SUBJECT = "email.subject";
    String EMAIL_BODY = "email.body";
    String CONTENT_TYPE = "content.type";
    String ATTACHMENTS = "attachments";
    String FILE_SERVER = "file.server";

    // Charset constants
    String KOI8_R = "koi8-r";
    String ISO_8859_1 = "iso-8859-1";
    String US_ASCII = "us-ascii";
    String UTF_8 = "utf-8";

    String MAIL_DEBUG = "mail.debug";
    String MAIL_HOST = "mail.smtp.host";
    String MAIL_PORT = "mail.smtp.port";
    String MAIL_SMTP_FROM = "mail.smtp.from";
    String MAIL_SMTP_AUTH = "mail.smtp.auth";
    String MAIL_SMTP_USER = "mail.smtp.user";
    String MAIL_SMTP_PASSWORD = "<PASSWORD>";
    String MAIL_TRANSPORT_PROTOCOL = "mail.transport.protocol";
    String SMTP = "smtp";
    String TEXT_HTML = "text/html";
    String TEXT_PLAIN = "text/plain";


    /////////////////////////////////////////////////////////////////////////
    // since 1.1
    /////////////////////////////////////////////////////////////////////////

    /** @deprecated since 1.3 */
    @Deprecated
    String MAIL_TRANSPORT_TLS = "mail.smtp.starttls.enable";

    String MAIL_TRANSPORT_STARTTLS_ENABLE = "mail.smtp.starttls.enable";
    String MAIL_SMTP_SOCKET_FACTORY_FALLBACK = "mail.smtp.socketFactory.fallback";
    String MAIL_SMTP_SOCKET_FACTORY_CLASS = "mail.smtp.socketFactory.class";
    String MAIL_SMTP_SOCKET_FACTORY_PORT = "mail.smtp.socketFactory.port";

    /////////////////////////////////////////////////////////////////////////
    // since 1.2
    /////////////////////////////////////////////////////////////////////////

    /**
     * Socket connection timeout value in milliseconds. Default is infinite timeout.
     * @since 1.2
     */
     String MAIL_SMTP_CONNECTIONTIMEOUT = "mail.smtp.connectiontimeout";

    /**
     * Socket I/O timeout value in milliseconds. Default is infinite timeout.
     * @since 1.2
     */
     String MAIL_SMTP_TIMEOUT = "mail.smtp.timeout";

    /////////////////////////////////////////////////////////////////////////
    // since 1.3
    /////////////////////////////////////////////////////////////////////////

    int SOCKET_TIMEOUT_MS = 60000;

    String MAIL_TRANSPORT_STARTTLS_REQUIRED = "mail.smtp.starttls.required";
    String MAIL_SMTP_SSL_ENABLE = "mail.smtp.ssl.enable";
    String MAIL_SMTP_SSL_CHECKSERVERIDENTITY = "mail.smtp.ssl.checkserveridentity";
    String MAIL_SMTP_SSL_SOCKET_FACTORY_CLASS = "mail.smtp.ssl.socketFactory.class";
    String MAIL_SMTP_SSL_SOCKET_FACTORY_PORT = "mail.smtp.ssl.socketFactory.port";
}<commit_msg>Fixed checkstyle warnings in EmailConstants.<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 org.apache.commons.mail;

/**
 * Constants used by Email classes.
 *
 * A description of the mail session parameter you find at
 * <a href="http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html">
 * http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
 * </a>.
 *
 * @since 1.3
 */
public interface EmailConstants
{
    // Constants used by Email classes

    /** @deprecated since 1.3 */
    String SENDER_EMAIL = "sender.email";
    /** @deprecated since 1.3 */
    String SENDER_NAME = "sender.name";
    /** @deprecated since 1.3 */
    String RECEIVER_EMAIL = "receiver.email";
    /** @deprecated since 1.3 */
    String RECEIVER_NAME = "receiver.name";
    /** @deprecated since 1.3 */
    String EMAIL_SUBJECT = "email.subject";
    /** @deprecated since 1.3 */
    String EMAIL_BODY = "email.body";
    /** @deprecated since 1.3 */
    String CONTENT_TYPE = "content.type";
    /** @deprecated since 1.3 */
    String ATTACHMENTS = "attachments";
    /** @deprecated since 1.3 */
    String FILE_SERVER = "file.server";

    // Charset constants

    /** charset constant for koi8-r */
    String KOI8_R = "koi8-r";
    /** charset constant for iso-8859-1 */
    String ISO_8859_1 = "iso-8859-1";
    /** charset constant for us-ascii */
    String US_ASCII = "us-ascii";
    /** charset constant for utf-8 */
    String UTF_8 = "utf-8";

    /** The debug mode to be used. */
    String MAIL_DEBUG = "mail.debug";

    /** The host name of the mail server. */
    String MAIL_HOST = "mail.smtp.host";

    /** The port number of the mail server. */
    String MAIL_PORT = "mail.smtp.port";

    /** The email address to use for SMTP MAIL command. */
    String MAIL_SMTP_FROM = "mail.smtp.from";

    /** If set to true, tries to authenticate the user using the AUTH command. */
    String MAIL_SMTP_AUTH = "mail.smtp.auth";

    /** The SMTP user name. */
    String MAIL_SMTP_USER = "mail.smtp.user";

    /** The SMTP password. */
    String MAIL_SMTP_PASSWORD = "<PASSWORD>";

    /** Specifies the default transport protocol */
    String MAIL_TRANSPORT_PROTOCOL = "mail.transport.protocol";

    /** the value to use SMTP as transport protocol */
    String SMTP = "smtp";

    /** defines the text/html content type */
    String TEXT_HTML = "text/html";

    /** defines the text/plain content type */
    String TEXT_PLAIN = "text/plain";

    /////////////////////////////////////////////////////////////////////////
    // since 1.1
    /////////////////////////////////////////////////////////////////////////

    /** @deprecated since 1.3 */
    @Deprecated
    String MAIL_TRANSPORT_TLS = "mail.smtp.starttls.enable";

    /**
     * Indicates if the STARTTLS command shall be used to initiate a TLS-secured connection.
     * @since 1.1
     */
    String MAIL_TRANSPORT_STARTTLS_ENABLE = "mail.smtp.starttls.enable";

    /**
     * Whether to use {@link java.net.Socket} as a fallback if the initial connection fails or not.
     * @since 1.1
     */
    String MAIL_SMTP_SOCKET_FACTORY_FALLBACK = "mail.smtp.socketFactory.fallback";

    /**
     * Specifies the {@link javax.net.SocketFactory} class to create smtp sockets.
     * @since 1.1
     */
    String MAIL_SMTP_SOCKET_FACTORY_CLASS = "mail.smtp.socketFactory.class";

    /**
     * Specifies the port to connect to when using a socket factory.
     * @since 1.1
     */
    String MAIL_SMTP_SOCKET_FACTORY_PORT = "mail.smtp.socketFactory.port";

    /////////////////////////////////////////////////////////////////////////
    // since 1.2
    /////////////////////////////////////////////////////////////////////////

    /**
     * Socket connection timeout value in milliseconds. Default is infinite timeout.
     * @since 1.2
     */
    String MAIL_SMTP_CONNECTIONTIMEOUT = "mail.smtp.connectiontimeout";

    /**
     * Socket I/O timeout value in milliseconds. Default is infinite timeout.
     * @since 1.2
     */
    String MAIL_SMTP_TIMEOUT = "mail.smtp.timeout";

    /////////////////////////////////////////////////////////////////////////
    // since 1.3
    /////////////////////////////////////////////////////////////////////////

    /**
     * Default socket timeout.
     * @since 1.3
     */
    int SOCKET_TIMEOUT_MS = 60000;

    /**
     * If true, requires the use of the STARTTLS command. If the server doesn't support
     * the STARTTLS command, the connection will fail.
     * @since 1.3
     */
    String MAIL_TRANSPORT_STARTTLS_REQUIRED = "mail.smtp.starttls.required";

    /**
     * If set to true, use SSL to connect and use the SSL port by default.
     * @since 1.3
     */
    String MAIL_SMTP_SSL_ENABLE = "mail.smtp.ssl.enable";

    /**
     * If set to true, check the server identity as specified in RFC 2595.
     * @since 1.3
     */
    String MAIL_SMTP_SSL_CHECKSERVERIDENTITY = "mail.smtp.ssl.checkserveridentity";

    /**
     * Specifies the {@link javax.net.ssl.SSLSocketFactory} class to use to create SMTP SSL sockets.
     * @since 1.3
     */
    String MAIL_SMTP_SSL_SOCKET_FACTORY_CLASS = "mail.smtp.ssl.socketFactory.class";

    /**
     * Specifies the port to connect to when using the SMTP SSL socket factory.
     * @since 1.3
     */
    String MAIL_SMTP_SSL_SOCKET_FACTORY_PORT = "mail.smtp.ssl.socketFactory.port";
}
{'fraction_non_alphanumeric': 0.18493822318101588, 'fraction_numerical': 0.012061188468327122, 'mean_word_length': 2.12565124118909, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '528737', 'n_tokens_mistral': 3100, 'n_tokens_neox': 2952, 'n_words': 846}