<commit_before>import './common'

const browser = require('./browser')
const locationSelector = require('./location/locationSelector')
const getApiData = require('./get-api-data')
const apiRoutes = require('./api')
const templating = require('./template-render')

const locationId = locationSelector.getSelectedLocationId()
if (window.location.href.indexOf(locationId) === -1) {
  browser.redirect('/' + locationId + '/severe-weather-accommodation/')
}

getApiData
  .data(apiRoutes.cities)
  .then((result) => {
    const city = result.data.find((c) => c.id === locationId)<commit_msg>view swep page with no previous location selected<commit_after>import './common'

const locationSelector = require('./location/locationSelector')
const getApiData = require('./get-api-data')
const apiRoutes = require('./api')
const templating = require('./template-render')

const locationId = locationSelector.getCurrentHub()

getApiData
  .data(apiRoutes.cities)
  .then((result) => {
    const city = result.data.find((c) => c.id === locationId)
{'fraction_non_alphanumeric': 0.16247582205029013, 'fraction_numerical': 0.0009671179883945841, 'mean_word_length': 5.124260355029586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7206667', 'n_tokens_mistral': 302, 'n_tokens_neox': 301, 'n_words': 65}