<commit_before>import history from './history'

const createRouter = options => {
  let _target // target DOM
  let _unlisten // history listener
  let _content // route instance

  const handleRouteChange = location => {
    if (_content) _content.destroy()

    for (let path in options) {
      if (options.hasOwnProperty(path)) {
        if (location.pathname === path) {
          _content = new options[path]({
            target: _target
          })
          break
        }
      }
    }
  }

  return {<commit_msg>log out options in createRouter<commit_after>import history from './history'

const createRouter = options => {
  let _target // target DOM
  let _unlisten // history listener
  let _content // route instance

  console.log(options);

  const handleRouteChange = location => {
    if (_content) _content.destroy()

    for (let path in options) {
      if (options.hasOwnProperty(path)) {
        if (location.pathname === path) {
          _content = new options[path]({
            target: _target
          })
          break
        }
      }
    }
  }

  return {
{'fraction_non_alphanumeric': 0.10430009149130832, 'fraction_numerical': 0.0, 'mean_word_length': 2.125714285714286, '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': '4121162', 'n_tokens_mistral': 305, 'n_tokens_neox': 299, 'n_words': 89}