<commit_before>function DroongaProtocolConnectionWrapper(connection, callback, options) {
  this._connection = connection;
  this._callback = callback;
  this._options = options;
}
DroongaProtocolConnectionWrapper.prototype = {
  emit: function(event, data) {
    this._connection.emitMessage(event, data, this._callback, this._options);
  },
  destroy: function() {
    delete this._connection;
    delete this._callback;
    delete this._options;
  }
};
exports.DroongaProtocolConnectionWrapper = DroongaProtocolConnectionWrapper;


function SocketIOClientSocketWrapper(socket, options) {
  this._socket = socket;
  this._options = options || {};
}
SocketIOClientSocketWrapper.prototype = {
  emit: function(event, data) {
    if (this._options.event)
      event = this._options.event;
    this._socket.emit(event, data);
  },
  destroy: function() {
    delete this._socket;
  }
};
exports.SocketIOClientSocketWrapper = SocketIOClientSocketWrapper;
<commit_msg>Accept custom callback of emitMessage for DroongaPRotocolConnectionWrapper<commit_after>function DroongaProtocolConnectionWrapper(connection, callback, options) {
  this._connection = connection;
  this._callback = callback;
  this._options = options;
}
DroongaProtocolConnectionWrapper.prototype = {
  emit: function(event, data, callback) {
    this._connection.emitMessage(event, data, callback || this._callback, this._options);
  },
  destroy: function() {
    delete this._connection;
    delete this._callback;
    delete this._options;
  }
};
exports.DroongaProtocolConnectionWrapper = DroongaProtocolConnectionWrapper;


function SocketIOClientSocketWrapper(socket, options) {
  this._socket = socket;
  this._options = options || {};
}
SocketIOClientSocketWrapper.prototype = {
  emit: function(event, data) {
    if (this._options.event)
      event = this._options.event;
    this._socket.emit(event, data);
  },
  destroy: function() {
    delete this._socket;
  }
};
exports.SocketIOClientSocketWrapper = SocketIOClientSocketWrapper;

{'fraction_non_alphanumeric': 0.10581222056631892, 'fraction_numerical': 0.0, 'mean_word_length': 4.958579881656805, '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': '5683217', 'n_tokens_mistral': 572, 'n_tokens_neox': 564, 'n_words': 110}