<commit_before><%= ERB.new(File.read(File.expand_path("_header.erb",File.dirname(file)))).result(binding) -%>
<%
  def empty?(value)
    value == '' or value == :undef
  end
  def always_array(var)
    scope.function_always_array([var])
  end

  conditions = always_array(rewrite_cond)
  rules      = always_array(rewrite_rule)
-%>
<% if _header -%>
  RewriteEngine On

<% end -%>
<% if defined?(comment) and ! empty?(comment) -%>
  # <%= comment.gsub(/\n/, "\n  # ") %>
<% end -%>
<% conditions.each do |condition| -%>
  RewriteCond <%= condition %>
<% end -%>
<% rules.each do |rule| -%>
  RewriteRule <%= rule %>
<% end -%>
<commit_msg>Workaround for bug https://projects.puppetlabs.com/issues/16235<commit_after><%= ERB.new(File.read(File.expand_path("_header.erb",File.dirname(file)))).result(binding) -%>
<%
  def empty?(value)
    value == '' or value == :undef
  end
  def always_array(var)
    scope.function_always_array([var])
  end

  conditions = always_array(rewrite_cond)
  rules      = always_array(rewrite_rule)
-%>
<% if _header -%>
  RewriteEngine On

<% end -%>
<% if defined?(comment) and ! empty?(comment) -%>
  # <%= comment.gsub(/\n/, "\n  # ").gsub(/%\[([^\]]+)\]/,'%{\1}') %>
<% end -%>
<% conditions.each do |condition| -%>
  RewriteCond <%= condition.gsub(/%\[([^\]]+)\]/,'%{\1}') %>
<% end -%>
<% rules.each do |rule| -%>
  RewriteRule <%= rule.gsub(/%\[([^\]]+)\]/,'%{\1}') %>
<% end -%>

{'fraction_non_alphanumeric': 0.24964739069111425, 'fraction_numerical': 0.005641748942172073, 'mean_word_length': 3.7142857142857144, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 1, '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': '4869368', 'n_tokens_mistral': 591, 'n_tokens_neox': 544, 'n_words': 86}