<commit_before>package mireka.transmission.immediate;

import mireka.transmission.EnhancedStatus;
import mireka.transmission.MailSystemStatus;

import org.subethamail.smtp.client.SMTPException;

public class RemoteMtaErrorResponseException extends SendException {
    private static final long serialVersionUID = -2886452940130526142L;
    private final MailSystemStatus remoteMtaStatus;

    public RemoteMtaErrorResponseException(SMTPException e, RemoteMta remoteMta) {
        super(e, enhancedStatusFromRemoteResponse(smtpStatusFromResponse(e)),
                remoteMta);
        this.remoteMtaStatus = smtpStatusFromResponse(e);
    }

    private static MailSystemStatus smtpStatusFromResponse(SMTPException e) {
        return new ResponseParser()
                .createResponseLookingForEnhancedStatusCode(e.getResponse());
    }

    private static EnhancedStatus enhancedStatusFromRemoteResponse(
            MailSystemStatus smtpStatus) {
        if (smtpStatus instanceof EnhancedStatus) {
            return (EnhancedStatus) smtpStatus;
        } else if (smtpStatus instanceof Rfc821Status) {
            return new EnhancedStatus((Rfc821Status) smtpStatus);
        } else {
            throw new RuntimeException("Unexpected: " + smtpStatus.getClass());
        }
    }

    /**
     * SMTP response sent by the remote MTA
     */
    public MailSystemStatus remoteMtaStatus() {
        return remoteMtaStatus;
    }

    @Override
    public String toString() {
        return super.toString() + " " + remoteMtaStatus;
    }
}
<commit_msg>logged information was redundant<commit_after>package mireka.transmission.immediate;

import mireka.transmission.EnhancedStatus;
import mireka.transmission.MailSystemStatus;

import org.subethamail.smtp.client.SMTPException;

public class RemoteMtaErrorResponseException extends SendException {
    private static final long serialVersionUID = -2886452940130526142L;
    private final MailSystemStatus remoteMtaStatus;

    public RemoteMtaErrorResponseException(SMTPException e, RemoteMta remoteMta) {
        super(e, enhancedStatusFromRemoteResponse(smtpStatusFromResponse(e)),
                remoteMta);
        this.remoteMtaStatus = smtpStatusFromResponse(e);
    }

    private static MailSystemStatus smtpStatusFromResponse(SMTPException e) {
        return new ResponseParser()
                .createResponseLookingForEnhancedStatusCode(e.getResponse());
    }

    private static EnhancedStatus enhancedStatusFromRemoteResponse(
            MailSystemStatus smtpStatus) {
        if (smtpStatus instanceof EnhancedStatus) {
            return (EnhancedStatus) smtpStatus;
        } else if (smtpStatus instanceof Rfc821Status) {
            return new EnhancedStatus((Rfc821Status) smtpStatus);
        } else {
            throw new RuntimeException("Unexpected: " + smtpStatus.getClass());
        }
    }

    /**
     * SMTP response sent by the remote MTA
     */
    public MailSystemStatus remoteMtaStatus() {
        return remoteMtaStatus;
    }
}

{'fraction_non_alphanumeric': 0.0690224570673712, 'fraction_numerical': 0.016512549537648614, 'mean_word_length': 3.3835021707670045, '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': '4556691', 'n_tokens_mistral': 860, 'n_tokens_neox': 805, 'n_words': 172}