<commit_before>class Person < ActiveRecord::Base
  belongs_to :ward
  has_many :phones, as: :phoneable
  has_one :avatar, as: :imageable

  MALE   = 1
  FEMALE = 2

  def age
    now = Time.now.utc.to_date
    now.year - self.birthday.year - (
      (now.month > self.birthday.month ||<commit_msg>[add] full_name method to person entity<commit_after>class Person < ActiveRecord::Base
  belongs_to :ward
  has_many :phones, as: :phoneable
  has_one :avatar, as: :imageable

  MALE   = 1
  FEMALE = 2

  # Returns the person's full name
  def full_name
    self.name + " " + self.last_name
  end

  # Returns the current person's age
  def age
    now = Time.now.utc.to_date
    now.year - self.birthday.year - (
      (now.month > self.birthday.month ||
{'fraction_non_alphanumeric': 0.10638297872340426, 'fraction_numerical': 0.005319148936170213, 'mean_word_length': 2.963157894736842, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4851383', 'n_tokens_mistral': 284, 'n_tokens_neox': 269, 'n_words': 70}