<commit_before>import React from 'react'
import ReactDOM from 'react-dom'
import registerServiceWorker from './registerServiceWorker'
import './style/style.css'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'


import {
  BrowserRouter,
  Route,

} from 'react-router-dom'


import history from './components/common/history'

import SignIn from './components/pages/SignIn.jsx'
import SignUp from './components/pages/SignUp.jsx'

import AdminOverview from './components/views/AdminOverview'
import CreateProject from './components/views/CreateProject'
import CreateProjectByURL from './components/views/CreateProjectByURL'
import CreateProjectFromFile from './components/views/CreateProjectFromFile'
import CreateProjectChoice from './components/views/CreateProjectChoice.jsx'
import ProfileContainer from './components/views/ProfileContainer.jsx'
import ProjectContainer from './components/views/ProjectContainer'
import SearchPage from './components/views/SearchPage'
import BookmarksTable from './components/views/BookmarksTable'
import UserProjects from './components/views/UserProjects.jsx'
import SavedQueries from './components/views/SavedQueries.jsx'

import TopBar from './components/common/TopBar'
import SideBar from './components/common/SideBar'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import styles from './components/common/Styles.jsx'


var injectTapEventPlugin = require("react-tap-event-plugin")
injectTapEventPlugin()



const muiTheme = getMuiTheme(styles)




const PageRoute = ({ component: Component, path, site_path, ...rest }) => (
  <Route {...rest} path={path} render={props => (
    (
      <div className="inner-content">
        <TopBar />
        <div className="row">
          <SideBar location={site_path} />
          <div className="col-9 content">
            <Component {...props} />
          </div>
        </div>
      </div>
    )
  )}/>
)

ReactDOM.render(
  <MuiThemeProvider  muiTheme={muiTheme}>
    <BrowserRouter history={history}>
      <div>

        <PageRoute site_path="/discovery" path="/discovery/:qID" component={SearchPage} />
        <PageRoute site_path="/discovery" path="/discovery/" component={SearchPage} />
        <PageRoute site_path="/admin" path="/admin" component={AdminOverview} />
        <PageRoute site_path="/createNew" exact path="/createNew" component={CreateProject} />
        <PageRoute site_path="/createNew" path="/createByURL/:getURL" component={CreateProjectByURL} />
        <PageRoute site_path="/createNew" path="/createFromFile/:data" component={CreateProjectFromFile} />
        <PageRoute site_path="/update" path="/update/:uuid" component={CreateProject} />
        <PageRoute site_path="/createbylink" path="/createbylink" component={CreateProjectChoice} />
        <PageRoute site_path="/project" path="/project/:uuid" component={ProjectContainer} />
        <PageRoute site_path="/bookmarks" path="/bookmarks" component={BookmarksTable} />
        <PageRoute site_path="/profile" path="/profile/:email" component={ProfileContainer} />
        <PageRoute site_path="/yourprojects" path="/yourprojects" component={UserProjects} />
        <PageRoute site_path="/queries" path="/queries" component={SavedQueries} />
        <Route path="/register" component={SignUp} />
        <Route exact path="/" component={SignIn} />

     </div>
    </BrowserRouter>
  </MuiThemeProvider>
, document.getElementById('root'))
registerServiceWorker()
<commit_msg>routing not working...<commit_after>import React from 'react'
import ReactDOM from 'react-dom'
import registerServiceWorker from './registerServiceWorker'
import './style/style.css'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'


import {
  BrowserRouter,
  Route,

} from 'react-router-dom'


import history from './components/common/history'

import SignIn from './components/pages/SignIn.jsx'
import SignUp from './components/pages/SignUp.jsx'

import AdminOverview from './components/views/AdminOverview'
import CreateProject from './components/views/CreateProject'
import CreateProjectByURL from './components/views/CreateProjectByURL'
import CreateProjectFromFile from './components/views/CreateProjectFromFile'
import CreateProjectChoice from './components/views/CreateProjectChoice.jsx'
import ProfileContainer from './components/views/ProfileContainer.jsx'
import ProjectContainer from './components/views/ProjectContainer'
import SearchPage from './components/views/SearchPage'
import BookmarksTable from './components/views/BookmarksTable'
import UserProjects from './components/views/UserProjects.jsx'
import SavedQueries from './components/views/SavedQueries.jsx'

import TopBar from './components/common/TopBar'
import SideBar from './components/common/SideBar'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import styles from './components/common/Styles.jsx'


var injectTapEventPlugin = require("react-tap-event-plugin")
injectTapEventPlugin()



const muiTheme = getMuiTheme(styles)




const PageRoute = ({ component: Component, path, site_path, ...rest }) => (
  <Route {...rest} path={path} render={props => (
    (
      <div className="inner-content">
        <TopBar />
        <div className="row">
          <SideBar location={site_path} />
          <div className="col-9 content">
            <Component {...props} />
          </div>
        </div>
      </div>
    )
  )}/>
)

ReactDOM.render(
  <MuiThemeProvider  muiTheme={muiTheme}>
    <BrowserRouter history={history}>
      <div>

        <PageRoute site_path="/discovery" path="/discovery/:qID" component={SearchPage} />
        <PageRoute site_path="/discovery" path="/discovery/" component={SearchPage} />
        <PageRoute site_path="/admin" path="/admin" component={AdminOverview} />
        <PageRoute site_path="/createNew" exact path="/createNew" component={CreateProject} />
        <PageRoute site_path="/createNew" path="/createByURL/:getURL" component={CreateProjectByURL} />
        <PageRoute site_path="/createNew" path="/createFromFile/:data" component={CreateProjectFromFile} />
        <PageRoute site_path="/update" path="/update/:uuid" component={CreateProject} />
        <PageRoute site_path="/createbylink" path="/createbylink" component={CreateProjectChoice} />
        <PageRoute site_path="/project" path="/project/:uuid" component={ProjectContainer} />
        <PageRoute site_path="/bookmarks" path="/bookmarks" component={BookmarksTable} />
        <PageRoute site_path="/profile" path="/profile/:email" component={ProfileContainer} />
        <PageRoute site_path="/yourprojects" path="/yourprojects" component={UserProjects} />
        <PageRoute site_path="/queries" path="/queries" component={SavedQueries} />
        <Route path="/register" component={SignUp} />
        <Route exact path="/" component={SignIn} />
     </div>
    </BrowserRouter>
  </MuiThemeProvider>
, document.getElementById('root'))
registerServiceWorker()

{'fraction_non_alphanumeric': 0.13963186655162496, 'fraction_numerical': 0.0002876042565429968, 'mean_word_length': 4.272934040940106, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 69, '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': '3345204', 'n_tokens_mistral': 1925, 'n_tokens_neox': 1906, 'n_words': 400}