<commit_before>module SocialLogin
  module ActsAsSocialUser
    extend ActiveSupport::Concern

    included do

      def friends_that_use_the_app
        remote_ids = services.map(&:friend_ids).flatten.map(&:to_s)
        self.class.joins(:services).where('social_login_services.remote_id IN (?)', remote_ids)<commit_msg>Move remote_ids into its own method so apps can create their own queries if they like<commit_after>module SocialLogin
  module ActsAsSocialUser
    extend ActiveSupport::Concern

    included do

      def friends_that_use_the_app
        self.class.joins(:services).where('social_login_services.remote_id IN (?)', remote_ids)
      end

      def remote_ids
        remote_ids = services.map(&:friend_ids).flatten.map(&:to_s)
{'fraction_non_alphanumeric': 0.0855614973262032, 'fraction_numerical': 0.0, 'mean_word_length': 4.13013698630137, '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': '6187732', 'n_tokens_mistral': 232, 'n_tokens_neox': 219, 'n_words': 47}