<commit_before>import Ember from 'ember';

export default Ember.Service.extend({

  notifications: [],

  show: function(text, options) {
    if(typeof options !== "object") {
      options = { };
    }
    options.text = text;

    this.get("notifications").addObject(options);
  },

  remove: function(notification) {
    Ember.run.later(this, function() {
      this.get("notifications").removeObject(notification);
    }, 1000);
  }

});<commit_msg>Add error() to notifier<commit_after>import Ember from 'ember';

export default Ember.Service.extend({

  notifications: [],

  show: function(text, options) {
    if(typeof options !== "object") {
      options = { };
    }
    options.text = text;

    this.get("notifications").addObject(options);
  },

  error: function(text, options) {
    if(typeof options !== "object") {
      options = {};
    }
    options.type = "error";

    this.show(text, options);
  },

  remove: function(notification) {
    Ember.run.later(this, function() {
      this.get("notifications").removeObject(notification);
    }, 1000);
  }

});
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.007407407407407408, 'mean_word_length': 3.306772908366534, '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': '3185227', 'n_tokens_mistral': 350, 'n_tokens_neox': 329, 'n_words': 62}