<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { compose, createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

import ListManager from './components/ListManager';
import reducers from './redux/rootReducer';

//const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);
//const store = createStore(reducers, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());

// TODO: add check to see if env is production or development and implement redux dev 
// tools code appropriately
var initialState = { list_manager: reducers.list_manager, add_task_bar:  {
  inputValue: '',
  currentCategory: '',
  displayAddCategoryField: false
} };

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
  window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
  }) :
  compose;
const enhancer = composeEnhancers(
  applyMiddleware(thunk)
);

const store = createStore(reducers, initialState, enhancer);

ReactDOM.render(
  <Provider store={ store  }>
    <ListManager />
  </Provider>
  , document.getElementById('app'));
<commit_msg>render app after fetching storage from chrome<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { compose, createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

import ListManager from './components/ListManager';
import reducers from './redux/rootReducer';

//const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);
//const store = createStore(reducers, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());

// TODO: add check to see if env is production or development and implement redux dev 
// tools code appropriately

chrome.storage.sync.get('state', function(s) {
  const { state } = s;
  var initialState = state;

  const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
    window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
    }) :
    compose;
  const enhancer = composeEnhancers(
    applyMiddleware(thunk)
  );

  const store = createStore(reducers, initialState, enhancer);

  ReactDOM.render(
    <Provider store={ store  }>
      <ListManager />
    </Provider>
    , document.getElementById('app'));

});
{'fraction_non_alphanumeric': 0.10877944325481799, 'fraction_numerical': 0.0, 'mean_word_length': 5.262734584450402, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4981678', 'n_tokens_mistral': 734, 'n_tokens_neox': 697, 'n_words': 177}