<commit_before><VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>

    # Put in an allow block for each subdirectory of /var/www,
    # allowing remote access to some, all, or no, files in that
    # directory
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    # in /api, allow access to responder and dummy_responder only
    <Directory /var/www/api>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        <Files responder>
            Allow from all
        </Files>
        <Files responder.php>
            Allow from all
        </Files>
	<Files dummy_responder>
            Allow from all
        </Files>
        <Files dummy_responder.php>
            Allow from all
        </Files>
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # no remote access to /database
    <Directory /var/www/database>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # no remote access to /engine
    <Directory /var/www/engine>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # no remote access to /lib
    <Directory /var/www/lib>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # allow access from localhost and other RFC 1918 space to /test-ui
    <Directory /var/www/test-ui>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/2172.16.31.10 ::1/128
        Allow from 10.0.0.0/255.0.0.0
        Allow from 172.16.0.0/255.255.0.0
        Allow from 192.168.1.0/255.255.255.0
    </Directory>

    # in /ui, allow access to everything
    <Directory /var/www/ui>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

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

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost><commit_msg>* log BMUser and BMAPI based on apache_note() parameters<commit_after><VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>

    # Put in an allow block for each subdirectory of /var/www,
    # allowing remote access to some, all, or no, files in that
    # directory
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    # in /api, allow access to responder and dummy_responder only
    <Directory /var/www/api>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        <Files responder>
            Allow from all
        </Files>
        <Files responder.php>
            Allow from all
        </Files>
	<Files dummy_responder>
            Allow from all
        </Files>
        <Files dummy_responder.php>
            Allow from all
        </Files>
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # no remote access to /database
    <Directory /var/www/database>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # no remote access to /engine
    <Directory /var/www/engine>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # no remote access to /lib
    <Directory /var/www/lib>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    # allow access from localhost and other RFC 1918 space to /test-ui
    <Directory /var/www/test-ui>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from 127.0.0.0/255.0.0.0 ::1/128
        Allow from 10.0.0.0/255.0.0.0
        Allow from 172.16.0.0/255.255.0.0
        Allow from 192.168.1.0/255.255.255.0
    </Directory>

    # in /ui, allow access to everything
    <Directory /var/www/ui>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

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

    CustomLog ${APACHE_LOG_DIR}/access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" BMUser=%{BMUserID}n BMAPI=%{BMAPIMethod}n"

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
{'fraction_non_alphanumeric': 0.0932297447280799, 'fraction_numerical': 0.04693198033930553, 'mean_word_length': 2.012416427889207, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, 'xml': 0}, 'pii_count': 36, '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': '977021', 'n_tokens_mistral': 2064, 'n_tokens_neox': 1876, 'n_words': 553}