<commit_before>import {
  faCheckCircle,
  faFutbol,
  faQuestionCircle,
  faTimesCircle,
  IconDefinition,
} from '@fortawesome/free-solid-svg-icons'
import { messages } from '@cucumber/messages'
import Status = messages.TestResult.Status
import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import statusName from './statusName'

interface IProps {
  status: Status
}

const StatusIcon: React.FunctionComponent<IProps> = ({ status }) => {
  return (
    <FontAwesomeIcon
      icon={statusIcon(status)}
      size="1x"
      className={`status-${statusName(status)}`}
    />
  )
}

export default StatusIcon

const statusIcon = (status: Status): IconDefinition => {
  return {
    // Keep the same order as in messages.proto - for readability's sake
    [Status.PASSED]: faCheckCircle,
    [Status.SKIPPED]: faFutbol,
    [Status.PENDING]: faFutbol,
    [Status.UNDEFINED]: faQuestionCircle,
    [Status.AMBIGUOUS]: faFutbol,
    [Status.FAILED]: faTimesCircle,
    [Status.UNKNOWN]: faFutbol,
  }[status]
}<commit_msg>Add better icons<commit_after>import {
  faCheckCircle,
  faQuestionCircle,
  faTimesCircle,
  faPauseCircle,
  faStopCircle,
  faInfoCircle,
  IconDefinition,
} from '@fortawesome/free-solid-svg-icons'
import { messages } from '@cucumber/messages'
import Status = messages.TestResult.Status
import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import statusName from './statusName'

interface IProps {
  status: Status
}

const StatusIcon: React.FunctionComponent<IProps> = ({ status }) => {
  return (
    <FontAwesomeIcon
      icon={statusIcon(status)}
      size="1x"
      className={`status-${statusName(status)}`}
    />
  )
}

export default StatusIcon

const statusIcon = (status: Status): IconDefinition => {
  return {
    // Keep the same order as in messages.proto - for readability's sake
    [Status.PASSED]: faCheckCircle,
    [Status.SKIPPED]: faStopCircle,
    [Status.PENDING]: faPauseCircle,
    [Status.UNDEFINED]: faQuestionCircle,
    [Status.AMBIGUOUS]: faInfoCircle,
    [Status.FAILED]: faTimesCircle,
    [Status.UNKNOWN]: faQuestionCircle,
  }[status]
}
{'fraction_non_alphanumeric': 0.12207434603028912, 'fraction_numerical': 0.0009178522257916476, 'mean_word_length': 4.202863961813843, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '4551114', 'n_tokens_mistral': 726, 'n_tokens_neox': 713, 'n_words': 152}