<commit_before><% if @import_os -%>
import os
<% end -%>

PUPPETDB_HOST = '<%= @puppetdb_host %>'
PUPPETDB_PORT = <%= @puppetdb_port %>
<% if @puppetdb_ssl_verify == 'False' -%>
PUPPETDB_SSL_VERIFY = False
<% else -%>
PUPPETDB_SSL_VERIFY = '<%= @puppetdb_ssl_verify %>'
<% end -%>
PUPPETDB_KEY = '<%= @puppetdb_key %>'
PUPPETDB_CERT = '<%= @puppetdb_cert %>'
PUPPETDB_TIMEOUT = <%= @puppetdb_timeout %>
DEV_LISTEN_HOST = '<%= @dev_listen_host %>'
DEV_LISTEN_PORT = <%= @dev_listen_port %>
UNRESPONSIVE_HOURS = <%= @unresponsive_hours %>
ENABLE_QUERY = <%= @enable_query %>
LOGLEVEL = '<%= @puppetboard_loglevel %>'
<% if (@secret_key and @secret_key == 'default') -%>
SECRET_KEY = os.urandom(24)
<% elsif @secret_key -%>
SECRET_KEY = <%= @secret_key %>
<% end -%>
<% if @dev_coffee_location -%>
DEV_COFFEE_LOCATION = '<%= @dev_coffee_location %>'
<% end -%>
<% if @localize_timestamp -%>
LOCALISE_TIMESTAMP = <%= @localize_timestamp %>
<% end -%>
<% if @reports_count -%>
REPORTS_COUNT = <%= @reports_count %>
<% end -%>
<% if @offline_mode -%>
OFFLINE_MODE = <%= @offline_mode %>
<% end -%>
<% if @enable_catalog -%>
ENABLE_CATALOG = <%= @enable_catalog %>
<% end -%>
<% if @graph_facts -%>
GRAPH_FACTS = [
  <%- @graph_facts.each do |graph_fact| -%>
                '<%= graph_fact %>',
  <%- end -%>
              ]
<% end -%>
<% if @inventory_facts -%>
INVENTORY_FACTS = [
  <%- @inventory_facts.each do |inventory_fact| -%>
                    ( 'inventory_fact[0]', 'inventory_fact[1]'),
  <%- end -%>
                  ]
<% end -%><commit_msg>Template marker around the array value accesses of the inventory_facts<commit_after><% if @import_os -%>
import os
<% end -%>

PUPPETDB_HOST = '<%= @puppetdb_host %>'
PUPPETDB_PORT = <%= @puppetdb_port %>
<% if @puppetdb_ssl_verify == 'False' -%>
PUPPETDB_SSL_VERIFY = False
<% else -%>
PUPPETDB_SSL_VERIFY = '<%= @puppetdb_ssl_verify %>'
<% end -%>
PUPPETDB_KEY = '<%= @puppetdb_key %>'
PUPPETDB_CERT = '<%= @puppetdb_cert %>'
PUPPETDB_TIMEOUT = <%= @puppetdb_timeout %>
DEV_LISTEN_HOST = '<%= @dev_listen_host %>'
DEV_LISTEN_PORT = <%= @dev_listen_port %>
UNRESPONSIVE_HOURS = <%= @unresponsive_hours %>
ENABLE_QUERY = <%= @enable_query %>
LOGLEVEL = '<%= @puppetboard_loglevel %>'
<% if (@secret_key and @secret_key == 'default') -%>
SECRET_KEY = os.urandom(24)
<% elsif @secret_key -%>
SECRET_KEY = <%= @secret_key %>
<% end -%>
<% if @dev_coffee_location -%>
DEV_COFFEE_LOCATION = '<%= @dev_coffee_location %>'
<% end -%>
<% if @localize_timestamp -%>
LOCALISE_TIMESTAMP = <%= @localize_timestamp %>
<% end -%>
<% if @reports_count -%>
REPORTS_COUNT = <%= @reports_count %>
<% end -%>
<% if @offline_mode -%>
OFFLINE_MODE = <%= @offline_mode %>
<% end -%>
<% if @enable_catalog -%>
ENABLE_CATALOG = <%= @enable_catalog %>
<% end -%>
<% if @graph_facts -%>
GRAPH_FACTS = [
  <%- @graph_facts.each do |graph_fact| -%>
                '<%= graph_fact %>',
  <%- end -%>
              ]
<% end -%>
<% if @inventory_facts -%>
INVENTORY_FACTS = [
  <%- @inventory_facts.each do |inventory_fact| -%>
                    ( '<%= inventory_fact[0] %>', '<%= inventory_fact[1] %>'),
  <%- end -%>
                  ]
<% end -%>
{'fraction_non_alphanumeric': 0.2119205298013245, 'fraction_numerical': 0.002522863450015768, 'mean_word_length': 3.9254658385093166, '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': '1191340', 'n_tokens_mistral': 1462, 'n_tokens_neox': 1279, 'n_words': 191}