<commit_before>class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :validatable, :lockable, :timeoutable and :omniauthable

  # for later: :registerable,
  devise :recoverable, :rememberable, :trackable

  delegate :full_name, :nickname, :mail, to: :ldap_user

  def ldap_user
    @ldap_user ||= LdapUser.find(cid)
  end

  def method_missing(meth)
    ldap_user.send(meth)
  end

  attr_accessor :email, :password

  alias_method :email, :mail
end<commit_msg>changed delegations in user<commit_after>class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :validatable, :lockable, :timeoutable and :omniauthable

  # for later: :registerable,
  devise :recoverable, :rememberable, :trackable

  def ldap_user
    @ldap_user ||= LdapUser.find(cid)
  end

  def method_missing(meth)
    ldap_user.send(meth)
  end

  attr_accessor :email, :password
end
{'fraction_non_alphanumeric': 0.09906152241918666, 'fraction_numerical': 0.0, 'mean_word_length': 4.818181818181818, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6494109', 'n_tokens_mistral': 337, 'n_tokens_neox': 318, 'n_words': 83}