<commit_before>class StoaPlugin::PersonApi < Noosfero::FieldsDecorator
  def username
    user.login
  end

  def nusp
    usp_id
  end

  def first_name
    name.split(' ').first
  end

  def surname
    name.split(' ',2).last
  end

  def homepage
    context.url_for(url)
  end
<commit_msg>stoa-api: return birth_date on iso8601 format<commit_after>class StoaPlugin::PersonApi < Noosfero::FieldsDecorator
  def username
    user.login
  end

  def nusp
    usp_id
  end

  def first_name
    name.split(' ').first
  end

  def surname
    name.split(' ',2).last
  end

  def homepage
    context.url_for(url)
  end

  def birth_date
    object.birth_date.strftime('%F')
  end

{'fraction_non_alphanumeric': 0.08689248895434462, 'fraction_numerical': 0.008836524300441826, 'mean_word_length': 2.9080459770114944, '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': '4764834', 'n_tokens_mistral': 265, 'n_tokens_neox': 242, 'n_words': 59}