<commit_before>class MoveAuditorsToPartitions < ActiveRecord::Migration[5.2]
  tag :postdeploy

  def up
    strand_name = "partition_auditors:#{Shard.current.database_server.id}"
    DataFixup::Auditors::MigrateAuthToPartitions.send_later_if_production_enqueue_args(:run,
      priority: Delayed::LOWER_PRIORITY,
      strand: strand_name)
    DataFixup::Auditors::MigrateAuthToPartitions.send_later_if_production_enqueue_args(:run,
      priority: Delayed::LOWER_PRIORITY,
      strand: strand_name)
    DataFixup::Auditors::MigrateAuthToPartitions.send_later_if_production_enqueue_args(:run,
      priority: Delayed::LOWER_PRIORITY,
      strand: strand_name)
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end
<commit_msg>migrate ALL auditors to partitions<commit_after>class MoveAuditorsToPartitions < ActiveRecord::Migration[5.2]
  tag :postdeploy

  def up
    strand_name = "partition_auditors:#{Shard.current.database_server.id}"
    DataFixup::Auditors::MigrateAuthToPartitions.send_later_if_production_enqueue_args(:run,
      priority: Delayed::LOWER_PRIORITY,
      strand: strand_name)
    DataFixup::Auditors::MigrateCoursesToPartitions.send_later_if_production_enqueue_args(:run,
      priority: Delayed::LOWER_PRIORITY,
      strand: strand_name)
    DataFixup::Auditors::MigrateGradeChangesToPartitions.send_later_if_production_enqueue_args(:run,
      priority: Delayed::LOWER_PRIORITY,
      strand: strand_name)
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end

{'fraction_non_alphanumeric': 0.08366013071895424, 'fraction_numerical': 0.00261437908496732, 'mean_word_length': 5.927601809954751, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4226585', 'n_tokens_mistral': 533, 'n_tokens_neox': 501, 'n_words': 66}