 Classifier = require '../../classifier'
 alert = require '../../lib/alert'
 SignInPrompt = require '../../partials/sign-in-prompt'
+sessionSubjects = require '../../lib/session-subjects'
 
 PROMPT_TO_SIGN_IN_AFTER = [5, 10, 25, 50, 100, 250, 500]
-
-sessionSubjects = require '../../lib/session-subjects'
 
 SKIP_CELLECT = location.search.match(/\Wcellect=0(?:\W|$)/)?
 

currentClassifications =
  forWorkflow: {}

# Quere up subjects to classify here.
# TODO: Should we clear this on sign-in and -out?
upcomingSubjects =
  forWorkflow: {}

        throw new Error "No workflow #{workflowID} for project #{project.id}"
      workflow

  getNextSubject: (project, workflow, subjectSet) ->
    # console.log 'Getting next subject for', workflow.id
    # Make sure a list of subjects exists for this workflow.
    upcomingSubjects.forWorkflow[workflow.id] ?= []
