<commit_before><Directory "/www/test/html">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all

    AuthType Basic
    AuthName "OpenAustralia Staging Server"
    AuthUserFile <%= @node[:openaustralia][:test][:apache_password_file] %>
    Require user test    
</Directory>

<VirtualHost *:80>
    DocumentRoot "/www/test/html"
    ServerName test.<%= @node[:oa_domain] %>
    ErrorLog "/var/log/test-error_log"
    CustomLog /var/log/test-access_log common

		RewriteEngine on

		# Links in emails
		RewriteRule ^/A/(.*)$     /alert/confirm/index.php?t=$1 [QSA]
		RewriteRule ^/D/(.*)$     /alert/delete/index.php?t=$1 [QSA]
		RewriteRule ^/U/(.*)$     /user/confirm/index.php?t=$1 [QSA]

		# API
		RewriteRule ^/api/((get|convert).*)$ /api/index.php?method=$1 [QSA]
		RewriteRule ^/api/docs/?$            /api/ [R]
		RewriteRule ^/api/docs/(.*)$         /api/index.php?docs=1&method=$1 [QSA]

		# Other people types
		RewriteRule ^/senator/(.*)   /mp/$1?peer=1 [QSA]

		# MP pages
		RewriteRule ^/mp/(['a-zA-Z_+-]+)/([\(\)\.a-zA-Z_+,'-]+)$      /mp/index.php?n=$1&c=$2 [QSA]
		RewriteRule ^/mp/(['a-zA-Z_\ +-]+)\ mp/?$  /mp/index.php?n=$1 [QSA]
		RewriteRule ^/mp/(['a-zA-Z_\ +-]+)/?$       /mp/index.php?n=$1 [QSA]

		# Public Bill Committees
		#RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/$               /pbc/index.php?session=$1   [QSA]
		#RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/([^/]*)$        /pbc/index.php?session=$1&bill=$2   [QSA]
		#RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/([^/]*)/(.*)$   /pbc/index.php?session=$1&bill=$2&id=$3   [QSA]

		#RewriteRule ^/alerts/.*$ /alert/ [R]

		# News
		RewriteRule ^/news/archives/(.*)$  /news/index.php/archives/$1 [QSA]
		RewriteRule ^/news/index.rdf$      /news/rdf.php [QSA]

		# Department (not ready)
		#RewriteRule ^/departments/(.*)/questions$     /departments/questions.php?dept=$1
		#RewriteRule ^/departments/(.*)/statements$    /departments/statements.php?dept=$1

		# Make a file down.html in the DocumentRoot bring down the whole site and
		# display itself.
		#RewriteCond %{DOCUMENT_ROOT}/down.html -s
		#RewriteRule /(.+).php /down.html [R]
		#RewriteCond %{DOCUMENT_ROOT}/down.html -s
		#RewriteRule /(.+).cgi /down.html [R]
		#RewriteCond %{DOCUMENT_ROOT}/down.html !-s
		#RewriteRule /down.html / [R]
</VirtualHost>
<commit_msg>Converted tabs to spaces. That's all.<commit_after><Directory "/www/test/html">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all

    AuthType Basic
    AuthName "OpenAustralia Staging Server"
    AuthUserFile <%= @node[:openaustralia][:test][:apache_password_file] %>
    Require user test    
</Directory>

<VirtualHost *:80>
    DocumentRoot "/www/test/html"
    ServerName test.<%= @node[:oa_domain] %>
    ErrorLog "/var/log/test-error_log"
    CustomLog /var/log/test-access_log common

    RewriteEngine on

    # Links in emails
    RewriteRule ^/A/(.*)$     /alert/confirm/index.php?t=$1 [QSA]
    RewriteRule ^/D/(.*)$     /alert/delete/index.php?t=$1 [QSA]
    RewriteRule ^/U/(.*)$     /user/confirm/index.php?t=$1 [QSA]

    # API
    RewriteRule ^/api/((get|convert).*)$ /api/index.php?method=$1 [QSA]
    RewriteRule ^/api/docs/?$            /api/ [R]
    RewriteRule ^/api/docs/(.*)$         /api/index.php?docs=1&method=$1 [QSA]

    # Other people types
    RewriteRule ^/senator/(.*)   /mp/$1?peer=1 [QSA]

    # MP pages
    RewriteRule ^/mp/(['a-zA-Z_+-]+)/([\(\)\.a-zA-Z_+,'-]+)$      /mp/index.php?n=$1&c=$2 [QSA]
    RewriteRule ^/mp/(['a-zA-Z_\ +-]+)\ mp/?$  /mp/index.php?n=$1 [QSA]
    RewriteRule ^/mp/(['a-zA-Z_\ +-]+)/?$       /mp/index.php?n=$1 [QSA]

    # Public Bill Committees
    #RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/$               /pbc/index.php?session=$1   [QSA]
    #RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/([^/]*)$        /pbc/index.php?session=$1&bill=$2   [QSA]
    #RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/([^/]*)/(.*)$   /pbc/index.php?session=$1&bill=$2&id=$3   [QSA]

    #RewriteRule ^/alerts/.*$ /alert/ [R]

    # News
    RewriteRule ^/news/archives/(.*)$  /news/index.php/archives/$1 [QSA]
    RewriteRule ^/news/index.rdf$      /news/rdf.php [QSA]

    # Department (not ready)
    #RewriteRule ^/departments/(.*)/questions$     /departments/questions.php?dept=$1
    #RewriteRule ^/departments/(.*)/statements$    /departments/statements.php?dept=$1

    # Make a file down.html in the DocumentRoot bring down the whole site and
    # display itself.
    #RewriteCond %{DOCUMENT_ROOT}/down.html -s
    #RewriteRule /(.+).php /down.html [R]
    #RewriteCond %{DOCUMENT_ROOT}/down.html -s
    #RewriteRule /(.+).cgi /down.html [R]
    #RewriteCond %{DOCUMENT_ROOT}/down.html !-s
    #RewriteRule /down.html / [R]
</VirtualHost>

{'fraction_non_alphanumeric': 0.22073921971252566, 'fraction_numerical': 0.024229979466119097, 'mean_word_length': 2.8475513428120065, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3956662', 'n_tokens_mistral': 2151, 'n_tokens_neox': 1906, 'n_words': 329}