<commit_before>import React from 'react';
import style from './Funds.css';

const NUMBER_PATTERN = /^[+-]?[0-9]+\.?[0-9]*$/;

function getPerformanceStyle(performance) {
  if (!NUMBER_PATTERN.test(performance)) {
    return null;
  }

  return {
    color: performance < 0 ? '#d43f3a' : '#4cae4c',
  };
}

const PerformanceCell = ({ type, value }) => (
  <span
    style={getPerformanceStyle(value)}
    className={`${style.performance} ${style[type]}`}
  >{value}</span>
);

PerformanceCell.propTypes = {
  type: React.PropTypes.string.isRequired,
  value: React.PropTypes.oneOfType([
    React.PropTypes.string,
    React.PropTypes.number,
  ]),
};

MorningStarRow.defaultProps = {
  value: '',
};

MorningStarRow.displayName = 'PerformanceCell';

export default PerformanceCell;<commit_msg>Fixing typo<commit_after>import React from 'react';
import style from './Funds.css';

const NUMBER_PATTERN = /^[+-]?[0-9]+\.?[0-9]*$/;

function getPerformanceStyle(performance) {
  if (!NUMBER_PATTERN.test(performance)) {
    return null;
  }

  return {
    color: performance < 0 ? '#d43f3a' : '#4cae4c',
  };
}

const PerformanceCell = ({ type, value }) => (
  <span
    style={getPerformanceStyle(value)}
    className={`${style.performance} ${style[type]}`}
  >{value}</span>
);

PerformanceCell.propTypes = {
  type: React.PropTypes.string.isRequired,
  value: React.PropTypes.oneOfType([
    React.PropTypes.string,
    React.PropTypes.number,
  ]),
};

PerformanceCell.defaultProps = {
  value: '',
};

PerformanceCell.displayName = 'PerformanceCell';

export default PerformanceCell;
{'fraction_non_alphanumeric': 0.17276166456494324, 'fraction_numerical': 0.012610340479192938, 'mean_word_length': 4.361486486486487, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3194725', 'n_tokens_mistral': 576, 'n_tokens_neox': 536, 'n_words': 92}