<commit_before>// @flow

import * as React from 'react'
import type {UnprocessedBusLine} from './types'
import {BusLine} from './line'
import moment from 'moment-timezone'
import {NoticeView} from '../../components/notice'
import LoadingView from '../../components/loading'
import type {TopLevelViewPropsType} from '../../types'
import delay from 'delay'
import {reportNetworkProblem} from '../../../lib/report-network-problem'
import * as defaultData from '../../../../docs/bus-times.json'
import {GH_PAGES_URL} from '../../../globals'

const TIMEZONE = 'America/Winnipeg'

const busTimesUrl = GH_PAGES_URL('bus-times.json')

type Props = TopLevelViewPropsType & {
	+line: string,
}

type State = {|
	busLines: Array<UnprocessedBusLine>,
	activeBusLine: ?UnprocessedBusLine,
	loading: boolean,
	refreshing: boolean,
	now: moment,
|}<commit_msg>port bus times to ccc-server<commit_after>// @flow

import * as React from 'react'
import type {UnprocessedBusLine} from './types'
import {BusLine} from './line'
import moment from 'moment-timezone'
import {NoticeView} from '../../components/notice'
import LoadingView from '../../components/loading'
import type {TopLevelViewPropsType} from '../../types'
import delay from 'delay'
import {reportNetworkProblem} from '../../../lib/report-network-problem'
import * as defaultData from '../../../../docs/bus-times.json'

const TIMEZONE = 'America/Winnipeg'

const busTimesUrl = 'https://carleton.api.frogpond.tech/v1/transit/bus'

type Props = TopLevelViewPropsType & {
	+line: string,
}

type State = {|
	busLines: Array<UnprocessedBusLine>,
	activeBusLine: ?UnprocessedBusLine,
	loading: boolean,
	refreshing: boolean,
	now: moment,
|}
{'fraction_non_alphanumeric': 0.16130952380952382, 'fraction_numerical': 0.0005952380952380953, 'mean_word_length': 4.269592476489028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '1072862', 'n_tokens_mistral': 537, 'n_tokens_neox': 526, 'n_words': 146}