<commit_before>module BasePageHelper

  def public_line
    if current_user.may?(:admin, @page)
      li_id = 'public_li'
      checkbox_id = 'public_checkbox'
      checked = @page.public? || @page.public_requested?
      url = {:controller => 'base_page/participation',:action => 'update_public', :page_id => @page.id, :public => (!checked).to_s}
      if !@page.public_requested?
        checkbox_line = sidebar_checkbox(I18n.t(:page_make_public_link), checked, url, li_id, checkbox_id, :title => I18n.t(:public_checkbox_help))
      elsif !@page.public?
        checkbox_line = sidebar_checkbox(I18n.t(:page_make_public_pending_link), checked, url, li_id, checkbox_id, :title => I18n.t(:public_checkbox_help))
      end
      content_tag :li, checkbox_line, :id => li_id, :class => 'small_icon'
    end
  end

  def public_requested_line
    return 'public (pending)'
  end
end<commit_msg>commented helpers in that break public<commit_after>module BasePageHelper

  # def public_line
  #   if current_user.may?(:admin, @page)
  #     li_id = 'public_li'
  #     checkbox_id = 'public_checkbox'
  #     checked = @page.public? || @page.public_requested?
  #     url = {:controller => 'base_page/participation',:action => 'update_public', :page_id => @page.id, :public => (!checked).to_s}
  #     if !@page.public_requested?
  #       checkbox_line = sidebar_checkbox(I18n.t(:page_make_public_link), checked, url, li_id, checkbox_id, :title => I18n.t(:public_checkbox_help))
  #     elsif !@page.public?
  #       checkbox_line = sidebar_checkbox(I18n.t(:page_make_public_pending_link), checked, url, li_id, checkbox_id, :title => I18n.t(:public_checkbox_help))
  #     end
  #     content_tag :li, checkbox_line, :id => li_id, :class => 'small_icon'
  #   end
  # end

  # def public_requested_line
  #   return 'public (pending)'
  # end
end
{'fraction_non_alphanumeric': 0.13495934959349593, 'fraction_numerical': 0.008672086720867209, 'mean_word_length': 4.057534246575343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '1880996', 'n_tokens_mistral': 670, 'n_tokens_neox': 637, 'n_words': 122}