<commit_before>unless Admin.exists?
  admin_args = {
    email: "<EMAIL>",
    password: <PASSWORD>",
    first_name: "First name",
    last_name: "Last name",
    confirmed_at: DateTime.now
  }

  Admin.create!(admin_args)
end

unless Assessor.exists?
  assessor_args = {
    email: "<EMAIL>",
    password: <PASSWORD>",
    first_name: "First name",
    last_name: "Last name",
    confirmed_at: DateTime.now
  }

  Assessor.create!(assessor_args)
end

roles = ["lead", "regular", "none"]
awards = ["trade", "innovation", "development", "promotion"]

awards.each do |award|
  roles.each do |role|
    assessor_args = {
      email: "#{<EMAIL>",
      first_name: "#{role}-assessor",
      last_name: "#{award}",
      confirmed_at: DateTime.now
    }
    role_args = {
      "#{award}_role" => (role == "none" ? nil : role)
    }

    assessor_args.merge!(role_args)

    a = Assessor.where(assessor_args).first_or_initialize
    a.password = <PASSWORD>"
    a.save!<commit_msg>[DB SEEDS] added mobility assessors<commit_after>unless Admin.exists?
  admin_args = {
    email: "<EMAIL>",
    password: <PASSWORD>",
    first_name: "First name",
    last_name: "Last name",
    confirmed_at: DateTime.now
  }

  Admin.create!(admin_args)
end

unless Assessor.exists?
  assessor_args = {
    email: "<EMAIL>",
    password: <PASSWORD>",
    first_name: "First name",
    last_name: "Last name",
    confirmed_at: DateTime.now
  }

  Assessor.create!(assessor_args)
end

roles = ["lead", "regular", "none"]
awards = ["trade", "innovation", "development", "promotion", "mobility"]

awards.each do |award|
  roles.each do |role|
    assessor_args = {
      email: <EMAIL>",
      first_name: "#{role}-assessor",
      last_name: "#{award}",
      confirmed_at: DateTime.now
    }
    role_args = {
      "#{award}_role" => (role == "none" ? nil : role)
    }

    assessor_args.merge!(role_args)

    a = Assessor.where(assessor_args).first_or_initialize
    a.password = <PASSWORD>"
    a.save!
{'fraction_non_alphanumeric': 0.15770969362129583, 'fraction_numerical': 0.0, 'mean_word_length': 3.3304347826086955, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '1814022', 'n_tokens_mistral': 730, 'n_tokens_neox': 718, 'n_words': 144}