<commit_before>module ProfileHelper
  def oauth_active_class provider
    if current_user.provider == provider.to_s
      'active'
    end
  end

  def show_profile_username_tab?
    current_user.can_change_username?
  end

  def show_profile_social_tab?
    Gitlab.config.omniauth.enabled && !current_user.ldap_user?
  end

  def show_profile_remove_tab?
    gitlab_config.signup_enabled && !current_user.ldap_user?
  end
end<commit_msg>Check if any social providers are enabled.<commit_after>module ProfileHelper
  def oauth_active_class provider
    if current_user.provider == provider.to_s
      'active'
    end
  end

  def show_profile_username_tab?
    current_user.can_change_username?
  end

  def show_profile_social_tab?
    enabled_social_providers.any? && !current_user.ldap_user?
  end

  def show_profile_remove_tab?
    gitlab_config.signup_enabled && !current_user.ldap_user?
  end
end
{'fraction_non_alphanumeric': 0.061946902654867256, 'fraction_numerical': 0.0, 'mean_word_length': 4.323529411764706, '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': '4376495', 'n_tokens_mistral': 306, 'n_tokens_neox': 298, 'n_words': 57}