<commit_before>// Set up the default promise implementation as Bluebird
import Bluebird from 'bluebird'
global.Promise = Bluebird
Bluebird.config({
	warnings: {
		wForgottenReturn: false,
	},
})

// enable the regenerator runtime
import 'babel-runtime/regenerator'

// Include fetch
import 'isomorphic-fetch'

// Add debug to window
window.DEBUG = require('debug')

// Include React and react-dom.render
import React from 'react'
import {render} from 'react-dom'

// Include google analytics (in production)
import './start/analytics'

// Set up a "history" object for react-router
import history from './history'

// Kick off data loading
import loadData from './helpers/load-data'
loadData()

// Kick off the GUI
console.log('3. 2.. 1... Blast off! 🚀')

import { Router } from 'react-router'
import routes from './routes'

import configureStore from './ducks/store/configure-store'
import Root from './containers/root'
const store = configureStore()

if (PRODUCTION) {
	typeof window !== 'undefined' && (window.Perf = require('react-addons-perf'))
}

import { loadStudents } from './ducks/actions/students'
import { loadAreas } from './ducks/actions/areas'
store.dispatch(loadStudents())
store.dispatch(loadAreas())

render(
	(<Root store={store}>
		<Router history={history}>
			{routes}
		</Router>
	</Root>),
	document.getElementById('app') )
<commit_msg>move window.Perf to DEVELOPMENT only<commit_after>// Set up the default promise implementation as Bluebird
import Bluebird from 'bluebird'
global.Promise = Bluebird
Bluebird.config({
	warnings: {
		wForgottenReturn: false,
	},
})

// enable the regenerator runtime
import 'babel-runtime/regenerator'

// Include fetch
import 'isomorphic-fetch'

// Add debug to window
window.DEBUG = require('debug')

// Include React and react-dom.render
import React from 'react'
import {render} from 'react-dom'

// Include google analytics (in production)
import './start/analytics'

// Set up a "history" object for react-router
import history from './history'

// Kick off data loading
import loadData from './helpers/load-data'
loadData()

// Kick off the GUI
console.log('3. 2.. 1... Blast off! 🚀')

import { Router } from 'react-router'
import routes from './routes'

import configureStore from './ducks/store/configure-store'
import Root from './containers/root'
const store = configureStore()

if (DEVELOPMENT) {
	global.Perf = require('react-addons-perf')
}

import { loadStudents } from './ducks/actions/students'
import { loadAreas } from './ducks/actions/areas'
store.dispatch(loadStudents())
store.dispatch(loadAreas())

render(
	(<Root store={store}>
		<Router history={history}>
			{routes}
		</Router>
	</Root>),
	document.getElementById('app') )

{'fraction_non_alphanumeric': 0.13879660391288298, 'fraction_numerical': 0.0022148394241417496, 'mean_word_length': 4.324165029469548, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '50863', 'n_tokens_mistral': 862, 'n_tokens_neox': 826, 'n_words': 259}