<commit_before>import React from 'react';
import StatsItem from './StatsItem';

export default class ListStats extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
  render() {
    return (
      <div className="row">
        {this.props.stats.map((item, index) =>
          <StatsItem key={index} title={item.title} subtitle={item.subtitle} />
        )}
      </div>
    );
  }
}

ListStats.propTypes = {
  stats: React.PropTypes.array,
};<commit_msg>Live stats - refactor ListStats to a stateless component<commit_after>import React from 'react';
import StatsItem from './StatsItem';

export default function ListStats(props) {
  return (
    <div className="row">
      {props.stats.map((item, index) =>
        <StatsItem key={index} title={item.title} subtitle={item.subtitle} />
      )}
    </div>
  );
}

ListStats.propTypes = {
  stats: React.PropTypes.array,
};
{'fraction_non_alphanumeric': 0.14601769911504425, 'fraction_numerical': 0.0, 'mean_word_length': 3.3719806763285023, 'pattern_counts': {'":': 0, '<': 9, '<?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': '128354', 'n_tokens_mistral': 283, 'n_tokens_neox': 278, 'n_words': 62}