<commit_before>class NavigationItemDecorator < Draper::Decorator
  delegate_all

  def label
    if object.translation.label.present?
      object.translation.label

    elsif object.page.present?
      object.page.translation.title

    else
      ''
    end
  end

  def path
  end
end
<commit_msg>Refactor.<commit_after>class NavigationItemDecorator < Draper::Decorator
  delegate_all

  def label
    result = ''
    result = object.translation.label if object.translation.label
    result = object.page.translation.title if object.page && result.blank?
    result
  end

  def path
  end
end

{'fraction_non_alphanumeric': 0.07370184254606366, 'fraction_numerical': 0.0, 'mean_word_length': 3.095890410958904, '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': '4728772', 'n_tokens_mistral': 187, 'n_tokens_neox': 176, 'n_words': 41}