<commit_before>
import './RankingTable.scss'
import React from 'react'
import PropTypes from 'prop-types'
import { formattedAccuracyForRecord } from 'bemuse/rules/accuracy'

const RankingTable = ({ children }) => (
  <table className="RankingTable">
    <tbody>
      {children}
    </tbody>
  </table>
)

RankingTable.propTypes = {
  children: PropTypes.func
}

class Row extends React.Component {
  static propTypes = {
    record: PropTypes.object
  }

  render () {
    return <tr>
      <td className="RankingTableのrank">
        {this.props.record.rank || <span title="Unable to determine your rank">??</span>}
      </td>
      <td className="RankingTableのname">
        {this.props.record.playerName}
      </td>
      <td className="RankingTableのscore">
        {this.props.record.score}
      </td>
      <td className="RankingTableのaccuracy">
        {formattedAccuracyForRecord(this.props.record)}
      </td>
    </tr>
  }
}

export const Message = ({ children }) => (
  <tr>
    <td colSpan={4} className="RankingTableのmessage">
      {children}
    </td>
  </tr>
)

Message.propTypes = {
  children: PropTypes.func
}
<commit_msg>:bug: fixed PropTypes on RankingTable<commit_after>
import './RankingTable.scss'
import React from 'react'
import PropTypes from 'prop-types'
import { formattedAccuracyForRecord } from 'bemuse/rules/accuracy'

const RankingTable = ({ children }) => (
  <table className="RankingTable">
    <tbody>
      {children}
    </tbody>
  </table>
)

RankingTable.propTypes = {
  children: PropTypes.any
}

class Row extends React.Component {
  static propTypes = {
    record: PropTypes.object
  }

  render () {
    return <tr>
      <td className="RankingTableのrank">
        {this.props.record.rank || <span title="Unable to determine your rank">??</span>}
      </td>
      <td className="RankingTableのname">
        {this.props.record.playerName}
      </td>
      <td className="RankingTableのscore">
        {this.props.record.score}
      </td>
      <td className="RankingTableのaccuracy">
        {formattedAccuracyForRecord(this.props.record)}
      </td>
    </tr>
  }
}

export const Message = ({ children }) => (
  <tr>
    <td colSpan={4} className="RankingTableのmessage">
      {children}
    </td>
  </tr>
)

Message.propTypes = {
  children: PropTypes.any
}

{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.0008658008658008658, 'mean_word_length': 3.0472854640980738, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 47, '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': '7291452', 'n_tokens_mistral': 748, 'n_tokens_neox': 748, 'n_words': 154}