<commit_before>###
# Generated by Chef for [<%= node[:fqdn] %>]
# Environment: <%= node.chef_environment %>
###

dbpath=<%= @datadir %>

#where to log
logpath= <%= @log %>

logappend=true

pidfilepath = <%= @pidfile %>

port = <%= @port %>
bind_ip = <%= Array(@bind_ip).join(',') %>

directoryperdb = true

# Disables write-ahead journaling
<% if @journal %>
journal = true
<% else %>
nojournal = true
<% end %>

# Enables periodic logging of CPU utilization and I/O wait
#cpu = true

# Turn on/off security.  Off is currently the default
<% if @auth %>
auth = true
<% else %>
noauth = true
<% end %>

# Verbose logging output.
#verbose = true

# Inspect all client data for validity on receipt (useful for
# developing drivers)
#objcheck = true

# Enable db quota management
#quota = true

# Set oplogging level where n is
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
#diaglog = 0

# Ignore query hints
#nohints = true

# Disable the HTTP interface (Defaults to localhost:28017).
#nohttpinterface = true

# Turns off server-side scripting.  This will result in greatly limited
# functionality
#noscripting = true

# Turns off table scans.  Any query that would do a table scan fails.
notablescan = <%= @notablescan %>

# Disable data file preallocation.
#noprealloc = true

# Specify .ns file size for new databases.
# nssize = <size>

# Replication Options
# in replica set configuration, specify the name of the replica set
<% unless @replSet.nil? %>replSet = <%= @replSet %>
<% else %># replSet not defined<% end %>

# Unix socket
unixSocketPrefix = <%= @socket %>

# Smallfiles
smallfiles = <%= @smallfiles %>

# REST interface
rest = <%= @rest %>

# HTTP interface
httpinterface = <%= @httpinterface %><commit_msg>rest, httpinterface: include unless they're nil<commit_after>###
# Generated by Chef for [<%= node[:fqdn] %>]
# Environment: <%= node.chef_environment %>
###

dbpath=<%= @datadir %>

#where to log
logpath= <%= @log %>

logappend=true

pidfilepath = <%= @pidfile %>

port = <%= @port %>
bind_ip = <%= Array(@bind_ip).join(',') %>

directoryperdb = true

# Disables write-ahead journaling
<% if @journal %>
journal = true
<% else %>
nojournal = true
<% end %>

# Enables periodic logging of CPU utilization and I/O wait
#cpu = true

# Turn on/off security.  Off is currently the default
<% if @auth %>
auth = true
<% else %>
noauth = true
<% end %>

# Verbose logging output.
#verbose = true

# Inspect all client data for validity on receipt (useful for
# developing drivers)
#objcheck = true

# Enable db quota management
#quota = true

# Set oplogging level where n is
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
#diaglog = 0

# Ignore query hints
#nohints = true

# Disable the HTTP interface (Defaults to localhost:28017).
#nohttpinterface = true

# Turns off server-side scripting.  This will result in greatly limited
# functionality
#noscripting = true

# Turns off table scans.  Any query that would do a table scan fails.
notablescan = <%= @notablescan %>

# Disable data file preallocation.
#noprealloc = true

# Specify .ns file size for new databases.
# nssize = <size>

# Replication Options
# in replica set configuration, specify the name of the replica set
<% unless @replSet.nil? %>replSet = <%= @replSet %>
<% else %># replSet not defined<% end %>

# Unix socket
unixSocketPrefix = <%= @socket %>

# Smallfiles
smallfiles = <%= @smallfiles %>

# REST interface
<% unless @rest.nil? %>rest = <%= @rest %>
<% else %># rest not defined<% end %>

# HTTP interface
<% unless @httpinterface.nil? %>httpinterface = <%= @httpinterface %>
<% else %># httpinterface not defined<% end %>
{'fraction_non_alphanumeric': 0.13922319474835887, 'fraction_numerical': 0.006017505470459519, 'mean_word_length': 4.10754189944134, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '4724975', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1165, 'n_words': 411}