<commit_before># NGiNX vhost generated by hermes

<%- if @opts[:upstream] -%>
upstream <%= @opts[:app_name] %> {
  <%- @opts[:upstream].each do |address| -%>
  server <%= address %>;
  <%- end -%>
}
<%- end -%>

server {
  server_name <%= @opts[:domain] %> <%= @opts[:aliases].join(' ') %>;

  <%- if @opts[:upstream] -%>
  location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://<%= @opts[:app_name] %>;
    break;
  }
  <%- end -%><commit_msg>fix a bug when no aliases are given<commit_after># NGiNX vhost generated by hermes

<%- if @opts[:upstream] -%>
upstream <%= @opts[:app_name] %> {
  <%- @opts[:upstream].each do |address| -%>
  server <%= address %>;
  <%- end -%>
}
<%- end -%>

server {
  server_name <%= @opts[:domain] %> <%= @opts[:aliases].join(' ') if @opts[:aliases] %>;

  <%- if @opts[:upstream] -%>
  location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://<%= @opts[:app_name] %>;
    break;
  }
  <%- end -%>
{'fraction_non_alphanumeric': 0.2060016220600162, 'fraction_numerical': 0.0, 'mean_word_length': 3.536764705882353, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '7107947', 'n_tokens_mistral': 513, 'n_tokens_neox': 474, 'n_words': 89}