<commit_before><% if @proxy_dest or @proxy_pass -%>

  ## Proxy rules
  ProxyRequests Off
<%- end -%>
<% if @proxy_preserve_host -%>
  ProxyPreserveHost On
<%- end -%>
<%- [@proxy_pass].flatten.compact.each do |proxy| -%>
  ProxyPass <%= proxy['path'] %> <%= proxy['url'] %>   <%- if proxy['params'].nil? == false -%> <%= proxy['params'] %> <%- end -%>

  <Location <%= proxy['path']%>>
  <%- if proxy['reverse_urls'].nil? -%>
    ProxyPassReverse <%= proxy['url'] %>
  <%- else -%>
    <%- Array(proxy['reverse_urls']).each do |reverse_url| -%>
    ProxyPassReverse <%= reverse_url %>
    <%- end -%>
  <%- end -%>
  </Location>
<% end -%>
<% if @proxy_dest -%>
<%- Array(@no_proxy_uris).each do |uri| -%>
  ProxyPass        <%= uri %> !
<% end -%>
  ProxyPass          / <%= @proxy_dest %>/
  <Location          />
    ProxyPassReverse <%= @proxy_dest %>/
  </Location>
<% end -%><commit_msg>cleanup condition<commit_after><% if @proxy_dest or @proxy_pass -%>

  ## Proxy rules
  ProxyRequests Off
<%- end -%>
<% if @proxy_preserve_host -%>
  ProxyPreserveHost On
<%- end -%>
<%- [@proxy_pass].flatten.compact.each do |proxy| -%>
  ProxyPass <%= proxy['path'] %> <%= proxy['url'] %>   <%- if !proxy['params'].nil? -%> <%= proxy['params'] %> <%- end -%>

  <Location <%= proxy['path']%>>
  <%- if proxy['reverse_urls'].nil? -%>
    ProxyPassReverse <%= proxy['url'] %>
  <%- else -%>
    <%- Array(proxy['reverse_urls']).each do |reverse_url| -%>
    ProxyPassReverse <%= reverse_url %>
    <%- end -%>
  <%- end -%>
  </Location>
<% end -%>
<% if @proxy_dest -%>
<%- Array(@no_proxy_uris).each do |uri| -%>
  ProxyPass        <%= uri %> !
<% end -%>
  ProxyPass          / <%= @proxy_dest %>/
  <Location          />
    ProxyPassReverse <%= @proxy_dest %>/
  </Location>
<% end -%>
{'fraction_non_alphanumeric': 0.2505605381165919, 'fraction_numerical': 0.0, 'mean_word_length': 2.9317180616740086, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '7361205', 'n_tokens_mistral': 764, 'n_tokens_neox': 659, 'n_words': 114}