<commit_before>module ApplicationHelper

  def title(title, tag=nil)
    title = h(title)
    @title.unshift title
    content_tag(tag, title) if tag
  end

  def h1(str)
    title(str, :h1)
  end

  def feed(title, link=nil)
    link ||= { :format => :atom }
    @feeds[link] = title
  end

  def meta_for(content)
    @author      = content.node.user.try(:name)
    @keywords    = content.node.popular_tags.map &:name
    @description = content.title
    @dont_index  = content.node.score < 0
  end

end<commit_msg>Do not reset the dont_index flag if it was already set<commit_after>module ApplicationHelper

  def title(title, tag=nil)
    title = h(title)
    @title.unshift title
    content_tag(tag, title) if tag
  end

  def h1(str)
    title(str, :h1)
  end

  def feed(title, link=nil)
    link ||= { :format => :atom }
    @feeds[link] = title
  end

  def meta_for(content)
    @author      = content.node.user.try(:name)
    @keywords    = content.node.popular_tags.map &:name
    @description = content.title
    @dont_index  = true if content.node.score < 0
  end

end
{'fraction_non_alphanumeric': 0.11634349030470914, 'fraction_numerical': 0.00554016620498615, 'mean_word_length': 2.9133574007220218, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '647948', 'n_tokens_mistral': 395, 'n_tokens_neox': 380, 'n_words': 95}