<commit_before>// @flow
/**
 * All About Olaf
 * Bus Line list helper
 */

import React from 'react'
import {
  StyleSheet,
  View,
  ListView,
} from 'react-native'
import BusStopView from './busStop'

let styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'stretch',
    flexDirection: 'row',
  },
})

export default class BusLineView extends React.Component {
  state = {
    dataSource: new ListView.DataSource({
      rowHasChanged: this._rowHasChanged,
    }).cloneWithRows(this.props.schedule)
  }

  _rowHasChanged(r1: busStopType, r2: busStopType) {
    return r1.location !== r2.location
  }

  _renderRow(data: busStopType) {
    return (
      <BusStopView location={data.location} times={data.times} />
    )<commit_msg>add basic proptypes to busLine (#132)<commit_after>// @flow
/**
 * All About Olaf
 * Bus Line list helper
 */

import React from 'react'
import {
  StyleSheet,
  View,
  ListView,
} from 'react-native'
import BusStopView from './busStop'

let styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'stretch',
    flexDirection: 'row',
  },
})

export default class BusLineView extends React.Component {
  static propTypes = {
    schedule: React.PropTypes.any,
  }
  
  state = {
    dataSource: new ListView.DataSource({
      rowHasChanged: this._rowHasChanged,
    }).cloneWithRows(this.props.schedule),
  }

  _rowHasChanged(r1: busStopType, r2: busStopType) {
    return r1.location !== r2.location
  }

  _renderRow(data: busStopType) {
    return (
      <BusStopView location={data.location} times={data.times} />
    )
{'fraction_non_alphanumeric': 0.125625, 'fraction_numerical': 0.008125, 'mean_word_length': 3.3743169398907105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2246738', 'n_tokens_mistral': 535, 'n_tokens_neox': 522, 'n_words': 127}