<commit_before>require 'pavlov'

module Commands
  module Users
    class FollowUser
      include Pavlov::Command

      arguments :graph_user_id, :user_to_follow_graph_user_id

      def execute
        user_following_users = UserFollowingUsers.new(graph_user_id)
        user_following_users.follow user_to_follow_graph_user_id
      end

      def validate
        validate_integer_string :graph_user_id, graph_user_id
        validate_integer_string :user_to_follow_graph_user_id, user_to_follow_graph_user_id
      end
    end
  end
end
<commit_msg>we don't use ivars anymore<commit_after>require 'pavlov'

module Commands
  module Users
    class FollowUser
      include Pavlov::Command

      arguments :graph_user_id, :user_to_follow_graph_user_id

      def execute
        user_following_users.follow user_to_follow_graph_user_id
      end

      def user_following_users
        UserFollowingUsers.new(graph_user_id)
      end

      def validate
        validate_integer_string :graph_user_id, graph_user_id
        validate_integer_string :user_to_follow_graph_user_id, user_to_follow_graph_user_id
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.03327495621716287, 'fraction_numerical': 0.0, 'mean_word_length': 3.4474708171206228, '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': '2884757', 'n_tokens_mistral': 366, 'n_tokens_neox': 351, 'n_words': 70}