<commit_before>import React from 'react';
import './Alert.scss';

export const Alert = ({ message, style, action, actionMessage }) => (
  <span className={'alert alert-dismissible alert-position ' + style}>
    { message }
    <a className='alert-link' onClick={action}> { actionMessage } </a>
    <button className='btn btn-default btn-xs alert-close-button' onClick={close}>
      <span className='fa fa-close'/>
    </button>
  </span>
);

Alert.propTypes = {
  action: React.PropTypes.func,
  actionMessage: React.PropTypes.string,
  message: React.PropTypes.string.isRequired,
  style: React.PropTypes.string.isRequired
};

export default Alert;<commit_msg>Add close to Alert proptypes<commit_after>import React from 'react';
import './Alert.scss';

export const Alert = ({ message, style, action, actionMessage, close }) => (
  <span className={'alert alert-dismissible alert-position ' + style}>
    { message }
    <a className='alert-link' onClick={action}> { actionMessage } </a>
    <button className='btn btn-default btn-xs alert-close-button' onClick={close}>
      <span className='fa fa-close'/>
    </button>
  </span>
);

Alert.propTypes = {
  action: React.PropTypes.func,
  actionMessage: React.PropTypes.string,
  message: React.PropTypes.string.isRequired,
  style: React.PropTypes.string.isRequired
};

export default Alert;
{'fraction_non_alphanumeric': 0.14784546805349183, 'fraction_numerical': 0.0, 'mean_word_length': 4.303149606299213, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '4912970', 'n_tokens_mistral': 410, 'n_tokens_neox': 404, 'n_words': 98}