<commit_before>import React, { PropTypes } from 'react';

// TODO add key
const NavMenuItem = ({ item }) => <a className='nav-butt' href={item.route}><li>{item.label}</li></a>;

// Route objects are used to create the items in the menu
NavMenuItem.propTypes = {
  item: React.PropTypes.shape({
    route: PropTypes.string.isRequired,
    label: PropTypes.string.isRequired,
  }).isRequired,
};

const NavMenu = ({ items }) => (
  <div className='nav-menu-cont'>
    <ul className='nav-menu'>
      {items.map(item => <NavMenuItem item={item} />)}
    </ul>
  </div>
);

NavMenu.propTypes = {
  items: React.PropTypes.arrayOf(NavMenuItem.propTypes.item).isRequired,
};

export default NavMenu;<commit_msg>Add key to list iterations to fix warning<commit_after>import React, { PropTypes } from 'react';

const NavMenuItem = ({ item }) => <a className='nav-butt' href={item.route}><li>{item.label}</li></a>;

// Route objects are used to create the items in the menu
NavMenuItem.propTypes = {
  item: React.PropTypes.shape({
    route: PropTypes.string.isRequired,
    label: PropTypes.string.isRequired,
  }).isRequired,
};

const NavMenu = ({ items }) => (
  <div className='nav-menu-cont'>
    <ul className='nav-menu'>
      {items.map(item => <NavMenuItem key={item.label} item={item} />)}
    </ul>
  </div>
);

NavMenu.propTypes = {
  items: React.PropTypes.arrayOf(NavMenuItem.propTypes.item).isRequired,
};

export default NavMenu;
{'fraction_non_alphanumeric': 0.1697981906750174, 'fraction_numerical': 0.0, 'mean_word_length': 4.099290780141844, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 27, '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': '6800626', 'n_tokens_mistral': 462, 'n_tokens_neox': 465, 'n_words': 106}