<commit_before>hostname "<%= server_name %>"
rcon_password "<%= r<PASSWORD> %>"
sv_password "<%= password %>"
tv_password "<%= tv_password %>"
tv_relaypassword "<%= tv_relaypassword %>"
sv_logflush 0
sv_logbans 1
logaddress_add <%= "direct.#{SITE_HOST}:40001" %>
sv_rcon_whitelist_address "<%= whitelist_ip %>"
sv_quota_stringcmdspersecond 200
sv_max_queries_sec_global 60

<% if SITE_HOST == "serveme.tf" %>
<%= %{sv_downloadurl "http://dl.serveme.tf"} %>
<% end %>

<% if SITE_HOST == "na.serveme.tf" %>
<%= %{sv_downloadurl "http://kansas.serveme.tf"} %>
<% end %>

tftrue_no_hats 0
<%= %{tftrue_logs_prefix "#{SITE_HOST} ##{id}"} %>
tftrue_logs_roundend 0
tftrue_restorestats 1
<% if user.donator? %>
<%= "tftrue_logs_accuracy 1" %>
<% end %>

<% if user.logs_tf_api_key.present? %>
<%= %{tftrue_logs_apikey "#{user.logs_tf_api_key}"} %>
<% else %>
<%= %{tftrue_logs_apikey "#{LOGS_TF_API_KEY}"} %>
<% end %>

tv_delaymapchange 1
tv_enable 1
<% if enable_demos_tf? %>
<%= "tv_autorecord 0" %>
<%= "tftrue_tv_autorecord 0" %>
<% if user.demos_tf_api_key.present? %>
<%= %{sm_demostf_apikey "#{user.demos_tf_api_key}"} %>
<% else %>
<%= %{sm_demostf_apikey "#{DEMOS_TF_API_KEY}"} %>
<% end %>
<% else %>
<%= "tv_autorecord 0" %>
<%= "tftrue_tv_autorecord 1" %>
<% end %>

tf_preround_push_from_damage_enable 1

tf_birthday 0
tf_birthday_ball_chance 0

<% if server_config %>
<%= "exec #{server_config}" %><% end %>
<% if custom_whitelist_id.present? %>
<%= %{tftrue_whitelist_id #{custom_whitelist_id}} %>
<%= %{say "Whitelist: http://whitelist.tf/#{custom_whitelist_id}"} %>
<% elsif whitelist %>
<%= %{mp_tournament_whitelist "cfg/#{whitelist}"} %><% end %><commit_msg>Disable tv_autorecord in general, use TFTrue or demos.tf<commit_after>hostname "<%= server_name %>"
rcon_password "<%= rcon %>"
sv_password "<%= password %>"
tv_password "<%= tv_password %>"
tv_relaypassword "<%= tv_relaypassword %>"
sv_logflush 0
sv_logbans 1
logaddress_add <%= "direct.#{SITE_HOST}:40001" %>
sv_rcon_whitelist_address "<%= whitelist_ip %>"
sv_quota_stringcmdspersecond 200
sv_max_queries_sec_global 60

<% if SITE_HOST == "serveme.tf" %>
<%= %{sv_downloadurl "http://dl.serveme.tf"} %>
<% end %>

<% if SITE_HOST == "na.serveme.tf" %>
<%= %{sv_downloadurl "http://kansas.serveme.tf"} %>
<% end %>

tftrue_no_hats 0
<%= %{tftrue_logs_prefix "#{SITE_HOST} ##{id}"} %>
tftrue_logs_roundend 0
tftrue_restorestats 1
<% if user.donator? %>
<%= "tftrue_logs_accuracy 1" %>
<% end %>

<% if user.logs_tf_api_key.present? %>
<%= %{tftrue_logs_apikey "#{user.logs_tf_api_key}"} %>
<% else %>
<%= %{tftrue_logs_apikey "#{LOGS_TF_API_KEY}"} %>
<% end %>

tv_delaymapchange 1
tv_enable 1
tv_autorecord 0
<% if enable_demos_tf? %>
<%= "tftrue_tv_autorecord 0" %>
<% if user.demos_tf_api_key.present? %>
<%= %{sm_demostf_apikey "#{user.demos_tf_api_key}"} %>
<% else %>
<%= %{sm_demostf_apikey "#{DEMOS_TF_API_KEY}"} %>
<% end %>
<% else %>
<%= "tftrue_tv_autorecord 1" %>
<% end %>

tf_preround_push_from_damage_enable 1

tf_birthday 0
tf_birthday_ball_chance 0

<% if server_config %>
<%= "exec #{server_config}" %><% end %>
<% if custom_whitelist_id.present? %>
<%= %{tftrue_whitelist_id #{custom_whitelist_id}} %>
<%= %{say "Whitelist: http://whitelist.tf/#{custom_whitelist_id}"} %>
<% elsif whitelist %>
<%= %{mp_tournament_whitelist "cfg/#{whitelist}"} %><% end %>
{'fraction_non_alphanumeric': 0.2054958183990442, 'fraction_numerical': 0.014635603345280765, 'mean_word_length': 6.525842696629214, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 88, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '202546', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1400, 'n_words': 211}