<commit_before>= semantic_form_for component,
  as:     :component,
  url:    admin_component_path(component),
  remote: true,
  html:   {id: dom_id(component, 'form'), data: {type: :json, autosave: true}} do |f|

  = f.inputs do
    = f.input :h1
    = f.input :text, as: :default_wysiwyg, height: :small
    = f.input :key, as: :hidden

  - icon_image = component.icon_image || component.images.build(kind: 'icon')
  = render 'components/_shared/images_inputs', f: f, images: [icon_image]<commit_msg>Add background image field to HoverItem form<commit_after>= semantic_form_for component,
  as:     :component,
  url:    admin_component_path(component),
  remote: true,
  html:   {id: dom_id(component, 'form'), data: {type: :json, autosave: true}} do |f|

  = f.inputs do
    = f.input :h1
    = f.input :text, as: :default_wysiwyg, height: :small
    = f.input :key, as: :hidden

  - icon_image       = component.icon_image || component.images.build(kind: 'icon')
  - background_image = component.background_image || component.images.build(kind: 'background')
  = render 'components/_shared/images_inputs', f: f, images: [icon_image, background_image]
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.0017316017316017316, 'mean_word_length': 4.183856502242152, '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': '401128', 'n_tokens_mistral': 397, 'n_tokens_neox': 390, 'n_words': 98}