<commit_before>module FriendshipMacros
  def create_request(friendable, friend)
    Friendship.create(friendable_id: friendable.id, friendable_type: friendable.class.base_class.name, friend_id: friend.id, status: 'pending')
    Friendship.create(friendable_id: friend.id, friendable_type: friend.class.base_class.name, friend_id: friendable.id, status: 'requested')
  end

  def create_friendship(friendable, friend)
    Friendship.create(friendable_id: friendable.id, friendable_type: friendable.class.base_class.name, friend_id: friend.id, status: 'accepted')
    Friendship.create(friendable_id: friend.id, friendable_type: friend.class.base_class.name, friend_id: friendable.id, status: 'accepted')
  end

  def find_friendship_record(friendable, friend)
    Friendship.find_by(friendable_id: friendable.id, friendable_type: friendable.class.base_class.name, friend_id: friend.id)
  end
end<commit_msg>Update Macros to use HasFriendship::Friendship rather than Friendship<commit_after>module FriendshipMacros
  def create_request(friendable, friend)
    HasFriendship::Friendship.create(friendable_id: friendable.id, friendable_type: friendable.class.base_class.name, friend_id: friend.id, status: 'pending')
    HasFriendship::Friendship.create(friendable_id: friend.id, friendable_type: friend.class.base_class.name, friend_id: friendable.id, status: 'requested')
  end

  def create_friendship(friendable, friend)
    HasFriendship::Friendship.create(friendable_id: friendable.id, friendable_type: friendable.class.base_class.name, friend_id: friend.id, status: 'accepted')
    HasFriendship::Friendship.create(friendable_id: friend.id, friendable_type: friend.class.base_class.name, friend_id: friendable.id, status: 'accepted')
  end

  def find_friendship_record(friendable, friend)
    HasFriendship::Friendship.find_by(friendable_id: friendable.id, friendable_type: friendable.class.base_class.name, friend_id: friend.id)
  end
end
{'fraction_non_alphanumeric': 0.10190427174472465, 'fraction_numerical': 0.0, 'mean_word_length': 7.1, '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': '5979984', 'n_tokens_mistral': 623, 'n_tokens_neox': 618, 'n_words': 112}