<commit_before>import Ember from 'ember';
import ColorMixin from 'ember-paper/mixins/color-mixin';

export default Ember.Component.extend(ColorMixin, {
  tagName: 'md-icon',
  classNames: ['paper-icon', 'md-font', 'material-icons', 'md-default-theme'],
  classNameBindings: ['iconClass', 'sizeClass', 'spinClass'],

  spin: false,
  reverseSpin: false,

  iconClass: Ember.computed('icon', function() {
    return Ember.String.dasherize(this.get('icon'));
  }),

  spinClass: Ember.computed('spin', 'reverseSpin', function() {
    if (this.get('spin')) {
      return ' md-spin';
    } else if (this.get('reverseSpin')) {
      return ' md-spin-reverse';
    }
  }),

  sizeClass : Ember.computed('size', function() {
    switch(this.get('size')) {
      case 'lg':
        return ' md-lg';
      case 'sm':
        return ' md-sm';
      case 2:
        return ' md-2x';
      case 3:<commit_msg>Add default value to icon attr of `paper-icon`<commit_after>import Ember from 'ember';
import ColorMixin from 'ember-paper/mixins/color-mixin';

export default Ember.Component.extend(ColorMixin, {
  tagName: 'md-icon',
  classNames: ['paper-icon', 'md-font', 'material-icons', 'md-default-theme'],
  classNameBindings: ['iconClass', 'sizeClass', 'spinClass'],

  icon: '',
  spin: false,
  reverseSpin: false,

  iconClass: Ember.computed('icon', function() {
    return Ember.String.dasherize(this.get('icon'));
  }),

  spinClass: Ember.computed('spin', 'reverseSpin', function() {
    if (this.get('spin')) {
      return ' md-spin';
    } else if (this.get('reverseSpin')) {
      return ' md-spin-reverse';
    }
  }),

  sizeClass : Ember.computed('size', function() {
    switch(this.get('size')) {
      case 'lg':
        return ' md-lg';
      case 'sm':
        return ' md-sm';
      case 2:
        return ' md-2x';
      case 3:
{'fraction_non_alphanumeric': 0.17781402936378465, 'fraction_numerical': 0.0032626427406199023, 'mean_word_length': 3.2494226327944573, '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': '2110051', 'n_tokens_mistral': 631, 'n_tokens_neox': 614, 'n_words': 131}