<commit_before>- content_for :header_tags do
  = javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'

- content_for :page_title do
  = t('admin.settings.title')

= simple_form_for @admin_settings, url: admin_settings_path, html: { method: :patch } do |f|
  = render 'shared/error_messages', object: @admin_settings

  .fields-group
    = f.input :site_title, wrapper: :with_label, label: t('admin.settings.site_title')

  .fields-row
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :flavour_and_skin, collection: Themes.instance.flavours_and_skins, group_label_method: lambda { |(flavour, _)| I18n.t("flavours.#{flavour}.name", default: flavour) }, wrapper: :with_label, include_blank: false, as: :grouped_select, label_method: :last, value_method: lambda { |value| value.join('/') }, group_method: :last
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :registrations_mode, collection: %w(open approved none), wrapper: :with_label, label: t('admin.settings.registrations_mode.title'), include_blank: false, label_method: lambda { |mode| I18n.t("admin.settings.registrations_mode.modes.#{mode}") }

  .fields-row
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :site_contact_username, wrapper: :with_label, label: t('admin.settings.contact_information.username')
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :site_contact_email, wrapper: :with_label, label: t('admin.settings.contact_information.email')

  .fields-group
    = f.input :site_short_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_short_description.title'), hint: t('admin.settings.site_short_description.desc_html'), input_html: { rows: 2 }<commit_msg>Fix issue because of theming system<commit_after>- content_for :page_title do
  = t('admin.settings.title')

= simple_form_for @admin_settings, url: admin_settings_path, html: { method: :patch } do |f|
  = render 'shared/error_messages', object: @admin_settings

  .fields-group
    = f.input :site_title, wrapper: :with_label, label: t('admin.settings.site_title')

  .fields-row
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :flavour_and_skin, collection: Themes.instance.flavours_and_skins, group_label_method: lambda { |(flavour, _)| I18n.t("flavours.#{flavour}.name", default: flavour) }, wrapper: :with_label, include_blank: false, as: :grouped_select, label_method: :last, value_method: lambda { |value| value.join('/') }, group_method: :last
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :registrations_mode, collection: %w(open approved none), wrapper: :with_label, label: t('admin.settings.registrations_mode.title'), include_blank: false, label_method: lambda { |mode| I18n.t("admin.settings.registrations_mode.modes.#{mode}") }

  .fields-row
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :site_contact_username, wrapper: :with_label, label: t('admin.settings.contact_information.username')
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :site_contact_email, wrapper: :with_label, label: t('admin.settings.contact_information.email')

  .fields-group
    = f.input :site_short_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_short_description.title'), hint: t('admin.settings.site_short_description.desc_html'), input_html: { rows: 2 }
{'fraction_non_alphanumeric': 0.13990232691755242, 'fraction_numerical': 0.005170927894283252, 'mean_word_length': 5.508411214953271, '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': '2751009', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1139, 'n_words': 210}