<commit_before>import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'

import React from 'react';
import { render } from 'react-dom';

import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';

import createSagaMiddleware from 'redux-saga';

import { Router, Route} from 'react-router'
import { createBrowserHistory } from 'history';
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'

import reducers from './reducers';
import rootSaga from './sagas';

import Login from './components/Login.jsx'
import Post from './components/Post'
import Dashboard from './components/Dashboard'

const sagaMiddleware = createSagaMiddleware();

const DevTools = createDevTools(
  <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q">
    <LogMonitor theme="tomorrow" preserveScrollTop={false} />
  </DockMonitor>
)


const store = createStore(
  combineReducers({
    ...reducers,
    routing: routerReducer
  }),
  compose(
    applyMiddleware(sagaMiddleware),
    DevTools.instrument()
  )
);

const history = syncHistoryWithStore(createBrowserHistory(), store);

sagaMiddleware.run(rootSaga);

render(
  <Provider store={store}>
    <div>
      <Router history={history}>
        <div>
          <Route exact path="/" component={Login}/><commit_msg>react router edux<commit_after>import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'

import React from 'react';
import { render } from 'react-dom';

import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';

import createSagaMiddleware from 'redux-saga';

import { Router, Route} from 'react-router'
import { createBrowserHistory } from 'history';
import { syncHistoryWithStore, routerReducer, routerMiddleware } from 'react-router-redux'

import reducers from './reducers';
import rootSaga from './sagas';

import Login from './components/Login.jsx'
import Post from './components/Post'
import Dashboard from './components/Dashboard'

const sagaMiddleware = createSagaMiddleware();

const DevTools = createDevTools(
  <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q">
    <LogMonitor theme="tomorrow" preserveScrollTop={false} />
  </DockMonitor>
)

const history = createBrowserHistory();

const store = createStore(
  combineReducers({
    ...reducers,
    routing: routerReducer
  }),
  compose(
    applyMiddleware(
      sagaMiddleware,
      routerMiddleware(history)
    ),
    DevTools.instrument()
  )
);

const routerHistory = syncHistoryWithStore(history, store, { adjustUrlOnReplay: true });

sagaMiddleware.run(rootSaga);

render(
  <Provider store={store}>
    <div>
      <Router history={routerHistory}>
        <div>
          <Route exact path="/" component={Login}/>
{'fraction_non_alphanumeric': 0.12046589018302829, 'fraction_numerical': 0.0, 'mean_word_length': 4.836893203883495, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3666231', 'n_tokens_mistral': 900, 'n_tokens_neox': 899, 'n_words': 225}