<commit_before>Gitlab::Seeder.quiet do
  emoji = Gitlab::AwardEmoji.emojis.keys

  Issue.all.each do |issue|
    project = issue.project

    project.team.users.sample(2) do |user|
      issue.create_award_emoji(emoji.sample, user)

      note = issue.notes.sample
      note.create_award_emoji(emoji.sample, user)
      print '.'
    end
  end

  MergeRequest.all.each do |mr|
    project = mr.project

    project.team.users.sample(2).each do |user|
      mr.create_award_emoji(emoji.sample, user)

      note = mr.notes.sample
      note.create_award_emoji(emoji.sample, user)
      print '.'
    end
  end
end
<commit_msg>Skip system notes from receiving award emoji<commit_after>Gitlab::Seeder.quiet do
  emoji = Gitlab::AwardEmoji.emojis.keys

  Issue.all.each do |issue|
    project = issue.project

    project.team.users.sample(2) do |user|
      issue.create_award_emoji(emoji.sample, user)

      issue.notes.sample(2).each do |note|
        next if note.system?
        note.create_award_emoji(emoji.sample, user)
      end

      print '.'
    end
  end

  MergeRequest.all.each do |mr|
    project = mr.project

    project.team.users.sample(2).each do |user|
      mr.create_award_emoji(emoji.sample, user)

      mr.notes.sample(2).each do |note|
        next if note.system?
        note.create_award_emoji(emoji.sample, user)
      end

      print '.'
    end
  end
end

{'fraction_non_alphanumeric': 0.10943124550035997, 'fraction_numerical': 0.004319654427645789, 'mean_word_length': 2.648293963254593, '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': '920296', 'n_tokens_mistral': 514, 'n_tokens_neox': 493, 'n_words': 94}