<commit_before>/* global document, window */
/* eslint-disable no-unused-vars */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import reducer from './reducers/index';
import App from './components/App.jsx';
import initialState from './initialState';
import { stateToUrl } from './utils/uri';
/* eslint-ensable no-unused-vars */

require('./../scss/styles.scss');

const uriMiddleware = ({ getState }) => next => (action) => {
  const state = getState();
  stateToUrl(state);
  next(action);
};

<commit_msg>Reorder middleware to fix 'lagged' uri<commit_after>/* global document, window */
/* eslint-disable no-unused-vars */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import reducer from './reducers/index';
import App from './components/App.jsx';
import initialState from './initialState';
import { stateToUrl } from './utils/uri';
/* eslint-ensable no-unused-vars */

require('./../scss/styles.scss');

const uriMiddleware = ({ getState }) => next => (action) => {
  next(action);
  const state = getState();
  stateToUrl(state);
};


{'fraction_non_alphanumeric': 0.16784313725490196, 'fraction_numerical': 0.0, 'mean_word_length': 4.406779661016949, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2175738', 'n_tokens_mistral': 389, 'n_tokens_neox': 387, 'n_words': 111}