<commit_before>goog.provide('xmpptk.muc.Client');

goog.require('goog.object');
goog.require('goog.debug.Logger');

goog.require('xmpptk.Client');

/**
 * @constructor
 */
xmpptk.muc.Client = function(client) {
    this._logger.info("instantiated");

    // will it blend?
    goog.object.extend(this, client);
};

xmpptk.muc.Client.prototype._logger = goog.debug.Logger.getLogger('xmpptk.muc.Client');<commit_msg>preliminary handler for groupchat messages<commit_after>goog.provide('xmpptk.muc.Client');

goog.require('goog.object');
goog.require('goog.debug.Logger');

goog.require('xmpptk.Client');

/**
 * @constructor
 */
xmpptk.muc.Client = function(client) {
    this._logger.info("instantiated");

    // will it blend?
    goog.object.extend(this, client);

    // register handlers
    this._con.registerHandler('message', '*', '*', 'groupchat', goog.bind(this._handleGroupchatMessage, this));
};

xmpptk.muc.Client.prototype._logger = goog.debug.Logger.getLogger('xmpptk.muc.Client');

xmpptk.muc.Client.prototype._handleGroupchatMessage = function(oMsg) {
    this._logger.info("handling muc message: "+oMsg.xml());

    return true;
};
{'fraction_non_alphanumeric': 0.1803135888501742, 'fraction_numerical': 0.0, 'mean_word_length': 4.83248730964467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2194127', 'n_tokens_mistral': 415, 'n_tokens_neox': 380, 'n_words': 47}