<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { ListItem } from 'material-ui/List';

class MeetingItem extends Component {
  meetingSummary(meeting) {
    const dateString = new Date(meeting.meetingDate).toLocaleDateString();
    const notesString = meeting.directsNotes ? meeting.directsNotes : meeting.managersNotes;
    return `${dateString} : ${notesString || ''}`;
  }

  render() {
    const { directs, meeting, id } = this.props;

    if (directs && meeting) {
      const direct = directs.get(meeting.directKey);

      return (<ListItem
        primaryText={direct.name}
        secondaryText={this.meetingSummary(meeting)}
        containerElement={<Link to={`/meetings/${id}`} />}
      />
      );
    }

    return null;

  }}

MeetingItem.propTypes = {
};

const mapStateToProps = (state) => {
  return {
    directs: state.directs.list,
  };
};

export default connect(mapStateToProps)(MeetingItem);<commit_msg>chore(MeetingItem.jsx): linting<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { ListItem } from 'material-ui/List';

class MeetingItem extends Component {
  static summary(meeting) {
    const dateString = new Date(meeting.meetingDate).toLocaleDateString();
    const notesString = meeting.directsNotes ? meeting.directsNotes : meeting.managersNotes;
    return `${dateString} : ${notesString || ''}`;
  }

  render() {
    const { directs, meeting, id } = this.props;

    if (directs && meeting) {
      const direct = directs.get(meeting.directKey);

      return (<ListItem
        primaryText={direct.name}
        secondaryText={MeetingItem.summary(meeting)}
        containerElement={<Link to={`/meetings/${id}`} />}
      />
      );
    }

    return null;
  }
}

MeetingItem.propTypes = {
  directs: React.PropTypes.object.isRequired,
  meeting: React.PropTypes.object.isRequired,
  id: React.PropTypes.string.isRequired,
};

const mapStateToProps = (state) => {
  return {
    directs: state.directs.list,
  };
};

export default connect(mapStateToProps)(MeetingItem);
{'fraction_non_alphanumeric': 0.1401186672752168, 'fraction_numerical': 0.0, 'mean_word_length': 3.634249471458774, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5512370', 'n_tokens_mistral': 693, 'n_tokens_neox': 679, 'n_words': 135}