<commit_before>React = require 'react'
BS = require 'react-bootstrap'
moment = require 'moment'
classnames = require 'classnames'

Icon = require '../icon'
{TaskStore} = require '../../flux/task'


module.exports = React.createClass
  displayName: 'CenterControls'
  contextTypes:
    router: React.PropTypes.func

  componentDidMount: ->
    TaskStore.on('change', @update)

  update: ->
    @setState(updateOnNext: true)<commit_msg>no more extra set state on unmounted method warnings in specs<commit_after>React = require 'react'
BS = require 'react-bootstrap'
moment = require 'moment'
classnames = require 'classnames'

Icon = require '../icon'
{TaskStore} = require '../../flux/task'


module.exports = React.createClass
  displayName: 'CenterControls'
  contextTypes:
    router: React.PropTypes.func

  componentDidMount: ->
    TaskStore.on('change', @update)

  componentWillUnmount: ->
    TaskStore.off('change', @update)

  update: ->
    @setState(updateOnNext: true)
{'fraction_non_alphanumeric': 0.1345565749235474, 'fraction_numerical': 0.0, 'mean_word_length': 4.223404255319149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1072969', 'n_tokens_mistral': 299, 'n_tokens_neox': 292, 'n_words': 74}