<commit_before>$: << File.expand_path('../', __FILE__)

require 'devise'
require 'devise_imap_authenticatable/strategy'
require 'devise_imap_authenticatable/model'
require 'devise_imap_authenticatable/adapter'
require 'devise_imap_authenticatable/version'

module Devise

  # IMAP server address for authentication.
  mattr_accessor :imap_server
  @@imap_server = nil

  mattr_accessor :imap_host
  @@imap_host = 'localhost'

  mattr_accessor :imap_port
  @@imap_port = 143

  mattr_accessor :imap_ssl
  @@imap_ssl = false

  mattr_accessor :imap_mechanism
  @@imap_mechanism = "login"
end

# Add imap_authenticatable module
Devise.add_module :imap_authenticatable,
  :route      => :session,
  :strategy   => true,
  :controller => :sessions,
  :model      => 'devise_imap_authenticatable/model'<commit_msg>Cleaning up cattr accessors.<commit_after>$: << File.expand_path('../', __FILE__)

require 'devise'
require 'devise_imap_authenticatable/strategy'
require 'devise_imap_authenticatable/model'
require 'devise_imap_authenticatable/adapter'
require 'devise_imap_authenticatable/version'

module Devise

  # IMAP Host address for authentication.
  mattr_accessor :imap_host
  @@imap_host = 'localhost'

  # IMAP Host address for authentication.
  mattr_accessor :imap_port
  @@imap_port = 143

  # Use SSL for IMAP for authentication.
  mattr_accessor :imap_ssl
  @@imap_ssl = false

  mattr_accessor :imap_mechanism
  @@imap_mechanism = "login"
end

# Add imap_authenticatable module
Devise.add_module :imap_authenticatable,
  :route      => :session,
  :strategy   => true,
  :controller => :sessions,
  :model      => 'devise_imap_authenticatable/model'
{'fraction_non_alphanumeric': 0.0970464135021097, 'fraction_numerical': 0.003616636528028933, 'mean_word_length': 5.2406015037593985, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '108473', 'n_tokens_mistral': 613, 'n_tokens_neox': 574, 'n_words': 117}