<commit_before>module CleverIntegration::SignUp::SubMain

  # we have to send district_success, district_failure, user_success, user_failure back to controller

  def self.run(auth_hash, requesters)
    result = send(auth_hash[:info][:user_type],
                  auth_hash,
                  requesters)
    result
  end

  private

  def self.district(auth_hash, requesters)
    result = CleverIntegration::SignUp::CleverDistrict.run(auth_hash)
    result
  end

  def self.teacher(auth_hash, requesters)
    result = CleverIntegration::SignUp::Teacher.run(auth_hash, requesters)
    result
  end

  def self.student(auth_hash, requesters)
    result = CleverIntegration::SignUp::Student.run(auth_hash)
    result
  end
end
<commit_msg>add case statement with catchall to clever integration<commit_after>module CleverIntegration::SignUp::SubMain

  # we have to send district_success, district_failure, user_success, user_failure back to controller

  def self.run(auth_hash, requesters)
    case auth_hash[:info][:user_type]
    when 'district'
      result = self.district(auth_hash, requesters)
    when 'student'
      result = self.district(auth_hash, requesters)
    else
      result = self.teacher(auth_hash, requesters)
    end
    result
  end

  private

  def self.district(auth_hash, requesters)
    result = CleverIntegration::SignUp::CleverDistrict.run(auth_hash)
    result
  end

  def self.teacher(auth_hash, requesters)
    result = CleverIntegration::SignUp::Teacher.run(auth_hash, requesters)
    result
  end

  def self.student(auth_hash, requesters)
    result = CleverIntegration::SignUp::Student.run(auth_hash)
    result
  end

end

{'fraction_non_alphanumeric': 0.0842358604091456, 'fraction_numerical': 0.0, 'mean_word_length': 4.054711246200608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1373985', 'n_tokens_mistral': 549, 'n_tokens_neox': 509, 'n_words': 112}