<commit_before>import React, { Component } from 'react';
import _ from 'lodash';
import classnames from 'classnames';
import mobile from 'is-mobile';
import moment from 'moment';

// Pick component
export default class PickGame extends Component {

  constructor(props) {
    super(props);
  }

  renderSpread(spread) {
    if (_.isEmpty(spread)) {
      return `-`;
    }
    return `${ spread.fav } by ${ Math.abs(spread.points) }`;
  }

  renderScore(city, score, winner, quarter) {

    let scoreColor = 'black';
    let scoreWeight = 'normal';

    if (winner.length === 1 && city === winner[0] && quarter !== '') {
      scoreColor = 'green';
      scoreWeight = 'bold';
    }

    return (
      <div className="value">
        <span style={{ color: scoreColor, fontWeight: scoreWeight }}>{ score }</span>
      </div>
    );
  }

  renderGameTimeOrQuarter(quarter, time, day, gameClock) {
    if (quarter === 'FINAL') {
      return 'Final';
    } else if (quarter === 'FINAL_OVERTIME') {
      return 'Final OT';
    } else if (quarter === 'SUSPENDED') {
      return 'Suspended';
    } else if (quarter === 'HALFTIME') {
      return 'Halftime';
    } else if (quarter !== '') {
      return `${gameClock} ${quarter}`;
    } else {
      return `${moment(day, 'MM-DD-YYYY').format('ddd')} ${moment(time, 'HH:mm:ss').format('h:mma')}`;
    }
  }<commit_msg>show game time when pregame<commit_after>import React, { Component } from 'react';
import _ from 'lodash';
import classnames from 'classnames';
import mobile from 'is-mobile';
import moment from 'moment';

// Pick component
export default class PickGame extends Component {

  constructor(props) {
    super(props);
  }

  renderSpread(spread) {
    if (_.isEmpty(spread)) {
      return `-`;
    }
    return `${ spread.fav } by ${ Math.abs(spread.points) }`;
  }

  renderScore(city, score, winner, quarter) {

    let scoreColor = 'black';
    let scoreWeight = 'normal';

    if (winner.length === 1 && city === winner[0] && quarter !== '') {
      scoreColor = 'green';
      scoreWeight = 'bold';
    }

    return (
      <div className="value">
        <span style={{ color: scoreColor, fontWeight: scoreWeight }}>{ score }</span>
      </div>
    );
  }

  renderGameTimeOrQuarter(quarter, time, day, gameClock) {
    if (quarter === 'FINAL') {
      return 'Final';
    } else if (quarter === 'FINAL_OVERTIME') {
      return 'Final OT';
    } else if (quarter === 'SUSPENDED') {
      return 'Suspended';
    } else if (quarter === 'HALFTIME') {
      return 'Halftime';
    } else if (quarter !== '' || quarter !== 'PREGAME') {
      return `${gameClock} ${quarter}`;
    } else {
      return `${moment(day, 'MM-DD-YYYY').format('ddd')} ${moment(time, 'HH:mm:ss').format('h:mma')}`;
    }
  }
{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.001443522194153735, 'mean_word_length': 2.9884892086330934, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5679636', 'n_tokens_mistral': 924, 'n_tokens_neox': 884, 'n_words': 226}