<commit_before>export function getCheapestSelectedSuburb (state) {
  const selected = getSelectedSuburbs(state)
  const prices = selected.map(suburb => {
    return suburb.price
  })
  const min = Math.min(...prices)
  return selected.find(suburb => {
    return suburb.price === min
  })
}

export function getSelectedSuburbs (state) {
  const values = state.form.location.values || {}
  const selected = values.suburbs || []
  return getSuburbs(state).filter(suburb => selected.includes(suburb.name))
}

export function getSuburbs (state) {
  return state.suburbs
}<commit_msg>Find cheapest suburb by land cost<commit_after>export function getCheapestSelectedSuburb (state) {
  const selected = getSelectedSuburbs(state)
  const min = Math.min(...selected.map(suburb => {
    return suburb.landCostPerSqmFloorspace
  }))
  return selected.find(suburb => {
    return suburb.landCostPerSqmFloorspace === min
  })
}

export function getSelectedSuburbs (state) {
  const values = state.form.location.values || {}
  const selected = values.suburbs || []
  return getSuburbs(state).filter(suburb => selected.includes(suburb.name))
}

export function getSuburbs (state) {
  return state.suburbs
}
{'fraction_non_alphanumeric': 0.11828859060402684, 'fraction_numerical': 0.0, 'mean_word_length': 4.574766355140187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5686046', 'n_tokens_mistral': 381, 'n_tokens_neox': 360, 'n_words': 80}