<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import {Router, browserHistory} from 'react-router';
import 'bootstrap/dist/css/bootstrap.css';

import configureStore from './store/configureStore';
import {getRoutes} from './routes';
import {getIp, getAllPolls} from './actions/actionCreators';
import session from './util/session';
require("font-awesome-webpack");

const store = configureStore();
persistStore(store);
store.dispatch(getIp());
store.dispatch(getAllPolls());
if(!store.getState().user.isAuthenticated) {session.setSessionId('');}

const reactRoot = window.document.getElementById("app");
  ReactDOM.render(
    <Provider store={store}>
      <Router history={browserHistory}>
        {getRoutes(store)}
      </Router>
    </Provider>,
    reactRoot);
<commit_msg>Fixed sessionId being set to '' incorrectly.<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import {Router, browserHistory} from 'react-router';
import 'bootstrap/dist/css/bootstrap.css';

import configureStore from './store/configureStore';
import {getRoutes} from './routes';
import {getIp, getAllPolls} from './actions/actionCreators';
import session from './util/session';
require("font-awesome-webpack");

const store = configureStore();
persistStore(store, () => {
  if(!store.getState().user.isAuthenticated) {session.setSessionId('');}
});
store.dispatch(getIp());
store.dispatch(getAllPolls());


const reactRoot = window.document.getElementById("app");
  ReactDOM.render(
    <Provider store={store}>
      <Router history={browserHistory}>
        {getRoutes(store)}
      </Router>
    </Provider>,
    reactRoot);

{'fraction_non_alphanumeric': 0.1569482288828338, 'fraction_numerical': 0.0, 'mean_word_length': 5.397212543554007, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '6045263', 'n_tokens_mistral': 540, 'n_tokens_neox': 537, 'n_words': 127}