<commit_before>import React from 'react';
import Message from './Message.jsx';
import Menu from 'material-ui/Menu';
import { connect } from 'react-redux';
import { loadPlurbs, getPlurbs } from '../../../ACTIONS.jsx';

class MessageContainer extends React.Component {
  // pass relevant piece of store to component
  constructor(props) {
    super(props);
  }

  _loadPlurbs() {
    this.props.dispatch(getPlurbs());
  }

  render() {
    return (
      <div style={{ height: '400px' }}>
        <Menu>
          { this.props.plurbs.map((message) => {
            return <Message message={ message.text } />
          }) }
        </Menu>
      </div>
    );
  }
}

// map the portion of the state tree desired
const mapStateToProps = (store) => {
  return {
    plurbs: store.pluribusReducer.plurbs,
  };
};

// connect the desired state to the relevant component<commit_msg>(feat) Enable Message Container scrolling<commit_after>import React from 'react';
import Message from './Message.jsx';
import Menu from 'material-ui/Menu';
import { connect } from 'react-redux';
import { loadPlurbs, getPlurbs } from '../../../ACTIONS.jsx';

class MessageContainer extends React.Component {
  // pass relevant piece of store to component
  constructor(props) {
    super(props);
  }

  _loadPlurbs() {
    this.props.dispatch(getPlurbs());
  }

  render() {
    return (
      <div style={{ height: '400px', overflow:'scroll' }}>
        <Menu>
          { this.props.plurbs.map((message) => {
            return <Message message={ message.text } />
          }) }
        </Menu>
      </div>
    );
  }
}

// map the portion of the state tree desired
const mapStateToProps = (store) => {
  return {
    plurbs: store.pluribusReducer.plurbs,
  };
};

// connect the desired state to the relevant component
{'fraction_non_alphanumeric': 0.14357262103505844, 'fraction_numerical': 0.00333889816360601, 'mean_word_length': 2.7148760330578514, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '3746050', 'n_tokens_mistral': 563, 'n_tokens_neox': 539, 'n_words': 148}