<commit_before>import React from 'react'
import {statusMessageFromRole} from 'extensions/statusUtils'
import classes from './StatusText.scss'

class StatusText extends React.Component {

  static propTypes = {
    status: React.PropTypes.string.isRequired,
    email: React.PropTypes.string.isRequired
  }

  render () {
    return (
      <div>
        <div>
          {generateMessage(this.props.status, this.props.email)}
        </div>
      </div>
    )
  }
}

function generateMessage (status, email) {
  if (status === 'accepted') {
    return generateAcceptedJSX(email)
  } else if (status === 'confirmed') {
    return generateConfirmedJSX(email)
  } else {
    return statusMessageFromRole(status)
  }
}

function generateConfirmedJSX (email) {
  return (
    <div>
      {'Whoo! We can\'t wait to see you! If you\'re flying or driving from out-of-state, don\'t forget to '}
      <a href={'https://hackduke.typeform.com/to/w4ZA3F?route_update_participant=xxxxx&email=' + email}
        className={classes.link}>{'upload'}</a>
      {' receipts. We will reimburse up to $200 for flights and $50 for gas, but we won\'t be providing gas reimbursements for people from schools with buses.'}
    </div>
  )
}

function generateAcceptedJSX (email) {
  return (
    <div>
      {'Congratulations! You’ve been accepted! Please'}
      {' '}
      <a href={'https://hackduke.typeform.com/to/Dq5qeE?route_update_participant=xxxxx&email=' + email}
        className={classes.link}>{'confirm'}</a>
      {' '}<commit_msg>updating on confirmed<commit_after>import React from 'react'
import {statusMessageFromRole} from 'extensions/statusUtils'
import classes from './StatusText.scss'

class StatusText extends React.Component {

  static propTypes = {
    status: React.PropTypes.string.isRequired,
    email: React.PropTypes.string.isRequired
  }

  render () {
    return (
      <div>
        <div>
          {generateMessage(this.props.status, this.props.email)}
        </div>
      </div>
    )
  }
}

function generateMessage (status, email) {
  if (status === 'accepted') {
    return generateAcceptedJSX(email)
  } else if (status === 'confirmed') {
    return generateConfirmedJSX(email)
  } else {
    return statusMessageFromRole(status)
  }
}

function generateConfirmedJSX (email) {
  return (
    <div>
      {'Whoo! We can\'t wait to see you! If you\'re flying or driving from out-of-state, don\'t forget to '}
      <a href={'https://hackduke.typeform.com/to/w4ZA3F?route_update_participant=xxxxx&email=' + email}
        className={classes.link}>{'upload'}</a>
      {' receipts. We will reimburse up to $200 for flights and $50 for gas, but we can\'t reimburse people from schools with buses.'}
    </div>
  )
}

function generateAcceptedJSX (email) {
  return (
    <div>
      {'Congratulations! You’ve been accepted! Please'}
      {' '}
      <a href={'https://hackduke.typeform.com/to/Dq5qeE?route_update_participant=xxxxx&email=' + email}
        className={classes.link}>{'confirm'}</a>
      {' '}
{'fraction_non_alphanumeric': 0.13500992720052946, 'fraction_numerical': 0.005294506949040371, 'mean_word_length': 3.2758132956152757, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 4, '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': '658948', 'n_tokens_mistral': 997, 'n_tokens_neox': 959, 'n_words': 228}