<commit_before>import Ember from 'ember';

const _supportedAttrTypes = {
  'bool': () => {
  },
  'function': () => {
  },
  'number': (value) => {
    return Ember.isPresent(value) && typeof value === 'number';
  },
  'object': () => {
  },
  'string': (value) => {
    return Ember.isPresent(value) && typeof value === 'string';
  },
};

function _defaultAssertMessage(attrName, attrType) {
  if (Ember.isPresent(attrType)) {
    return ['Component', attrName, 'of type', attrType, 'is required'].join(' ');
  } else {
    return ['Component', attrName, 'is required'].join(' ');
  }
}<commit_msg>Use Ember.typeOf for consistent type check.<commit_after>import Ember from 'ember';

const _supportedAttrTypes = {
  'bool': () => {
  },
  'function': () => {
  },
  'number': (value) => {
    return Ember.isPresent(value) && Ember.typeOf(value) === 'number';
  },
  'object': () => {
  },
  'string': (value) => {
    return Ember.isPresent(value) && Ember.typeOf(value) === 'string';
  },
};

function _defaultAssertMessage(attrName, attrType) {
  if (Ember.isPresent(attrType)) {
    return ['Component', attrName, 'of type', attrType, 'is required'].join(' ');
  } else {
    return ['Component', attrName, 'is required'].join(' ');
  }
}
{'fraction_non_alphanumeric': 0.21256038647342995, 'fraction_numerical': 0.0, 'mean_word_length': 3.893700787401575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1499501', 'n_tokens_mistral': 424, 'n_tokens_neox': 424, 'n_words': 87}