<commit_before># These helper methods can be called in templates to set variables to be used in
# the layout.
module LayoutHelper
  def title(page_title, show_title = true)
    content_for(:title) { h(page_title.to_s) }
    @show_title = show_title
  end
  
  def show_title?
    @show_title
  end
  
  def stylesheet(*args)
    args = args.map { |arg| h(arg.to_s) }
    content_for(:head) { stylesheet_link_tag(*args) }
  end
  
  def javascript(*args)
    args = args.map { |arg| arg == :defaults ? arg : h(arg.to_s) }
    content_for(:head) { javascript_include_tag(*args) }
  end

  def strip_html(text)
    text.gsub(/<\/?[^>]*>/, "").gsub(/&[^;]*;/, "")
  end
end<commit_msg>Disabled the stylesheet function for views.<commit_after># These helper methods can be called in templates to set variables to be used in
# the layout.
module LayoutHelper
  def title(page_title, show_title = true)
    content_for(:title) { h(page_title.to_s) }
    @show_title = show_title
  end
  
  def show_title?
    @show_title
  end
  
  def stylesheet(*args)
    #args = args.map { |arg| h(arg.to_s) }
    #content_for(:head) { stylesheet_link_tag(*args) }
  end
  
  def javascript(*args)
    args = args.map { |arg| arg == :defaults ? arg : h(arg.to_s) }
    content_for(:head) { javascript_include_tag(*args) }
  end

  def strip_html(text)
    text.gsub(/<\/?[^>]*>/, "").gsub(/&[^;]*;/, "")
  end
end
{'fraction_non_alphanumeric': 0.148493543758967, 'fraction_numerical': 0.0, 'mean_word_length': 3.4285714285714284, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7030424', 'n_tokens_mistral': 521, 'n_tokens_neox': 504, 'n_words': 124}