<commit_before>class EventParentMigrator
  def self.migrate_some_groups(num = 100)
    FormalGroup.where("not(features ? 'nested_comments')").order("id DESC").limit(num) do |group|
      EventParentMigrator.delay(priority: 1000).migrate_group_id!(group.id)
    end
  end

  def self.migrate_group_id!(group_id)
    group = FormalGroup.find group_id
    return if group.features['nested_comments']
    assign_surface_comment_parents(group)
    assign_reply_comment_parents(group)
    assign_edit_parents(group)<commit_msg>im a bad coder<commit_after>class EventParentMigrator
  def self.migrate_some_groups(num = 100)
    FormalGroup.where("not(features ? 'nested_comments')").order("id DESC").limit(num).each do |group|
      EventParentMigrator.delay(priority: 1000).migrate_group_id!(group.id)
    end
  end

  def self.migrate_group_id!(group_id)
    group = FormalGroup.find group_id
    return if group.features['nested_comments']
    assign_surface_comment_parents(group)
    assign_reply_comment_parents(group)
    assign_edit_parents(group)
{'fraction_non_alphanumeric': 0.10209923664122138, 'fraction_numerical': 0.013358778625954198, 'mean_word_length': 5.515527950310559, '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': '7470559', 'n_tokens_mistral': 356, 'n_tokens_neox': 344, 'n_words': 52}