<commit_before>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Message from './Message';

export class AppMessages extends Component {

  render() {
    const { messages, removeMessage } = this.props;
    return (
      <div id="notificationArea">
        {messages.map((message) => {
          return (<Message key={message.id} hide={() => removeMessage(message.id)} {...message} />);
        })}
      </div>
    );
  }
}

function mapStateToProps(state) {
  return {
    messages: state.app.messages
  };
}

AppMessages.propTypes = {
  messages: PropTypes.array.isRequired,
  removeMessage: PropTypes.func.isRequired
};

export default connect(mapStateToProps)(AppMessages);<commit_msg>fixed missing action in AppMessages<commit_after>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Message from './Message';
import * as actions from '../actions/app';

export class AppMessages extends Component {

  render() {
    const { messages, removeMessage } = this.props;
    return (
      <div id="notificationArea">
        {messages.map((message) => {
          return (<Message key={message.id} hide={() => removeMessage(message.id)} {...message} />);
        })}
      </div>
    );
  }
}

function mapStateToProps(state) {
  return {
    messages: state.app.messages
  };
}

AppMessages.propTypes = {
  messages: PropTypes.array.isRequired,
  removeMessage: PropTypes.func.isRequired
};

export default connect(mapStateToProps, { ...actions })(AppMessages);
{'fraction_non_alphanumeric': 0.14606021780909673, 'fraction_numerical': 0.0, 'mean_word_length': 3.527536231884058, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3602043', 'n_tokens_mistral': 448, 'n_tokens_neox': 449, 'n_words': 106}