<commit_before>module GithubService
  module Commands
    class AddReviewer < Base
      private

      def _execute(issuer:, value:)
        users = value.strip.delete('@').split(/\s*,\s*/)

        valid_users, invalid_users = users.partition { |u| valid_assignee?(u) }

        if valid_users.any?
          issue.add_reviewer(valid_users)
        end

        if invalid_users.any?
          message = "@#{issuer} Cannot add the following #{"reviewer".pluralize(invalid_users.size)} because they are not recognized: "
          message << invalid_users.join(", ")
          issue.add_comment(message)
        end<commit_msg>Living up to Dan's high standards...<commit_after>module GithubService
  module Commands
    class AddReviewer < Base
      alias_as 'request_review'

      private

      def _execute(issuer:, value:)
        users = value.strip.delete('@').split(/\s*,\s*/)

        valid_users, invalid_users = users.partition { |u| valid_assignee?(u) }

        if valid_users.any?
          issue.add_reviewer(valid_users)
        end

        if invalid_users.any?
          message = "@#{issuer} Cannot add the following #{"reviewer".pluralize(invalid_users.size)} because they are not recognized: "
          message << invalid_users.join(", ")
          issue.add_comment(message)
        end
{'fraction_non_alphanumeric': 0.11432926829268293, 'fraction_numerical': 0.0, 'mean_word_length': 2.607142857142857, 'pattern_counts': {'":': 0, '<': 9, '<?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': '517229', 'n_tokens_mistral': 393, 'n_tokens_neox': 379, 'n_words': 88}