<commit_before>import React from 'react'
import {BernieColors, BernieText} from './styles/bernie-css'
import {
  Table,
  TableHeaderColumn,
  TableRow,
  TableHeader,
  TableRowColumn,
  TableBody,
  TableFooter
} from 'material-ui'
import phoneFormatter from 'phone-formatter'

export default class EventRSVPTable extends React.Component {
  static propTypes = {
    attendees: React.PropTypes.array
  }

  renderPhoneLink = (phone) => (phone) ? <a href={`tel:${phone}`}>{phoneFormatter.format(phone, '(NNN) NNN-NNNN')}</a> : ''

  render() {
    return (
      <Table selectable={false} multiSelectable={false}>
        <TableHeader displaySelectAll={false} adjustForCheckbox={false}>
          <TableRow>
            <TableHeaderColumn>Name</TableHeaderColumn>
            <TableHeaderColumn>Email</TableHeaderColumn>
            <TableHeaderColumn>Phone</TableHeaderColumn>
            <TableHeaderColumn>City</TableHeaderColumn>
            <TableHeaderColumn>State</TableHeaderColumn>
          </TableRow>
        </TableHeader><commit_msg>Default attendees to empty array<commit_after>import React from 'react'
import {BernieColors, BernieText} from './styles/bernie-css'
import {
  Table,
  TableHeaderColumn,
  TableRow,
  TableHeader,
  TableRowColumn,
  TableBody,
  TableFooter
} from 'material-ui'
import phoneFormatter from 'phone-formatter'

export default class EventRSVPTable extends React.Component {
  static propTypes = {
    attendees: React.PropTypes.array
  }

  static defaultProps = {
    attendees: []
  }

  renderPhoneLink = (phone) => (phone) ? <a href={`tel:${phone}`}>{phoneFormatter.format(phone, '(NNN) NNN-NNNN')}</a> : ''

  render() {
    return (
      <Table selectable={false} multiSelectable={false}>
        <TableHeader displaySelectAll={false} adjustForCheckbox={false}>
          <TableRow>
            <TableHeaderColumn>Name</TableHeaderColumn>
            <TableHeaderColumn>Email</TableHeaderColumn>
            <TableHeaderColumn>Phone</TableHeaderColumn>
            <TableHeaderColumn>City</TableHeaderColumn>
            <TableHeaderColumn>State</TableHeaderColumn>
          </TableRow>
        </TableHeader>
{'fraction_non_alphanumeric': 0.11829944547134935, 'fraction_numerical': 0.0, 'mean_word_length': 3.6559139784946235, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '3213189', 'n_tokens_mistral': 634, 'n_tokens_neox': 626, 'n_words': 118}