<commit_before>== simple_form_for([:admin, event], html: { autocomplete: 'off' }) do |f|
  .panel.colourable
    .panel-heading
      span.panel-title= t('simple_form.labels.event.info')
    .panel-body
      == f.input :link_name, required: true
      == f.input :title, required: true
      == f.input :desc, required: false

      - if action_name == 'edit'
        .form-group
          == f.label :enable, class: 'switcher switcher-primary', for: 'switcher-primary'
            == f.check_box :enable, id: 'switcher-primary'
            .switcher-indicator
              .switcher-yes YES
              .switcher-no NO
            = t('simple_form.labels.event.enable')

  .panel.colourable
    .panel-heading
      span.panel-title= t('simple_form.labels.event.seo_info')
    .panel-body
      == f.input :keywords, required: true
      == f.input :image, as: :file
      - if event.image.present?
        == link_to event.image.url, target: '_blank' do
          == image_tag event.image.small, class: 'img-thumbnail'

  br/<commit_msg>Refine - Refine admin/event - form<commit_after>== simple_form_for([:admin, event], html: { autocomplete: 'off' }) do |f|
  .panel.colourable
    .panel-heading
      span.panel-title= t('simple_form.labels.event.info')
    .panel-body
      == f.input :link_name, required: true
      == f.input :title, required: true
      == f.input :desc, required: false

      - if action_name == 'edit'
        .form-group
          == f.label :enable, class: 'switcher switcher-primary', for: 'switcher-primary'
            == f.check_box :enable, id: 'switcher-primary'
            .switcher-indicator
              .switcher-yes YES
              .switcher-no NO
            = t('simple_form.labels.event.enable')

  .panel.colourable
    .panel-heading
      span.panel-title= t('simple_form.labels.event.seo_info')
    .panel-body
      == f.input :keywords, required: true
      == f.input :image, as: :file
      - if event.image.present?
        == link_to event.image.url, target: '_blank' do
          == image_tag event.image.small, class: 'img-thumbnail'

  .panel.colourable
    .panel-heading
      span.panel-title= t('simple_form.labels.product.info')
    .panel-body
      table#events_products.table
        thead
          tr
            th.col-md-2.text-center
            th.col-md-10= t('simple_form.labels.product.name')
        tbody
          - event.products.each do |product|
            tr
              td.text-center
                .btn-group
                  = link_to admin_event_product_path(event, product), class: 'btn btn-xs btn-primary btn-3d' do
                    = t('helpers.show')
              td= product.name

  br/
{'fraction_non_alphanumeric': 0.13459399332591768, 'fraction_numerical': 0.0014831294030404152, 'mean_word_length': 2.0382882882882885, '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': '5092818', 'n_tokens_mistral': 868, 'n_tokens_neox': 856, 'n_words': 174}