<commit_before>import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { ADMIN_PREFIX } from './constants';

import App from './containers/App';
import Configuration from './containers/views/Configuration';
import Pages from './containers/views/Pages';
import PageEdit from './containers/views/PageEdit';
import PageNew from './containers/views/PageNew';
import Documents from './containers/views/Documents';
import DocumentEdit from './containers/views/DocumentEdit';
import DocumentNew from './containers/views/DocumentNew';
import NotFound from './containers/views/NotFound';

export default (
  <Route path={`${ADMIN_PREFIX}`} component={App}>
    <IndexRoute component={Pages}/>
    <Route path="configuration" component={Configuration} />
    <Route path="pages" component={Pages} />
    <Route path="pages/:id" component={PageEdit} />
    <Route path="page/new" component={PageNew} />
    <Route path="collections/:collection_name" component={Documents} />
    <Route path="collections/:collection_name/:id" component={DocumentEdit} />
    <Route path="collection/:collection_name/new" component={DocumentNew} /> // check collection exists
    <Route path={`${ADMIN_PREFIX}/*`} component={NotFound} />
  </Route>
);<commit_msg>add routes<commit_after>import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { ADMIN_PREFIX } from './constants';

import App from './containers/App';
import Configuration from './containers/views/Configuration';
import Pages from './containers/views/Pages';
import PageEdit from './containers/views/PageEdit';
import PageNew from './containers/views/PageNew';
import Documents from './containers/views/Documents';
import DocumentEdit from './containers/views/DocumentEdit';
import DocumentNew from './containers/views/DocumentNew';
import DataFiles from './containers/views/DataFiles';
import DataFileEdit from './containers/views/DataFileEdit';
import DataFileNew from './containers/views/DataFileNew';
import NotFound from './containers/views/NotFound';

export default (
  <Route path={`${ADMIN_PREFIX}`} component={App}>
    <IndexRoute component={Pages}/>
    <Route path="configuration" component={Configuration} />
    <Route path="pages" component={Pages} />
    <Route path="pages/:id" component={PageEdit} />
    <Route path="page/new" component={PageNew} />
    <Route path="collections/:collection_name" component={Documents} />
    <Route path="collections/:collection_name/:id" component={DocumentEdit} />
    <Route path="collection/:collection_name/new" component={DocumentNew} /> // check collection exists
    <Route path="datafiles" component={DataFiles} />
    <Route path="datafiles/:data_file" component={DataFileEdit} />
    <Route path="datafiles/:data_file/new" component={DataFileNew} />
    <Route path={`${ADMIN_PREFIX}/*`} component={NotFound} />
  </Route>
);
{'fraction_non_alphanumeric': 0.1571279916753382, 'fraction_numerical': 0.0, 'mean_word_length': 5.380530973451328, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '4610120', 'n_tokens_mistral': 791, 'n_tokens_neox': 796, 'n_words': 190}