<commit_before>import React from 'react';
import TextField from 'material-ui/TextField';

const styles = {
  textField: {
    width: '100%',
    maxWidth: 500,
    height: 55,
    marginRight: 15,
    lineHeight: 2.7,
    paddingBottom: 30,
    letterSpacing: 1.9,
    fontFamily: "'Open Sans', sans-serif"
  }
};

const AddNewItem = ({ onUpdateItem, enableAddItem, onAddItem }) => (
  <form className="donations__form">
    <TextField
      type="text"
      onKeyUp={onUpdateItem}
      id="donationTitle"
      hintText="What would you like to donate ?"
      style={styles.textField}
    />
    <button
      className={enableAddItem ? 'btn btn-addDonation' : 'btn btn-addDonation btn--disabled'}
      onClick={onAddItem}
    />
  </form>
);

AddNewItem.propTypes = {
  onUpdateItem: React.PropTypes.func.isRequired,
  enableAddItem: React.PropTypes.bool.isRequired,
  onAddItem: React.PropTypes.func.isRequired
};

module.exports = AddNewItem;<commit_msg>Style: add stylistic changes to JSX and change exports to default for add new item<commit_after>import React from 'react';
import TextField from 'material-ui/TextField';

const styles = {
  textField: {
    width: '100%',
    maxWidth: 500,
    height: 55,
    marginRight: 15,
    lineHeight: 2.7,
    paddingBottom: 30,
    letterSpacing: 1.9,
    fontFamily: "'Open Sans', sans-serif"
  }
};

const AddNewItem = ({
  onUpdateItem,
  enableAddItem,
  onAddItem
}) => (
  <form className="donations__form">
    <TextField
      type="text"
      onKeyUp={onUpdateItem}
      id="donationTitle"
      hintText="What would you like to donate ?"
      style={styles.textField}
    />
    <button
      className={enableAddItem ?
        'btn btn-addDonation'
      :
        'btn btn-addDonation btn--disabled'
      }
      onClick={onAddItem}
    />
  </form>
);

AddNewItem.propTypes = {
  onUpdateItem: React.PropTypes.func.isRequired,
  enableAddItem: React.PropTypes.bool.isRequired,
  onAddItem: React.PropTypes.func.isRequired
};

export default AddNewItem;
{'fraction_non_alphanumeric': 0.12302371541501976, 'fraction_numerical': 0.015810276679841896, 'mean_word_length': 3.20997920997921, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6122292', 'n_tokens_mistral': 695, 'n_tokens_neox': 660, 'n_words': 144}