<commit_before>package communication.protocols;

import communication.messages.Message;

/**
 * Skeleton of a communication protocol
 * @author <NAME>
 *
 */
public interface Protocol {

	/**
	 * Get the type of the accepted {@link Message}
	 * @return The class name of the {@link Message}
	 */
	public String getAcceptedMessageType();
	
	/**
	 * Handle an input {@link Message} and return an answer
	 * @param message The {@link Message} to process
	 * @return The reply
	 */
	public Message processMessage(Message message);
	<commit_msg>Add hasReply method to Protocols<commit_after>package communication.protocols;

import communication.messages.Message;

/**
 * Skeleton of a communication protocol
 * @author <NAME>
 *
 */
public interface Protocol {
	
	/**
	 * Get the type of the accepted {@link Message}
	 * @return The class name of the {@link Message}
	 */
	public String getAcceptedMessageType();
	
	/**
	 * Handle an input {@link Message} and return an answer
	 * @param message The {@link Message} to process
	 * @return The reply
	 */
	public Message processMessage(Message message);
	
	/**
	 * Determine whether the protocol creates a response message
	 * @return True if the protocol should reply to origin
	 */
	public boolean hasReply();
{'fraction_non_alphanumeric': 0.09792993630573249, 'fraction_numerical': 0.0, 'mean_word_length': 3.91015625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1874590', 'n_tokens_mistral': 344, 'n_tokens_neox': 314, 'n_words': 136}