<commit_before>import React from 'react'
import { render } from 'react-dom'
import { Router as ReactRouter, browserHistory, createMemoryHistory } from 'react-router'
import { Provider } from 'react-redux'
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
import { combine } from './reducer'

let syncedHistory

export default function (stores, baseComponent, options) {
  const store = combine({
    ...stores,
    routing: routerReducer
  }, options)

  let history
  if (global.IS_SERVERSIDE) {
    history = createMemoryHistory()
  } else {
    history = browserHistory
  }
  syncedHistory = syncHistoryWithStore(history, store)
  const base = baseComponent

  let child = base
  if (process.env.NODE_ENV !== 'production') {
    if (global.devToolsExtension) {
      console.warn('Jumpsuit doesn\'t support the Redux Dev Tools browser extension!')
    }

    const Hsr = require('./hsr').default
    const DevTools = require('./devtools').default<commit_msg>hashHistory fix<commit_after>import React from 'react'
import { render } from 'react-dom'
import { Router as ReactRouter, browserHistory, hashHistory, createMemoryHistory } from 'react-router'
import { Provider } from 'react-redux'
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
import { combine } from './reducer'

let syncedHistory

export default function (stores, baseComponent, options = {}) {
  const store = combine({
    ...stores,
    routing: routerReducer
  }, options)

  let history
  if (global.IS_SERVERSIDE) {
    history = createMemoryHistory()
  } else {
    history = options.useHash ? hashHistory : browserHistory
  }
  syncedHistory = syncHistoryWithStore(history, store)
  const base = baseComponent

  let child = base
  if (process.env.NODE_ENV !== 'production') {
    if (global.devToolsExtension) {
      console.warn('Jumpsuit doesn\'t support the Redux Dev Tools browser extension!')
    }

    const Hsr = require('./hsr').default
    const DevTools = require('./devtools').default
{'fraction_non_alphanumeric': 0.1094059405940594, 'fraction_numerical': 0.0, 'mean_word_length': 4.077889447236181, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2822737', 'n_tokens_mistral': 587, 'n_tokens_neox': 575, 'n_words': 167}