<commit_before>// Styles
import 'semantic-ui-css/semantic.css'
import 'styles/global'
// fetch polyfill
import 'whatwg-fetch'
// Application
import {render} from 'react-dom'
import {configureStore, configureRootComponent} from 'common/index.jsx'

if (process.env.NODE_ENV === 'production') {
  require('common/pwa')
} else if (process.env.NODE_ENV === 'development') {
  // Devtools
  // whyDidYouUpdate package is temporary broken, waiting for a patch
  // const {whyDidYouUpdate} = require('why-did-you-update')
  // whyDidYouUpdate(React)
  window.Perf = require('react-addons-perf')
}

const preloadedState = window.__PRELOADED_STATE__ || {}
delete window.__PRELOADED_STATE__

const store = configureStore(preloadedState)
const RootComponent = configureRootComponent(store)
render(RootComponent, document.getElementById('app'))

if (module.hot) {
  module.hot.accept()
}<commit_msg>fix(src/client/index): use isomorphic-fetch instead of whatwg-fetch, add es6-promise polyfill, configureRootComponent arg fix<commit_after>// Styles
import 'semantic-ui-css/semantic.css'
import 'styles/global'
// fetch and promise polyfill
import 'isomorphic-fetch'
import 'es6-promise'
// Application
import {render} from 'react-dom'
import {configureStore, configureRootComponent} from 'common/index.jsx'

if (process.env.NODE_ENV === 'production') {
  require('common/pwa')
} else if (process.env.NODE_ENV === 'development') {
  // Devtools
  // whyDidYouUpdate package is temporary broken, waiting for a patch
  // const {whyDidYouUpdate} = require('why-did-you-update')
  // whyDidYouUpdate(React)
  window.Perf = require('react-addons-perf')
}

const preloadedState = window.__PRELOADED_STATE__ || {}
delete window.__PRELOADED_STATE__

const store = configureStore(preloadedState)
const RootComponent = configureRootComponent({store})
render(RootComponent, document.getElementById('app'))

if (module.hot) {
  module.hot.accept()
}
{'fraction_non_alphanumeric': 0.1315652626105044, 'fraction_numerical': 0.0010400416016640667, 'mean_word_length': 5.456375838926174, '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': '7180500', 'n_tokens_mistral': 597, 'n_tokens_neox': 590, 'n_words': 135}