<commit_before>// @flow
/**
 * All About Olaf
 * Building Hours list page
 */

import React from 'react'
import {SectionList} from 'react-native'
import {BuildingRow} from './row'
import {tracker} from '../../analytics'

import type momentT from 'moment'
import type {TopLevelViewPropsType} from '../types'
import type {BuildingType} from './types'

import {ListSeparator, ListSectionHeader, ListFooter} from '../components/list'

export {BuildingHoursDetailView} from './detail'

export class BuildingHoursList extends React.PureComponent {
  props: TopLevelViewPropsType & {
    now: momentT,
    loading: boolean,
    onRefresh: () => any,
    buildings: Array<{title: string, data: BuildingType[]}>,
  }

  onPressRow = (data: BuildingType) => {
    tracker.trackEvent('building-hours', data.name)
    this.props.navigation.navigate('BuildingHoursDetailView', {building: data})
  }

  keyExtractor = (item: BuildingType) => item.name

  renderSectionHeader = ({section: {title}}: any) =>
    <ListSectionHeader title={title} />

  renderItem = ({item}: {item: BuildingType}) =>
    <BuildingRow
      name={item.name}
      info={item}
      now={this.props.now}
      onPress={this.onPressRow}
    />

  render() {
    return (
      <SectionList
        ItemSeparatorComponent={ListSeparator}
        ListFooterComponent={
          <ListFooter
            title={
              'Building hours subject to change without notice\n\nData collected by the humans of All About Olaf'
            }
          />
        }
        sections={(this.props.buildings: any)}
        extraData={this.props}
        keyExtractor={this.keyExtractor}
        renderSectionHeader={this.renderSectionHeader}
        renderItem={this.renderItem}
        refreshing={this.props.loading}
        onRefresh={this.props.onRefresh}
      />
    )
  }
}
<commit_msg>remove list footer from Building Hours<commit_after>// @flow
/**
 * All About Olaf
 * Building Hours list page
 */

import React from 'react'
import {SectionList} from 'react-native'
import {BuildingRow} from './row'
import {tracker} from '../../analytics'

import type momentT from 'moment'
import type {TopLevelViewPropsType} from '../types'
import type {BuildingType} from './types'

import {ListSeparator, ListSectionHeader} from '../components/list'

export {BuildingHoursDetailView} from './detail'

export class BuildingHoursList extends React.PureComponent {
  props: TopLevelViewPropsType & {
    now: momentT,
    loading: boolean,
    onRefresh: () => any,
    buildings: Array<{title: string, data: BuildingType[]}>,
  }

  onPressRow = (data: BuildingType) => {
    tracker.trackEvent('building-hours', data.name)
    this.props.navigation.navigate('BuildingHoursDetailView', {building: data})
  }

  keyExtractor = (item: BuildingType) => item.name

  renderSectionHeader = ({section: {title}}: any) =>
    <ListSectionHeader title={title} />

  renderItem = ({item}: {item: BuildingType}) =>
    <BuildingRow
      name={item.name}
      info={item}
      now={this.props.now}
      onPress={this.onPressRow}
    />

  render() {
    return (
      <SectionList
        ItemSeparatorComponent={ListSeparator}
        sections={(this.props.buildings: any)}
        extraData={this.props}
        keyExtractor={this.keyExtractor}
        renderSectionHeader={this.renderSectionHeader}
        renderItem={this.renderItem}
        refreshing={this.props.loading}
        onRefresh={this.props.onRefresh}
      />
    )
  }
}

{'fraction_non_alphanumeric': 0.13088404133180254, 'fraction_numerical': 0.0, 'mean_word_length': 3.2448233861144944, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 22, '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': '2538131', 'n_tokens_mistral': 1036, 'n_tokens_neox': 1020, 'n_words': 236}