<commit_before>React = require 'react'
isEmpty = require 'lodash/isEmpty'
isEqual = require 'lodash/isEqual'
partial = require 'lodash/partial'
without = require 'lodash/without'
classnames = require 'classnames'
Notifications = require '../../model/notifications'

# Keep in sync with keys on model/notifications
TYPES =
  system: require './system'
  accounts: require './email'
  "#{Notifications.POLLING_TYPES.MISSING_STUDENT_ID}": require './missing-student-id'
  "#{Notifications.POLLING_TYPES.COURSE_HAS_ENDED}":   require './course-has-ended'

NotificationBar = React.createClass

  propTypes:
    callbacks: React.PropTypes.object.isRequired
    displayAfter: React.PropTypes.number
    className: React.PropTypes.string

  getDefaultProps: ->
    displayAfter: 500

  getInitialState: ->
    notices: []

  componentWillMount: ->
    Notifications.on('change', @onChange)<commit_msg>remove unused isEqual<commit_after>React = require 'react'
isEmpty = require 'lodash/isEmpty'
partial = require 'lodash/partial'
without = require 'lodash/without'
classnames = require 'classnames'
Notifications = require '../../model/notifications'

# Keep in sync with keys on model/notifications
TYPES =
  system: require './system'
  accounts: require './email'
  "#{Notifications.POLLING_TYPES.MISSING_STUDENT_ID}": require './missing-student-id'
  "#{Notifications.POLLING_TYPES.COURSE_HAS_ENDED}":   require './course-has-ended'

NotificationBar = React.createClass

  propTypes:
    callbacks: React.PropTypes.object.isRequired
    displayAfter: React.PropTypes.number
    className: React.PropTypes.string

  getDefaultProps: ->
    displayAfter: 500

  getInitialState: ->
    notices: []

  componentWillMount: ->
    Notifications.on('change', @onChange)
{'fraction_non_alphanumeric': 0.12166003411028994, 'fraction_numerical': 0.0034110289937464467, 'mean_word_length': 4.569620253164557, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 9, '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': '3621497', 'n_tokens_mistral': 553, 'n_tokens_neox': 544, 'n_words': 114}