<commit_before># Set another default user than root for security reasons
# user       www www;

# As a thumb rule: One per CPU. If you are serving a large amount
# of static files, which requires blocking disk reads, you may want
# to increase this from the number of cpu_cores available on your
# system.
#
# The maximum number of connections for Nginx is calculated by:
# max_clients = worker_processes * worker_connections
worker_processes 2;

# Maximum file descriptors that can be opened per process
# This should be > worker_connections
worker_rlimit_nofile 8192;

error_log  <%= ENV['OPENSHIFT_LOG_DIR'] %>/nginx_error.log;
pid        <%= ENV['OPENSHIFT_NGINX_PID'] %>;

events {
  # When you need > 8000 * cpu_cores connections, you start optimizing
  # your OS, and this is probably the point at where you hire people
  # who are smarter than you, this is *a lot* of requests.
  worker_connections  8000;

  # This sets up some smart queueing for accept(2)'ing requests
  # Set it to "on" if you have > worker_processes
  accept_mutex off;

  # These settings are OS specific, by defualt Nginx uses select(2),
  # however, for a large number of requests epoll(2) and kqueue(2)
  # are generally faster than the default (select(2))
  # use epoll; # enable for Linux 2.6+
  # use kqueue; # enable for *BSD (FreeBSD, OS X, ..)
}

http {
    include <%= ENV['OPENSHIFT_NGINX_VERSION_DIR'] %>/conf/mime.types;
    default_type application/octet-stream;

    client_body_temp_path  <%= ENV['OPENSHIFT_TMP_DIR'] %>/client_temp;
    proxy_temp_path        <%= ENV['OPENSHIFT_TMP_DIR'] %>/proxy_temp;
    fastcgi_temp_path      <%= ENV['OPENSHIFT_TMP_DIR'] %>/fastcgi_temp;
    uwsgi_temp_path        <%= ENV['OPENSHIFT_TMP_DIR'] %>/uwsgi_temp;
    scgi_temp_path         <%= ENV['OPENSHIFT_TMP_DIR'] %>/scgi_temp;

    # Format for our log files
    log_format   main '$remote_addr - $remote_user [$time_local]  $status '
      '"$request" $body_bytes_sent "$http_referer" '
      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  <%= ENV['OPENSHIFT_LOG_DIR'] %>/nginx_access.log  main;

    sendfile on;
    keepalive_timeout 65;

    include  <%= ENV['OPENSHIFT_NGINX_DIR'] %>/conf/nginx_http.conf;<commit_msg>Nginx 1.8.0<commit_after># Set another default user than root for security reasons
# user       www www;

# As a thumb rule: One per CPU. If you are serving a large amount
# of static files, which requires blocking disk reads, you may want
# to increase this from the number of cpu_cores available on your
# system.
#
# The maximum number of connections for Nginx is calculated by:
# max_clients = worker_processes * worker_connections
worker_processes 2;

# Maximum file descriptors that can be opened per process
# This should be > worker_connections
worker_rlimit_nofile 8192;

error_log  <%= ENV['OPENSHIFT_LOG_DIR'] %>/nginx_error.log;
pid        <%= ENV['OPENSHIFT_NGINX_PID'] %>;

events {
  # When you need > 8000 * cpu_cores connections, you start optimizing
  # your OS, and this is probably the point at where you hire people
  # who are smarter than you, this is *a lot* of requests.
  worker_connections  8000;

  # This sets up some smart queueing for accept(2)'ing requests
  # Set it to "on" if you have > worker_processes
  accept_mutex off;

  # These settings are OS specific, by defualt Nginx uses select(2),
  # however, for a large number of requests epoll(2) and kqueue(2)
  # are generally faster than the default (select(2))
  # use epoll; # enable for Linux 2.6+
  # use kqueue; # enable for *BSD (FreeBSD, OS X, ..)
}

http {
    include <%= ENV['OPENSHIFT_NGINX_VERSION_DIR'] %>/conf/mime.types;
    default_type application/octet-stream;

    client_body_temp_path  <%= ENV['OPENSHIFT_TMP_DIR'] %>/client_temp;
    fastcgi_temp_path      <%= ENV['OPENSHIFT_TMP_DIR'] %>/fastcgi_temp;

    # Format for our log files
    log_format   main '$remote_addr - $remote_user [$time_local]  $status '
      '"$request" $body_bytes_sent "$http_referer" '
      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  <%= ENV['OPENSHIFT_LOG_DIR'] %>/nginx_access.log  main;

    sendfile on;
    keepalive_timeout 65;

    include  <%= ENV['OPENSHIFT_NGINX_DIR'] %>/conf/nginx_http.conf;
{'fraction_non_alphanumeric': 0.10075507314771119, 'fraction_numerical': 0.011090136857008022, 'mean_word_length': 3.981198589894242, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 26, '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': '3470168', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1374, 'n_words': 449}