<commit_before>module ApplicationHelper

  include ActionView::Helpers::SanitizeHelper

  def javascript(*files)
    content_for(:scripts) { javascript_include_tag(*files) }
  end

  def stylesheet(*files)
    content_for(:head) { stylesheet_link_tag(*files) }
  end

  def keywords(string)
    raw "\n<meta name=\"keywords\" content=\""+string+"\" />"
  end

  def cannonical_link(string)
    raw "\n<link rel=\"canonical\" href=\"#{string}\"/>"
  end

  def description(string)
    raw "\n<meta name=\"description\" content=\""+string+"\" />"
  end

  def head_title(string)
    raw "\n<title>#{string}</title>"
  end


  def block(name)
    partials = ""
    Block.place(name).each do |block|
      begin
        partials << (render :partial => "blocks/#{$layout}/#{block.partial}",
                            :locals => { block: block })
      rescue
        #replace this with something tha save error to database
        partial << "missing"
      end
    end
    raw partials
  end

  def render_linker(partial)
    render :partial => "linker/#{$layout}/#{partial}"
  end



end

<commit_msg>replace "" with %()<commit_after>module ApplicationHelper

  include ActionView::Helpers::SanitizeHelper

  def javascript(*files)
    content_for(:scripts) { javascript_include_tag(*files) }
  end

  def stylesheet(*files)
    content_for(:head) { stylesheet_link_tag(*files) }
  end

  def keywords(string)
    raw %(<meta name="keywords" content="#{string}" />)
  end

  def cannonical_link(string)
    raw %(<link rel="canonical" href="#{string}"/>)
  end

  def description(string)
    raw %(<meta name="description" content="#{string}" />)
  end

  def head_title(string)
    raw "\n<title>#{string}</title>"
  end

  def block(name)
    partials = ""
    Block.place(name).each do |block|
      begin
        partials << (render :partial => "blocks/#{$layout}/#{block.partial}",
                            :locals => { block: block })
      rescue
        #replace this with something tha save error to database
        partial << "missing"
      end
    end
    raw partials
  end

  def render_linker(partial)
    render :partial => "linker/#{$layout}/#{partial}"
  end

end


{'fraction_non_alphanumeric': 0.14684354986276305, 'fraction_numerical': 0.0, 'mean_word_length': 2.9763636363636365, 'pattern_counts': {'":': 0, '<': 21, '<?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': '225586', 'n_tokens_mistral': 694, 'n_tokens_neox': 667, 'n_words': 158}