<commit_before>import React from 'react';

const Icon = ({ icon, alt, ...other }) => (
  <img
    src={`http://media.blizzard.com/wow/icons/56/${icon.replace('.jpg', '')}.jpg`}
    alt={alt}
    {...other}
  />
);
Icon.propTypes = {
  icon: React.PropTypes.string.isRequired,
  alt: React.PropTypes.string.isRequired,
};

export default Icon;<commit_msg>Fix icons<commit_after>import React from 'react';

const Icon = ({ icon, alt, ...other }) => {
  icon = icon.replace('.jpg', '').replace('-', '');
  if (icon === 'petbattle_healthdown') {
    // Blizzard seems to have forgotten to remove the dash for this one... or something
    icon = 'petbattle_health-down';
  }

  return (
    <img
      src={`http://media.blizzard.com/wow/icons/56/${icon}.jpg`}
      alt={alt}
      {...other}
    />
  );
};
Icon.propTypes = {
  icon: React.PropTypes.string.isRequired,
  alt: React.PropTypes.string.isRequired,
};

export default Icon;
{'fraction_non_alphanumeric': 0.1963519313304721, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 3.1283185840707963, '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': '6674587', 'n_tokens_mistral': 328, 'n_tokens_neox': 322, 'n_words': 66}