<commit_before>'use strict'

import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/app/index'
import configureStore from './store/configure-store'
import reducers from './reducers/index'

const store = configureStore({ reducers })

render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.querySelector('[data-js="app"]')
)<commit_msg>Add subscribe to change redux events<commit_after>'use strict'

import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/app/index'
import configureStore from './store/configure-store'
import reducers from './reducers/index'

const store = configureStore({ reducers })

render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.querySelector('[data-js="app"]')
)

store.subscribe(() => {
  console.log(store.getState())
})
{'fraction_non_alphanumeric': 0.1526147278548559, 'fraction_numerical': 0.0, 'mean_word_length': 4.754601226993865, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '1725490', 'n_tokens_mistral': 285, 'n_tokens_neox': 280, 'n_words': 79}