<commit_before>package edu.emory.cci.aiw.cvrg.eureka.services.email;

import javax.mail.MessagingException;

/**
 * An interface that defines how emails can be sent out from the application.
 * 
 * @author hrathod
 * 
 */
public interface EmailSender {

	/**
	 * Send a message to the user. This is a test method so far, needs to be
	 * separated out into various methods to send different types of messages.
	 * 
	 * TODO: Remove this method and replace with more appropriate methods.
	 * 
	 * @param user
	 * @throws MessagingException
	 */
	public abstract void sendMessage(final String user)
			throws MessagingException;

}<commit_msg>The sendMessage() method now throws EmailException, rather than MessagingException.<commit_after>package edu.emory.cci.aiw.cvrg.eureka.services.email;

import edu.emory.cci.aiw.cvrg.eureka.common.entity.User;

/**
 * An interface that defines how emails can be sent out from the application.
 * 
 * @author hrathod
 * 
 */
public interface EmailSender {

	/**
	 * Send a message to the user. This is a test method so far, needs to be
	 * separated out into various methods to send different types of messages.
	 * 
	 * TODO: Remove this method and replace with more appropriate methods.
	 * 
	 * @param user To whom the email should be sent.
	 * @throws EmailException If the email can not be sent for any reason.
	 */
	public abstract void sendMessage(final User user) throws EmailException;

}
{'fraction_non_alphanumeric': 0.07665505226480836, 'fraction_numerical': 0.0, 'mean_word_length': 3.6623376623376624, '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': '835119', 'n_tokens_mistral': 420, 'n_tokens_neox': 386, 'n_words': 167}