<commit_before>import classNames from 'classnames'
import isInteger from 'lodash/isInteger'
import React, { PropTypes } from 'react'

const Icon = ({ icon, size = 1, fixedWidth, ...props }) => {
  props.className = classNames(
    props.className,
    icon !== undefined ? `xo-icon-${icon}` : 'fa', // Without icon prop, is a placeholder.
    isInteger(size) ? `fa-${size}x` : `fa-${size}`,
    fixedWidth && 'fa-fw'
  )

  return <i {...props} />
}
Icon.propTypes = {
  fixedWidth: PropTypes.bool,
  icon: PropTypes.string,
  size: PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.number
  ])
}
export default Icon<commit_msg>chore(Icon): use propTypes decorator<commit_after>import classNames from 'classnames'
import isInteger from 'lodash/isInteger'
import React from 'react'

import propTypes from './prop-types'

const Icon = ({ icon, size = 1, fixedWidth, ...props }) => {
  props.className = classNames(
    props.className,
    icon !== undefined ? `xo-icon-${icon}` : 'fa', // Without icon prop, is a placeholder.
    isInteger(size) ? `fa-${size}x` : `fa-${size}`,
    fixedWidth && 'fa-fw'
  )

  return <i {...props} />
}
propTypes(Icon)({
  fixedWidth: propTypes.bool,
  icon: propTypes.string,
  size: propTypes.oneOfType([
    propTypes.string,
    propTypes.number
  ])
})
export default Icon
{'fraction_non_alphanumeric': 0.16160849772382396, 'fraction_numerical': 0.0015174506828528073, 'mean_word_length': 3.6443661971830985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4182569', 'n_tokens_mistral': 438, 'n_tokens_neox': 439, 'n_words': 111}