<commit_before><style type="text/css">
  #configuration_alerted_cuts_per_hour, #configuration_alerted_cut_duration {
    width: 20px;
  }
  #configuration_logged_in_timeout {
    width: 50px;
  }
  #configuration_notification_timeframe{
    width: 50px;
}
  #configuration_transparent_proxy_max_load_average {
    width: 50px;
  }
</style>
<script type="text/javascript">
  $(function(){
    function checkbox_use_global_prios() {
      if ($('#configuration_use_global_prios').attr('checked')) {
        $('#configuration_use_global_prios_strategy_input').show();
      } else {
        $('#configuration_use_global_prios_strategy_input').hide();
      }
    }
    checkbox_use_global_prios();
    $('#configuration_use_global_prios').change( function() {
      checkbox_use_global_prios();
    });
  })
</script>
<% unless current_user.may_update_configuration?(@configuration) %>
<script type="text/javascript">
  $(function(){
    $('input,select,textarea').attr('disabled',true)
  })
</script>
<% end %>
<div id="main">
  <% semantic_form_for @configuration, :html => { :multipart => true } do |form| %>
    <%= error_messages @configuration%>
    <% form.inputs :name => t('fieldsets.configuration.system') do %>
      <%= form.input :language, :as => :select, :collection => Language.languages_for_select, :include_blank => false %>
      <%= form.input :time_zone, :as => :time_zone, :priority_zones => /America/%>
      <%= form.input :web_interface_listen_on_80 %>
      <%= form.input :web_interface_listen_on_443 %>
      <%= form.input :web_interface_listen_on_8080 %>
      <%= form.input :use_external_number_client %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.notifications'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.notifications' } } do %>
      <%= form.input :deliver_notifications %>
      <%= form.input :notification_email %>
      <%= form.input :notification_timeframe  %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.users') do %>
      <%= form.input :logged_in_timeout %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.global_prios'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.global_prios' } } do %>
      <%= form.input :default_tcp_prio_ports %>
      <%= form.input :default_udp_prio_ports %>
      <%= form.input :default_prio_protos %>
      <%= form.input :default_prio_helpers %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.proxy'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.proxy' } } do %>
      <%= form.input :transparent_proxy %>
      <%= form.input :transparent_proxy_n_to_m %>
      <%= form.input :transparent_proxy_zph_enabled %>
      <%= form.input :transparent_proxy_windows_update_hack, :input_html => { :disabled => true } %>
      <li><br/></li>
      <%= form.input :transparent_proxy_max_load_average %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.advanced'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.advanced' } } do %>
      <%= form.input :apply_changes_automatically %>
      <%= form.input :apply_changes_automatically_hour, :as => :select, :collection => (0...24).map, :include_blank => false %>
      <%= form.input :filter_by_mac_address %>
      <%= form.input :tc_contracts_per_provider_in_wan %>
      <%= form.input :tc_contracts_per_provider_in_lan %>
      <%= form.input :iptables_tree_optimization_enabled %>
      <%= form.input :use_global_prios %>
      <%= form.input :use_global_prios_strategy, :as => :select, :collection => Configuration.use_global_prios_strategy_options_for_select, :include_blank => false %>
      <%= form.input :mtu %>
      <%= form.input :clamp_mss_to_pmtu %><br/>
      <%= form.input :quantum_factor %>
      <%= form.input :nf_conntrack_max %>
      <%= form.input :gc_thresh1, :wrapper_html => { :class => "left" } %>
      <%= form.input :gc_thresh2, :wrapper_html => { :class => "left" } %>
      <%= form.input :gc_thresh3, :wrapper_html => { :class => "left" } %>
    <% end %>
    <%= form_extensions form%>
    <% if current_user.may_update_configuration?(@configuration) or current_user.may_create_configuration? %><commit_msg>[gui] hide transparent_proxy_windows_update_hack option in configurations<commit_after><style type="text/css">
  #configuration_alerted_cuts_per_hour, #configuration_alerted_cut_duration {
    width: 20px;
  }
  #configuration_logged_in_timeout {
    width: 50px;
  }
  #configuration_notification_timeframe{
    width: 50px;
}
  #configuration_transparent_proxy_max_load_average {
    width: 50px;
  }
