<commit_before>:ruby
  url = if field.resource.class.name == 'Gestionnaire'
    enable_feature_manager_gestionnaire_path(field.resource.id)
  else
    enable_feature_manager_administrateur_path(field.resource.id)
  end

%table#features
  - Flipflop.feature_set.features.each do |feature|
    - if !feature.group || feature.group.key != :production
      %tr
        %td= feature.title
        %td
          = check_box_tag "enable-feature", "enable", field.data[feature.name], data: { url: url, key: feature.key }<commit_msg>manager: improve code to hide production features<commit_after>:ruby
  url = if field.resource.class.name == 'Gestionnaire'
    enable_feature_manager_gestionnaire_path(field.resource.id)
  else
    enable_feature_manager_administrateur_path(field.resource.id)
  end

%table#features
  - admin_features = Flipflop.feature_set.features.reject{ |f| f.group.try(:key) == :production }
  - admin_features.each do |feature|
    %tr
      %td= feature.title
      %td
        = check_box_tag "enable-feature", "enable", field.data[feature.name], data: { url: url, key: feature.key }
{'fraction_non_alphanumeric': 0.11989100817438691, 'fraction_numerical': 0.0, 'mean_word_length': 3.986425339366516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3825355', 'n_tokens_mistral': 357, 'n_tokens_neox': 354, 'n_words': 67}