<commit_before>import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunkMiddleware from 'redux-thunk'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
// import promise from 'redux-promise'
import createLogger from 'redux-logger'

import App from './common/containers/App'

import 'react-virtualized/styles.css'

import config from 'json!yaml!../../../config.yml'

if (config.modules.gtfsplus && config.modules.gtfsplus.enabled) {
  config.modules.gtfsplus.spec = require('json!yaml!../../../gtfsplus.yml')
}
config.modules.editor.spec = require('json!yaml!../../../gtfs.yml')

// function to require all lang files in i18n dir
function requireAll (requireContext) {
  return requireContext.keys().map(requireContext)
}
// requires and returns all modules that match
var lang = requireAll(require.context('json!yaml!../../../i18n', true, /.yml/))
// is an array containing all the matching modules
config.messages = {}
config.messages.all = lang
const languageId = window.localStorage.getItem('lang')
  ? window.localStorage.getItem('lang')
  : navigator.language || navigator.userLanguage

config.messages.active = lang.find(l => l.id === languageId) || lang.find(l => l.id === 'en-US')

console.log('config', config)
window.DT_CONFIG = config

import * as managerReducers from './manager/reducers'
import * as adminReducers from './admin/reducers'
import * as alertsReducers from './alerts/reducers'
import * as signsReducers from './signs/reducers'

import * as gtfsPlusReducers from './gtfsplus/reducers'
import * as editorReducers from './editor/reducers'
import gtfs from './gtfs/reducers'

const logger = createLogger({duration: true, collapsed: true})
const store = createStore(
  combineReducers({
    ...managerReducers,
    ...adminReducers,
    ...alertsReducers,
    ...signsReducers,
    ...gtfsPlusReducers,
    ...editorReducers,
    // ...reportReducers,
    routing: routerReducer,
    gtfs
  }),
  applyMiddleware(thunkMiddleware, logger)
)

console.log('initial store', store.getState())

const appHistory = syncHistoryWithStore(browserHistory, store)

ReactDOM.render(
  <Provider store={store}>
    <App history={appHistory} />
  </Provider>,
  document.getElementById('main'))
<commit_msg>remove lingering css import<commit_after>import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunkMiddleware from 'redux-thunk'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
// import promise from 'redux-promise'
import createLogger from 'redux-logger'

import App from './common/containers/App'

import config from 'json!yaml!../../../config.yml'

if (config.modules.gtfsplus && config.modules.gtfsplus.enabled) {
  config.modules.gtfsplus.spec = require('json!yaml!../../../gtfsplus.yml')
}
config.modules.editor.spec = require('json!yaml!../../../gtfs.yml')

// function to require all lang files in i18n dir
function requireAll (requireContext) {
  return requireContext.keys().map(requireContext)
}
// requires and returns all modules that match
var lang = requireAll(require.context('json!yaml!../../../i18n', true, /.yml/))
// is an array containing all the matching modules
config.messages = {}
config.messages.all = lang
const languageId = window.localStorage.getItem('lang')
  ? window.localStorage.getItem('lang')
  : navigator.language || navigator.userLanguage

config.messages.active = lang.find(l => l.id === languageId) || lang.find(l => l.id === 'en-US')

console.log('config', config)
window.DT_CONFIG = config

import * as managerReducers from './manager/reducers'
import * as adminReducers from './admin/reducers'
import * as alertsReducers from './alerts/reducers'
import * as signsReducers from './signs/reducers'

import * as gtfsPlusReducers from './gtfsplus/reducers'
import * as editorReducers from './editor/reducers'
import gtfs from './gtfs/reducers'

const logger = createLogger({duration: true, collapsed: true})
const store = createStore(
  combineReducers({
    ...managerReducers,
    ...adminReducers,
    ...alertsReducers,
    ...signsReducers,
    ...gtfsPlusReducers,
    ...editorReducers,
    // ...reportReducers,
    routing: routerReducer,
    gtfs
  }),
  applyMiddleware(thunkMiddleware, logger)
)

console.log('initial store', store.getState())

const appHistory = syncHistoryWithStore(browserHistory, store)

ReactDOM.render(
  <Provider store={store}>
    <App history={appHistory} />
  </Provider>,
  document.getElementById('main'))

{'fraction_non_alphanumeric': 0.14357366771159874, 'fraction_numerical': 0.001671891327063741, 'mean_word_length': 4.365470852017937, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '1272473', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1472, 'n_words': 361}