<commit_before>import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { LandingPage } from './LandingPage';
import Signup from './Signup/Signup';
import Login from './Login';
import Profile from './Profile/Profile';
import CustomerDashboard from './Dashboard/CustomerDashboard';
import App from './App';
import FullListing from './Listing/FullListing';
import NotFound from './NotFound';
import configureStore from '../configureStore';
import AddListing from './Listing/AddListing/AddListing';
import AllListings from './Listing/AllListings/AllListings';
import AllRatings from './Ratings/AllRatings';
import NewRating from './Ratings/NewRating';


const store = configureStore();
const history = syncHistoryWithStore(browserHistory, store);

const requireAuth = (nextState, replace) => {
  if (!localStorage.getItem('raptor_token')) {
    replace('/login');
  }
};

const Root = () =>
  <Provider store={store}>
    <Router history={history}>
      <Route path="/" component={App}>
        <IndexRoute component={LandingPage} />
        <Route path="/landing" component={LandingPage} />
        <Route path="/signup" component={Signup} />
        <Route path="/login" component={Login} />
        <Route path="/profile" component={Profile} onEnter={requireAuth} />
        <Route path="/dashboard" component={CustomerDashboard} onEnter={requireAuth} />
        <Route path="/listings/:id" component={FullListing} onEnter={requireAuth} />
        <Route path="/addlisting" component={AddListing} onEnter={requireAuth} />
        <Route path="/listings" component={AllListings} />
        <Route path="/user/:id/ratings" component={AllRatings} onEnter={requireAuth} />
        <Route path="/user/:id/ratings/new" component={NewRating} onEnter={requireAuth} />
        <Route path="/user/:id" component={Profile} />
        <Route path="/user/:id/dashboard" component={Profile} />
        <Route path="/user/:id/inbox" component={Profile} />
        <Route path="/user/:id/settings" component={Profile} />
        <Route path="*" component={NotFound} />
      </Route>
    </Router>
  </Provider>;

export default Root;<commit_msg>Remove 'dashboard' route from Root.js<commit_after>import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { LandingPage } from './LandingPage';
import Signup from './Signup/Signup';
import Login from './Login';
import Profile from './Profile/Profile';
import CustomerDashboard from './Dashboard/CustomerDashboard';
import App from './App';
import FullListing from './Listing/FullListing';
import NotFound from './NotFound';
import configureStore from '../configureStore';
import AddListing from './Listing/AddListing/AddListing';
import AllListings from './Listing/AllListings/AllListings';
import AllRatings from './Ratings/AllRatings';
import NewRating from './Ratings/NewRating';


const store = configureStore();
const history = syncHistoryWithStore(browserHistory, store);

const requireAuth = (nextState, replace) => {
  if (!localStorage.getItem('raptor_token')) {
    replace('/login');
  }
};

const Root = () =>
  <Provider store={store}>
    <Router history={history}>
      <Route path="/" component={App}>
        <IndexRoute component={LandingPage} />
        <Route path="/landing" component={LandingPage} />
        <Route path="/signup" component={Signup} />
        <Route path="/login" component={Login} />
        <Route path="/profile" component={Profile} onEnter={requireAuth} />
        <Route path="/listings/:id" component={FullListing} onEnter={requireAuth} />
        <Route path="/addlisting" component={AddListing} onEnter={requireAuth} />
        <Route path="/listings" component={AllListings} />
        <Route path="/user/:id/ratings" component={AllRatings} onEnter={requireAuth} />
        <Route path="/user/:id/ratings/new" component={NewRating} onEnter={requireAuth} />
        <Route path="/user/:id" component={Profile} />
        <Route path="/user/:id/dashboard" component={Profile} />
        <Route path="/user/:id/inbox" component={Profile} />
        <Route path="/user/:id/settings" component={Profile} />
        <Route path="*" component={NotFound} />
      </Route>
    </Router>
  </Provider>;

export default Root;
{'fraction_non_alphanumeric': 0.16184971098265896, 'fraction_numerical': 0.0, 'mean_word_length': 4.1417142857142855, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 50, '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': '3370235', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1265, 'n_words': 305}