<commit_before><% if @include_files %><% @include_files.each do |file| -%>
include <%= file %>;
<% end -%><% end -%>
<% if @vhost_cfg_append -%><% vhost_cfg_append.each do |key,value| -%>
  <%= key %> <%= value %>;
<% end -%>
<% end -%>
}
<% if @rewrite_www_to_non_www -%>
server {
  listen                <%= @listen_ip %>;
  server_name           www.<%= @name.gsub(/^www\./, '') %>;
  rewrite               ^ http://<%= @name.gsub(/^www\./, '') %>$uri permanent;
}
<% end %><commit_msg>sort $vhost_cfg_append hash in vhost_footer.erb template<commit_after><% if @include_files %><% @include_files.each do |file| -%>
include <%= file %>;
<% end -%><% end -%>
<%# make sure that allow comes before deny by forcing the allow key (if it -%>
<%# exists) to be first in the output order.  The hash keys also need to be -%>
<%# sorted so that the ordering is stable. -%>
<% if @vhost_cfg_append -%><% vhost_cfg_append.sort_by{ |k, v| k.to_s == 'allow' ? '' : k.to_s }.each do |key,value| -%>
  <%= key %> <%= value %>;
<% end -%>
<% end -%>
}
<% if @rewrite_www_to_non_www -%>
server {
  listen                <%= @listen_ip %>;
  server_name           www.<%= @name.gsub(/^www\./, '') %>;
  rewrite               ^ http://<%= @name.gsub(/^www\./, '') %>$uri permanent;
}
<% end %>
{'fraction_non_alphanumeric': 0.2364917776037588, 'fraction_numerical': 0.0, 'mean_word_length': 2.8263473053892216, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, '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': '3607252', 'n_tokens_mistral': 523, 'n_tokens_neox': 484, 'n_words': 113}