<commit_before><% if @www_redirect -%>
<VirtualHost *:80>
  ServerName        www.<%= @host_name %>
<% @host_aliases.each do |a| -%>
  ServerAlias       www.<%= a %>
<% end -%>

  RewriteEngine     On
<% if @www_redirect -%>
  RewriteCond       %{HTTP_HOST} ^www.<%= @host_name %>$ [NC]
  RewriteRule       ^/(.*)$ http://<%= @host_name %>/$1 [R=301,L]
<% end %>

</VirtualHost>

<% end -%>

<VirtualHost *:80>
<% if @redirect_http -%>
  RewriteEngine On
  # rewrite non ssl -> ssl 
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<% end %>

<%= render "_apache_common.erb" %>  

</VirtualHost>

<% if @ssl_enabled -%>
  <VirtualHost *:<%= @ssl_listen_ports.join ' *:' -%>>
<%= render "_apache_common.erb" %>  

  SSLEngine on
  SSLCertificateFile <%= node[:jenkins][:http_proxy][:ssl][:cert_path] %>
  SSLCertificateKeyFile <%= node[:jenkins][:http_proxy][:ssl][:key_path] %>

</VirtualHost>
<% end %><commit_msg>slight cleanup in apache_jenkins.erb<commit_after><% if @www_redirect -%>
<VirtualHost *:80>
  ServerName        www.<%= @host_name %>
<% @host_aliases.each do |a| -%>
  ServerAlias       www.<%= a %>
<% end -%>

  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www.<%= @host_name %>$ [NC]
  RewriteRule ^/(.*)$ http://<%= @host_name %>/$1 [R=301,L]
</VirtualHost>

<% end -%>
<VirtualHost *:80>
<% if @redirect_http -%>
  RewriteEngine On
  # rewrite non ssl -> ssl
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<% end -%>

<%= render "_apache_common.erb" %>

</VirtualHost>

<% if @ssl_enabled -%>
<VirtualHost *:<%= @ssl_listen_ports.join ' *:' %>>

<%= render "_apache_common.erb" %>

  SSLEngine on
  SSLCertificateFile <%= node[:jenkins][:http_proxy][:ssl][:cert_path] %>
  SSLCertificateKeyFile <%= node[:jenkins][:http_proxy][:ssl][:key_path] %>

</VirtualHost>
<% end -%>
{'fraction_non_alphanumeric': 0.22399150743099788, 'fraction_numerical': 0.01167728237791932, 'mean_word_length': 4.067204301075269, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 53, 'https://': 2, 'lorem ipsum': 0, 'www.': 9, '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': '5612396', 'n_tokens_mistral': 829, 'n_tokens_neox': 731, 'n_words': 132}