<commit_before>import React, { Component } from 'react'

import { dayFieldsToArray } from '../../util/monitored-trip'
import TripSummary from './trip-summary'

class TripSummaryPane extends Component {
  render () {
    const { monitoredTrip } = this.props
    const { itinerary } = monitoredTrip

    if (!itinerary) {
      return <div>No itinerary to display.</div>
    } else {
      // TODO: use the modern itinerary summary built for trip comparison.

      // For now, just capitalize the day fields from monitoredTrip.
      const capitalizedDays = dayFieldsToArray(monitoredTrip).map(
        day => `${day.charAt(0).toUpperCase()}${day.substr(1)}`
      )

      return (
        <div>
          <h3>{monitoredTrip.tripName}</h3>
          <TripSummary monitoredTrip={monitoredTrip} />

          <p>
            Happens on: <b>{capitalizedDays.join(', ')}</b>
          </p>
          <p>
            Notifications:
            <b>
              {monitoredTrip.isActive
                ? `${monitoredTrip.leadTimeInMinutes} min. before scheduled departure`
                : 'Disabled'}<commit_msg>refactor(TripNotificationPane): Add missing blank space.<commit_after>import React, { Component } from 'react'

import { dayFieldsToArray } from '../../util/monitored-trip'
import TripSummary from './trip-summary'

class TripSummaryPane extends Component {
  render () {
    const { monitoredTrip } = this.props
    const { itinerary } = monitoredTrip

    if (!itinerary) {
      return <div>No itinerary to display.</div>
    } else {
      // TODO: use the modern itinerary summary built for trip comparison.

      // For now, just capitalize the day fields from monitoredTrip.
      const capitalizedDays = dayFieldsToArray(monitoredTrip).map(
        day => `${day.charAt(0).toUpperCase()}${day.substr(1)}`
      )

      return (
        <div>
          <h3>{monitoredTrip.tripName}</h3>
          <TripSummary monitoredTrip={monitoredTrip} />

          <p>
            Happens on: <b>{capitalizedDays.join(', ')}</b>
          </p>
          <p>
            Notifications:{' '}
            <b>
              {monitoredTrip.isActive
                ? `${monitoredTrip.leadTimeInMinutes} min. before scheduled departure`
                : 'Disabled'}
{'fraction_non_alphanumeric': 0.1235657546337158, 'fraction_numerical': 0.00353045013239188, 'mean_word_length': 2.2807525325615052, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '810158', 'n_tokens_mistral': 713, 'n_tokens_neox': 654, 'n_words': 157}