<commit_before>

%h2.title
  =t("admin.manage.properties.constrains.reputation_constrains_subtitle")

=render :partial => "admin/manage/properties/subtabs"

.description
  =t("admin.manage.properties.constrains.reputation_constrains_description")

= link_to t(".current", default: "current"), domain_url(custom: @group.domain, controller: "constrains_configs", action: "index")
- ConstrainsConfig.where(:group_id => nil).all.each do |mode|
  = link_to mode.name, domain_url(custom: @group.domain, controller: "constrains_configs", action: "index", mode: mode.id)
  |
- current_group.constrains_configs.all.each do |mode|
  = link_to mode.name, domain_url(custom: @group.domain, controller: "constrains_configs", action: "index", mode: mode.id)
  = link_to t('scaffold.edit'), domain_url(custom: @group.domain, controller: "constrains_configs", action: "edit", id: mode.id)
  = link_to t('scaffold.destroy'),  constrains_config_url(mode), :metod => :delete, :confirm => t("scaffold.sure", :model => ConstrainsConfig.model_name.human)
  |
= link_to t("scaffold.new", model: ConstrainsConfig.model_name.human), domain_url(custom: @group.domain, controller: "constrains_configs", action: "new")

-form_for(@group, :html => {:class => "form", :multipart => true}) do |f|
  = f.error_messages
  = hidden_field_tag :source, domain_url(:custom => @group.domain, :controller => "admin/manage", :action => "properties", :tab => @active_subtab)

  = render :partial => "groups/reputation_constrains_form", :object => f

  .group.navform
    = f.submit t('scaffold.update')<commit_msg>adding small fixes for requirements<commit_after>

%h1
  =t("admin.manage.properties.constrains.reputation_constrains_subtitle")

=render :partial => "admin/manage/properties/subtabs"

%p.description
  =t("admin.manage.properties.constrains.reputation_constrains_description")

= link_to t(".current", default: "current"), domain_url(custom: @group.domain, controller: "constrains_configs", action: "index")
- ConstrainsConfig.where(:group_id => nil).all.each do |mode|
  = link_to mode.name, domain_url(custom: @group.domain, controller: "constrains_configs", action: "index", mode: mode.id)
  |
- current_group.constrains_configs.all.each do |mode|
  = link_to mode.name, domain_url(custom: @group.domain, controller: "constrains_configs", action: "index", mode: mode.id)
  = link_to t('scaffold.edit'), domain_url(custom: @group.domain, controller: "constrains_configs", action: "edit", id: mode.id)
  = link_to t('scaffold.destroy'),  constrains_config_url(mode), :metod => :delete, :confirm => t("scaffold.sure", :model => ConstrainsConfig.model_name.human)
  |
= link_to t("scaffold.new", model: ConstrainsConfig.model_name.human), domain_url(custom: @group.domain, controller: "constrains_configs", action: "new")

-form_for(@group, :html => {:class => "form", :multipart => true}) do |f|
  = f.error_messages
  = hidden_field_tag :source, domain_url(:custom => @group.domain, :controller => "admin/manage", :action => "properties", :tab => @active_subtab)

  = render :partial => "groups/reputation_constrains_form", :object => f

  .group.navform
    = f.submit t('scaffold.update')
{'fraction_non_alphanumeric': 0.1649810366624526, 'fraction_numerical': 0.0006321112515802782, 'mean_word_length': 6.3604651162790695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '5553531', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1056, 'n_words': 205}