<commit_before>import React, {PropTypes} from "react";
import { connect } from "react-redux";
import BuildSummary from "./BuildSummary.es6";


export const BuildSummaryList = ({builds}) => {
  const result = [];
  for (const buildId in builds) {
    const build = builds[buildId];
    result.push(
    <BuildSummary key={buildId} build={build}/>);
  }

  return <div className="buildSummaryList">{result}</div>;
};

BuildSummaryList.propTypes = { builds: PropTypes.object.isRequired };

const mapStateToProps = (state) => {return {builds: state.summaries};};
const mapDispatchToProps = () => {return {};};

export default connect(mapStateToProps, mapDispatchToProps)(BuildSummaryList);
<commit_msg>reverse build list to have newest build on top<commit_after>import React, {PropTypes} from "react";
import { connect } from "react-redux";
import BuildSummary from "./BuildSummary.es6";


export const BuildSummaryList = ({builds}) => {
  const result = [];
  for (const buildId in builds) {
    const build = builds[buildId];
    result.push(
    <BuildSummary key={buildId} build={build}/>);
  }

  return <div className="buildSummaryList">{result.reverse()}</div>;
};

BuildSummaryList.propTypes = { builds: PropTypes.object.isRequired };

const mapStateToProps = (state) => {return {builds: state.summaries};};
const mapDispatchToProps = () => {return {};};

export default connect(mapStateToProps, mapDispatchToProps)(BuildSummaryList);

{'fraction_non_alphanumeric': 0.1480194579569145, 'fraction_numerical': 0.001389854065323141, 'mean_word_length': 5.428571428571429, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '3381631', 'n_tokens_mistral': 426, 'n_tokens_neox': 423, 'n_words': 108}