<commit_before>'use strict'

var React = require('react')
var ReactRouter = require('react-router')

var App = require('./app.js')
var Signin = require('./components/signin.js')

var Router = ReactRouter.Router
var Route = ReactRouter.Route

module.exports = function (h, onUpdate) {

  onUpdate = onUpdate || function noop () {}

  return (
    <Router history={h} onUpdate={onUpdate}>
      <Route component={App}>
        <Route path='/' component={Signin} />
        <Route path='/signin' component={Signin} />
      </Route>
    </Router>
  )
}<commit_msg>Reduxify open component so that redux-form can be used for sign up.<commit_after>'use strict'

var React = require('react')
var { Router, Route, hashHistory } = require('react-router')
var { createStore, applyMiddleware, compose } = require('redux')
var { Provider } = require('react-redux')
import future from 'redux-future'

var App = require('./app.js')
var Signin = require('./components/signin.js')

// require().default is used here because the originating files use 'export default'
// to expose their contents rather than 'module.exports'

var Signup = require('./components/signup.js').default
var reducer = require('./redux/reducer.js').default

var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
var store = createStore(reducer, {}, composeEnhancers(applyMiddleware(future)))

module.exports = () => {
  return (
    <Provider store={store}>
      <Router history={hashHistory}>
        <Route component={App}>
          <Route path='/' component={Signin} />
          <Route path='/signin' component={Signin} />
          <Route path='/signup' component={Signup} />
        </Route>
      </Router>
    </Provider>
  )
}
{'fraction_non_alphanumeric': 0.15232558139534882, 'fraction_numerical': 0.0, 'mean_word_length': 3.7938718662952646, 'pattern_counts': {'":': 0, '<': 18, '<?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': '4767861', 'n_tokens_mistral': 515, 'n_tokens_neox': 504, 'n_words': 133}