<commit_before><VirtualHost *:80>
    ServerAdmin <EMAIL>

    <% if server_name %>
      ServerName <%= server_name %>
    <% end %>

    <% if use_passenger? %>
      PassEnv DB_HOST DB_NAME DB_USERNAME DB_PASSWORD

      PassengerFriendlyErrorPages off
      PassengerMaxRequests 50

      RailsEnv <%= rails_env %>
      <% if server_name %>
        PassengerPreStart http://<%= server_name %>/status
      <% else %>
        PassengerPreStart http://localhost/status
      <% end %>
    <% end %>

    DocumentRoot <%= working_directory %>/public
    <Directory <%= working_directory %>/public>
        allow from all
        Options -MultiViews
        AllowOverride None
        Order allow,deny
    </Directory>

    ErrorLog /var/log/apache2/<%= application_name %>-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/<%= application_name %>-access.log combined

    <% if gamej_proxy %>
    <Location /api>
        Order allow,deny
        Allow from all
    </Location>

    # Proxy off to the engine
	ProxyRequests Off
	ProxyPass /api/ http://<%= gamej_proxy %>/
	ProxyPassReverse /api/ http://<%= server_name %>/
    <% end %>
</VirtualHost>
<% if use_ssl? %>
NameVirtualHost *:443
<VirtualHost *:443>
    ServerAdmin <EMAIL>

    <% if server_name %>
      ServerName <%= server_name %>
    <% end %>

    <% if use_passenger? %>
      PassEnv DB_HOST DB_NAME DB_USERNAME DB_PASSWORD

      PassengerFriendlyErrorPages off
      PassengerMaxRequests 50

      RailsEnv <%= rails_env %>
      <% if server_name %>
        PassengerPreStart http://<%= server_name %>/status
      <% else %>
        PassengerPreStart http://localhost/status
      <% end %>
    <% end %>

      SSLEngine On
      SSLCertificateFile /etc/apache2/certs/<%= application_name %>.crt
      SSLCertificateKeyFile /etc/apache2/certs/<%= application_name %>.key

    DocumentRoot <%= working_directory %>/public
    <Directory <%= working_directory %>/public>
        allow from all
        Options -MultiViews
        AllowOverride None
        Order allow,deny
    </Directory>

    ErrorLog /var/log/apache2/<%= application_name %>-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/<%= application_name %>-access.log combined

    <% if gamej_proxy %>
    <Location /api>
        Order allow,deny
        Allow from all
    </Location>
        
    # Proxy off to the engine
	SSLProxyEngine on
    ProxyRequests Off
	ProxyPass /api/ https://<%= gamej_proxy %>/
	ProxyPassReverse /api/ https://<%= server_name %>/
    <% end %>
</VirtualHost>
<% end %><commit_msg>.htc file support for IE<commit_after><VirtualHost *:80>
    ServerAdmin <EMAIL>

    <% if server_name %>
      ServerName <%= server_name %>
    <% end %>

    <% if use_passenger? %>
      PassEnv DB_HOST DB_NAME DB_USERNAME DB_PASSWORD

      PassengerFriendlyErrorPages off
      PassengerMaxRequests 50

      RailsEnv <%= rails_env %>
      <% if server_name %>
        PassengerPreStart http://<%= server_name %>/status
      <% else %>
        PassengerPreStart http://localhost/status
      <% end %>
    <% end %>

    DocumentRoot <%= working_directory %>/public
    <Directory <%= working_directory %>/public>
        allow from all
        Options -MultiViews
        AllowOverride None
        Order allow,deny
        AddType text/x-component .htc
    </Directory>

    ErrorLog /var/log/apache2/<%= application_name %>-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/<%= application_name %>-access.log combined

    <% if gamej_proxy %>
    <Location /api>
        Order allow,deny
        Allow from all
    </Location>

    # Proxy off to the engine
	ProxyRequests Off
	ProxyPass /api/ http://<%= gamej_proxy %>/
	ProxyPassReverse /api/ http://<%= server_name %>/
    <% end %>
</VirtualHost>
<% if use_ssl? %>
NameVirtualHost *:443
<VirtualHost *:443>
    ServerAdmin <EMAIL>

    <% if server_name %>
      ServerName <%= server_name %>
    <% end %>

    <% if use_passenger? %>
      PassEnv DB_HOST DB_NAME DB_USERNAME DB_PASSWORD

      PassengerFriendlyErrorPages off
      PassengerMaxRequests 50

      RailsEnv <%= rails_env %>
      <% if server_name %>
        PassengerPreStart http://<%= server_name %>/status
      <% else %>
        PassengerPreStart http://localhost/status
      <% end %>
    <% end %>

      SSLEngine On
      SSLCertificateFile /etc/apache2/certs/<%= application_name %>.crt
      SSLCertificateKeyFile /etc/apache2/certs/<%= application_name %>.key

    DocumentRoot <%= working_directory %>/public
    <Directory <%= working_directory %>/public>
        allow from all
        Options -MultiViews
        AllowOverride None
        Order allow,deny
        AddType text/x-component .htc
    </Directory>

    ErrorLog /var/log/apache2/<%= application_name %>-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/<%= application_name %>-access.log combined

    <% if gamej_proxy %>
    <Location /api>
        Order allow,deny
        Allow from all
    </Location>
        
    # Proxy off to the engine
	SSLProxyEngine on
    ProxyRequests Off
	ProxyPass /api/ https://<%= gamej_proxy %>/
	ProxyPassReverse /api/ https://<%= server_name %>/
    <% end %>
</VirtualHost>
<% end %>
{'fraction_non_alphanumeric': 0.12127165565279514, 'fraction_numerical': 0.006429719592784426, 'mean_word_length': 2.508771929824561, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 4, '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': '7143730', 'n_tokens_mistral': 1873, 'n_tokens_neox': 1661, 'n_words': 436}