</style>
<script type="text/javascript">
  $(function(){
    function checkbox_use_global_prios() {
      if ($('#configuration_use_global_prios').attr('checked')) {
        $('#configuration_use_global_prios_strategy_input').show();
      } else {
        $('#configuration_use_global_prios_strategy_input').hide();
      }
    }
    checkbox_use_global_prios();
    $('#configuration_use_global_prios').change( function() {
      checkbox_use_global_prios();
    });
  })
</script>
<% unless current_user.may_update_configuration?(@configuration) %>
<script type="text/javascript">
  $(function(){
    $('input,select,textarea').attr('disabled',true)
  })
</script>
<% end %>
<div id="main">
  <% semantic_form_for @configuration, :html => { :multipart => true } do |form| %>
    <%= error_messages @configuration%>
    <% form.inputs :name => t('fieldsets.configuration.system') do %>
      <%= form.input :language, :as => :select, :collection => Language.languages_for_select, :include_blank => false %>
      <%= form.input :time_zone, :as => :time_zone, :priority_zones => /America/%>
      <%= form.input :web_interface_listen_on_80 %>
      <%= form.input :web_interface_listen_on_443 %>
      <%= form.input :web_interface_listen_on_8080 %>
      <%= form.input :use_external_number_client %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.notifications'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.notifications' } } do %>
      <%= form.input :deliver_notifications %>
      <%= form.input :notification_email %>
      <%= form.input :notification_timeframe  %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.users') do %>
      <%= form.input :logged_in_timeout %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.global_prios'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.global_prios' } } do %>
      <%= form.input :default_tcp_prio_ports %>
      <%= form.input :default_udp_prio_ports %>
      <%= form.input :default_prio_protos %>
      <%= form.input :default_prio_helpers %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.proxy'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.proxy' } } do %>
      <%= form.input :transparent_proxy %>
      <%= form.input :transparent_proxy_n_to_m %>
      <%= form.input :transparent_proxy_zph_enabled %>
      <!-- <%= form.input :transparent_proxy_windows_update_hack, :input_html => { :disabled => true } %> -->
      <li><br/></li>
      <%= form.input :transparent_proxy_max_load_average %>
    <% end %>
    <% form.inputs :name => t('fieldsets.configuration.advanced'),
                   :context_help => { :path => { :custom => 'configuration.fieldsets.advanced' } } do %>
      <%= form.input :apply_changes_automatically %>
      <%= form.input :apply_changes_automatically_hour, :as => :select, :collection => (0...24).map, :include_blank => false %>
      <%= form.input :filter_by_mac_address %>
      <%= form.input :tc_contracts_per_provider_in_wan %>
      <%= form.input :tc_contracts_per_provider_in_lan %>
      <%= form.input :iptables_tree_optimization_enabled %>
      <%= form.input :use_global_prios %>
      <%= form.input :use_global_prios_strategy, :as => :select, :collection => Configuration.use_global_prios_strategy_options_for_select, :include_blank => false %>
      <%= form.input :mtu %>
      <%= form.input :clamp_mss_to_pmtu %><br/>
      <%= form.input :quantum_factor %>
      <%= form.input :nf_conntrack_max %>
      <%= form.input :gc_thresh1, :wrapper_html => { :class => "left" } %>
      <%= form.input :gc_thresh2, :wrapper_html => { :class => "left" } %>
      <%= form.input :gc_thresh3, :wrapper_html => { :class => "left" } %>
    <% end %>
    <%= form_extensions form%>
    <% if current_user.may_update_configuration?(@configuration) or current_user.may_create_configuration? %>
{'fraction_non_alphanumeric': 0.16691454067040384, 'fraction_numerical': 0.005262555771650841, 'mean_word_length': 3.705059203444564, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 208, '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': '3741610', 'n_tokens_mistral': 3024, 'n_tokens_neox': 2770, 'n_words': 417}