<commit_before>server {
  listen <%= nginx.listen_port || 80 %>;
  server_name <%= nginx.application_url.join(' ') %>;

<% if nginx.auth_file && nginx.auth_credentials %>
  # Authentification
  auth_basic "Valid user required to access this server";
  auth_basic_user_file <%= nginx.authentification_file %>;
<% end %>

<% if nginx.logs_path %>
  access_log <%= nginx.logs_path %>/access.log;
  error_log <%= nginx.logs_path %>/error.log;
<% end %>

  root <%= nginx.public_path %>;

<% if nginx.indexes.present? %>
  index <%= nginx.indexes.join(' ') %>;
<% end %>

  # Enable recursive error pages to catch 405 in a 503 error.
  recursive_error_pages on;

  # This allows people to use stylesheet, javascript and images in their
  # maintenance html file
  if ($request_filename ~* \.(css|js|jpg|gif|png)$) {
    break;
  }

  # If the maintenance page exists, throw a 503 error which we'd catch later.
  if (-f $document_root/__system__/maintenance/index.html) {
    return 503;
  }

  # Catch the 503 error and send it to the @maintenance location
  error_page 503 @maintenance;<commit_msg>The authentification file is called auth_file<commit_after>server {
  listen <%= nginx.listen_port || 80 %>;
  server_name <%= nginx.application_url.join(' ') %>;

<% if nginx.auth_file && nginx.auth_credentials %>
  # Authentification
  auth_basic "Valid <PASSWORD> required to access this server";
  auth_basic_user_file <%= nginx.auth_file %>;
<% end %>

<% if nginx.logs_path %>
  access_log <%= nginx.logs_path %>/access.log;
  error_log <%= nginx.logs_path %>/error.log;
<% end %>

  root <%= nginx.public_path %>;

<% if nginx.indexes.present? %>
  index <%= nginx.indexes.join(' ') %>;
<% end %>

  # Enable recursive error pages to catch 405 in a 503 error.
  recursive_error_pages on;

  # This allows people to use stylesheet, javascript and images in their
  # maintenance html file
  if ($request_filename ~* \.(css|js|jpg|gif|png)$) {
    break;
  }

  # If the maintenance page exists, throw a 503 error which we'd catch later.
  if (-f $document_root/__system__/maintenance/index.html) {
    return 503;
  }

  # Catch the 503 error and send it to the @maintenance location
  error_page 503 @maintenance;
{'fraction_non_alphanumeric': 0.13369467028003612, 'fraction_numerical': 0.018066847335140017, 'mean_word_length': 3.922222222222222, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, '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': '7631824', 'n_tokens_mistral': 849, 'n_tokens_neox': 715, 'n_words': 204}