<commit_before>upstream <%= fetch(:nginx_upstream) %> {
  server unix:/tmp/<%= fetch(:nginx_upstream) %>.sock fail_timeout=0;
}

server {
  <% if fetch(:nginx_listen, false) %>
  listen <%= fetch(:nginx_listen) %>;
  <% end %>
  server_name <%= fetch(:nginx_server_name) %>;
  root <%= current_path.join('public') %>;

  try_files $uri/index.html $uri.html $uri @<%= fetch(:nginx_upstream) %>;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }<commit_msg>more nginx changes.<commit_after>upstream <%= fetch(:nginx_upstream) %> {
  server unix:/tmp/<%= fetch(:nginx_upstream) %>.sock fail_timeout=0;
}

server {
  <% if fetch(:nginx_listen, false) %>
  listen <%= fetch(:nginx_listen) %>;
  <% end %>
  server_name <%= fetch(:nginx_server_name) %>;
  root <%= current_path.join('public') %>;

  access_log <%= current_path.join('log/nginx.access.log') %>;
  error_log <%= current_path.join('log/nginx.error.log') %> info;

  try_files $uri/index.html $uri.html $uri @<%= fetch(:nginx_upstream) %>;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }
{'fraction_non_alphanumeric': 0.18977469670710573, 'fraction_numerical': 0.0017331022530329288, 'mean_word_length': 4.397196261682243, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5497252', 'n_tokens_mistral': 460, 'n_tokens_neox': 415, 'n_words': 71}