<commit_before>class User < Owner
  include Skylight::Helpers
  
  # TODO Add :omniauthable
  devise :trackable, :rememberable, :omniauthable, :omniauth_providers => [:github]
  has_and_belongs_to_many :organizations, join_table: :organizations_users
  has_many :alerts
  has_many :contributions
  has_many :scrapers_contributed_to, through: :contributions, source: :scraper

  def see_downloads
    get_feature_switch_value(:see_downloads, false)
  end

  def see_downloads=(value)
    set_feature_switch_value(:see_downloads, value)
  end

  # In most cases people have contributed to the scrapers that they own so we really don't
  # want to see these twice. This method just removes their own scrapers from the list
  def other_scrapers_contributed_to
    scrapers_contributed_to - scrapers
  end

  # A list of all owners thst this user can write to. Includes itself
  def all_owners
    [self] + organizations
  end

  def reset_authorization!<commit_msg>Whitespace change only<commit_after>class User < Owner
  include Skylight::Helpers

  # TODO Add :omniauthable
  devise :trackable, :rememberable, :omniauthable, :omniauth_providers => [:github]
  has_and_belongs_to_many :organizations, join_table: :organizations_users
  has_many :alerts
  has_many :contributions
  has_many :scrapers_contributed_to, through: :contributions, source: :scraper

  def see_downloads
    get_feature_switch_value(:see_downloads, false)
  end

  def see_downloads=(value)
    set_feature_switch_value(:see_downloads, value)
  end

  # In most cases people have contributed to the scrapers that they own so we really don't
  # want to see these twice. This method just removes their own scrapers from the list
  def other_scrapers_contributed_to
    scrapers_contributed_to - scrapers
  end

  # A list of all owners thst this user can write to. Includes itself
  def all_owners
    [self] + organizations
  end

  def reset_authorization!
{'fraction_non_alphanumeric': 0.05702436495593572, 'fraction_numerical': 0.0, 'mean_word_length': 4.7957957957957955, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7275317', 'n_tokens_mistral': 630, 'n_tokens_neox': 598, 'n_words': 189}