<commit_before>var SMTPError = require('./error');

var SMTPResponse = function(stream, timeout, onerror) 
{
  var buffer = '',

  notify = function()
  {
    if(buffer.length)
    {
      // parse buffer for response codes
      var line = buffer.replace("\r", '');
      var match = line ? line.match(/(\d+)\s?(.*)/) : null;

      stream.emit('response', null, match ? {code:match[1], message:match[2], data:line} : {code:-1, data:line});
      buffer = '';
    }
  },

  error = function(err)
  {
    stream.emit('response', SMTPError('connection encountered an error', SMTPError.ERROR, err));
  },

  timedout = function(err)
  {
    stream.emit('response', SMTPError('timedout while connecting to smtp server', SMTPError.TIMEDOUT, err));<commit_msg>Fix response splited on Zoho<commit_after>var SMTPError = require('./error');

var SMTPResponse = function(stream, timeout, onerror) 
{
  var buffer = '',

  notify = function()
  {
    if(buffer.length)
    {
      // parse buffer for response codes
      var line = buffer.replace("\r", '');
        
      if(!line.match(/^(\d{3})\s/))
          return;
        
      var match = line ? line.match(/(\d+)\s?(.*)/) : null;

      stream.emit('response', null, match ? {code:match[1], message:match[2], data:line} : {code:-1, data:line});
      buffer = '';
    }
  },

  error = function(err)
  {
    stream.emit('response', SMTPError('connection encountered an error', SMTPError.ERROR, err));
  },

  timedout = function(err)
  {
    stream.emit('response', SMTPError('timedout while connecting to smtp server', SMTPError.TIMEDOUT, err));
{'fraction_non_alphanumeric': 0.17658108954289292, 'fraction_numerical': 0.004383218534752661, 'mean_word_length': 3.0974358974358975, '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': '2047478', 'n_tokens_mistral': 521, 'n_tokens_neox': 523, 'n_words': 115}