<commit_before>user www-data;
worker_processes  4;

error_log  /var/log/nginx/error.log;
pid        <%= '/var' if @lsbdistcodename == 'lucid' -%>/run/nginx.pid;

events {
    worker_connections  1024;
    use epoll;
}

http {
    include       /etc/nginx/mime.types;
    include       /etc/nginx/blockips.conf;

    proxy_cache_path  /var/www/cache levels=1:2 keys_zone=cache:8m max_size=1000m inactive=600m;
    proxy_temp_path /var/www/cache/tmp;

    limit_req_zone $binary_remote_addr zone=rate:30m rate=10r/s;
    limit_conn_zone $binary_remote_addr zone=connections:10m;

    server_names_hash_bucket_size <%= @server_name_hash_max_size %>;
    server_names_hash_bucket_size 128;
    proxy_headers_hash_bucket_size 128;
    map_hash_bucket_size 128;

    proxy_intercept_errors on;
    ignore_invalid_headers on;

    log_format timed_combined '$remote_addr - $remote_user [$time_local]  '
      '"$request" $status $body_bytes_sent '
      '"$http_referer" "$http_user_agent" '
      '$request_time $upstream_response_time '
      '$gzip_ratio $sent_http_x_cache $sent_http_location $http_host';

    log_format json_event '{ "@timestamp": "$time_iso8601", '
                         '"@fields": { '
                         '"remote_addr": "$remote_addr", '
                         '"remote_user": "$remote_user", '
                         '"body_bytes_sent": "$body_bytes_sent", '
                         '"bytes_sent": "$bytes_sent", '
                         '"request_time": "$request_time", '
                         '"upstream_response_time": "$upstream_response_time", '
                         '"upstream_addr": "$upstream_addr", '
                         '"gzip_ratio": "$gzip_ratio", '
                         '"sent_http_x_cache": "$sent_http_x_cache", '<commit_msg>fix dumb typo<commit_after>user www-data;
worker_processes  4;

error_log  /var/log/nginx/error.log;
pid        <%= '/var' if @lsbdistcodename == 'lucid' -%>/run/nginx.pid;

events {
    worker_connections  1024;
    use epoll;
}

http {
    include       /etc/nginx/mime.types;
    include       /etc/nginx/blockips.conf;

    proxy_cache_path  /var/www/cache levels=1:2 keys_zone=cache:8m max_size=1000m inactive=600m;
    proxy_temp_path /var/www/cache/tmp;

    limit_req_zone $binary_remote_addr zone=rate:30m rate=10r/s;
    limit_conn_zone $binary_remote_addr zone=connections:10m;

    server_names_hash_max_size <%= @server_name_hash_max_size %>;
    server_names_hash_bucket_size 128;
    proxy_headers_hash_bucket_size 128;
    map_hash_bucket_size 128;

    proxy_intercept_errors on;
    ignore_invalid_headers on;

    log_format timed_combined '$remote_addr - $remote_user [$time_local]  '
      '"$request" $status $body_bytes_sent '
      '"$http_referer" "$http_user_agent" '
      '$request_time $upstream_response_time '
      '$gzip_ratio $sent_http_x_cache $sent_http_location $http_host';

    log_format json_event '{ "@timestamp": "$time_iso8601", '
                         '"@fields": { '
                         '"remote_addr": "$remote_addr", '
                         '"remote_user": "$remote_user", '
                         '"body_bytes_sent": "$body_bytes_sent", '
                         '"bytes_sent": "$bytes_sent", '
                         '"request_time": "$request_time", '
                         '"upstream_response_time": "$upstream_response_time", '
                         '"upstream_addr": "$upstream_addr", '
                         '"gzip_ratio": "$gzip_ratio", '
                         '"sent_http_x_cache": "$sent_http_x_cache", '
{'fraction_non_alphanumeric': 0.12001116382919341, 'fraction_numerical': 0.018978509628802678, 'mean_word_length': 2.4965853658536585, 'pattern_counts': {'":': 22, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '407753', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1136, 'n_words': 178}