<commit_before>class Identity < ApplicationRecord
  belongs_to :user
  belongs_to :repository_user
  validates_presence_of :uid, :provider

  scope :viewable, -> { where(provider: ['github', 'gitlab', 'bitbucket']) }<commit_msg>Pull visible identity provider types into constant<commit_after>class Identity < ApplicationRecord
  belongs_to :user
  belongs_to :repository_user
  validates_presence_of :uid, :provider

  VIEWABLE_PROVIDERS = ['github', 'gitlab', 'bitbucket']

  scope :viewable, -> { where(provider: VIEWABLE_PROVIDERS) }
{'fraction_non_alphanumeric': 0.10634328358208955, 'fraction_numerical': 0.0, 'mean_word_length': 6.563380281690141, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5862854', 'n_tokens_mistral': 165, 'n_tokens_neox': 163, 'n_words': 40}