<commit_before><table>
  <tr>
    <td>
      <% if f.object.send("#{attribute_name}_uid") %>
        <%= image_tag f.object.send(attribute_name).thumb(resize).url, size: size, id: image_id %>
        <div>
          <%= f.label("remove_#{attribute_name}", "Remove?") %>
          <%= f.check_box("remove_#{attribute_name}") %>
        </div>
      <% else %>
        <%= image_tag "simple_dragonfly_preview/default.png", size: size, id: image_id %>
      <% end %>
    </td>
    <td>
      <%= content_tag(:iframe, nil, src: simple_dragonfly_preview_iframe_path(retained_id: retained_id, image_id: image_id), width:"400", height:"50", frameborder:"0") %>
    </td>
  </tr>
</table>
<%= f.hidden_field("retained_#{attribute_name}") %><commit_msg>allow use in other gems<commit_after><table>
  <tr>
    <td>
      <% if f.object.send("#{attribute_name}_uid") %>
        <%= image_tag f.object.send(attribute_name).thumb(resize).url, size: size, id: image_id %>
        <div>
          <%= f.label("remove_#{attribute_name}", "Remove?") %>
          <%= f.check_box("remove_#{attribute_name}") %>
        </div>
      <% else %>
        <%= image_tag "simple_dragonfly_preview/default.png", size: size, id: image_id %>
      <% end %>
    </td>
    <td>
      <%= content_tag(:iframe, nil, src: main_app.simple_dragonfly_preview_iframe_path(retained_id: retained_id, image_id: image_id), width:"400", height:"50", frameborder:"0") %>
    </td>
  </tr>
</table>
<%= f.hidden_field("retained_#{attribute_name}") %>
{'fraction_non_alphanumeric': 0.19946984758117958, 'fraction_numerical': 0.007952286282306162, 'mean_word_length': 3.38953488372093, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '1885458', 'n_tokens_mistral': 571, 'n_tokens_neox': 534, 'n_words': 84}