+auth = require '../../api/auth'
 React = require 'react'
 TitleMixin = require '../../lib/title-mixin'
 HandlePropChanges = require '../../lib/handle-prop-changes'

      console?.log 'Saved classification', classification.id
      # After saving, remove the classification resource from the local cache.
      classification.destroy()

  loadAnotherSubject: ->
    @getCurrentWorkflowID(@props).then (workflowID) =>

animatedScrollTo = require 'animated-scrollto'
counterpart = require 'counterpart'
Classifier = require '../../classifier'
alert = require '../../lib/alert'

PROMPT_TO_SIGN_IN_AFTER = [5, 10, 25, 50, 100, 250, 500]

SKIP_CELLECT = location.search.match(/\Wcellect=0(?:\W|$)/)?

if SKIP_CELLECT
  console?.warn 'Intelligent subject selection disabled'

classificationsThisSession = 0

auth.listen ->
  classificationsThisSession = 0

# Map each project ID to a promise of its last randomly-selected workflow ID.
# This is to maintain the same random workflow for each project when none is specified by the user.
