<commit_before>module UsersHelper
  def follow_user_button(user, size_classes = "tiny expand")
    if user_signed_in? && user != current_user
      if current_user.following?(user)
        following = current_user.follower_followings.find_by(followee_id: user.id)
        link_to following_path(following), method: :delete, class: "button unfollow alert #{size_classes}" do
          t("followings.unfollow")
        end
      else
        link_to user_followings_path(user.username), method: :post, class: "button follow secondary #{size_classes}" do
          t("followings.follow")
        end
      end
    end
  end
end<commit_msg>Remove follow button in share mode<commit_after>module UsersHelper
  def follow_user_button(user, size_classes = "tiny expand")
    if user_signed_in? && user != current_user && !share_mode
      if current_user.following?(user)
        following = current_user.follower_followings.find_by(followee_id: user.id)
        link_to following_path(following), method: :delete, class: "button unfollow alert #{size_classes}" do
          t("followings.unfollow")
        end
      else
        link_to user_followings_path(user.username), method: :post, class: "button follow secondary #{size_classes}" do
          t("followings.follow")
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09403669724770643, 'fraction_numerical': 0.0, 'mean_word_length': 3.3926174496644297, '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': '3682440', 'n_tokens_mistral': 385, 'n_tokens_neox': 380, 'n_words': 95}