<commit_before># THIS FILE HAS BEEN GENERATED BY CHEF
# ANY MANUAL MODIFICATIONS WILL BE OVERWRITTEN
# mongodb.conf

# Where to store the data.

# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=<%= @node[:mongodb][:datadir] %>

#where to log
logpath=<%= @node[:mongodb][:logfile] %>
logappend=true

port = <%= @node[:mongodb][:port] %>

<% if @node[:mongodb][:log_cpu_io] %>
# Enables periodic logging of CPU utilization and I/O wait
cpu = true
<% end %>

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

<% if @node[:mongodb][:verbose] %>
# Verbose logging output.
verbose = true
<% end %>

<% if @node[:mongodb][:objcheck] %>
# Inspect all client data for validity on receipt (useful for
# developing drivers)
objcheck = true
<% end %>

<% if @node[:mongodb][:quota] %>
# Enable db quota management
quota = true
<% end %>

<% if @node[:mongodb][:diaglog] %>
# Set oplogging level where n is
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
diaglog = <%= @node[:mongodb][:diaglog] %>
<% end %>

<% if @node[:mongodb][:nocursors] %>
# Diagnostic/debugging option
nocursors = true
<% end %>

<% if @node[:mongodb][:nohints] %>
# Ignore query hints
nohints = true
<% end %>

<% if @node[:mongodb][:nohttp] %>
# Disable the HTTP interface (Defaults to localhost:27018).
nohttpinterface = true
<% end %>

<% if @node[:mongodb][:noscripting] %>
# Turns off server-side scripting.  This will result in greatly limited functionality
noscripting = true
<% end %>

<% if @node[:mongodb][:notablescan] %>
# Turns off table scans.  Any query that would do a table scan fails.
notablescan = true
<% end %>

<% if @node[:mongodb][:noprealloc] %>
# Disable data file preallocation.
noprealloc = true
<% end %>

<% if @node[:mongodb][:nssize] %>
# Specify .ns file size for new databases.
nssize = <%= @node[:mongodb][:nssize] %>
<% end %>

<% if @node[:mongodb][:mms] %>
  # Accout token for Mongo monitoring server.
  mms-token = <%= @node[:mongodb][:token] %>

  # Server name for Mongo monitoring server.
  mms-name = <%= @node[:mongodb][:name] %>

  # Ping interval for Mongo monitoring server.
  mms-interval = <%= @node[:mongodb][:interval] %>
<% end %>

<% if @node[:mongodb][:replication] %>
  # Replication Options
  # in replicated mongo databases, specify here whether this is a slave or master
  <% if @node[:mongodb][:slave] %>
  slave = <%= @node[:mongodb][:slave] %>
  source = <%= @node[:mongodb][:slave_source] %>
  # Slave only: specify a single database to replicate
  only = <%= @node[:mongodb][:slave_only] %>
  <% end %>

  <% if @node[:mongodb][:master] %>
  master = <%= @node[:mongodb][:master] %>
  source = <%= @node[:mongodb][:master_source] %>
  <% end %>

  # Address of a server to pair with.
  pairwith = <%= @node[:mongodb][:pairwith] %>
  # Address of arbiter server.
  arbiter = <%= @node[:mongodb][:arbiter] %>
  # Automatically resync if slave data is stale
  <%= p "autoresync" if @node[:mongodb][:autoresync] %>
  # Custom size for replication operation log.
  oplogSize = <%= @node[:mongodb][:oplogsize] %>
  # Size limit for in-memory storage of op ids.
  opIdMem = <%= @node[:mongodb][:opidmem] * 1024 * 1024 %>
<% end %><commit_msg>remove obsolete replication config from template<commit_after># THIS FILE HAS BEEN GENERATED BY CHEF
# ANY MANUAL MODIFICATIONS WILL BE OVERWRITTEN
# mongodb.conf

# Where to store the data.

# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=<%= @node[:mongodb][:datadir] %>

#where to log
logpath=<%= @node[:mongodb][:logfile] %>
logappend=true

port = <%= @node[:mongodb][:port] %>

<% if @node[:mongodb][:log_cpu_io] %>
# Enables periodic logging of CPU utilization and I/O wait
cpu = true
<% end %>

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

<% if @node[:mongodb][:verbose] %>
# Verbose logging output.
verbose = true
<% end %>

<% if @node[:mongodb][:objcheck] %>
# Inspect all client data for validity on receipt (useful for
# developing drivers)
objcheck = true
<% end %>

<% if @node[:mongodb][:quota] %>
# Enable db quota management
quota = true
<% end %>

<% if @node[:mongodb][:diaglog] %>
# Set oplogging level where n is
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
diaglog = <%= @node[:mongodb][:diaglog] %>
<% end %>

<% if @node[:mongodb][:nocursors] %>
# Diagnostic/debugging option
nocursors = true
<% end %>

<% if @node[:mongodb][:nohints] %>
# Ignore query hints
nohints = true
<% end %>

<% if @node[:mongodb][:nohttp] %>
# Disable the HTTP interface (Defaults to localhost:27018).
nohttpinterface = true
<% end %>

<% if @node[:mongodb][:noscripting] %>
# Turns off server-side scripting.  This will result in greatly limited functionality
noscripting = true
<% end %>

<% if @node[:mongodb][:notablescan] %>
# Turns off table scans.  Any query that would do a table scan fails.
notablescan = true
<% end %>

<% if @node[:mongodb][:noprealloc] %>
# Disable data file preallocation.
noprealloc = true
<% end %>

<% if @node[:mongodb][:nssize] %>
# Specify .ns file size for new databases.
nssize = <%= @node[:mongodb][:nssize] %>
<% end %>

<% if @node[:mongodb][:mms] %>
  # Accout token for Mongo monitoring server.
  mms-token = <%= @node[:mongodb][:token] %>

  # Server name for Mongo monitoring server.
  mms-name = <%= @node[:mongodb][:name] %>

  # Ping interval for Mongo monitoring server.
  mms-interval = <%= @node[:mongodb][:interval] %>
<% end %>
{'fraction_non_alphanumeric': 0.17174468085106384, 'fraction_numerical': 0.004765957446808511, 'mean_word_length': 4.445783132530121, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '7656560', 'n_tokens_mistral': 2325, 'n_tokens_neox': 1981, 'n_words': 601}