<commit_before>import React from 'react'

import { TableRow, TableRowColumn } from 'material-ui/Table'

const Subtotal = ({style, salary, kiwisaver, depreciation, phoneContribution}) => {
  const sum = +salary + +kiwisaver + +depreciation + +phoneContribution
  return (
    <TableRow>
      <TableRowColumn>
        <h3>Subtotal</h3>
      </TableRowColumn>
      <TableRowColumn>
        <p style={style.outputNumbers}>
          { !isNaN(sum) && '$' + sum.toFixed(2) }
        </p>
      </TableRowColumn>
    </TableRow>
  )
}

export default Subtotal<commit_msg>fix formatting<commit_after>import React from 'react'

import { TableRow, TableRowColumn } from 'material-ui/Table'

const Subtotal = ({style, salary, kiwisaver, depreciation, phoneContribution}) => {
  const sum = salary + kiwisaver + depreciation + phoneContribution
  return (
    <TableRow>
      <TableRowColumn>
        <h3>Subtotal</h3>
      </TableRowColumn>
      <TableRowColumn>
        <p style={style.outputNumbers}>
          { !isNaN(sum) && '$' + sum.toFixed(2) }
        </p>
      </TableRowColumn>
    </TableRow>
  )
}

export default Subtotal
{'fraction_non_alphanumeric': 0.134394341290893, 'fraction_numerical': 0.005305039787798408, 'mean_word_length': 3.0719424460431655, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '7310959', 'n_tokens_mistral': 382, 'n_tokens_neox': 367, 'n_words': 76}