<commit_before>module SmartTitles
  module Helper
    MISSING_TRANSLATION = 0
  
    def page_title(default = nil)
      title if @page_title.nil?
      @page_title != MISSING_TRANSLATION ? @page_title : default
    end

    def title(str = nil)
      if str.nil?
        str = t('.title')
        @page_title = t('.title', :default => [:title, MISSING_TRANSLATION])
      else
        @page_title = str
      end
      content_tag(:h1, str)
    end
  end
end
<commit_msg>Whitespace<commit_after>module SmartTitles
  module Helper
    MISSING_TRANSLATION = 0

    def page_title(default = nil)
      title if @page_title.nil?
      @page_title != MISSING_TRANSLATION ? @page_title : default
    end

    def title(str = nil)
      if str.nil?
        str = t('.title')
        @page_title = t('.title', :default => [:title, MISSING_TRANSLATION])
      else
        @page_title = str
      end
      content_tag(:h1, str)
    end
  end
end

{'fraction_non_alphanumeric': 0.10223642172523961, 'fraction_numerical': 0.004259850905218318, 'mean_word_length': 2.369175627240143, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1330229', 'n_tokens_mistral': 328, 'n_tokens_neox': 320, 'n_words': 76}