<commit_before>var MyError = Backbone.Model.extend({
  defaults: {
    type: 'MyError',
    msg: 'Unknown Error'
  },
  toString: function() {
    return this.get('type') + ': ' + this.get('msg');
  },

  getMsg: function() {
    return this.get('msg') || 'Unknown Error';
  },

  toResult: function() {
    return '<p>' + this.get('msg').replace(/\n/g, '</p><p>') + '</p>';
  }
});

var CommandProcessError = MyError.extend({
  defaults: {
    type: 'Command Process Error'
  }
});

var CommandResult = MyError.extend({
  defaults: {
    type: 'Command Result'
  }
});

var Warning = MyError.extend({
  defaults: {
    type: 'Warning'
  }
});

var GitError = MyError.extend({
  defaults: {
    type: 'Git Error'<commit_msg>still debugging stupid width issue<commit_after>var MyError = Backbone.Model.extend({
  defaults: {
    type: 'MyError',
    msg: 'Unknown Error'
  },
  toString: function() {
    return this.get('type') + ': ' + this.get('msg');
  },

  getMsg: function() {
    return this.get('msg') || 'Unknown Error';
  },

  toResult: function() {
    if (!this.get('msg').length) {
      return '';
    }
    return '<p>' + this.get('msg').replace(/\n/g, '</p><p>') + '</p>';
  }
});

var CommandProcessError = MyError.extend({
  defaults: {
    type: 'Command Process Error'
  }
});

var CommandResult = MyError.extend({
  defaults: {
    type: 'Command Result'
  }
});

var Warning = MyError.extend({
  defaults: {
    type: 'Warning'
  }
});

var GitError = MyError.extend({
  defaults: {
    type: 'Git Error'
{'fraction_non_alphanumeric': 0.19777341191879502, 'fraction_numerical': 0.0, 'mean_word_length': 3.096514745308311, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6459165', 'n_tokens_mistral': 539, 'n_tokens_neox': 526, 'n_words': 116}