<commit_before>server {
<% @listen_addresses.each do |listen_address| %>
  listen <%= listen_address %>:<%= @listen_port %><% if @https %> ssl<% end %>;
<% end %>

  server_name  ~^(?<subd>.+)\.<%= @top_domain.dup.gsub!(".", "\\.") %>$;
  server_tokens off; ## Don't show the nginx version number, a security best practice
  resolver 8.8.8.8;

  ## Increase this if you want to upload large attachments
  ## Or if you want to accept large git objects over http
  client_max_body_size <%= @client_max_body_size %>;

  <% if @https %>
  ## Strong SSL Security
  ## https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
  ssl on;
  ssl_certificate <%= @ssl_certificate %>;
  ssl_certificate_key <%= @ssl_certificate_key %>;<commit_msg>Prevent null values when top domain is misssing, e.g locahost<commit_after>server {
<% @listen_addresses.each do |listen_address| %>
  listen <%= listen_address %>:<%= @listen_port %><% if @https %> ssl<% end %>;
<% end %>

  server_name  ~^(?<subd>.+)\.<%= @top_domain.to_s.dup.gsub!(".", "\\.") %>$;
  server_tokens off; ## Don't show the nginx version number, a security best practice
  resolver 8.8.8.8;

  ## Increase this if you want to upload large attachments
  ## Or if you want to accept large git objects over http
  client_max_body_size <%= @client_max_body_size %>;

  <% if @https %>
  ## Strong SSL Security
  ## https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html & https://cipherli.st/
  ssl on;
  ssl_certificate <%= @ssl_certificate %>;
  ssl_certificate_key <%= @ssl_certificate_key %>;
{'fraction_non_alphanumeric': 0.16466876971608832, 'fraction_numerical': 0.005047318611987382, 'mean_word_length': 4.322147651006712, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2408446', 'n_tokens_mistral': 603, 'n_tokens_neox': 533, 'n_words': 137}