<commit_before># Configuration file for varnish
#
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
# shell script fragment.
#

# Maximum number of open files (for ulimit -n)
NFILES=<%= @node[:varnish][:nfiles] %>

# Default varnish instance name is the local nodename.  Can be overridden with
# the -n switch, to have more instances on a single server.
INSTANCE=$(uname -n)

VARNISH_VCL_CONF=<%= @node[:varnish][:vcl_conf] %>
VARNISH_LISTEN_ADDRESS=<%= @node[:varnish][:listen_address] %>
VARNISH_LISTEN_PORT=<%= @node[:varnish][:listen_port] %>

VARNISH_ADMIN_LISTEN_ADDRESS=<%= @node[:varnish][:admin_listen_address] %>
VARNISH_ADMIN_LISTEN_PORT=<%= @node[:varnish][:admin_listen_port] %>

VARNISH_MIN_THREADS=<%= @node[:varnish][:min_threads] %>
VARNISH_MAX_THREADS=<%= @node[:varnish][:max_threads] %>
VARNISH_THREAD_TIMEOUT=<%= @node[:varnish][:thread_timeout] %>
VARNISH_THREAD_POOLS=<%= @node[:varnish][:thread_pools] %>
VARNISH_THREAD_POOL_ADD_DELAY=<%= @node[:varnish][:thread_pool_add_delay] %>

VARNISH_STORAGE_TYPE=<%= @node[:varnish][:storage_type] %>
VARNISH_STORAGE_FILE=<%= @node[:varnish][:storage_file] %>
VARNISH_STORAGE_SIZE=<%= @node[:varnish][:storage_size] %>
VARNISH_TTL=<%= @node[:varnish][:varnish_ttl] %>

VARNISH_SESSION_WORKSPACE=<%= @node[:varnish][:session_workspace_size] %>

<% if @node[:varnish][:storage_type] == 'malloc' %>
VARNISH_STORAGE="<%=@node[:varnish][:storage_type]%>,<%=@node[:varnish][:storage_size]%>"
<% elsif @node[:varnish][:storage_type] == 'file' %>
VARNISH_STORAGE="<%=@node[:varnish][:storage_type]%>,<%=@node[:varnish][:storage_file]%>,<%=@node[:varnish][:storage_size]%>"
<% end %>

DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT}
 -f ${VARNISH_VCL_CONF}
 -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT}
 -t ${VARNISH_TTL}
 -w${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT}
 -u varnish -g varnish
 -s ${VARNISH_STORAGE}
 -p thread_pools=${VARNISH_THREAD_POOLS}
 -p thread_pool_add_delay=${VARNISH_THREAD_POOL_ADD_DELAY}"

# -p sess_workspace=${VARNISH_SESSION_WORKSPACE}"<commit_msg>This is currently borked to turn off for now...<commit_after># Configuration file for varnish
#
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
# shell script fragment.
#

# Maximum number of open files (for ulimit -n)
NFILES=<%= @node[:varnish][:nfiles] %>

# Default varnish instance name is the local nodename.  Can be overridden with
# the -n switch, to have more instances on a single server.
INSTANCE=$(uname -n)

VARNISH_VCL_CONF=<%= @node[:varnish][:vcl_conf] %>
VARNISH_LISTEN_ADDRESS=<%= @node[:varnish][:listen_address] %>
VARNISH_LISTEN_PORT=<%= @node[:varnish][:listen_port] %>

VARNISH_ADMIN_LISTEN_ADDRESS=<%= @node[:varnish][:admin_listen_address] %>
VARNISH_ADMIN_LISTEN_PORT=<%= @node[:varnish][:admin_listen_port] %>

VARNISH_MIN_THREADS=<%= @node[:varnish][:min_threads] %>
VARNISH_MAX_THREADS=<%= @node[:varnish][:max_threads] %>
VARNISH_THREAD_TIMEOUT=<%= @node[:varnish][:thread_timeout] %>
VARNISH_THREAD_POOLS=<%= @node[:varnish][:thread_pools] %>
VARNISH_THREAD_POOL_ADD_DELAY=<%= @node[:varnish][:thread_pool_add_delay] %>

VARNISH_STORAGE_TYPE=<%= @node[:varnish][:storage_type] %>
VARNISH_STORAGE_FILE=<%= @node[:varnish][:storage_file] %>
VARNISH_STORAGE_SIZE=<%= @node[:varnish][:storage_size] %>
VARNISH_TTL=<%= @node[:varnish][:varnish_ttl] %>

# VARNISH_SESSION_WORKSPACE=<%= @node[:varnish][:session_workspace_size] %>

<% if @node[:varnish][:storage_type] == 'malloc' %>
VARNISH_STORAGE="<%=@node[:varnish][:storage_type]%>,<%=@node[:varnish][:storage_size]%>"
<% elsif @node[:varnish][:storage_type] == 'file' %>
VARNISH_STORAGE="<%=@node[:varnish][:storage_type]%>,<%=@node[:varnish][:storage_file]%>,<%=@node[:varnish][:storage_size]%>"
<% end %>

DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT}
 -f ${VARNISH_VCL_CONF}
 -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT}
 -t ${VARNISH_TTL}
 -w${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT}
 -u varnish -g varnish
 -s ${VARNISH_STORAGE}
 -p thread_pools=${VARNISH_THREAD_POOLS}
 -p thread_pool_add_delay=${VARNISH_THREAD_POOL_ADD_DELAY}"

# -p sess_workspace=${VARNISH_SESSION_WORKSPACE}"
{'fraction_non_alphanumeric': 0.18860877684407096, 'fraction_numerical': 0.0, 'mean_word_length': 10.246719160104988, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, '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': '5317897', 'n_tokens_mistral': 1871, 'n_tokens_neox': 1740, 'n_words': 233}