<commit_before>/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.protocol;

/**
 *
 * @author <NAME>
 */
public interface OperationSetBasicInstantMessaging
    extends OperationSet
{
    public void createMessageFactory();

    public void sendInstantMessage();

    public void addMessageListener();

}<commit_msg>started support for the basic instant messaging<commit_after>/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.protocol;

import net.java.sip.communicator.service.protocol.event.MessageListener;

/**
 * Provides basic functionality for sending and receiving InstantMessages.
 *
 * @author <NAME>
 */
public interface OperationSetBasicInstantMessaging
    extends OperationSet
{
    /**
     * Create a Message instance for sending arbitrary MIME-encoding content.
     *
     * @param content content value
     * @param contentType MIME-type
     * @param contentEncoding encoding used for the MIME-type
     * @return the newly created message.
     */
    Message 	createMessage(byte[] content,
                              String contentType,
                              String contentEncoding);
    /**
     * Create a Message instance for sending a simple text messages with default
     * (text/plain) content type and encoding.
     *
     * @param messageText the string content of the message.
     * @return Message the newly created message
     */
    Message 	createMessage(String messageText);

    public void sendInstantMessage(Contact to, Message message);

    /**
     * Registeres a MessageListener with this operation set.
     *
     * @param listener the message listener to register.
     */
    public void addMessageListener(MessageListener listener);

}
{'fraction_non_alphanumeric': 0.07596201899050475, 'fraction_numerical': 0.0, 'mean_word_length': 3.0773930753564156, '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': '2409016', 'n_tokens_mistral': 518, 'n_tokens_neox': 505, 'n_words': 178}