<commit_before>import React from 'react'
import moment from 'moment'
import {markdown} from 'markdown'
import Person from '../../components/person'
import deindent from 'deindent'

export default Episode

function Episode({episodeData}) {
  const {hangoutUrl, title, date, guests, description} = episodeData
  const time = episodeData.time || '12:00 PM (CT)'
  const dateDisplay = moment(date).format('dddd, MMMM Do, YYYY')
  return (
    <div className="episode">
      <h3>
        <a href={hangoutUrl}>{title}</a>
        <br />
        <small>{dateDisplay} at {time}</small>
      </h3>
      <div className="person-group +space-children">
        {guests.map((guest, index) => (
          <Person imgSrc={`episodes/${date}/${guest.twitter}.png`} key={index} {...guest} />
        ))}
      </div>
      <p dangerouslySetInnerHTML={getDescriptionHTML(description)}></p>
    </div>
  )
}

function getDescriptionHTML(description) {
  return {__html: markdown.toHTML(deindent(description))}
}
<commit_msg>Add special text if there's not yet a hangout URL<commit_after>import React from 'react'
import moment from 'moment'
import {markdown} from 'markdown'
import Person from '../../components/person'
import deindent from 'deindent'

export default Episode

function Episode({episodeData}) {
  const {hangoutUrl, title, date, guests, description} = episodeData
  const time = episodeData.time || '12:00 PM (CT)'
  const dateDisplay = moment(date).format('dddd, MMMM Do, YYYY')
  return (
    <div className="episode">
      <h3>
        {getTitle(hangoutUrl, title)}
        <br />
        <small>{dateDisplay} at {time}</small>
      </h3>
      <div className="person-group +space-children">
        {guests.map((guest, index) => (
          <Person imgSrc={`episodes/${date}/${guest.twitter}.png`} key={index} {...guest} />
        ))}
      </div>
      <p dangerouslySetInnerHTML={getDescriptionHTML(description)}></p>
    </div>
  )
}

function getDescriptionHTML(description) {
  return {__html: markdown.toHTML(deindent(description))}
}

function getTitle(hangoutUrl, title) {
  if (hangoutUrl) {
    return <a href={hangoutUrl}>{title}</a>
  } else {
    return <span>{title} <small>(hangout url coming soon)</small></span>
  }
}

{'fraction_non_alphanumeric': 0.15841142347166443, 'fraction_numerical': 0.00535475234270415, 'mean_word_length': 3.6131687242798356, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6242703', 'n_tokens_mistral': 721, 'n_tokens_neox': 711, 'n_words': 170}