<commit_before>import 'babel-polyfill';

import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';

import DashboardSubheader from './dashboard/components/subheader';
import Dashboard from './dashboard/components/dashboard';
import CategoriesSubheader from './categories/components/subheader';
import Categories from './categories/components/content';
import ProfileSubheader from './profile/components/subheader';
import Profile from './profile/components/profile';
import AnalyticsSubheader from './analytics/components/subheader';
import Analytics from './analytics/components/analytics';
import TransactionsSubheader from './transactions/components/subheader';
import Transactions from './transactions/components/transactions';
import Layout from './common/components/layout';
import About from './meta/components/about';
import Contact from './meta/components/contact';
import Privacy from './meta/components/privacy';
import Terms from './meta/components/terms';
import store from './redux/store';

const App = React.createClass({
  render() {
    return <div>Not Found Sorry</div>;
  }
});

render((
  <Provider store={store}>
    <Router history={browserHistory}>
      <Route path="/" component={Layout}>
        <IndexRoute components={{main: Dashboard, subheader: DashboardSubheader}}/>
        <Route path="/transactions" components={{main: Transactions, subheader: TransactionsSubheader}}/>
        <Route path="/categories" components={{main: Categories, subheader: CategoriesSubheader}}/>
        <Route path="/analytics" components={{main: Analytics, subheader: AnalyticsSubheader}}/>
        <Route path="/profile" components={{main: Profile, subheader: ProfileSubheader}}/>
        <Route path="/contact" components={{main: Contact}}/>
        <Route path="/privacy" components={{main: Privacy}}/>
        <Route path="/about" components={{main: About}}/>
        <Route path="/terms" components={{main: Terms}}/>
        <Route path="*" components={{main: App}}/>
      </Route>
    </Router>
  </Provider><commit_msg>Redirect from /dashboard to /<commit_after>import 'babel-polyfill';

import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, IndexRoute, browserHistory, Redirect} from 'react-router';

import DashboardSubheader from './dashboard/components/subheader';
import Dashboard from './dashboard/components/dashboard';
import CategoriesSubheader from './categories/components/subheader';
import Categories from './categories/components/content';
import ProfileSubheader from './profile/components/subheader';
import Profile from './profile/components/profile';
import AnalyticsSubheader from './analytics/components/subheader';
import Analytics from './analytics/components/analytics';
import TransactionsSubheader from './transactions/components/subheader';
import Transactions from './transactions/components/transactions';
import Layout from './common/components/layout';
import About from './meta/components/about';
import Contact from './meta/components/contact';
import Privacy from './meta/components/privacy';
import Terms from './meta/components/terms';
import store from './redux/store';

const App = React.createClass({
  render() {
    return <div>Not Found Sorry</div>;
  }
});

render((
  <Provider store={store}>
    <Router history={browserHistory}>
      <Route path="/" component={Layout}>
        <IndexRoute components={{main: Dashboard, subheader: DashboardSubheader}}/>
        <Route path="/transactions" components={{main: Transactions, subheader: TransactionsSubheader}}/>
        <Route path="/categories" components={{main: Categories, subheader: CategoriesSubheader}}/>
        <Route path="/analytics" components={{main: Analytics, subheader: AnalyticsSubheader}}/>
        <Route path="/profile" components={{main: Profile, subheader: ProfileSubheader}}/>
        <Route path="/contact" components={{main: Contact}}/>
        <Route path="/privacy" components={{main: Privacy}}/>
        <Route path="/about" components={{main: About}}/>
        <Route path="/terms" components={{main: Terms}}/>
        <Redirect from="/dashboard" to="/" />
        <Route path="*" components={{main: App}}/>
      </Route>
    </Router>
  </Provider>
{'fraction_non_alphanumeric': 0.15187557182067704, 'fraction_numerical': 0.0, 'mean_word_length': 4.838451268357811, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '7087139', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1123, 'n_words': 313}