<commit_before>import React, { PropTypes } from 'react'
import { ManaBadge } from 'components'
import { manaLettersToIcons } from 'utils'

const propTypes = { card: PropTypes.object.isRequired }

const CardDetails = ({ card }) => {
  return (
    <div className="card-details">
      <ul>
        <li>{card.name} {<ManaBadge manaCost={card.manaCost} />}</li>
        <li>{card.type}</li>
        <li className="card-details__text" dangerouslySetInnerHTML={{ __html: manaLettersToIcons(card.text) }} />
        {card.power && card.toughness && <li>{card.power} / {card.toughness}</li>}
      </ul>
    </div>
  )
}

CardDetails.propTypes = propTypes

export default CardDetails
<commit_msg>Fixed bug that prevented access to card with no text<commit_after>import React, { PropTypes } from 'react'
import { ManaBadge } from 'components'
import { manaLettersToIcons } from 'utils'

const propTypes = { card: PropTypes.object.isRequired }

const CardDetails = ({ card }) => {
  return (
    <div className="card-details">
      <ul>
        <li>{card.name} {<ManaBadge manaCost={card.manaCost} />}</li>
        <li>{card.type}</li>
        {card.text && <li className="card-details__text" dangerouslySetInnerHTML={{ __html: manaLettersToIcons(card.text) }} />}
        {card.power && card.toughness && <li>{card.power} / {card.toughness}</li>}
      </ul>
    </div>
  )
}

CardDetails.propTypes = propTypes

export default CardDetails

{'fraction_non_alphanumeric': 0.15712290502793297, 'fraction_numerical': 0.0, 'mean_word_length': 3.607717041800643, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '900613', 'n_tokens_mistral': 474, 'n_tokens_neox': 479, 'n_words': 100}